diff --git a/dist/assets/images/template-empty.png b/dist/assets/images/template-empty.png new file mode 100644 index 00000000..fa184af3 Binary files /dev/null and b/dist/assets/images/template-empty.png differ diff --git a/dist/main.js b/dist/main.js index 6d703034..8ae19ef7 100644 --- a/dist/main.js +++ b/dist/main.js @@ -1,9 +1,9 @@ -!function(e){var t={};function r(n){if(t[n])return t[n].exports;var _=t[n]={i:n,l:!1,exports:{}};return e[n].call(_.exports,_,_.exports,r),_.l=!0,_.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var _ in e)r.d(n,_,function(t){return e[t]}.bind(null,_));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=391)}([function(e,t,r){"use strict";e.exports=r(393)},function(module,exports,__webpack_require__){"use strict";var evalAllowed=!1;try{eval("evalAllowed = true")}catch(e){}var platformSupported=!!Object.setPrototypeOf&&evalAllowed;module.exports=__webpack_require__(392)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:V,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i:return _()({},e,{initEnded:!0});case a.f:return _()({},e,{initEnded:!1});case c:return _()({},e,{openedPage:t.openedPage});case o:return _()({},e,{alertShowing:!0,alertParams:t.params});case s:return _()({},e,{alertShowing:!1});case l:return _()({},e,{modalShowing:!0,modalType:t.modalType,modalParams:t.params});case u:return _()({},e,{modalShowing:!1});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(o,"SHOW_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(s,"CLOSE_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(l,"SHOW_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(u,"CLOSE_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(c,"SET_CURRENT_PAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("app/nav/pages/PAGE_NO_SITES","PAGE_NO_SITES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(d,"PAGE_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(f,"PAGE_MODELS_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(p,"PAGE_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(h,"PAGE_CONTENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(E,"PAGE_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(m,"PAGE_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(g,"PAGE_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(b,"PAGE_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(v,"MODAL_TYPE_FIELD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(O,"MODAL_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(M,"MODAL_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(C,"MODAL_TYPE_WYSIWYG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(P,"MODAL_TYPE_MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(D,"MODAL_TYPE_MODEL_CHOOSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("email-verify","URL_EMAIL_VERIFY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set","URL_PASSWORD_SET","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set-success","URL_PASSWORD_SUCCESS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("invalid-link","URL_INVALID_LINK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(y,"URL_SIGN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(w,"URL_USERSPACE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(T,"URL_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(A,"URL_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(k,"URL_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(I,"URL_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(R,"URL_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(L,"URL_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(B,"URL_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(U,"URL_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(S,"URL_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(K,"URLS_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(W,"initEnd","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(x,"showAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(j,"closeAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(N,"showModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(q,"closeModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(F,"setCurrentPage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(V,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(H,"navReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),n(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"B",function(){return SiteData}),__webpack_require__.d(__webpack_exports__,"z",function(){return ModelData}),__webpack_require__.d(__webpack_exports__,"y",function(){return FIELD_TYPE_SHORT_TEXT}),__webpack_require__.d(__webpack_exports__,"v",function(){return FIELD_TYPE_LONG_TEXT}),__webpack_require__.d(__webpack_exports__,"u",function(){return FIELD_TYPE_INTEGER}),__webpack_require__.d(__webpack_exports__,"t",function(){return FIELD_TYPE_FLOAT}),__webpack_require__.d(__webpack_exports__,"r",function(){return FIELD_TYPE_BOOLEAN}),__webpack_require__.d(__webpack_exports__,"s",function(){return FIELD_TYPE_DATE}),__webpack_require__.d(__webpack_exports__,"w",function(){return FIELD_TYPE_MEDIA}),__webpack_require__.d(__webpack_exports__,"x",function(){return FIELD_TYPE_REFERENCE}),__webpack_require__.d(__webpack_exports__,"m",function(){return FIELD_APPEARANCE__SHORT_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"n",function(){return FIELD_APPEARANCE__SHORT_TEXT__SLUG}),__webpack_require__.d(__webpack_exports__,"o",function(){return FIELD_APPEARANCE__SHORT_TEXT__URL}),__webpack_require__.d(__webpack_exports__,"k",function(){return FIELD_APPEARANCE__LONG_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"j",function(){return FIELD_APPEARANCE__LONG_TEXT__MULTI}),__webpack_require__.d(__webpack_exports__,"l",function(){return FIELD_APPEARANCE__LONG_TEXT__WYSIWIG}),__webpack_require__.d(__webpack_exports__,"i",function(){return FIELD_APPEARANCE__LONG_TEXT__MARKDOWN}),__webpack_require__.d(__webpack_exports__,"g",function(){return FIELD_APPEARANCE__INTEGER__DECIMAL}),__webpack_require__.d(__webpack_exports__,"h",function(){return FIELD_APPEARANCE__INTEGER__RATING}),__webpack_require__.d(__webpack_exports__,"f",function(){return FIELD_APPEARANCE__FLOAT__DECIMAL}),__webpack_require__.d(__webpack_exports__,"a",function(){return FIELD_APPEARANCE__BOOLEAN__RADIO}),__webpack_require__.d(__webpack_exports__,"b",function(){return FIELD_APPEARANCE__BOOLEAN__SWITCH}),__webpack_require__.d(__webpack_exports__,"c",function(){return FIELD_APPEARANCE__DATE__DATE}),__webpack_require__.d(__webpack_exports__,"d",function(){return FIELD_APPEARANCE__DATE__DATE_ONLY}),__webpack_require__.d(__webpack_exports__,"e",function(){return FIELD_APPEARANCE__DATE__TIME_ONLY}),__webpack_require__.d(__webpack_exports__,"q",function(){return FIELD_TYPES}),__webpack_require__.d(__webpack_exports__,"D",function(){return canBeTitle}),__webpack_require__.d(__webpack_exports__,"C",function(){return canBeList}),__webpack_require__.d(__webpack_exports__,"A",function(){return ModelFieldData}),__webpack_require__.d(__webpack_exports__,"p",function(){return FIELD_NAMES_RESERVED});var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(162),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__),parse__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_9__),utils_common__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SiteData=function(){function SiteData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,SiteData),this.origin=null,this.domain="",this.webhook="",this.icon=null,this._name="",this._nameId="",this.owner=null,this.collaborations=[],this.models=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(SiteData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("domain")&&(this.domain=e.get("domain")),e.get("webhook")&&(this.webhook=e.get("webhook")),e.get("icon")&&(this.icon=e.get("icon")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new SiteData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("domain",this.domain),this.origin.set("webhook",this.webhook),this.origin.set("icon",this.icon),this.origin.set("owner",this.owner.origin)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,domain:this.domain,webhook:this.webhook}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_9__.Parse.Object.extend("Site")}}]),SiteData}(),ModelData=function(){function ModelData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,ModelData),this.origin=null,this.description="",this.tableName="",this.color="rgba(0, 0, 0, 1)",this._name="",this._nameId="",this.site=null,this.fields=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(ModelData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("description")&&(this.description=e.get("description")),e.get("tableName")&&(this.tableName=e.get("tableName")),e.get("color")&&(this.color=e.get("color")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("description",this.description),this.origin.set("tableName",this.tableName),this.origin.set("color",this.color),this.origin.set("site",this.site.origin)}},{key:"setTableName",value:function(){this.tableName="ct___".concat(this.site.owner.emailFiltered,"___").concat(this.site.nameId,"___").concat(this.nameId)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,description:this.description,tableName:this.tableName,color:this.color,fields:this.fields}}},{key:"hasTitle",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,_=this.fields[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){if(n.value.isTitle)return!0}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}return!1}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_9__.Parse.Object.extend("Model")}}]),ModelData}(),FIELD_TYPE_SHORT_TEXT="Short Text",FIELD_TYPE_LONG_TEXT="Long Text",FIELD_TYPE_INTEGER="Number Int",FIELD_TYPE_FLOAT="Number",FIELD_TYPE_BOOLEAN="Boolean",FIELD_TYPE_DATE="Date/time",FIELD_TYPE_MEDIA="Media",FIELD_TYPE_JSON="JSON",FIELD_TYPE_REFERENCE="Reference",FIELD_APPEARANCE__SHORT_TEXT__SINGLE="Single line",FIELD_APPEARANCE__SHORT_TEXT__SLUG="Slug",FIELD_APPEARANCE__SHORT_TEXT__URL="URL",FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN="Dropdown",FIELD_APPEARANCE__SHORT_TEXT__RADIO="Radio buttons",FIELD_APPEARANCE__LONG_TEXT__SINGLE="Single line",FIELD_APPEARANCE__LONG_TEXT__MULTI="Multi-line",FIELD_APPEARANCE__LONG_TEXT__WYSIWIG="WYSIWYG",FIELD_APPEARANCE__LONG_TEXT__MARKDOWN="Markdown",FIELD_APPEARANCE__INTEGER__DECIMAL="Decimal",FIELD_APPEARANCE__INTEGER__RATING="Rating",FIELD_APPEARANCE__FLOAT__DECIMAL="Decimal",FIELD_APPEARANCE__BOOLEAN__RADIO="Radio buttons",FIELD_APPEARANCE__BOOLEAN__SWITCH="Switch",FIELD_APPEARANCE__DATE__DATE="Date & time",FIELD_APPEARANCE__DATE__DATE_ONLY="Date",FIELD_APPEARANCE__DATE__TIME_ONLY="Time",FIELD_APPEARANCE__MEDIA__MEDIA="Media",FIELD_APPEARANCE__JSON__JSON="Date & time",FIELD_APPEARANCE__REFERENCE_REFERENCE="Reference",FIELD_TYPES=new Map([[FIELD_TYPE_SHORT_TEXT,[FIELD_APPEARANCE__SHORT_TEXT__SINGLE,FIELD_APPEARANCE__SHORT_TEXT__SLUG,FIELD_APPEARANCE__SHORT_TEXT__URL]],[FIELD_TYPE_LONG_TEXT,[FIELD_APPEARANCE__LONG_TEXT__SINGLE,FIELD_APPEARANCE__LONG_TEXT__MULTI,FIELD_APPEARANCE__LONG_TEXT__MARKDOWN]],[FIELD_TYPE_INTEGER,[FIELD_APPEARANCE__INTEGER__DECIMAL,FIELD_APPEARANCE__INTEGER__RATING]],[FIELD_TYPE_FLOAT,[FIELD_APPEARANCE__FLOAT__DECIMAL]],[FIELD_TYPE_BOOLEAN,[FIELD_APPEARANCE__BOOLEAN__RADIO,FIELD_APPEARANCE__BOOLEAN__SWITCH]],[FIELD_TYPE_DATE,[FIELD_APPEARANCE__DATE__DATE,FIELD_APPEARANCE__DATE__DATE_ONLY,FIELD_APPEARANCE__DATE__TIME_ONLY]],[FIELD_TYPE_MEDIA,[FIELD_APPEARANCE__MEDIA__MEDIA]],[FIELD_TYPE_REFERENCE,[FIELD_APPEARANCE__REFERENCE_REFERENCE]]]);function canBeTitle(e){return e.type==FIELD_TYPE_SHORT_TEXT&&e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE&&!e.isList&&!e.isDisabled}function canBeList(e){return(e.type==FIELD_TYPE_SHORT_TEXT&&e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE||e.type==FIELD_TYPE_INTEGER&&e.appearance==FIELD_APPEARANCE__INTEGER__DECIMAL||e.type==FIELD_TYPE_FLOAT&&e.appearance==FIELD_APPEARANCE__FLOAT__DECIMAL||e.type==FIELD_TYPE_MEDIA&&e.appearance==FIELD_APPEARANCE__MEDIA__MEDIA||e.type==FIELD_TYPE_REFERENCE&&e.appearance==FIELD_APPEARANCE__REFERENCE_REFERENCE)&&!e.isTitle}var ModelFieldData=function(){function ModelFieldData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,ModelFieldData),this.origin=null,this.type=FIELD_TYPE_SHORT_TEXT,this.appearance=FIELD_APPEARANCE__SHORT_TEXT__SINGLE,this.color="rgba(0, 0, 0, 1)",this.boolTextYes="",this.boolTextNo="",this.isRequired=!1,this.isTitle=!1,this.isList=!1,this.isDisabled=!1,this.order=-1,this.validations=null,this._name="",this._nameId="",this.model=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(ModelFieldData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("type")&&(this.type=e.get("type")),e.get("appearance")&&(this.appearance=e.get("appearance")),e.get("color")&&(this.color=e.get("color")),e.get("boolTextYes")&&(this.boolTextYes=e.get("boolTextYes")),e.get("boolTextNo")&&(this.boolTextNo=e.get("boolTextNo")),e.get("isRequired")&&(this.isRequired=!0),e.get("isTitle")&&(this.isTitle=!0),e.get("isList")&&(this.isList=!0),e.get("isDisabled")&&(this.isDisabled=!0),e.get("validations")&&(this.validations=e.get("validations")),(e.get("order")||0===e.get("order"))&&(this.order=e.get("order")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelFieldData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("type",this.type),this.origin.set("appearance",this.appearance),this.origin.set("color",this.color),this.origin.set("boolTextYes",this.boolTextYes),this.origin.set("boolTextNo",this.boolTextNo),this.origin.set("isRequired",this.isRequired),this.origin.set("isTitle",this.isTitle),this.origin.set("isList",this.isList),this.origin.set("isDisabled",this.isDisabled),this.origin.set("order",this.order),this.origin.set("validations",this.validations),this.origin.set("model",this.model.origin)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,type:this.type,appearance:this.appearance,color:this.color,boolTextYes:this.boolTextYes,boolTextNo:this.boolTextNo,isRequired:this.isRequired,isTitle:this.isTitle,isList:this.isList,isDisabled:this.isDisabled,order:this.order,validations:this.validations}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_9__.Parse.Object.extend("ModelField")}}]),ModelFieldData}(),FIELD_NAMES_RESERVED=["objectId","ACL","createdAt","updatedAt","t__color","t__status","t__owner","t__model"];!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SiteData,"SiteData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelData,"ModelData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_SHORT_TEXT,"FIELD_TYPE_SHORT_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_LONG_TEXT,"FIELD_TYPE_LONG_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_INTEGER,"FIELD_TYPE_INTEGER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_FLOAT,"FIELD_TYPE_FLOAT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_BOOLEAN,"FIELD_TYPE_BOOLEAN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_DATE,"FIELD_TYPE_DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_MEDIA,"FIELD_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_JSON,"FIELD_TYPE_JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_REFERENCE,"FIELD_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SINGLE,"FIELD_APPEARANCE__SHORT_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SLUG,"FIELD_APPEARANCE__SHORT_TEXT__SLUG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__URL,"FIELD_APPEARANCE__SHORT_TEXT__URL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN,"FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__RADIO,"FIELD_APPEARANCE__SHORT_TEXT__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__SINGLE,"FIELD_APPEARANCE__LONG_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MULTI,"FIELD_APPEARANCE__LONG_TEXT__MULTI","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__WYSIWIG,"FIELD_APPEARANCE__LONG_TEXT__WYSIWIG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MARKDOWN,"FIELD_APPEARANCE__LONG_TEXT__MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__DECIMAL,"FIELD_APPEARANCE__INTEGER__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__RATING,"FIELD_APPEARANCE__INTEGER__RATING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__FLOAT__DECIMAL,"FIELD_APPEARANCE__FLOAT__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__RADIO,"FIELD_APPEARANCE__BOOLEAN__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__SWITCH,"FIELD_APPEARANCE__BOOLEAN__SWITCH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE,"FIELD_APPEARANCE__DATE__DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE_ONLY,"FIELD_APPEARANCE__DATE__DATE_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__TIME_ONLY,"FIELD_APPEARANCE__DATE__TIME_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__MEDIA__MEDIA,"FIELD_APPEARANCE__MEDIA__MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__JSON__JSON,"FIELD_APPEARANCE__JSON__JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__REFERENCE_REFERENCE,"FIELD_APPEARANCE__REFERENCE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPES,"FIELD_TYPES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeTitle,"canBeTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeList,"canBeList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelFieldData,"ModelFieldData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_NAMES_RESERVED,"FIELD_NAMES_RESERVED","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){e.exports=r(398)()},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(149)),_=o(r(410)),a=o(r(509)),i=o(r(521));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){var o=void 0,s=(0,i.default)(r);return o=function(e){return"prototype"in e&&(0,n.default)(e.prototype.render)}(e)?(0,_.default)(e,t,s):(0,a.default)(e,t,s),e.displayName?o.displayName=e.displayName:o.displayName=e.name,o};t.default=function(){return(0,n.default)(arguments.length<=0?void 0:arguments[0])?s(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]):function(e,t){return function(r){return s(r,e,t)}}(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])},e.exports=t.default},function(e,t,r){var n=r(59);e.exports=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return null;var n=Object(i.d)(e);return function e(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=_?"".concat(n,"_").concat(_):n;if(-1!=r.indexOf(a))return e(++_);var i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0)if(l.value.nameId==a)return e(++_)}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return a}()}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"NAME_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(l,"NAME_ERROR_NAME_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(u,"NAME_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(c,"getAlertForNameError","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(d,"getUser","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(f,"checkSiteName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(p,"DOMAIN_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(h,"DOMAIN_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(E,"DOMAIN_ERROR_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(m,"DOMAIN_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(g,"checkSiteDomain","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(b,"getSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(v,"getSiteByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(O,"COLLAB_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(M,"COLLAB_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(C,"COLLAB_ERROR_SELF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(P,"checkCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(D,"checkModelName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(y,"getModelByName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(w,"getModelByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(T,"checkFieldName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(A,"getContentForModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(k,"getContentForSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(I,"getContentByModelAndId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(R,"getContentByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(L,"checkContentExistense","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(B,"getMediaByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(U,"getRole","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(S,"checkPassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(K,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";var n=r(27),_=r.n(n),a=r(0),i=r.n(a),o=r(37),s=r.n(o),l=r(9),u=r.n(l);r(79);function c(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var d=Object.create(null);function f(e){return d[e]||(d[e]=function(e){for(var t="",r=[],n=[],_=void 0,a=0,i=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;_=i.exec(e);)_.index!==a&&(n.push(e.slice(a,_.index)),t+=c(e.slice(a,_.index))),_[1]?(t+="([^/]+)",r.push(_[1])):"**"===_[0]?(t+="(.*)",r.push("splat")):"*"===_[0]?(t+="(.*?)",r.push("splat")):"("===_[0]?t+="(?:":")"===_[0]?t+=")?":"\\("===_[0]?t+="\\(":"\\)"===_[0]&&(t+="\\)"),n.push(_[0]),a=i.lastIndex;return a!==e.length&&(n.push(e.slice(a,e.length)),t+=c(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:r,tokens:n}}(e)),d[e]}function p(e,t){"/"!==e.charAt(0)&&(e="/"+e);var r=f(e),n=r.regexpSource,_=r.paramNames,a=r.tokens;"/"!==e.charAt(e.length-1)&&(n+="/?"),"*"===a[a.length-1]&&(n+="$");var i=t.match(new RegExp("^"+n,"i"));if(null==i)return null;var o=i[0],s=t.substr(o.length);if(s){if("/"!==o.charAt(o.length-1))return null;s="/"+s}return{remainingPathname:s,paramNames:_,paramValues:i.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function h(e){return f(e).paramNames}function E(e,t){t=t||{};for(var r=f(e).tokens,n=0,a="",i=0,o=[],s=void 0,l=void 0,u=0,c=r.length;u0||_()(!1),null!=l&&(a+=encodeURI(l));else if("("===s)o[n]="",n+=1;else if(")"===s){var d=o.pop();(n-=1)?o[n-1]+=d:a+=d}else if("\\("===s)a+="(";else if("\\)"===s)a+=")";else if(":"===s.charAt(0))if(null!=(l=t[s.substring(1)])||n>0||_()(!1),null==l){if(n){o[n-1]="";for(var p=r.indexOf(s),h=r.slice(p,r.length),E=-1,m=0;m0||_()(!1),u=p+E-1}}else n?o[n-1]+=encodeURIComponent(l):a+=encodeURIComponent(l);else n?o[n-1]+=s:a+=s;return n<=0||_()(!1),a.replace(/\/+/g,"/")}var m=function(e,t){var r=e&&e.routes,n=t.routes,_=void 0,a=void 0,i=void 0;if(r){var o=!1;(_=r.filter(function(r){if(o)return!0;var _=-1===n.indexOf(r)||function(e,t,r){return!!e.path&&h(e.path).some(function(e){return t.params[e]!==r.params[e]})}(r,e,t);return _&&(o=!0),_})).reverse(),i=[],a=[],n.forEach(function(e){var t=-1===r.indexOf(e),n=-1!==_.indexOf(e);t||n?i.push(e):a.push(e)})}else _=[],a=[],i=n;return{leaveRoutes:_,changeRoutes:a,enterRoutes:i}};function g(e,t,r){var n=0,_=!1,a=!1,i=!1,o=void 0;function s(){_=!0,a?o=[].concat(Array.prototype.slice.call(arguments)):r.apply(this,arguments)}!function l(){if(!_&&(i=!0,!a)){for(a=!0;!_&&n=e&&i&&(_=!0,r())}}()}function b(e,t,r){var n=e.length,_=[];if(0===n)return r(null,_);var a=!1,i=0;e.forEach(function(e,o){t(e,o,function(e,t){!function(e,t,o){a||(t?(a=!0,r(t)):(_[e]=o,(a=++i===n)&&r(null,_)))}(o,e,t)})})}var v=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=[],this.add=function(e){return t.hooks.push(e)},this.remove=function(e){return t.hooks=t.hooks.filter(function(t){return t!==e})},this.has=function(e){return-1!==t.hooks.indexOf(e)},this.clear=function(){return t.hooks=[]}};function O(){var e=new v,t=new v;function r(e,t,r,n){var _=e.length4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===n&&("/"!==t.pathname.charAt(0)&&(t=L({},t,{pathname:"/"+t.pathname})),n=t.pathname),g(e.length,function(r,i,o){S(e[r],t,n,_,a,function(e,t){e||t?o(e,t):i()})},r)}var W=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=u++)}var d=Object.create(null);function f(e){return e.map(function(e){return d[c(e)]}).filter(function(e){return e})}function p(e,n){K(t,e,function(t,_){if(null!=_){o=W({},_,{location:e});for(var a=f(m(r,o).leaveRoutes),i=void 0,s=0,l=a.length;null==i&&s should not have a "'+t+'" prop')}Object(l.shape)({listen:l.func.isRequired,push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired});var q=Object(l.oneOfType)([l.func,l.string]),F=Object(l.oneOfType)([q,l.object]),V=Object(l.oneOfType)([l.object,l.element]),H=Object(l.oneOfType)([V,Object(l.arrayOf)(V)]);var z=function(e,t){var r={};return e.path?(h(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}),r):r},G=u.a.shape({subscribe:u.a.func.isRequired,eventIndex:u.a.number.isRequired});function Y(e){return"@@contextSubscriber/"+e}function J(e){var t,r,n=Y(e),_=n+"/lastRenderedEventIndex",a=n+"/handleContextUpdate",i=n+"/unsubscribe";return(r={contextTypes:(t={},t[n]=G,t),getInitialState:function(){var e;return this.context[n]?((e={})[_]=this.context[n].eventIndex,e):{}},componentDidMount:function(){this.context[n]&&(this[i]=this.context[n].subscribe(this[a]))},componentWillReceiveProps:function(){var e;this.context[n]&&this.setState(((e={})[_]=this.context[n].eventIndex,e))},componentWillUnmount:function(){this[i]&&(this[i](),this[i]=null)}})[a]=function(e){var t;e!==this.state[_]&&this.setState(((t={})[_]=e,t))},r}var X=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["createElement","render"]);return null==t?null:(Object.keys(ne).forEach(function(e){return delete s[e]}),o(re({},s,{router:this.router,location:t,routes:r,params:n,components:_,createElement:i})))}}),ae=Object(l.shape)({push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired,setRouteLeaveHook:l.func.isRequired,isActive:l.func.isRequired}),ie=(Object(l.shape)({pathname:l.string.isRequired,search:l.string.isRequired,state:l.object,action:l.string.isRequired,key:l.string}),Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),o=this.context.router;if(o){if(!t)return i.a.createElement("a",a);var s=oe(t,o);a.href=o.createHref(s),(r||null!=n&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(n))&&o.isActive(s,_)&&(r&&(a.className?a.className+=" "+r:a.className=r),n&&(a.style=ie({},a.style,n)))}return i.a.createElement("a",ie({},a,{onClick:this.handleClick}))}}),le=Object.assign||function(e){for(var t=1;t=0;n--){var _=e[n].path||"";if(r=_.replace(/\/*$/,"/")+r,0===_.indexOf("/"))break}return"/"+r}},propTypes:{path:l.string,from:l.string,to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),ce=ue,de=s()({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=ce.createRouteFromReactElement(e))}},propTypes:{to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),fe=(s()({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=k(e))}},propTypes:{path:N,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}}),s()({displayName:"Route",statics:{createRouteFromReactElement:k},propTypes:{path:l.string,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}})),pe=(r(140),r(171)),he=r.n(pe),Ee=r(172),me=r.n(Ee);r(339);Object.assign;Object.assign;var ge=r(340),be=r.n(ge),ve=!("undefined"==typeof window||!window.document||!window.document.createElement);function Oe(e){var t=void 0;return ve&&(t=function(e){return function(t){return he()(me()(e))(t)}}(e)()),t}var Me=Oe(be.a),Ce=r(341);Oe(r.n(Ce).a);r.d(t,"e",function(){return _e}),r.d(t,"b",function(){return se}),r.d(t,"a",function(){return de}),r.d(t,"c",function(){return ce}),r.d(t,"d",function(){return fe}),r.d(t,"f",function(){return Me})},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return InputControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),components_elements_IconsComponent_IconsComponent__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(345),_InputControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(766),_InputControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_InputControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var InputControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_InputControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function InputControl(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,InputControl),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(InputControl).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(InputControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(InputControl,[{key:"render",value:function(){var e=this.props,t=e.label,r=e.type,n=e.value,_=e.placeholder,a=e.onChange,i=e.readOnly,o=e.autoFocus,s=e.onKeyDown,l=e.onBlur,u=e.DOMRef,c=e.icon,d=e.onIconClick,f=e.inputType,p=e.dropdown;void 0!=n&&null!=n||(n=""),f||(f="text");var h,E="input";return"big"===r&&(E="input-big"),i&&(E+=" input-readOnly"),p&&(E+=" input-disabled"),c&&(h=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{onClick:d,styleName:c},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_IconsComponent_IconsComponent__WEBPACK_IMPORTED_MODULE_7__.a,{icon:c}))),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"InputControl"},h,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{type:f,styleName:E,icon:c,value:n,autoFocus:o,placeholder:_,onChange:a,onBlur:l,onKeyDown:s,readOnly:i,ref:u}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"label"}," ",t," "))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),InputControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(InputControl,"InputControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/InputControl/InputControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t: `children` prop will be ignored.")}},{key:"render",value:function(){var e=void 0,t=void 0,r=void 0,_=this.props,i=_.element,s=_.raw,l=_.src,u=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["element","raw","src"]);return!0===s&&(e="svg",r=(0,o.extractSVGProps)(l),t=(0,o.getSVGFromSource)(l).innerHTML),t=t||l,e=e||i,r=r||{},a.default.createElement(e,n({},r,u,{src:null,children:null,dangerouslySetInnerHTML:{__html:t}}))}}]),t}();t.default=l,l.defaultProps={element:"i",raw:!1,src:""},l.propTypes={src:i.string.isRequired,element:i.string,raw:i.bool}},function(e,t,r){"use strict";(function(e){r.d(t,"i",function(){return n}),r.d(t,"d",function(){return _}),r.d(t,"e",function(){return a}),r.d(t,"f",function(){return i}),r.d(t,"j",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"b",function(){return l}),r.d(t,"g",function(){return u}),r.d(t,"h",function(){return c}),r.d(t,"a",function(){return d});r(43),r(76),r(588),r(58),r(590),r(299),r(592),r(593),r(106);function n(e){return e?e.trim().replace(/\s+/g," "):""}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e?(e=n(e)).replace(/\W/g,t):""}function a(e,t){return(e=_(e,t)).toLowerCase()}function i(){var e=Math.floor(256*Math.random()),t=Math.floor(256*Math.random()),r=Math.floor(256*Math.random());return"rgba(".concat(e,", ").concat(t,", ").concat(r,", 1)")}function o(e){var t=e.lastIndexOf(".");return t>0?e.slice(0,t):e}function s(e){return new RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function l(e){return/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i.test(e)}function u(e){var t=new Date,r=t-e,n=navigator.language||navigator.userLanguage,_=e.toLocaleString(n,{hour:"numeric",minute:"numeric"}),a=e.toLocaleString(n,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"});if(r<6e4)return r<1e4?"A few seconds ago":"Less a minute ago";if(r<36e5){var i=Math.floor(r/6e4);return"".concat(i,1==i?" minute ago":" minutes ago")}if(t.getDate()==e.getDate()&&t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear())return"Today, at ".concat(_);var o=new Date(e);return o.setDate(o.getDate()+1),t.getDate()==o.getDate()&&t.getMonth()==o.getMonth()&&t.getFullYear()==o.getFullYear()?"Yesterday, at ".concat(_):a}function c(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r={},n=/([^&=]+)=?([^&]*)/g,_=function(e){return decodeURIComponent(e.replace(/\+/g," "))};for(t||(t=location.search.substring(1));e=n.exec(t);)r[_(e[1])]=_(e[2]);return r}function d(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}!function(){var t=r(1).enterModule;t&&t(e)}(),function(){var t=r(1).default,f=r(1).leaveModule;t&&(t.register(n,"removeOddSpaces","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(_,"filterSpecials","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(a,"filterSpecialsAndCapital","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(i,"getRandomColor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(o,"trimFileExt","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(s,"checkURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(l,"checkEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(u,"getRelativeTime","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(c,"parseURLParams","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(d,"URLEncode","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),f(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"f",function(){return UserData}),__webpack_require__.d(__webpack_exports__,"e",function(){return ROLE_OWNER}),__webpack_require__.d(__webpack_exports__,"b",function(){return ROLE_ADMIN}),__webpack_require__.d(__webpack_exports__,"d",function(){return ROLE_EDITOR}),__webpack_require__.d(__webpack_exports__,"c",function(){return ROLE_DEVELOPER}),__webpack_require__.d(__webpack_exports__,"a",function(){return CollaborationData});var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(602),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(603),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(106),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__),parse__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_5__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var UserData=function(){function UserData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this,UserData),this.origin=null,this.email="",this.emailNew="",this.firstName="",this.lastName="",this.avatar=null,this.sex="male"}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(UserData,[{key:"setOrigin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:parse__WEBPACK_IMPORTED_MODULE_5__.Parse.User.current();return this.origin=e,e.get("email")&&(this.email=e.get("email")),this.email||(this.email=e.get("username")),e.get("emailNew")&&(this.emailNew=e.get("emailNew")),e.get("firstName")&&(this.firstName=e.get("firstName")),e.get("lastName")&&(this.lastName=e.get("lastName")),e.get("avatar")&&(this.avatar=e.get("avatar")),e.get("sex")&&(this.sex=e.get("sex")),this}},{key:"updateOrigin",value:function(){this.origin.set("firstName",this.firstName),this.origin.set("lastName",this.lastName),this.origin.set("avatar",this.avatar),this.origin.set("sex",this.sex)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"emailFiltered",get:function(){return encodeURIComponent(this.email).replace(/[!'()*.~_-]/g,function(e){return"%"+e.charCodeAt(0).toString(16)}).replace(/%/g,"_")}}]),UserData}(),ROLE_OWNER="OWNER",ROLE_ADMIN="ADMIN",ROLE_EDITOR="EDITOR",ROLE_DEVELOPER="DEVELOPER",CollaborationData=function(){function CollaborationData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this,CollaborationData),this.origin=null,this.role=ROLE_DEVELOPER,this.email="",this.site=null,this.user=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(CollaborationData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("role")&&(this.role=e.get("role")),e.get("email")&&(this.email=e.get("email")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new CollaborationData.OriginClass),this.origin.set("role",this.role),this.origin.set("email",this.email),this.origin.set("site",this.site.origin),this.user&&this.origin.set("user",this.user.origin)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_5__.Parse.Object.extend("Collaboration")}}]),CollaborationData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(UserData,"UserData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_OWNER,"ROLE_OWNER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_ADMIN,"ROLE_ADMIN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_EDITOR,"ROLE_EDITOR","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_DEVELOPER,"ROLE_DEVELOPER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(CollaborationData,"CollaborationData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"store",function(){return w});r(394),r(744),r(749),r(756);var n=r(0),_=r.n(n),a=r(50),i=r.n(a),o=r(28),s=r(16),l=r(111),u=r(342),c=r(354),d=r(70),f=r(7),p=r(360),h=r(361),E=r(362),m=r(368),g=r(370),b=r(372),v=r(374),O=r(377),M=r(379),C=r(388),P=r(389),D=r(234),y=r(390);!function(){var t=r(1).enterModule;t&&t(e)}();var w=Object(c.a)(),T=Object(l.syncHistoryWithStore)(s.f,w);Object(d.c)();var A=function(e){return w.dispatch(Object(f.F)(e))};i.a.render(_.a.createElement(o.a,{store:w},_.a.createElement(s.e,{history:T},_.a.createElement(s.d,{path:"/",component:u.a},_.a.createElement(s.d,{path:"/email-verify",component:P.a}),_.a.createElement(s.d,{path:"/password-set-success",component:D.a}),_.a.createElement(s.d,{path:"/password-set",component:D.a}),_.a.createElement(s.d,{path:"/invalid-link",component:y.a}),_.a.createElement(s.d,{path:"/sign",component:h.a}),_.a.createElement(s.d,{path:"/userspace",component:E.a},_.a.createElement(s.d,{path:"/userspace/profile",component:C.a,onEnter:function(){return A(f.m)}}),_.a.createElement(s.d,{path:"/userspace/:site/models",component:b.a,onEnter:function(){return A(f.k)}}),_.a.createElement(s.d,{path:"/userspace/:site/models/:model",component:v.a,onEnter:function(){return A(f.l)}}),_.a.createElement(s.d,{path:"/userspace/:site/content",component:O.a,onEnter:function(){return A(f.i)}}),_.a.createElement(s.d,{path:"/userspace/:site/content/:item",component:M.a,onEnter:function(){return A(f.j)}}),_.a.createElement(s.d,{path:"/userspace/:site/api",component:p.a,onEnter:function(){return A(f.h)}}),_.a.createElement(s.d,{path:"/userspace/:site/settings",component:m.a,onEnter:function(){return A(f.n)}}),_.a.createElement(s.d,{path:"/userspace/:site/sharing",component:g.a,onEnter:function(){return A(f.o)}}),_.a.createElement(s.c,{from:"/userspace/:site",to:"/userspace/:site/models"})),_.a.createElement(s.a,{to:"/userspace"}),_.a.createElement(s.c,{from:"/*",to:"/invalid-link"})))),document.getElementById("app-root")),function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(w,"store","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(T,"history","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(A,"SCP","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),n(e))}()}.call(this,r(12)(e))},function(e,t,r){"use strict";r.d(t,"d",function(){return o}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return c}),r.d(t,"a",function(){return f});var n=r(228),_=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+_(),REPLACE:"@@redux/REPLACE"+_(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o(e,t,r){var _;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,u=[],c=u,d=!1;function f(){c===u&&(c=u.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return f(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,f();var r=c.indexOf(e);c.splice(r,1)}}}function E(e){if(!i(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=s(l,e)}finally{d=!1}for(var t=u=c,r=0;r0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case c:case f:return _()({},e,{authorized:!1,status:null,email:t.email,password:t.password,pending:!0});case d:return _()({},e,{authorized:t.authorized,status:t.status,userData:t.userData,localStorageReady:!0,password:"",pending:!1});case p:return _()({},e,{status:t.status,localStorageReady:!0,password:"",pending:!1});case h:return _()({},e,{authorized:!1,email:""});case E:return _()({},e,{userData:t.data});case m:var r=e.userData;return t.email&&(r.emailNew=t.email),_()({},e,{userData:r,status:t.status});case b:return _()({},e,{status:t.status});case g:case v:return _()({},e);case O:return _()({},e,{status:null});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(c,"LOGIN_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(d,"LOGIN_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(f,"REGISTER_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(p,"REGISTER_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(h,"LOGOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(E,"UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(m,"UPDATE_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(g,"UPDATE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(b,"RESTORE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(v,"RESEND_VERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(O,"RESET_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(M,"ERROR_USER_EXISTS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(C,"ERROR_WRONG_PASS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(P,"ERROR_UNVERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(D,"ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(y,"OK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(w,"register","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(T,"login","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(A,"getLocalStorage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(k,"logout","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(I,"update","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(R,"updateEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(L,"updatePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(B,"restorePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(U,"resendVerEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(S,"resetStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(K,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(W,"userReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"d",function(){return f}),r.d(t,"f",function(){return E}),r.d(t,"e",function(){return C}),r.d(t,"a",function(){return P}),r.d(t,"c",function(){return D}),r.d(t,"b",function(){return y}),r.d(t,"r",function(){return B}),r.d(t,"t",function(){return U}),r.d(t,"k",function(){return S}),r.d(t,"x",function(){return K}),r.d(t,"q",function(){return W}),r.d(t,"g",function(){return x}),r.d(t,"i",function(){return j}),r.d(t,"u",function(){return N}),r.d(t,"m",function(){return q}),r.d(t,"p",function(){return F}),r.d(t,"j",function(){return V}),r.d(t,"w",function(){return H}),r.d(t,"s",function(){return z}),r.d(t,"o",function(){return G}),r.d(t,"h",function(){return J}),r.d(t,"v",function(){return X}),r.d(t,"n",function(){return Q}),r.d(t,"l",function(){return Z});r(45);var n=r(11),_=r.n(n),a=(r(32),r(719),r(134),r(76),r(97),r(52),r(53),r(43),r(227),r(14)),i=r(21),o=r(20),s=r(8),l=r(19),u=r(15),c=r(24),d=r(13);!function(){var t=r(1).enterModule;t&&t(e)}();var f="app/models/INIT_END",p="app/models/SITE_ADD",h="app/models/SITE_UPDATE",E="app/models/SITE_DELETE",m="app/models/COLLABORATION_ADD",g="app/models/COLLABORATION_UPDATE",b="app/models/COLLABORATION_DELETE",v="app/models/COLLABORATION_SELF_DELETE",O="app/models/MODEL_ADD",M="app/models/MODEL_UPDATE",C="app/models/MODEL_DELETE",P="app/models/FIELD_ADD",D="app/models/FIELD_UPDATE",y="app/models/FIELD_DELETE",w="app/models/SET_CURRENT_SITE",T="app/models/SET_CURRENT_MODEL";function A(){var e=[];return Object(d.a)(new a.Parse.Query(o.a.OriginClass).equalTo("user",a.Parse.User.current()).find()).then(function(t){var r=!0,n=!1,_=void 0;try{for(var i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;e.push(s.get("site"))}}catch(e){n=!0,_=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw _}}return Object(d.a)(a.Parse.Object.fetchAllIfNeeded(e))}).then(function(){return e})}function k(){return Object(d.a)(new a.Parse.Query(s.B.OriginClass).equalTo("owner",a.Parse.User.current()).find())}function I(e,t){return Object(d.a)(new a.Parse.Query(o.a.OriginClass).containedIn("site",e).find()).then(function(e){var r=[],n=!0,_=!1,a=void 0;try{for(var i,s=function(){var e=i.value,n=(new o.a).setOrigin(e),_=e.get("user");_&&r.push(Object(d.a)(_.fetch()).then(function(e){var t=(new o.f).setOrigin(e);n.user=t}));var a=e.get("site"),s=!0,l=!1,u=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if(p.origin.id==a.id){n.site=p,p.collaborations.push(n);break}}}catch(e){l=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw u}}},l=e[Symbol.iterator]();!(n=(i=l.next()).done);n=!0)s()}catch(e){_=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(_)throw a}}return Promise.all(r)})}function R(e,t,r,n){return Object(d.a)(new a.Parse.Query(s.z.OriginClass).containedIn("site",e).find()).then(function(e){Array.prototype.push.apply(r,e);var _=!0,a=!1,i=void 0;try{for(var o,l=r[Symbol.iterator]();!(_=(o=l.next()).done);_=!0){var u=o.value,c=(new s.z).setOrigin(u),d=u.get("site"),f=!0,p=!1,h=void 0;try{for(var E,m=t[Symbol.iterator]();!(f=(E=m.next()).done);f=!0){var g=E.value;if(g.origin.id==d.id){c.site=g,g.models.push(c),n.push(c);break}}}catch(e){p=!0,h=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw h}}}}catch(e){a=!0,i=e}finally{try{_||null==l.return||l.return()}finally{if(a)throw i}}})}function L(e,t){return Object(d.a)(new a.Parse.Query(s.A.OriginClass).containedIn("model",e).find()).then(function(e){var r=!0,n=!1,_=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value,l=(new s.A).setOrigin(o),u=o.get("model"),c=!0,d=!1,f=void 0;try{for(var p,h=t[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var E=p.value;if(E.origin.id==u.id){l.model=E,E.fields.push(l);break}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}})}function B(){return function(e){var t=[],r=[],n=[],_=[];A().then(function(e){return t=e,k()}).then(function(e){t=t.concat(e);var a=[],i=!0,l=!1,u=void 0;try{for(var c,f=function(){var e=c.value,t=(new s.B).setOrigin(e);a.push(Object(d.a)(e.get("owner").fetch()).then(function(e){return t.owner=(new o.f).setOrigin(e)})),r.push(t)},p=t[Symbol.iterator]();!(i=(c=p.next()).done);i=!0)f()}catch(e){l=!0,u=e}finally{try{i||null==p.return||p.return()}finally{if(l)throw u}}return Promise.all(a).then(function(){return Promise.all([I(t,r),R(t,r,n,_).then(function(){return L(n,_)}).then(function(){for(var e=0;e<_.length;e++){_[e].fields.sort(function(e,t){return e.order>t.order?1:-1})}})])})}).then(function(){return e({type:f,sites:r})})}}function U(e){if(!e)return{type:w,currentSite:null};var t=Object(u.x)(e);return{type:w,currentSite:e,role:t}}function S(e){e.owner=i.store.getState().user.userData;var t=Object(l.d)(e.name);return t="".concat(e.owner.emailFiltered,"___").concat(t),e.nameId=Object(u.w)(t,i.store.getState().models.sites),e.updateOrigin(),e.origin.setACL(new a.Parse.ACL(e.owner.origin)),Object(d.a)(e.origin.save()),{type:p,site:e}}function K(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:h}}function W(e){return Object(d.a)(a.Parse.Cloud.run("deleteSite",{siteId:e.origin.id})),{type:E,site:e}}function x(e,t){var r=new o.a;r.user=e,r.email=t;var n=i.store.getState().models.currentSite;return r.site=n,r.updateOrigin(),r.origin.setACL(new a.Parse.ACL(n.owner.origin)),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:r.origin.id}))}),{type:m,collab:r}}function j(e){var t=new o.a;t.email=e;var r=i.store.getState().models.currentSite;return t.site=r,t.updateOrigin(),t.origin.setACL(new a.Parse.ACL(r.owner.origin)),Object(d.a)(t.origin.save()),Object(d.a)(a.Parse.Cloud.run("inviteUser",{email:e,siteName:r.name})),{type:m,collab:t}}function N(e){return e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id}))}),{type:g,collab:e}}function q(e){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id,deleting:!0})).then(function(){return Object(d.a)(e.origin.destroy())}),{type:b,collab:e}}function F(e){return q(e),{type:v,collab:e}}function V(e){var t=i.store.getState().models.currentSite,r=new s.z;return r.name=e,r.nameId=Object(u.w)(e,t.models),r.color=Object(l.f)(),r.site=t,r.setTableName(),r.updateOrigin(),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onModelAdd",{modelId:r.origin.id}))}),{type:O,model:r}}function H(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:M,model:e}}function z(e){return{type:T,currentModel:e}}function G(e){return Object(d.a)(a.Parse.Cloud.run("deleteModel",{modelId:e.origin.id})),{type:C,model:e}}function Y(e){if(Object(s.D)(e)||(e.isTitle=!1),e.isTitle){var t=!0,r=!1,n=void 0;try{for(var _,a=e.model.fields[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){var i=_.value;i!=e&&i.isTitle&&(i.isTitle=!1,i.updateOrigin(),Object(d.a)(i.origin.save()))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}}function J(e){return e.color=Object(l.f)(),e.nameId=Object(u.w)(e.name,e.model.fields,s.p),e.order=e.model.fields.length,Y(e),e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onFieldAdd",{fieldId:e.origin.id}))}),Object(d.a)(e.model.origin.save()),{type:P,field:e}}function X(e){return Y(e),e.updateOrigin(),Object(d.a)(e.origin.save()),Object(d.a)(e.model.origin.save()),{type:D,field:e}}function Q(e){return Object(d.a)(e.origin.destroy()),Object(d.a)(e.model.origin.save()),{type:y,field:e}}var $={sites:[],currentSite:null,currentModel:null,role:null};function Z(){var e,t,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case f:return _()({},a,{sites:i.sites});case w:return _()({},a,{currentSite:i.currentSite,role:i.role});case T:return _()({},a,{currentModel:i.currentModel});case p:return(e=a.sites).push(i.site),_()({},a,{sites:e});case E:return(e=a.sites).splice(e.indexOf(i.site),1),_()({},a,{sites:e,currentSite:null});case m:return(t=a.currentSite).collaborations.push(i.collab),_()({},a,{currentSite:t});case b:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),_()({},a,{currentSite:t});case v:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),(e=a.sites).splice(e.indexOf(t),1),_()({},a,{currentSite:e[0]});case O:return(t=a.currentSite).models.push(i.model),_()({},a,{currentSite:t});case C:var o=(t=a.currentSite).models;return o.splice(o.indexOf(i.model),1),_()({},a,{currentSite:t});case P:return(r=a.currentModel).fields.push(i.field),_()({},a,{currentModel:r});case y:var s=(r=a.currentModel).fields;return s.splice(s.indexOf(i.field),1),_()({},a,{currentModel:r});case h:case g:case M:return _()({},a);case D:return i.field.model.fields.sort(function(e,t){return e.order>t.order?1:-1}),_()({},a);case c.f:return _()({},a,{currentModel:null,currentSite:null,role:null});default:return a}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(p,"SITE_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(h,"SITE_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(E,"SITE_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(m,"COLLABORATION_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(g,"COLLABORATION_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(b,"COLLABORATION_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(v,"COLLABORATION_SELF_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(O,"MODEL_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(M,"MODEL_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(C,"MODEL_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(P,"FIELD_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(D,"FIELD_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(y,"FIELD_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(w,"SET_CURRENT_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(T,"SET_CURRENT_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(A,"requestCollaborationsPre","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(k,"requestUserSites","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(I,"requestCollaborationsPost","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(R,"requestModels","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(L,"requestFields","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(B,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(U,"setCurrentSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(S,"addSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(K,"updateSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(W,"deleteSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(x,"addCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(j,"addInviteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(N,"updateCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(q,"deleteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(F,"deleteSelfCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(V,"addModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(H,"updateModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(z,"setCurrentModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(G,"deleteModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Y,"checkNewTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(J,"addField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(X,"updateField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Q,"deleteField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register($,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Z,"modelsReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),n(e))}()}).call(this,r(12)(e))},function(e,t){e.exports=function(e){return e&&e.__esModule?e:{default:e}}},function(e,t,r){"use strict";e.exports=function(e,t,r,n,_,a,i,o){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[r,n,_,a,i,o],u=0;(s=new Error(t.replace(/%s/g,function(){return l[u++]}))).name="Invariant Violation"}throw s.framesToPop=1,s}}},function(e,t,r){"use strict";var n=r(0),_=r(9),a=r.n(_),i=a.a.shape({trySubscribe:a.a.func.isRequired,tryUnsubscribe:a.a.func.isRequired,notifyNestedSubs:a.a.func.isRequired,isSubscribed:a.a.func.isRequired}),o=a.a.shape({subscribe:a.a.func.isRequired,dispatch:a.a.func.isRequired,getState:a.a.func.isRequired});var s=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1]||t+"Subscription",_=function(e){function _(r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var a=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}(this,e.call(this,r,n));return a[t]=r.store,a}return 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)}(_,e),_.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},_.prototype.render=function(){return n.Children.only(this.props.children)},_}(n.Component);return _.propTypes={store:o.isRequired,children:a.a.element.isRequired},_.childContextTypes=((e={})[t]=o.isRequired,e[r]=i,e),_}(),l=r(335),u=r.n(l),c=r(27),d=r.n(c);var f=null,p={notify:function(){}};var h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=r,this.onStateChange=n,this.unsubscribe=null,this.listeners=p}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=f,e=f},notify:function(){for(var r=e=t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},a=_.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=_.methodName,c=void 0===l?"connectAdvanced":l,f=_.renderCountProp,p=void 0===f?void 0:f,v=_.shouldHandleStateChanges,O=void 0===v||v,M=_.storeKey,C=void 0===M?"store":M,P=_.withRef,D=void 0!==P&&P,y=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),w=C+"Subscription",T=m++,A=((t={})[C]=o,t[w]=i,t),k=((r={})[w]=i,r);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var r=t.displayName||t.name||"Component",_=s(r),a=E({},y,{getDisplayName:s,methodName:c,renderCountProp:p,shouldHandleStateChanges:O,storeKey:C,withRef:D,displayName:_,wrappedComponentName:r,WrappedComponent:t}),i=function(r){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=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}(this,r.call(this,e,t));return n.version=T,n.state={},n.renderCount=0,n.store=e[C]||t[C],n.propsMode=Boolean(e[C]),n.setWrappedInstance=n.setWrappedInstance.bind(n),d()(n.store,'Could not find "'+C+'" in either the context or props of "'+_+'". Either wrap the root component in a , or explicitly pass "'+C+'" as a prop to "'+_+'".'),n.initSelector(),n.initSubscription(),n}return 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)}(i,r),i.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[w]=t||this.context[w],e},i.prototype.componentDidMount=function(){O&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},i.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},i.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},i.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},i.prototype.getWrappedInstance=function(){return d()(D,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var r={run:function(n){try{var _=e(t.getState(),n);(_!==r.props||r.error)&&(r.shouldComponentUpdate=!0,r.props=_,r.error=null)}catch(e){r.shouldComponentUpdate=!0,r.error=e}}};return r}(t,this.store),this.selector.run(this.props)},i.prototype.initSubscription=function(){if(O){var e=(this.propsMode?this.props:this.context)[w];this.subscription=new h(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},i.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},i.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},i.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},i.prototype.addExtraProps=function(e){if(!(D||p||this.propsMode&&this.subscription))return e;var t=E({},e);return D&&(t.ref=this.setWrappedInstance),p&&(t[p]=this.renderCount++),this.propsMode&&this.subscription&&(t[w]=this.subscription),t},i.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(n.createElement)(t,this.addExtraProps(e.props))},i}(n.Component);return i.WrappedComponent=t,i.displayName=_,i.childContextTypes=k,i.contextTypes=A,i.propTypes=A,u()(i,t)}}var O=Object.prototype.hasOwnProperty;function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var _=0;_=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=r(e,a),o=n(e,a),s=_(e,a);return(a.pure?N:j)(i,o,s,e,a)}var F=Object.assign||function(e){for(var t=1;t=0;n--){var _=t[n](e);if(_)return _}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function H(e,t){return e===t}var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?v:t,n=e.mapStateToPropsFactories,_=void 0===n?S:n,a=e.mapDispatchToPropsFactories,i=void 0===a?U:a,o=e.mergePropsFactories,s=void 0===o?x:o,l=e.selectorFactory,u=void 0===l?q:l;return function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a.pure,l=void 0===o||o,c=a.areStatesEqual,d=void 0===c?H:c,f=a.areOwnPropsEqual,p=void 0===f?C:f,h=a.areStatePropsEqual,E=void 0===h?C:h,m=a.areMergedPropsEqual,g=void 0===m?C:m,b=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=V(e,_,"mapStateToProps"),O=V(t,i,"mapDispatchToProps"),M=V(n,s,"mergeProps");return r(u,F({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:O,initMergeProps:M,pure:l,areStatesEqual:d,areOwnPropsEqual:p,areStatePropsEqual:E,areMergedPropsEqual:g},b))}}();r.d(t,"a",function(){return s}),r.d(t,"b",function(){return z})},function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,_,a,i,o,s){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,_,a,i,o,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,r){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return i(e)?e:z(e)}function n(e){return o(e)?e:G(e)}function _(e){return s(e)?e:Y(e)}function a(e){return i(e)&&!l(e)?e:J(e)}function i(e){return!(!e||!e[c])}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return o(e)||s(e)}function u(e){return!(!e||!e[p])}t(n,r),t(_,r),t(a,r),r.isIterable=i,r.isKeyed=o,r.isIndexed=s,r.isAssociative=l,r.isOrdered=u,r.Keyed=n,r.Indexed=_,r.Set=a;var c="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",h=5,E=1<>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?D(e)+t:t}function w(){return!0}function T(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function A(e,t){return I(e,t,0)}function k(e,t){return I(e,t,t)}function I(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R=0,L=1,B=2,U="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",K=U||S;function W(e){this.next=e}function x(e,t,r,n){var _=0===e?t:1===e?r:[t,r];return n?n.value=_:n={value:_,done:!1},n}function j(){return{value:void 0,done:!0}}function N(e){return!!V(e)}function q(e){return e&&"function"==typeof e.next}function F(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(U&&e[U]||e[S]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null===e||void 0===e?ae():i(e)?e.toSeq():function(e){var t=se(e)||"object"==typeof e&&new te(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function G(e){return null===e||void 0===e?ae().toKeyedSeq():i(e)?o(e)?e.toSeq():e.fromEntrySeq():ie(e)}function Y(e){return null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function J(e){return(null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e:oe(e)).toSetSeq()}W.prototype.toString=function(){return"[Iterator]"},W.KEYS=R,W.VALUES=L,W.ENTRIES=B,W.prototype.inspect=W.prototype.toSource=function(){return this.toString()},W.prototype[K]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return le(this,e,t,!0)},z.prototype.__iterator=function(e,t){return ue(this,e,t,!0)},t(G,z),G.prototype.toKeyedSeq=function(){return this},t(Y,z),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return le(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return ue(this,e,t,!1)},t(J,z),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},z.isSeq=_e,z.Keyed=G,z.Set=J,z.Indexed=Y;var X,Q,$,Z="@@__IMMUTABLE_SEQ__@@";function ee(e){this._array=e,this.size=e.length}function te(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ne(e){this._iterator=e,this._iteratorCache=[]}function _e(e){return!(!e||!e[Z])}function ae(){return X||(X=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e).fromEntrySeq():q(e)?new ne(e).fromEntrySeq():N(e)?new re(e).fromEntrySeq():"object"==typeof e?new te(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(e){return H(e)?new ee(e):q(e)?new ne(e):N(e)?new re(e):void 0}function le(e,t,r,n){var _=e._cache;if(_){for(var a=_.length-1,i=0;i<=a;i++){var o=_[r?a-i:i];if(!1===t(o[1],n?o[0]:i,e))return i+1}return i}return e.__iterateUncached(t,r)}function ue(e,t,r,n){var _=e._cache;if(_){var a=_.length-1,i=0;return new W(function(){var e=_[r?a-i:i];return i++>a?{value:void 0,done:!0}:x(t,n?e[0]:i-1,e[1])})}return e.__iteratorUncached(t,r)}function ce(e,t){return t?function e(t,r,n,_){return Array.isArray(r)?t.call(_,n,Y(r).map(function(n,_){return e(t,n,_,r)})):fe(r)?t.call(_,n,G(r).map(function(n,_){return e(t,n,_,r)})):r}(t,e,"",{"":e}):de(e)}function de(e){return Array.isArray(e)?Y(e).map(de).toList():fe(e)?G(e).map(de).toMap():e}function fe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function he(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||o(e)!==o(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!l(e);if(u(e)){var n=e.entries();return t.every(function(e,t){var _=n.next().value;return _&&pe(_[1],e)&&(r||pe(_[0],t))})&&n.next().done}var _=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{_=!0;var a=e;e=t,t=a}var c=!0,d=t.__iterate(function(t,n){if(r?!e.has(t):_?!pe(t,e.get(n,g)):!pe(e.get(n,g),t))return c=!1,!1});return c&&e.size===d}function Ee(e,t){if(!(this instanceof Ee))return new Ee(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,r){if(!(this instanceof ge))return new ge(e,t,r);if(me(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),tn?{value:void 0,done:!0}:x(e,_,r[t?n-_++:_++])})},t(te,G),te.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},te.prototype.has=function(e){return this._object.hasOwnProperty(e)},te.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,_=n.length-1,a=0;a<=_;a++){var i=n[t?_-a:a];if(!1===e(r[i],i,this))return a+1}return a},te.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,_=n.length-1,a=0;return new W(function(){var i=n[t?_-a:a];return a++>_?{value:void 0,done:!0}:x(e,i,r[i])})},te.prototype[p]=!0,t(re,Y),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=this._iterable,n=F(r),_=0;if(q(n))for(var a;!(a=n.next()).done&&!1!==e(a.value,_++,this););return _},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterable,n=F(r);if(!q(n))return new W(j);var _=0;return new W(function(){var t=n.next();return t.done?t:x(e,_++,t.value)})},t(ne,Y),ne.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,_=this._iteratorCache,a=0;a<_.length;)if(!1===e(_[a],a++,this))return a;for(;!(r=n.next()).done;){var i=r.value;if(_[a]=i,!1===e(i,a++,this))break}return a},ne.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,_=0;return new W(function(){if(_>=n.length){var t=r.next();if(t.done)return t;n[_]=t.value}return x(e,_,n[_++])})},t(Ee,Y),Ee.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ee.prototype.get=function(e,t){return this.has(e)?this._value:t},Ee.prototype.includes=function(e){return pe(this._value,e)},Ee.prototype.slice=function(e,t){var r=this.size;return T(e,t,r)?this:new Ee(this._value,k(t,r)-A(e,r))},Ee.prototype.reverse=function(){return this},Ee.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},Ee.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},Ee.prototype.__iterate=function(e,t){for(var r=0;r1?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&rr?{value:void 0,done:!0}:x(e,a++,i)})},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:he(this,e)},t(be,r),t(ve,be),t(Oe,be),t(Me,be),be.Keyed=ve,be.Indexed=Oe,be.Set=Me;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function Pe(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return Pe(r)}if("string"===t)return e.length>Le?function(e){var t=Se[e];return void 0===t&&(t=ye(e),Ue===Be&&(Ue=0,Se={}),Ue++,Se[e]=t),t}(e):ye(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(ke&&void 0!==(t=we.get(e)))return t;if(void 0!==(t=e[Re]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Re]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++Ie,1073741824&Ie&&(Ie=0),ke)we.set(e,t);else{if(void 0!==Te&&!1===Te(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Re,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Re]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Re]=t}}return t}(e);if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ye(e){for(var t=0,r=0;r>>r)&m,o=(0===r?n:n>>>r)&m,s=i===o?[rt(e,t,r+h,n,_)]:(a=new Ge(t,n,_),i>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function st(e,t,r,n){var _=n?e:P(e);return _[t]=r,_}qe[Ne]=!0,qe.delete=qe.remove,qe.removeIn=qe.deleteIn,Fe.prototype.get=function(e,t,r,n){for(var _=this.entries,a=0,i=_.length;a=lt)return function(e,t,r,n){e||(e=new C);for(var _=new Ge(e,De(r),[r,n]),a=0;a>>e)&m),a=this.bitmap;return 0==(a&_)?n:this.nodes[ot(a&_-1)].get(e+h,t,r,n)},Ve.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=1<=ut)return function(e,t,r,n,_){for(var a=0,i=new Array(E),o=0;0!==r;o++,r>>>=1)i[o]=1&r?t[a++]:void 0;return i[n]=_,new He(e,a+1,i)}(e,d,l,o,p);if(u&&!p&&2===d.length&&tt(d[1^c]))return d[1^c];if(u&&p&&1===d.length&&tt(p))return p;var b=e&&e===this.ownerID,v=u?p?l:l^s:l|s,O=u?p?st(d,c,p,b):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var _=new Array(n),a=0,i=0;i>>e)&m,a=this.nodes[_];return a?a.get(e+h,t,r,n):n},He.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=_===g,l=this.nodes,u=l[o];if(s&&!u)return this;var c=et(u,e,t+h,r,n,_,a,i);if(c===u)return this;var d=this.count;if(u){if(!c&&--d0&&n=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?yt(e,t).set(0,r):yt(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,_=e._root,a=O(v);return t>=Tt(e._capacity)?n=Ct(n,e.__ownerID,0,t,r,a):_=Ct(_,e.__ownerID,e._level,t,r,a),a.value?e.__ownerID?(e._root=_,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Ot(e._origin,e._capacity,e._level,_,n):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){yt(r,0,t+e.length);for(var n=0;n>>t&m;if(n>=this.array.length)return new Et([],e);var _,a=0===n;if(t>0){var i=this.array[n];if((_=i&&i.removeBefore(e,t-h,r))===i&&a)return this}if(a&&!_)return this;var o=Pt(this,e);if(!a)for(var s=0;s>>t&m;if(_>=this.array.length)return this;if(t>0){var a=this.array[_];if((n=a&&a.removeAfter(e,t-h,r))===a&&_===this.array.length-1)return this}var i=Pt(this,e);return i.array.splice(_+1),n&&(i.array[_]=n),i};var mt,gt,bt={};function vt(e,t){var r=e._origin,n=e._capacity,_=Tt(n),a=e._tail;return i(e._root,e._level,0);function i(e,o,s){return 0===o?function(e,i){var o=i===_?a&&a.array:e&&e.array,s=i>r?0:r-i,l=n-i;return l>E&&(l=E),function(){if(s===l)return bt;var e=t?--l:s++;return o&&o[e]}}(e,s):function(e,_,a){var o,s=e&&e.array,l=a>r?0:r-a>>_,u=1+(n-a>>_);return u>E&&(u=E),function(){for(;;){if(o){var e=o();if(e!==bt)return e;o=null}if(l===u)return bt;var r=t?--u:l++;o=i(s&&s[r],_-h,a+(r<<_))}}}(e,o,s)}}function Ot(e,t,r,n,_,a,i){var o=Object.create(ht);return o.size=t-e,o._origin=e,o._capacity=t,o._level=r,o._root=n,o._tail=_,o.__ownerID=a,o.__hash=i,o.__altered=!1,o}function Mt(){return mt||(mt=Ot(0,0,h))}function Ct(e,t,r,n,_,a){var i,o=n>>>r&m,s=e&&o0){var l=e&&e.array[o],u=Ct(l,t,r-h,n,_,a);return u===l?e:((i=Pt(e,t)).array[o]=u,i)}return s&&e.array[o]===_?e:(M(a),i=Pt(e,t),void 0===_&&o===i.array.length-1?i.array.pop():i.array[o]=_,i)}function Pt(e,t){return t&&e&&t===e.ownerID?e:new Et(e?e.array.slice():[],t)}function Dt(e,t){if(t>=Tt(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&m],n-=h;return r}}function yt(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new C,_=e._origin,a=e._capacity,i=_+t,o=void 0===r?a:r<0?a+r:_+r;if(i===_&&o===a)return e;if(i>=o)return e.clear();for(var s=e._level,l=e._root,u=0;i+u<0;)l=new Et(l&&l.array.length?[void 0,l]:[],n),u+=1<<(s+=h);u&&(i+=u,_+=u,o+=u,a+=u);for(var c=Tt(a),d=Tt(o);d>=1<c?new Et([],n):f;if(f&&d>c&&ih;g-=h){var b=c>>>g&m;E=E.array[b]=Pt(E.array[b],n)}E.array[c>>>h&m]=f}if(o=d)i-=d,o-=d,s=h,l=null,p=p&&p.removeBefore(n,0,i);else if(i>_||d>>s&m;if(v!==d>>>s&m)break;v&&(u+=(1<_&&(l=l.removeBefore(n,s,i-u)),l&&da&&(a=l.size),i(s)||(l=l.map(function(e){return ce(e)})),n.push(l)}return a>e.size&&(e=e.setSize(a)),it(e,t,n)}function Tt(e){return e>>h<=E&&i.size>=2*a.size?(_=i.filter(function(e,t){return void 0!==e&&o!==t}),n=_.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=_.__ownerID=e.__ownerID)):(n=a.remove(t),_=o===i.size-1?i.pop():i.set(o,void 0))}else if(s){if(r===i.get(o)[1])return e;n=a,_=i.set(o,[t,r])}else n=a.set(t,i.size),_=i.set(i.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=_,e.__hash=void 0,e):It(n,_)}function Bt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function St(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Wt(e){var t=Zt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=er,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(t===B){var n=e.__iterator(t,r);return new W(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===L?R:L,r)},t}function xt(e,t,r){var n=Zt(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,_){var a=e.get(n,g);return a===g?_:t.call(r,a,n,e)},n.__iterateUncached=function(n,_){var a=this;return e.__iterate(function(e,_,i){return!1!==n(t.call(r,e,_,i),_,a)},_)},n.__iteratorUncached=function(n,_){var a=e.__iterator(B,_);return new W(function(){var _=a.next();if(_.done)return _;var i=_.value,o=i[0];return x(n,o,t.call(r,i[1],o,e),_)})},n}function jt(e,t){var r=Zt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Wt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=er,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Nt(e,t,r,n){var _=Zt(e);return n&&(_.has=function(n){var _=e.get(n,g);return _!==g&&!!t.call(r,_,n,e)},_.get=function(n,_){var a=e.get(n,g);return a!==g&&t.call(r,a,n,e)?a:_}),_.__iterateUncached=function(_,a){var i=this,o=0;return e.__iterate(function(e,a,s){if(t.call(r,e,a,s))return o++,_(e,n?a:o-1,i)},a),o},_.__iteratorUncached=function(_,a){var i=e.__iterator(B,a),o=0;return new W(function(){for(;;){var a=i.next();if(a.done)return a;var s=a.value,l=s[0],u=s[1];if(t.call(r,u,l,e))return x(_,n?l:o++,u,a)}})},_}function qt(e,t,r,n){var _=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r|=0),T(t,r,_))return e;var a=A(t,_),i=k(r,_);if(a!=a||i!=i)return qt(e.toSeq().cacheResult(),t,r,n);var o,s=i-a;s==s&&(o=s<0?0:s);var l=Zt(e);return l.size=0===o?o:e.size&&o||void 0,!n&&_e(e)&&o>=0&&(l.get=function(t,r){return(t=y(this,t))>=0&&to)return{value:void 0,done:!0};var e=_.next();return n||t===L?e:x(t,s-1,t===R?void 0:e.value[1],e)})},l}function Ft(e,t,r,n){var _=Zt(e);return _.__iterateUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterate(_,a);var o=!0,s=0;return e.__iterate(function(e,a,l){if(!o||!(o=t.call(r,e,a,l)))return s++,_(e,n?a:s-1,i)}),s},_.__iteratorUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterator(_,a);var o=e.__iterator(B,a),s=!0,l=0;return new W(function(){var e,a,u;do{if((e=o.next()).done)return n||_===L?e:x(_,l++,_===R?void 0:e.value[1],e);var c=e.value;a=c[0],u=c[1],s&&(s=t.call(r,u,a,i))}while(s);return _===B?e:x(_,a,u,e)})},_}function Vt(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=0,o=!1;return function e(s,l){var u=this;s.__iterate(function(_,s){return(!t||l0}function Yt(e,t,n){var _=Zt(e);return _.size=new ee(n).map(function(e){return e.size}).min(),_.__iterate=function(e,t){for(var r,n=this.__iterator(L,t),_=0;!(r=n.next()).done&&!1!==e(r.value,_++,this););return _},_.__iteratorUncached=function(e,_){var a=n.map(function(e){return e=r(e),F(_?e.reverse():e)}),i=0,o=!1;return new W(function(){var r;return o||(r=a.map(function(e){return e.next()}),o=r.some(function(e){return e.done})),o?{value:void 0,done:!0}:x(e,i++,t.apply(null,r.map(function(e){return e.value})))})},_}function Jt(e,t){return _e(e)?t:e.constructor(t)}function Xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Qt(e){return Ke(e.size),D(e)}function $t(e){return o(e)?n:s(e)?_:a}function Zt(e){return Object.create((o(e)?G:s(e)?Y:J).prototype)}function er(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function tr(e,t){return e>t?1:e=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):yr(e,t)},Or.prototype.pushAll=function(e){if(0===(e=_(e)).size)return this;Ke(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):yr(t,r)},Or.prototype.pop=function(){return this.slice(1)},Or.prototype.unshift=function(){return this.push.apply(this,arguments)},Or.prototype.unshiftAll=function(e){return this.pushAll(e)},Or.prototype.shift=function(){return this.pop.apply(this,arguments)},Or.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wr()},Or.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var r=A(e,this.size),n=k(t,this.size);if(n!==this.size)return Oe.prototype.slice.call(this,e,t);for(var _=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=_,this._head=a,this.__hash=void 0,this.__altered=!0,this):yr(_,a)},Or.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?yr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Or.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},Or.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new W(function(){if(n){var t=n.value;return n=n.next,x(e,r++,t)}return{value:void 0,done:!0}})},Or.isStack=Mr;var Cr,Pr="@@__IMMUTABLE_STACK__@@",Dr=Or.prototype;function yr(e,t,r,n){var _=Object.create(Dr);return _.size=e,_._head=t,_.__ownerID=r,_.__hash=n,_.__altered=!1,_}function wr(){return Cr||(Cr=yr(0))}function Tr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Dr[Pr]=!0,Dr.withMutations=qe.withMutations,Dr.asMutable=qe.asMutable,Dr.asImmutable=qe.asImmutable,Dr.wasAltered=qe.wasAltered,r.Iterator=W,Tr(r,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Bt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e},toOrderedMap:function(){return At(this.toKeyedSeq())},toOrderedSet:function(){return hr(o(this)?this.valueSeq():this)},toSet:function(){return or(o(this)?this.valueSeq():this)},toSetSeq:function(){return new St(this)},toSeq:function(){return s(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Or(o(this)?this.valueSeq():this)},toList:function(){return dt(o(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Jt(this,function(e,t){var r=o(e),_=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?ie(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===_.length)return e;if(1===_.length){var a=_[0];if(a===e||r&&o(a)||s(e)&&s(a))return a}var l=new ee(_);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=_.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),l}(this,t))},includes:function(e){return this.some(function(t){return pe(t,e)})},entries:function(){return this.__iterator(B)},every:function(e,t){Ke(this.size);var r=!0;return this.__iterate(function(n,_,a){if(!e.call(t,n,_,a))return r=!1,!1}),r},filter:function(e,t){return Jt(this,Nt(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},findEntry:function(e,t){var r;return this.__iterate(function(n,_,a){if(e.call(t,n,_,a))return r=[_,n],!1}),r},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!==n&&void 0!==n?n.toString():""}),t},keys:function(){return this.__iterator(R)},map:function(e,t){return Jt(this,xt(this,e,t))},reduce:function(e,t,r){var n,_;return Ke(this.size),arguments.length<2?_=!0:n=t,this.__iterate(function(t,a,i){_?(_=!1,n=t):n=e.call(r,n,t,a,i)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Jt(this,jt(this,!0))},slice:function(e,t){return Jt(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(Lr(e),t)},sort:function(e){return Jt(this,Ht(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return D(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=We().asMutable();return e.__iterate(function(_,a){n.update(t.call(r,_,a,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return he(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ee(e._cache);var t=e.toSeq().map(Rr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lr(e),t)},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},first:function(){return this.find(w)},flatMap:function(e,t){return Jt(this,function(e,t,r){var n=$t(e);return e.toSeq().map(function(_,a){return n(t.call(r,_,a,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return Jt(this,Vt(this,e,!0))},fromEntrySeq:function(){return new Kt(this)},get:function(e,t){return this.find(function(t,r){return pe(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,_=rr(e);!(r=_.next()).done;){var a=r.value;if((n=n&&n.get?n.get(a,g):g)===g)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=o(e),_=(u(e)?At():We()).asMutable();e.__iterate(function(a,i){_.update(t.call(r,a,i,e),function(e){return(e=e||[]).push(n?[i,a]:a),e})});var a=$t(e);return _.map(function(t){return Jt(e,a(t))})}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(Ir).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return zt(this,e)},maxBy:function(e,t){return zt(this,t,e)},min:function(e){return zt(this,e?Br(e):Kr)},minBy:function(e,t){return zt(this,t?Br(t):Kr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Jt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Jt(this,Ft(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lr(e),t)},sortBy:function(e,t){return Jt(this,Ht(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Jt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Jt(this,function(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterate(n,_);var i=0;return e.__iterate(function(e,_,o){return t.call(r,e,_,o)&&++i&&n(e,_,a)}),i},n.__iteratorUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterator(n,_);var i=e.__iterator(B,_),o=!0;return new W(function(){if(!o)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var _=e.value,s=_[0],l=_[1];return t.call(r,l,s,a)?n===B?e:x(n,s,l,e):(o=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),r=o(e),n=t?1:0;return function(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Pe((t=Ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+Wr(De(e),De(t))|0}:function(e,t){n=n+Wr(De(e),De(t))|0}:t?function(e){n=31*n+De(e)|0}:function(e){n=n+De(e)|0}),n)}(this))}});var Ar=r.prototype;Ar[c]=!0,Ar[K]=Ar.values,Ar.__toJS=Ar.toArray,Ar.__toStringMapper=Ur,Ar.inspect=Ar.toSource=function(){return this.toString()},Ar.chain=Ar.flatMap,Ar.contains=Ar.includes,function(){try{Object.defineProperty(Ar,"length",{get:function(){if(!r.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Tr(n,{flip:function(){return Jt(this,Wt(this))},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return pe(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return pe(t,e)})},mapEntries:function(e,t){var r=this,n=0;return Jt(this,this.toSeq().map(function(_,a){return e.call(t,[a,_],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return Jt(this,this.toSeq().flip().map(function(n,_){return e.call(t,n,_,r)}).flip())}});var kr=n.prototype;function Ir(e,t){return t}function Rr(e,t){return[t,e]}function Lr(e){return function(){return!e.apply(this,arguments)}}function Br(e){return function(){return-e.apply(this,arguments)}}function Ur(e){return"string"==typeof e?JSON.stringify(e):e}function Sr(){return P(arguments)}function Kr(e,t){return et?-1:0}function Wr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return kr[d]=!0,kr[K]=Ar.entries,kr.__toJS=Ar.toObject,kr.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Ur(e)},Tr(_,{toKeyedSeq:function(){return new Bt(this,!1)},filter:function(e,t){return Jt(this,Nt(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Jt(this,jt(this,!1))},slice:function(e,t){return Jt(this,qt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=A(e,e<0?this.count():this.size);var n=this.slice(0,e);return Jt(this,1===r?n:n.concat(P(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.toKeyedSeq().findLastKey(e,t);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(e){return Jt(this,Vt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0)return _.getInlineStyleAt(n-1);if(_.getLength())return _.getInlineStyleAt(0);return E(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),_=e.getBlockForKey(r);if(n<_.getLength())return _.getInlineStyleAt(n);if(n>0)return _.getInlineStyleAt(n-1);return E(e,r)}(t,r)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return p(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),p(e,t,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),_=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:_,focusKey:n,focusOffset:_,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){if(t.getCurrentContent()===r)return t;var _="insert-characters"!==n,a=i.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:a,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:null});var o=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),u=r;o!==s.getSelectionAfter()||function(e,t){var r=e.getLastChangeType();return t!==r||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,n)?(l=l.push(s),u=u.set("selectionBefore",o)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(u=u.set("selectionBefore",s.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var f={currentContent:u,directionMap:a,undoStack:l,redoStack:c(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:d};return e.set(t,f)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:r.shift(),redoStack:t.getRedoStack().push(_),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:_.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:t.getUndoStack().push(_),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function p(e,t,r){return f.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function h(e,t){return e.getBlockMap().map(function(r){return _.generate(e,r,t)}).toOrderedMap()}function E(e,t){var r=e.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}e.exports=f},function(e,t,r){t.__esModule=!0,t.Helmet=void 0;var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var f=function(e){var t,r;return r=t=function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),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}(this,t.apply(this,arguments))}return 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)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!(0,s.default)(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case u.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,_=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return n({},_,((t={})[r.type]=[].concat(_[r.type]||[],[n({},a,this.mapNestedChildrenToProps(r,i))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,_=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(_.type){case u.TAG_NAMES.TITLE:return n({},a,((t={})[_.type]=o,t.titleAttributes=n({},i),t));case u.TAG_NAMES.BODY:return n({},a,{bodyAttributes:n({},i)});case u.TAG_NAMES.HTML:return n({},a,{htmlAttributes:n({},i)})}return n({},a,((r={})[_.type]=n({},i),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=n({},t);return Object.keys(e).forEach(function(t){var _;r=n({},r,((_={})[t]=e[t],_))}),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return a.default.Children.forEach(e,function(e){if(e&&e.props){var _=e.props,a=_.children,i=d(_,["children"]),o=(0,l.convertReactPropstoHtmlAttributes)(i);switch(r.warnOnInvalidChildren(e,a),e.type){case u.TAG_NAMES.LINK:case u.TAG_NAMES.META:case u.TAG_NAMES.NOSCRIPT:case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:o,nestedChildren:a});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:a})}}}),t=this.mapArrayTypeChildrenToProps(n,t)},r.prototype.render=function(){var t=this.props,r=t.children,_=d(t,["children"]),i=n({},_);return r&&(i=this.mapChildrenToProps(r,i)),a.default.createElement(e,i)},_(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(a.default.Component),t.propTypes={base:i.default.object,bodyAttributes:i.default.object,children:i.default.oneOfType([i.default.arrayOf(i.default.node),i.default.node]),defaultTitle:i.default.string,defer:i.default.bool,encodeSpecialCharacters:i.default.bool,htmlAttributes:i.default.object,link:i.default.arrayOf(i.default.object),meta:i.default.arrayOf(i.default.object),noscript:i.default.arrayOf(i.default.object),onChangeClientState:i.default.func,script:i.default.arrayOf(i.default.object),style:i.default.arrayOf(i.default.object),title:i.default.string,titleAttributes:i.default.object,titleTemplate:i.default.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=(0,l.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}((0,o.default)(l.reducePropsToState,l.handleClientStateChange,l.mapStateOnServer)(function(){return null}));f.renderStatic=f.rewind,t.Helmet=f,t.default=f},function(e,t,r){"use strict"; +!function(e){var t={};function r(n){if(t[n])return t[n].exports;var _=t[n]={i:n,l:!1,exports:{}};return e[n].call(_.exports,_,_.exports,r),_.l=!0,_.exports}r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var _ in e)r.d(n,_,function(t){return e[t]}.bind(null,_));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="/",r(r.s=393)}([function(e,t,r){"use strict";e.exports=r(395)},function(module,exports,__webpack_require__){"use strict";var evalAllowed=!1;try{eval("evalAllowed = true")}catch(e){}var platformSupported=!!Object.setPrototypeOf&&evalAllowed;module.exports=__webpack_require__(394)},function(e,t){e.exports=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}},function(e,t){function r(e,t){for(var r=0;r0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case i:return _()({},e,{initEnded:!0});case a.f:return _()({},e,{initEnded:!1});case c:return _()({},e,{openedPage:t.openedPage});case o:return _()({},e,{alertShowing:!0,alertParams:t.params});case s:return _()({},e,{alertShowing:!1});case l:return _()({},e,{modalShowing:!0,modalType:t.modalType,modalParams:t.params});case u:return _()({},e,{modalShowing:!1});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(o,"SHOW_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(s,"CLOSE_ALERT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(l,"SHOW_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(u,"CLOSE_MODAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(c,"SET_CURRENT_PAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("app/nav/pages/PAGE_NO_SITES","PAGE_NO_SITES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(d,"PAGE_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(f,"PAGE_MODELS_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(p,"PAGE_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(h,"PAGE_CONTENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(E,"PAGE_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(m,"PAGE_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(g,"PAGE_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(b,"PAGE_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(v,"MODAL_TYPE_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(O,"MODAL_TYPE_FIELD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(M,"MODAL_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(C,"MODAL_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(P,"MODAL_TYPE_WYSIWYG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(D,"MODAL_TYPE_MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(y,"MODAL_TYPE_MODEL_CHOOSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(w,"URL_EMAIL_VERIFY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set","URL_PASSWORD_SET","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register("password-set-success","URL_PASSWORD_SUCCESS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(T,"URL_INVALID_LINK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(A,"URL_SIGN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(I,"URL_USERSPACE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(k,"URL_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(R,"URL_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(L,"URL_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(B,"URL_CONTENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(U,"URL_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(S,"URL_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(K,"URL_SETTINGS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(W,"URL_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(x,"URL_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(j,"URLS_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(N,"initEnd","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(q,"showAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(F,"closeAlert","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(V,"showModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(H,"closeModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(z,"setCurrentPage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(G,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(Y,"navReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),n(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"D",function(){return TemplateData}),__webpack_require__.d(__webpack_exports__,"C",function(){return SiteData}),__webpack_require__.d(__webpack_exports__,"A",function(){return ModelData}),__webpack_require__.d(__webpack_exports__,"z",function(){return FIELD_TYPE_SHORT_TEXT}),__webpack_require__.d(__webpack_exports__,"w",function(){return FIELD_TYPE_LONG_TEXT}),__webpack_require__.d(__webpack_exports__,"v",function(){return FIELD_TYPE_INTEGER}),__webpack_require__.d(__webpack_exports__,"u",function(){return FIELD_TYPE_FLOAT}),__webpack_require__.d(__webpack_exports__,"s",function(){return FIELD_TYPE_BOOLEAN}),__webpack_require__.d(__webpack_exports__,"t",function(){return FIELD_TYPE_DATE}),__webpack_require__.d(__webpack_exports__,"x",function(){return FIELD_TYPE_MEDIA}),__webpack_require__.d(__webpack_exports__,"y",function(){return FIELD_TYPE_REFERENCE}),__webpack_require__.d(__webpack_exports__,"n",function(){return FIELD_APPEARANCE__SHORT_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"o",function(){return FIELD_APPEARANCE__SHORT_TEXT__SLUG}),__webpack_require__.d(__webpack_exports__,"p",function(){return FIELD_APPEARANCE__SHORT_TEXT__URL}),__webpack_require__.d(__webpack_exports__,"m",function(){return FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN}),__webpack_require__.d(__webpack_exports__,"k",function(){return FIELD_APPEARANCE__LONG_TEXT__SINGLE}),__webpack_require__.d(__webpack_exports__,"j",function(){return FIELD_APPEARANCE__LONG_TEXT__MULTI}),__webpack_require__.d(__webpack_exports__,"l",function(){return FIELD_APPEARANCE__LONG_TEXT__WYSIWIG}),__webpack_require__.d(__webpack_exports__,"i",function(){return FIELD_APPEARANCE__LONG_TEXT__MARKDOWN}),__webpack_require__.d(__webpack_exports__,"g",function(){return FIELD_APPEARANCE__INTEGER__DECIMAL}),__webpack_require__.d(__webpack_exports__,"h",function(){return FIELD_APPEARANCE__INTEGER__RATING}),__webpack_require__.d(__webpack_exports__,"f",function(){return FIELD_APPEARANCE__FLOAT__DECIMAL}),__webpack_require__.d(__webpack_exports__,"a",function(){return FIELD_APPEARANCE__BOOLEAN__RADIO}),__webpack_require__.d(__webpack_exports__,"b",function(){return FIELD_APPEARANCE__BOOLEAN__SWITCH}),__webpack_require__.d(__webpack_exports__,"c",function(){return FIELD_APPEARANCE__DATE__DATE}),__webpack_require__.d(__webpack_exports__,"d",function(){return FIELD_APPEARANCE__DATE__DATE_ONLY}),__webpack_require__.d(__webpack_exports__,"e",function(){return FIELD_APPEARANCE__DATE__TIME_ONLY}),__webpack_require__.d(__webpack_exports__,"r",function(){return FIELD_TYPES}),__webpack_require__.d(__webpack_exports__,"F",function(){return canBeTitle}),__webpack_require__.d(__webpack_exports__,"E",function(){return canBeList}),__webpack_require__.d(__webpack_exports__,"B",function(){return ModelFieldData}),__webpack_require__.d(__webpack_exports__,"q",function(){return FIELD_NAMES_RESERVED});var core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(72),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(96),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(162),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(50),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(51),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(42),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(30),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__),parse__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_9__),utils_common__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(19);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var TemplateData=function(){function TemplateData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,TemplateData),this.origin=null,this.name="",this.description="",this.icon=null,this.models=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(TemplateData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("description")&&(this.description=e.get("description")),e.get("icon")&&(this.icon=e.get("icon")),this}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_9__.Parse.Object.extend("Template")}}]),TemplateData}(),SiteData=function(){function SiteData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,SiteData),this.origin=null,this.domain="",this.webhook="",this.icon=null,this._name="",this._nameId="",this.owner=null,this.collaborations=[],this.models=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(SiteData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("domain")&&(this.domain=e.get("domain")),e.get("webhook")&&(this.webhook=e.get("webhook")),e.get("icon")&&(this.icon=e.get("icon")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new SiteData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("domain",this.domain),this.origin.set("webhook",this.webhook),this.origin.set("icon",this.icon),this.origin.set("owner",this.owner.origin)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,domain:this.domain,webhook:this.webhook}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_9__.Parse.Object.extend("Site")}}]),SiteData}(),ModelData=function(){function ModelData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,ModelData),this.origin=null,this.description="",this.tableName="",this.color="rgba(0, 0, 0, 1)",this._name="",this._nameId="",this.site=null,this.template=null,this.fields=[]}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(ModelData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("description")&&(this.description=e.get("description")),e.get("tableName")&&(this.tableName=e.get("tableName")),e.get("color")&&(this.color=e.get("color")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("description",this.description),this.origin.set("tableName",this.tableName),this.origin.set("color",this.color),this.origin.set("site",this.site?this.site.origin:void 0),this.origin.set("template",this.template?this.template.origin:void 0)}},{key:"setTableName",value:function(){this.tableName="ct___".concat(this.site.owner.emailFiltered,"___").concat(this.site.nameId,"___").concat(this.nameId)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,description:this.description,tableName:this.tableName,color:this.color,fields:this.fields}}},{key:"hasTitle",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,_=this.fields[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){if(n.value.isTitle)return!0}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}return!1}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_9__.Parse.Object.extend("Model")}}]),ModelData}(),FIELD_TYPE_SHORT_TEXT="Short Text",FIELD_TYPE_LONG_TEXT="Long Text",FIELD_TYPE_INTEGER="Number Int",FIELD_TYPE_FLOAT="Number",FIELD_TYPE_BOOLEAN="Boolean",FIELD_TYPE_DATE="Date/time",FIELD_TYPE_MEDIA="Media",FIELD_TYPE_JSON="JSON",FIELD_TYPE_REFERENCE="Reference",FIELD_APPEARANCE__SHORT_TEXT__SINGLE="Single line",FIELD_APPEARANCE__SHORT_TEXT__SLUG="Slug",FIELD_APPEARANCE__SHORT_TEXT__URL="URL",FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN="Dropdown",FIELD_APPEARANCE__SHORT_TEXT__RADIO="Radio buttons",FIELD_APPEARANCE__LONG_TEXT__SINGLE="Single line",FIELD_APPEARANCE__LONG_TEXT__MULTI="Multi-line",FIELD_APPEARANCE__LONG_TEXT__WYSIWIG="WYSIWYG",FIELD_APPEARANCE__LONG_TEXT__MARKDOWN="Markdown",FIELD_APPEARANCE__INTEGER__DECIMAL="Decimal",FIELD_APPEARANCE__INTEGER__RATING="Rating",FIELD_APPEARANCE__FLOAT__DECIMAL="Decimal",FIELD_APPEARANCE__BOOLEAN__RADIO="Radio buttons",FIELD_APPEARANCE__BOOLEAN__SWITCH="Switch",FIELD_APPEARANCE__DATE__DATE="Date & time",FIELD_APPEARANCE__DATE__DATE_ONLY="Date",FIELD_APPEARANCE__DATE__TIME_ONLY="Time",FIELD_APPEARANCE__MEDIA__MEDIA="Media",FIELD_APPEARANCE__JSON__JSON="Date & time",FIELD_APPEARANCE__REFERENCE_REFERENCE="Reference",FIELD_TYPES=new Map([[FIELD_TYPE_SHORT_TEXT,[FIELD_APPEARANCE__SHORT_TEXT__SINGLE,FIELD_APPEARANCE__SHORT_TEXT__SLUG,FIELD_APPEARANCE__SHORT_TEXT__URL,FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN]],[FIELD_TYPE_LONG_TEXT,[FIELD_APPEARANCE__LONG_TEXT__SINGLE,FIELD_APPEARANCE__LONG_TEXT__MULTI,FIELD_APPEARANCE__LONG_TEXT__MARKDOWN]],[FIELD_TYPE_INTEGER,[FIELD_APPEARANCE__INTEGER__DECIMAL,FIELD_APPEARANCE__INTEGER__RATING]],[FIELD_TYPE_FLOAT,[FIELD_APPEARANCE__FLOAT__DECIMAL]],[FIELD_TYPE_BOOLEAN,[FIELD_APPEARANCE__BOOLEAN__RADIO,FIELD_APPEARANCE__BOOLEAN__SWITCH]],[FIELD_TYPE_DATE,[FIELD_APPEARANCE__DATE__DATE,FIELD_APPEARANCE__DATE__DATE_ONLY,FIELD_APPEARANCE__DATE__TIME_ONLY]],[FIELD_TYPE_MEDIA,[FIELD_APPEARANCE__MEDIA__MEDIA]],[FIELD_TYPE_REFERENCE,[FIELD_APPEARANCE__REFERENCE_REFERENCE]]]);function canBeTitle(e){return e.type==FIELD_TYPE_SHORT_TEXT&&e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE&&!e.isList&&!e.isDisabled}function canBeList(e){return(e.type==FIELD_TYPE_SHORT_TEXT&&(e.appearance==FIELD_APPEARANCE__SHORT_TEXT__SINGLE||e.appearance==FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN)||e.type==FIELD_TYPE_INTEGER&&e.appearance==FIELD_APPEARANCE__INTEGER__DECIMAL||e.type==FIELD_TYPE_FLOAT&&e.appearance==FIELD_APPEARANCE__FLOAT__DECIMAL||e.type==FIELD_TYPE_MEDIA&&e.appearance==FIELD_APPEARANCE__MEDIA__MEDIA||e.type==FIELD_TYPE_REFERENCE&&e.appearance==FIELD_APPEARANCE__REFERENCE_REFERENCE)&&!e.isTitle}var ModelFieldData=function(){function ModelFieldData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,ModelFieldData),this.origin=null,this.type=FIELD_TYPE_SHORT_TEXT,this.appearance=FIELD_APPEARANCE__SHORT_TEXT__SINGLE,this.color="rgba(0, 0, 0, 1)",this.boolTextYes="",this.boolTextNo="",this.validValues=[],this.isRequired=!1,this.isTitle=!1,this.isList=!1,this.isDisabled=!1,this.order=-1,this.validations=null,this._name="",this._nameId="",this.model=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(ModelFieldData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("nameId")&&(this.nameId=e.get("nameId")),e.get("type")&&(this.type=e.get("type")),e.get("appearance")&&(this.appearance=e.get("appearance")),e.get("color")&&(this.color=e.get("color")),e.get("boolTextYes")&&(this.boolTextYes=e.get("boolTextYes")),e.get("boolTextNo")&&(this.boolTextNo=e.get("boolTextNo")),e.get("validValues")&&(this.validValues=e.get("validValues")),e.get("isRequired")&&(this.isRequired=!0),e.get("isTitle")&&(this.isTitle=!0),e.get("isList")&&(this.isList=!0),e.get("isDisabled")&&(this.isDisabled=!0),e.get("validations")&&(this.validations=e.get("validations")),(e.get("order")||0===e.get("order"))&&(this.order=e.get("order")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new ModelFieldData.OriginClass),this.origin.set("name",this.name),this.origin.set("nameId",this.nameId),this.origin.set("type",this.type),this.origin.set("appearance",this.appearance),this.origin.set("color",this.color),this.origin.set("boolTextYes",this.boolTextYes),this.origin.set("boolTextNo",this.boolTextNo),this.origin.set("validValues",this.validValues),this.origin.set("isRequired",this.isRequired),this.origin.set("isTitle",this.isTitle),this.origin.set("isList",this.isList),this.origin.set("isDisabled",this.isDisabled),this.origin.set("order",this.order),this.origin.set("validations",this.validations),this.origin.set("model",this.model?this.model.origin:void 0)}},{key:"toJSON",value:function(){return{name:this.name,nameId:this.nameId,type:this.type,appearance:this.appearance,color:this.color,boolTextYes:this.boolTextYes,boolTextNo:this.boolTextNo,validValues:this.validValues,isRequired:this.isRequired,isTitle:this.isTitle,isList:this.isList,isDisabled:this.isDisabled,order:this.order,validations:this.validations}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"name",get:function(){return this._name},set:function(e){this._name=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.i)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.d)(e)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_9__.Parse.Object.extend("ModelField")}}]),ModelFieldData}(),FIELD_NAMES_RESERVED=["objectId","ACL","createdAt","updatedAt","t__color","t__status","t__owner","t__model"];!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(TemplateData,"TemplateData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(SiteData,"SiteData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelData,"ModelData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_SHORT_TEXT,"FIELD_TYPE_SHORT_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_LONG_TEXT,"FIELD_TYPE_LONG_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_INTEGER,"FIELD_TYPE_INTEGER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_FLOAT,"FIELD_TYPE_FLOAT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_BOOLEAN,"FIELD_TYPE_BOOLEAN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_DATE,"FIELD_TYPE_DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_MEDIA,"FIELD_TYPE_MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_JSON,"FIELD_TYPE_JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPE_REFERENCE,"FIELD_TYPE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SINGLE,"FIELD_APPEARANCE__SHORT_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__SLUG,"FIELD_APPEARANCE__SHORT_TEXT__SLUG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__URL,"FIELD_APPEARANCE__SHORT_TEXT__URL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN,"FIELD_APPEARANCE__SHORT_TEXT__DROPDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__SHORT_TEXT__RADIO,"FIELD_APPEARANCE__SHORT_TEXT__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__SINGLE,"FIELD_APPEARANCE__LONG_TEXT__SINGLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MULTI,"FIELD_APPEARANCE__LONG_TEXT__MULTI","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__WYSIWIG,"FIELD_APPEARANCE__LONG_TEXT__WYSIWIG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__LONG_TEXT__MARKDOWN,"FIELD_APPEARANCE__LONG_TEXT__MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__DECIMAL,"FIELD_APPEARANCE__INTEGER__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__INTEGER__RATING,"FIELD_APPEARANCE__INTEGER__RATING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__FLOAT__DECIMAL,"FIELD_APPEARANCE__FLOAT__DECIMAL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__RADIO,"FIELD_APPEARANCE__BOOLEAN__RADIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__BOOLEAN__SWITCH,"FIELD_APPEARANCE__BOOLEAN__SWITCH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE,"FIELD_APPEARANCE__DATE__DATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__DATE_ONLY,"FIELD_APPEARANCE__DATE__DATE_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__DATE__TIME_ONLY,"FIELD_APPEARANCE__DATE__TIME_ONLY","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__MEDIA__MEDIA,"FIELD_APPEARANCE__MEDIA__MEDIA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__JSON__JSON,"FIELD_APPEARANCE__JSON__JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_APPEARANCE__REFERENCE_REFERENCE,"FIELD_APPEARANCE__REFERENCE_REFERENCE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_TYPES,"FIELD_TYPES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeTitle,"canBeTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(canBeList,"canBeList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(ModelFieldData,"ModelFieldData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),e.register(FIELD_NAMES_RESERVED,"FIELD_NAMES_RESERVED","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/ModelData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(150)),_=o(r(412)),a=o(r(511)),i=o(r(523));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(e,t,r){var o=void 0,s=(0,i.default)(r);return o=function(e){return"prototype"in e&&(0,n.default)(e.prototype.render)}(e)?(0,_.default)(e,t,s):(0,a.default)(e,t,s),e.displayName?o.displayName=e.displayName:o.displayName=e.name,o};t.default=function(){return(0,n.default)(arguments.length<=0?void 0:arguments[0])?s(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2]):function(e,t){return function(r){return s(r,e,t)}}(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1])},e.exports=t.default},function(e,t,r){e.exports=r(400)()},function(e,t,r){var n=r(59);e.exports=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return null;var n=Object(i.d)(e);return function e(){var _=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,a=_?"".concat(n,"_").concat(_):n;if(-1!=r.indexOf(a))return e(++_);var i=!0,o=!1,s=void 0;try{for(var l,u=t[Symbol.iterator]();!(i=(l=u.next()).done);i=!0)if(l.value.nameId==a)return e(++_)}catch(e){o=!0,s=e}finally{try{i||null==u.return||u.return()}finally{if(o)throw s}}return a}()}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"NAME_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(l,"NAME_ERROR_NAME_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(u,"NAME_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(c,"getAlertForNameError","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(d,"getUser","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(f,"checkSiteName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(p,"DOMAIN_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(h,"DOMAIN_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(E,"DOMAIN_ERROR_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(m,"DOMAIN_ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(g,"checkSiteDomain","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(b,"getSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(v,"getSiteByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(O,"COLLAB_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(M,"COLLAB_ERROR_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(C,"COLLAB_ERROR_SELF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(P,"checkCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(D,"checkModelName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(y,"getModelByName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(w,"getModelByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(T,"checkFieldName","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(A,"getContentForModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(I,"getContentForSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(k,"getContentByModelAndId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(R,"getContentByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(L,"checkContentExistense","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(B,"getMediaByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(U,"getRole","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(S,"checkPassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(K,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";var n=r(26),_=r.n(n),a=r(0),i=r.n(a),o=r(37),s=r.n(o),l=r(10),u=r.n(l);r(81);function c(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var d=Object.create(null);function f(e){return d[e]||(d[e]=function(e){for(var t="",r=[],n=[],_=void 0,a=0,i=/:([a-zA-Z_$][a-zA-Z0-9_$]*)|\*\*|\*|\(|\)|\\\(|\\\)/g;_=i.exec(e);)_.index!==a&&(n.push(e.slice(a,_.index)),t+=c(e.slice(a,_.index))),_[1]?(t+="([^/]+)",r.push(_[1])):"**"===_[0]?(t+="(.*)",r.push("splat")):"*"===_[0]?(t+="(.*?)",r.push("splat")):"("===_[0]?t+="(?:":")"===_[0]?t+=")?":"\\("===_[0]?t+="\\(":"\\)"===_[0]&&(t+="\\)"),n.push(_[0]),a=i.lastIndex;return a!==e.length&&(n.push(e.slice(a,e.length)),t+=c(e.slice(a,e.length))),{pattern:e,regexpSource:t,paramNames:r,tokens:n}}(e)),d[e]}function p(e,t){"/"!==e.charAt(0)&&(e="/"+e);var r=f(e),n=r.regexpSource,_=r.paramNames,a=r.tokens;"/"!==e.charAt(e.length-1)&&(n+="/?"),"*"===a[a.length-1]&&(n+="$");var i=t.match(new RegExp("^"+n,"i"));if(null==i)return null;var o=i[0],s=t.substr(o.length);if(s){if("/"!==o.charAt(o.length-1))return null;s="/"+s}return{remainingPathname:s,paramNames:_,paramValues:i.slice(1).map(function(e){return e&&decodeURIComponent(e)})}}function h(e){return f(e).paramNames}function E(e,t){t=t||{};for(var r=f(e).tokens,n=0,a="",i=0,o=[],s=void 0,l=void 0,u=0,c=r.length;u0||_()(!1),null!=l&&(a+=encodeURI(l));else if("("===s)o[n]="",n+=1;else if(")"===s){var d=o.pop();(n-=1)?o[n-1]+=d:a+=d}else if("\\("===s)a+="(";else if("\\)"===s)a+=")";else if(":"===s.charAt(0))if(null!=(l=t[s.substring(1)])||n>0||_()(!1),null==l){if(n){o[n-1]="";for(var p=r.indexOf(s),h=r.slice(p,r.length),E=-1,m=0;m0||_()(!1),u=p+E-1}}else n?o[n-1]+=encodeURIComponent(l):a+=encodeURIComponent(l);else n?o[n-1]+=s:a+=s;return n<=0||_()(!1),a.replace(/\/+/g,"/")}var m=function(e,t){var r=e&&e.routes,n=t.routes,_=void 0,a=void 0,i=void 0;if(r){var o=!1;(_=r.filter(function(r){if(o)return!0;var _=-1===n.indexOf(r)||function(e,t,r){return!!e.path&&h(e.path).some(function(e){return t.params[e]!==r.params[e]})}(r,e,t);return _&&(o=!0),_})).reverse(),i=[],a=[],n.forEach(function(e){var t=-1===r.indexOf(e),n=-1!==_.indexOf(e);t||n?i.push(e):a.push(e)})}else _=[],a=[],i=n;return{leaveRoutes:_,changeRoutes:a,enterRoutes:i}};function g(e,t,r){var n=0,_=!1,a=!1,i=!1,o=void 0;function s(){_=!0,a?o=[].concat(Array.prototype.slice.call(arguments)):r.apply(this,arguments)}!function l(){if(!_&&(i=!0,!a)){for(a=!0;!_&&n=e&&i&&(_=!0,r())}}()}function b(e,t,r){var n=e.length,_=[];if(0===n)return r(null,_);var a=!1,i=0;e.forEach(function(e,o){t(e,o,function(e,t){!function(e,t,o){a||(t?(a=!0,r(t)):(_[e]=o,(a=++i===n)&&r(null,_)))}(o,e,t)})})}var v=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.hooks=[],this.add=function(e){return t.hooks.push(e)},this.remove=function(e){return t.hooks=t.hooks.filter(function(t){return t!==e})},this.has=function(e){return-1!==t.hooks.indexOf(e)},this.clear=function(){return t.hooks=[]}};function O(){var e=new v,t=new v;function r(e,t,r,n){var _=e.length4&&void 0!==arguments[4]?arguments[4]:[],a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:[];void 0===n&&("/"!==t.pathname.charAt(0)&&(t=L({},t,{pathname:"/"+t.pathname})),n=t.pathname),g(e.length,function(r,i,o){S(e[r],t,n,_,a,function(e,t){e||t?o(e,t):i()})},r)}var W=Object.assign||function(e){for(var t=1;t1&&void 0!==arguments[1]&&arguments[1];return e.__id__||t&&(e.__id__=u++)}var d=Object.create(null);function f(e){return e.map(function(e){return d[c(e)]}).filter(function(e){return e})}function p(e,n){K(t,e,function(t,_){if(null!=_){o=W({},_,{location:e});for(var a=f(m(r,o).leaveRoutes),i=void 0,s=0,l=a.length;null==i&&s should not have a "'+t+'" prop')}Object(l.shape)({listen:l.func.isRequired,push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired});var q=Object(l.oneOfType)([l.func,l.string]),F=Object(l.oneOfType)([q,l.object]),V=Object(l.oneOfType)([l.object,l.element]),H=Object(l.oneOfType)([V,Object(l.arrayOf)(V)]);var z=function(e,t){var r={};return e.path?(h(e.path).forEach(function(e){Object.prototype.hasOwnProperty.call(t,e)&&(r[e]=t[e])}),r):r},G=u.a.shape({subscribe:u.a.func.isRequired,eventIndex:u.a.number.isRequired});function Y(e){return"@@contextSubscriber/"+e}function J(e){var t,r,n=Y(e),_=n+"/lastRenderedEventIndex",a=n+"/handleContextUpdate",i=n+"/unsubscribe";return(r={contextTypes:(t={},t[n]=G,t),getInitialState:function(){var e;return this.context[n]?((e={})[_]=this.context[n].eventIndex,e):{}},componentDidMount:function(){this.context[n]&&(this[i]=this.context[n].subscribe(this[a]))},componentWillReceiveProps:function(){var e;this.context[n]&&this.setState(((e={})[_]=this.context[n].eventIndex,e))},componentWillUnmount:function(){this[i]&&(this[i](),this[i]=null)}})[a]=function(e){var t;e!==this.state[_]&&this.setState(((t={})[_]=e,t))},r}var X=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["createElement","render"]);return null==t?null:(Object.keys(ne).forEach(function(e){return delete s[e]}),o(re({},s,{router:this.router,location:t,routes:r,params:n,components:_,createElement:i})))}}),ae=Object(l.shape)({push:l.func.isRequired,replace:l.func.isRequired,go:l.func.isRequired,goBack:l.func.isRequired,goForward:l.func.isRequired,setRouteLeaveHook:l.func.isRequired,isActive:l.func.isRequired}),ie=(Object(l.shape)({pathname:l.string.isRequired,search:l.string.isRequired,state:l.object,action:l.string.isRequired,key:l.string}),Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(e,["to","activeClassName","activeStyle","onlyActiveOnIndex"]),o=this.context.router;if(o){if(!t)return i.a.createElement("a",a);var s=oe(t,o);a.href=o.createHref(s),(r||null!=n&&!function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}(n))&&o.isActive(s,_)&&(r&&(a.className?a.className+=" "+r:a.className=r),n&&(a.style=ie({},a.style,n)))}return i.a.createElement("a",ie({},a,{onClick:this.handleClick}))}}),le=Object.assign||function(e){for(var t=1;t=0;n--){var _=e[n].path||"";if(r=_.replace(/\/*$/,"/")+r,0===_.indexOf("/"))break}return"/"+r}},propTypes:{path:l.string,from:l.string,to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),ce=ue,de=s()({displayName:"IndexRedirect",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=ce.createRouteFromReactElement(e))}},propTypes:{to:l.string.isRequired,query:l.object,state:l.object,onEnter:N,children:N},render:function(){_()(!1)}}),fe=(s()({displayName:"IndexRoute",statics:{createRouteFromReactElement:function(e,t){t&&(t.indexRoute=I(e))}},propTypes:{path:N,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}}),s()({displayName:"Route",statics:{createRouteFromReactElement:I},propTypes:{path:l.string,component:q,components:F,getComponent:l.func,getComponents:l.func},render:function(){_()(!1)}})),pe=(r(142),r(172)),he=r.n(pe),Ee=r(173),me=r.n(Ee);r(340);Object.assign;Object.assign;var ge=r(341),be=r.n(ge),ve=!("undefined"==typeof window||!window.document||!window.document.createElement);function Oe(e){var t=void 0;return ve&&(t=function(e){return function(t){return he()(me()(e))(t)}}(e)()),t}var Me=Oe(be.a),Ce=r(342);Oe(r.n(Ce).a);r.d(t,"e",function(){return _e}),r.d(t,"b",function(){return se}),r.d(t,"a",function(){return de}),r.d(t,"c",function(){return ce}),r.d(t,"d",function(){return fe}),r.d(t,"f",function(){return Me})},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t: `children` prop will be ignored.")}},{key:"render",value:function(){var e=void 0,t=void 0,r=void 0,_=this.props,i=_.element,s=_.raw,l=_.src,u=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["element","raw","src"]);return!0===s&&(e="svg",r=(0,o.extractSVGProps)(l),t=(0,o.getSVGFromSource)(l).innerHTML),t=t||l,e=e||i,r=r||{},a.default.createElement(e,n({},r,u,{src:null,children:null,dangerouslySetInnerHTML:{__html:t}}))}}]),t}();t.default=l,l.defaultProps={element:"i",raw:!1,src:""},l.propTypes={src:i.string.isRequired,element:i.string,raw:i.bool}},function(e,t,r){"use strict";(function(e){r.d(t,"i",function(){return n}),r.d(t,"d",function(){return _}),r.d(t,"e",function(){return a}),r.d(t,"f",function(){return i}),r.d(t,"j",function(){return o}),r.d(t,"c",function(){return s}),r.d(t,"b",function(){return l}),r.d(t,"g",function(){return u}),r.d(t,"h",function(){return c}),r.d(t,"a",function(){return d});r(42),r(72),r(585),r(53),r(587),r(300),r(589),r(590),r(109);function n(e){return e?e.trim().replace(/\s+/g," "):""}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"_";return e?(e=n(e)).replace(/\W/g,t):""}function a(e,t){return(e=_(e,t)).toLowerCase()}function i(){var e=Math.floor(256*Math.random()),t=Math.floor(256*Math.random()),r=Math.floor(256*Math.random());return"rgba(".concat(e,", ").concat(t,", ").concat(r,", 1)")}function o(e){var t=e.lastIndexOf(".");return t>0?e.slice(0,t):e}function s(e){return new RegExp("^(https?:\\/\\/)((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(e)}function l(e){return/^[a-z0-9!#$%&'*+\/=?^_`{|}~.-]+@[a-z0-9]([a-z0-9-]*[a-z0-9])?(\.[a-z0-9]([a-z0-9-]*[a-z0-9])?)*$/i.test(e)}function u(e){var t=new Date,r=t-e,n=navigator.language||navigator.userLanguage,_=e.toLocaleString(n,{hour:"numeric",minute:"numeric"}),a=e.toLocaleString(n,{year:"numeric",month:"short",day:"numeric",hour:"numeric",minute:"numeric"});if(r<6e4)return r<1e4?"A few seconds ago":"Less a minute ago";if(r<36e5){var i=Math.floor(r/6e4);return"".concat(i,1==i?" minute ago":" minutes ago")}if(t.getDate()==e.getDate()&&t.getMonth()==e.getMonth()&&t.getFullYear()==e.getFullYear())return"Today, at ".concat(_);var o=new Date(e);return o.setDate(o.getDate()+1),t.getDate()==o.getDate()&&t.getMonth()==o.getMonth()&&t.getFullYear()==o.getFullYear()?"Yesterday, at ".concat(_):a}function c(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,r={},n=/([^&=]+)=?([^&]*)/g,_=function(e){return decodeURIComponent(e.replace(/\+/g," "))};for(t||(t=location.search.substring(1));e=n.exec(t);)r[_(e[1])]=_(e[2]);return r}function d(e){return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&")}!function(){var t=r(1).enterModule;t&&t(e)}(),function(){var t=r(1).default,f=r(1).leaveModule;t&&(t.register(n,"removeOddSpaces","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(_,"filterSpecials","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(a,"filterSpecialsAndCapital","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(i,"getRandomColor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(o,"trimFileExt","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(s,"checkURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(l,"checkEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(u,"getRelativeTime","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(c,"parseURLParams","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(d,"URLEncode","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),f(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ButtonControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),classnames__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(74),classnames__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__),_ButtonControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(763),_ButtonControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_ButtonControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ButtonControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ButtonControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ButtonControl(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ButtonControl),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ButtonControl).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ButtonControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ButtonControl,[{key:"render",value:function(){var e=this.props,t=e.value,r=e.color,n=e.onClick,_=e.type,a=e.disabled,i=e.DOMRef;_||(_="button");var o=classnames__WEBPACK_IMPORTED_MODULE_7___default()({ButtonControl:!0,"ButtonControl-red":"red"===r,"ButtonControl-green":"green"===r,"ButtonControl-gray":"gray"===r});return a&&(n=null,o=classnames__WEBPACK_IMPORTED_MODULE_7___default()({ButtonControl:!0,"ButtonControl-disabled":!0})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("button",{styleName:o,onClick:n,type:_,ref:i},t||"Clear")}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ButtonControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ButtonControl,"ButtonControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/ButtonControl/ButtonControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"f",function(){return UserData}),__webpack_require__.d(__webpack_exports__,"e",function(){return ROLE_OWNER}),__webpack_require__.d(__webpack_exports__,"b",function(){return ROLE_ADMIN}),__webpack_require__.d(__webpack_exports__,"d",function(){return ROLE_EDITOR}),__webpack_require__.d(__webpack_exports__,"c",function(){return ROLE_DEVELOPER}),__webpack_require__.d(__webpack_exports__,"a",function(){return CollaborationData});var core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(599),core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_to_string__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(600),core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_date_to_string__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(109),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__),parse__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_5__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var UserData=function(){function UserData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this,UserData),this.origin=null,this.email="",this.emailNew="",this.firstName="",this.lastName="",this.avatar=null,this.sex="male"}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(UserData,[{key:"setOrigin",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:parse__WEBPACK_IMPORTED_MODULE_5__.Parse.User.current();return this.origin=e,e.get("email")&&(this.email=e.get("email")),this.email||(this.email=e.get("username")),e.get("emailNew")&&(this.emailNew=e.get("emailNew")),e.get("firstName")&&(this.firstName=e.get("firstName")),e.get("lastName")&&(this.lastName=e.get("lastName")),e.get("avatar")&&(this.avatar=e.get("avatar")),e.get("sex")&&(this.sex=e.get("sex")),this}},{key:"updateOrigin",value:function(){this.origin.set("firstName",this.firstName),this.origin.set("lastName",this.lastName),this.origin.set("avatar",this.avatar),this.origin.set("sex",this.sex)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}},{key:"emailFiltered",get:function(){return encodeURIComponent(this.email).replace(/[!'()*.~_-]/g,function(e){return"%"+e.charCodeAt(0).toString(16)}).replace(/%/g,"_")}}]),UserData}(),ROLE_OWNER="OWNER",ROLE_ADMIN="ADMIN",ROLE_EDITOR="EDITOR",ROLE_DEVELOPER="DEVELOPER",CollaborationData=function(){function CollaborationData(){_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this,CollaborationData),this.origin=null,this.role=ROLE_DEVELOPER,this.email="",this.site=null,this.user=null}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(CollaborationData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("role")&&(this.role=e.get("role")),e.get("email")&&(this.email=e.get("email")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new CollaborationData.OriginClass),this.origin.set("role",this.role),this.origin.set("email",this.email),this.origin.set("site",this.site.origin),this.user&&this.origin.set("user",this.user.origin)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}],[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_5__.Parse.Object.extend("Collaboration")}}]),CollaborationData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(UserData,"UserData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_OWNER,"ROLE_OWNER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_ADMIN,"ROLE_ADMIN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_EDITOR,"ROLE_EDITOR","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(ROLE_DEVELOPER,"ROLE_DEVELOPER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),e.register(CollaborationData,"CollaborationData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/UserData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"store",function(){return w});r(396),r(747),r(752),r(759);var n=r(0),_=r.n(n),a=r(52),i=r.n(a),o=r(27),s=r(17),l=r(112),u=r(343),c=r(356),d=r(70),f=r(7),p=r(362),h=r(363),E=r(364),m=r(370),g=r(372),b=r(374),v=r(376),O=r(379),M=r(381),C=r(390),P=r(391),D=r(236),y=r(392);!function(){var t=r(1).enterModule;t&&t(e)}();var w=Object(c.a)(),T=Object(l.syncHistoryWithStore)(s.f,w);Object(d.c)();var A=function(e){return w.dispatch(Object(f.I)(e))};i.a.render(_.a.createElement(o.a,{store:w},_.a.createElement(s.e,{history:T},_.a.createElement(s.d,{path:"/",component:u.a},_.a.createElement(s.d,{path:"/email-verify",component:P.a}),_.a.createElement(s.d,{path:"/password-set-success",component:D.a}),_.a.createElement(s.d,{path:"/password-set",component:D.a}),_.a.createElement(s.d,{path:"/invalid-link",component:y.a}),_.a.createElement(s.d,{path:"/sign",component:h.a}),_.a.createElement(s.d,{path:"/userspace",component:E.a},_.a.createElement(s.d,{path:"/userspace/profile",component:C.a,onEnter:function(){return A(f.n)}}),_.a.createElement(s.d,{path:"/userspace/:site/models",component:b.a,onEnter:function(){return A(f.l)}}),_.a.createElement(s.d,{path:"/userspace/:site/models/:model",component:v.a,onEnter:function(){return A(f.m)}}),_.a.createElement(s.d,{path:"/userspace/:site/content",component:O.a,onEnter:function(){return A(f.j)}}),_.a.createElement(s.d,{path:"/userspace/:site/content/:item",component:M.a,onEnter:function(){return A(f.k)}}),_.a.createElement(s.d,{path:"/userspace/:site/api",component:p.a,onEnter:function(){return A(f.i)}}),_.a.createElement(s.d,{path:"/userspace/:site/settings",component:m.a,onEnter:function(){return A(f.o)}}),_.a.createElement(s.d,{path:"/userspace/:site/sharing",component:g.a,onEnter:function(){return A(f.p)}}),_.a.createElement(s.c,{from:"/userspace/:site",to:"/userspace/:site/models"})),_.a.createElement(s.a,{to:"/userspace"}),_.a.createElement(s.c,{from:"/*",to:"/invalid-link"})))),document.getElementById("app-root")),function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(w,"store","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(T,"history","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),t.register(A,"SCP","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/index.js"),n(e))}()}.call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"e",function(){return c}),r.d(t,"h",function(){return f}),r.d(t,"f",function(){return p}),r.d(t,"c",function(){return O}),r.d(t,"d",function(){return M}),r.d(t,"b",function(){return C}),r.d(t,"a",function(){return P}),r.d(t,"g",function(){return D}),r.d(t,"m",function(){return y}),r.d(t,"k",function(){return w}),r.d(t,"j",function(){return T}),r.d(t,"l",function(){return A}),r.d(t,"q",function(){return I}),r.d(t,"r",function(){return k}),r.d(t,"s",function(){return R}),r.d(t,"p",function(){return L}),r.d(t,"n",function(){return B}),r.d(t,"o",function(){return U}),r.d(t,"i",function(){return K});var n=r(11),_=r.n(n),a=r(22),i=r(14),o=r(21),s=r(70),l=r(13);!function(){var t=r(1).enterModule;t&&t(e)}();var u="app/user/LOGIN_REQUEST",c="app/user/LOGIN_RESPONSE",d="app/user/REGISTER_REQUEST",f="app/user/REGISTER_RESPONSE",p="app/user/LOGOUT",h="app/user/UPDATE",E="app/user/UPDATE_EMAIL",m="app/user/UPDATE_PASSWORD",g="app/user/RESTORE_PASSWORD",b="app/user/RESEND_VERIF",v="app/user/RESET_STATUS",O="app/user/ERROR_USER_EXISTS",M="app/user/ERROR_WRONG_PASS",C="app/user/ERROR_UNVERIF",P="app/user/ERROR_OTHER",D="app/user/OK";function y(e,t){return function(r){r({type:d,email:e,password:t});var n=new i.Parse.User;n.set("username",e),n.set("email",e),n.set("password",t),Object(l.a)(n.signUp()).then(function(){r({type:f,status:D})}).catch(function(e){var t=P;switch(e.code){case 202:case 203:t=O}r({type:f,status:t})})}}function w(e,t){return function(r){r({type:u,email:e,password:t}),Object(l.a)(i.Parse.User.logIn(e,t)).then(function(){var e=(new o.f).setOrigin();r({type:c,status:D,authorized:!0,userData:e})}).catch(function(e){var t=P;switch(e.code){case 101:t=M;break;case 205:t=C}r({type:c,status:t})})}}function T(){return function(e){var t=i.Parse.User.current();t&&t.get("sessionToken")?Object(l.a)(t.fetch()).then(function(){var t=(new o.f).setOrigin();e({type:c,status:D,authorized:!0,userData:t})}).catch(function(){return e({type:c})}):e({type:c})}}function A(){return Object(l.a)(i.Parse.User.logOut()),{type:p}}function I(e){return e.updateOrigin(),Object(l.a)(e.origin.save()),{type:h,data:e}}function k(e){return e?function(t){var r=i.Parse.User.current();Object(l.a)(r.requestEmailChange(e)).then(function(){t({type:E,status:D,email:e})}).catch(function(e){var r=P;switch(e.code){case 202:r=O}t({type:E,status:r})})}:null}function R(e){if(!e)return null;var t=i.Parse.User.current();return t.set("password",e),Object(l.a)(t.save()),{type:m}}function L(e){return e?function(t){Object(l.a)(i.Parse.User.requestPasswordReset(e)).then(function(e){return t({type:g,status:D,result:e})}).catch(function(e){return t({type:g,status:P})})}:null}function B(e){if(!e){var t=a.store.getState().user.userData;if(!t||!t.emailNew)return null;e=t.emailNew}return function(t){Object(l.a)(fetch(s.b.serverURL+"/verificationEmailRequest",{method:"POST",headers:{"X-Parse-Application-Id":s.b.appId,"X-Parse-REST-API-Key":s.b.RESTkey},body:JSON.stringify({email:e})})).then(function(e){return t({type:b,status:D})}).catch(function(e){return t({type:b,status:P})})}}function U(){return{type:v}}var S={localStorageReady:!1,authorized:!1,status:null,email:"",password:"",userData:null,pending:!1};function K(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:S,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case u:case d:return _()({},e,{authorized:!1,status:null,email:t.email,password:t.password,pending:!0});case c:return _()({},e,{authorized:t.authorized,status:t.status,userData:t.userData,localStorageReady:!0,password:"",pending:!1});case f:return _()({},e,{status:t.status,localStorageReady:!0,password:"",pending:!1});case p:return _()({},e,{authorized:!1,email:""});case h:return _()({},e,{userData:t.data});case E:var r=e.userData;return t.email&&(r.emailNew=t.email),_()({},e,{userData:r,status:t.status});case g:return _()({},e,{status:t.status});case m:case b:return _()({},e);case v:return _()({},e,{status:null});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(u,"LOGIN_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(c,"LOGIN_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(d,"REGISTER_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(f,"REGISTER_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(p,"LOGOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(h,"UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(E,"UPDATE_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(m,"UPDATE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(g,"RESTORE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(b,"RESEND_VERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(v,"RESET_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(O,"ERROR_USER_EXISTS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(M,"ERROR_WRONG_PASS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(C,"ERROR_UNVERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(P,"ERROR_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(D,"OK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(y,"register","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(w,"login","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(T,"getLocalStorage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(A,"logout","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(I,"update","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(k,"updateEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(R,"updatePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(L,"restorePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(B,"resendVerEmail","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(U,"resetStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(S,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(K,"userReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";r.d(t,"d",function(){return o}),r.d(t,"c",function(){return l}),r.d(t,"b",function(){return c}),r.d(t,"a",function(){return f});var n=r(230),_=function(){return Math.random().toString(36).substring(7).split("").join(".")},a={INIT:"@@redux/INIT"+_(),REPLACE:"@@redux/REPLACE"+_(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+_()}};function i(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function o(e,t,r){var _;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error("It looks like you are passing several store enhancers to createStore(). This is not supported. Instead, compose them together to a single function");if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(o)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var s=e,l=t,u=[],c=u,d=!1;function f(){c===u&&(c=u.slice())}function p(){if(d)throw new Error("You may not call store.getState() while the reducer is executing. The reducer has already received the state as an argument. Pass it down from the top reducer instead of reading it from the store.");return l}function h(e){if("function"!=typeof e)throw new Error("Expected the listener to be a function.");if(d)throw new Error("You may not call store.subscribe() while the reducer is executing. If you would like to be notified after the store has been updated, subscribe from a component and invoke store.getState() in the callback to access the latest state. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");var t=!0;return f(),c.push(e),function(){if(t){if(d)throw new Error("You may not unsubscribe from a store listener while the reducer is executing. See https://redux.js.org/api-reference/store#subscribe(listener) for more details.");t=!1,f();var r=c.indexOf(e);c.splice(r,1)}}}function E(e){if(!i(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(d)throw new Error("Reducers may not dispatch actions.");try{d=!0,l=s(l,e)}finally{d=!1}for(var t=u=c,r=0;r0&&void 0!==arguments[0]?arguments[0]:"store",r=arguments[1]||t+"Subscription",_=function(e){function _(r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,_);var a=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}(this,e.call(this,r,n));return a[t]=r.store,a}return 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)}(_,e),_.prototype.getChildContext=function(){var e;return(e={})[t]=this[t],e[r]=null,e},_.prototype.render=function(){return n.Children.only(this.props.children)},_}(n.Component);return _.propTypes={store:o.isRequired,children:a.a.element.isRequired},_.childContextTypes=((e={})[t]=o.isRequired,e[r]=i,e),_}(),l=r(336),u=r.n(l),c=r(26),d=r.n(c);var f=null,p={notify:function(){}};var h=function(){function e(t,r,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.store=t,this.parentSub=r,this.onStateChange=n,this.unsubscribe=null,this.listeners=p}return e.prototype.addNestedSub=function(e){return this.trySubscribe(),this.listeners.subscribe(e)},e.prototype.notifyNestedSubs=function(){this.listeners.notify()},e.prototype.isSubscribed=function(){return Boolean(this.unsubscribe)},e.prototype.trySubscribe=function(){this.unsubscribe||(this.unsubscribe=this.parentSub?this.parentSub.addNestedSub(this.onStateChange):this.store.subscribe(this.onStateChange),this.listeners=function(){var e=[],t=[];return{clear:function(){t=f,e=f},notify:function(){for(var r=e=t,n=0;n1&&void 0!==arguments[1]?arguments[1]:{},a=_.getDisplayName,s=void 0===a?function(e){return"ConnectAdvanced("+e+")"}:a,l=_.methodName,c=void 0===l?"connectAdvanced":l,f=_.renderCountProp,p=void 0===f?void 0:f,v=_.shouldHandleStateChanges,O=void 0===v||v,M=_.storeKey,C=void 0===M?"store":M,P=_.withRef,D=void 0!==P&&P,y=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(_,["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef"]),w=C+"Subscription",T=m++,A=((t={})[C]=o,t[w]=i,t),I=((r={})[w]=i,r);return function(t){d()("function"==typeof t,"You must pass a component to the function returned by "+c+". Instead received "+JSON.stringify(t));var r=t.displayName||t.name||"Component",_=s(r),a=E({},y,{getDisplayName:s,methodName:c,renderCountProp:p,shouldHandleStateChanges:O,storeKey:C,withRef:D,displayName:_,wrappedComponentName:r,WrappedComponent:t}),i=function(r){function i(e,t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,i);var n=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}(this,r.call(this,e,t));return n.version=T,n.state={},n.renderCount=0,n.store=e[C]||t[C],n.propsMode=Boolean(e[C]),n.setWrappedInstance=n.setWrappedInstance.bind(n),d()(n.store,'Could not find "'+C+'" in either the context or props of "'+_+'". Either wrap the root component in a , or explicitly pass "'+C+'" as a prop to "'+_+'".'),n.initSelector(),n.initSubscription(),n}return 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)}(i,r),i.prototype.getChildContext=function(){var e,t=this.propsMode?null:this.subscription;return(e={})[w]=t||this.context[w],e},i.prototype.componentDidMount=function(){O&&(this.subscription.trySubscribe(),this.selector.run(this.props),this.selector.shouldComponentUpdate&&this.forceUpdate())},i.prototype.componentWillReceiveProps=function(e){this.selector.run(e)},i.prototype.shouldComponentUpdate=function(){return this.selector.shouldComponentUpdate},i.prototype.componentWillUnmount=function(){this.subscription&&this.subscription.tryUnsubscribe(),this.subscription=null,this.notifyNestedSubs=b,this.store=null,this.selector.run=b,this.selector.shouldComponentUpdate=!1},i.prototype.getWrappedInstance=function(){return d()(D,"To access the wrapped instance, you need to specify { withRef: true } in the options argument of the "+c+"() call."),this.wrappedInstance},i.prototype.setWrappedInstance=function(e){this.wrappedInstance=e},i.prototype.initSelector=function(){var t=e(this.store.dispatch,a);this.selector=function(e,t){var r={run:function(n){try{var _=e(t.getState(),n);(_!==r.props||r.error)&&(r.shouldComponentUpdate=!0,r.props=_,r.error=null)}catch(e){r.shouldComponentUpdate=!0,r.error=e}}};return r}(t,this.store),this.selector.run(this.props)},i.prototype.initSubscription=function(){if(O){var e=(this.propsMode?this.props:this.context)[w];this.subscription=new h(this.store,e,this.onStateChange.bind(this)),this.notifyNestedSubs=this.subscription.notifyNestedSubs.bind(this.subscription)}},i.prototype.onStateChange=function(){this.selector.run(this.props),this.selector.shouldComponentUpdate?(this.componentDidUpdate=this.notifyNestedSubsOnComponentDidUpdate,this.setState(g)):this.notifyNestedSubs()},i.prototype.notifyNestedSubsOnComponentDidUpdate=function(){this.componentDidUpdate=void 0,this.notifyNestedSubs()},i.prototype.isSubscribed=function(){return Boolean(this.subscription)&&this.subscription.isSubscribed()},i.prototype.addExtraProps=function(e){if(!(D||p||this.propsMode&&this.subscription))return e;var t=E({},e);return D&&(t.ref=this.setWrappedInstance),p&&(t[p]=this.renderCount++),this.propsMode&&this.subscription&&(t[w]=this.subscription),t},i.prototype.render=function(){var e=this.selector;if(e.shouldComponentUpdate=!1,e.error)throw e.error;return Object(n.createElement)(t,this.addExtraProps(e.props))},i}(n.Component);return i.WrappedComponent=t,i.displayName=_,i.childContextTypes=I,i.contextTypes=A,i.propTypes=A,u()(i,t)}}var O=Object.prototype.hasOwnProperty;function M(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(M(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),n=Object.keys(t);if(r.length!==n.length)return!1;for(var _=0;_=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["initMapStateToProps","initMapDispatchToProps","initMergeProps"]),i=r(e,a),o=n(e,a),s=_(e,a);return(a.pure?N:j)(i,o,s,e,a)}var F=Object.assign||function(e){for(var t=1;t=0;n--){var _=t[n](e);if(_)return _}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function H(e,t){return e===t}var z=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?v:t,n=e.mapStateToPropsFactories,_=void 0===n?S:n,a=e.mapDispatchToPropsFactories,i=void 0===a?U:a,o=e.mergePropsFactories,s=void 0===o?x:o,l=e.selectorFactory,u=void 0===l?q:l;return function(e,t,n){var a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=a.pure,l=void 0===o||o,c=a.areStatesEqual,d=void 0===c?H:c,f=a.areOwnPropsEqual,p=void 0===f?C:f,h=a.areStatePropsEqual,E=void 0===h?C:h,m=a.areMergedPropsEqual,g=void 0===m?C:m,b=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(a,["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"]),v=V(e,_,"mapStateToProps"),O=V(t,i,"mapDispatchToProps"),M=V(n,s,"mergeProps");return r(u,F({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:v,initMapDispatchToProps:O,initMergeProps:M,pure:l,areStatesEqual:d,areOwnPropsEqual:p,areStatePropsEqual:E,areMergedPropsEqual:g},b))}}();r.d(t,"a",function(){return s}),r.d(t,"b",function(){return z})},function(e,t,r){"use strict";(function(e){r.d(t,"d",function(){return f}),r.d(t,"f",function(){return E}),r.d(t,"e",function(){return C}),r.d(t,"a",function(){return P}),r.d(t,"c",function(){return D}),r.d(t,"b",function(){return y}),r.d(t,"r",function(){return U}),r.d(t,"t",function(){return S}),r.d(t,"k",function(){return K}),r.d(t,"x",function(){return W}),r.d(t,"q",function(){return x}),r.d(t,"g",function(){return j}),r.d(t,"i",function(){return N}),r.d(t,"u",function(){return q}),r.d(t,"m",function(){return F}),r.d(t,"p",function(){return V}),r.d(t,"j",function(){return H}),r.d(t,"w",function(){return z}),r.d(t,"s",function(){return G}),r.d(t,"o",function(){return Y}),r.d(t,"h",function(){return X}),r.d(t,"v",function(){return Q}),r.d(t,"n",function(){return $}),r.d(t,"l",function(){return ee});r(43);var n=r(11),_=r.n(n),a=(r(30),r(722),r(135),r(72),r(96),r(50),r(51),r(42),r(229),r(14)),i=r(22),o=r(21),s=r(8),l=r(19),u=r(16),c=r(23),d=r(13);!function(){var t=r(1).enterModule;t&&t(e)}();var f="app/models/INIT_END",p="app/models/SITE_ADD",h="app/models/SITE_UPDATE",E="app/models/SITE_DELETE",m="app/models/COLLABORATION_ADD",g="app/models/COLLABORATION_UPDATE",b="app/models/COLLABORATION_DELETE",v="app/models/COLLABORATION_SELF_DELETE",O="app/models/MODEL_ADD",M="app/models/MODEL_UPDATE",C="app/models/MODEL_DELETE",P="app/models/FIELD_ADD",D="app/models/FIELD_UPDATE",y="app/models/FIELD_DELETE",w="app/models/SET_CURRENT_SITE",T="app/models/SET_CURRENT_MODEL";function A(e,t){return Object(d.a)(new a.Parse.Query(s.D.OriginClass).find()).then(function(r){Array.prototype.push.apply(e,r);var n=!0,_=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var l=i.value;t.push((new s.D).setOrigin(l))}}catch(e){_=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(_)throw a}}})}function I(e){return Object(d.a)(new a.Parse.Query(o.a.OriginClass).equalTo("user",a.Parse.User.current()).find()).then(function(t){var r=!0,n=!1,_=void 0;try{for(var i,o=t[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;e.push(s.get("site"))}}catch(e){n=!0,_=e}finally{try{r||null==o.return||o.return()}finally{if(n)throw _}}return Object(d.a)(a.Parse.Object.fetchAllIfNeeded(e))})}function k(){return Object(d.a)(new a.Parse.Query(s.C.OriginClass).equalTo("owner",a.Parse.User.current()).find())}function R(e,t){return Object(d.a)(new a.Parse.Query(o.a.OriginClass).containedIn("site",e).find()).then(function(e){var r=[],n=!0,_=!1,a=void 0;try{for(var i,s=function(){var e=i.value,n=(new o.a).setOrigin(e),_=e.get("user");_&&r.push(Object(d.a)(_.fetch()).then(function(e){return n.user=(new o.f).setOrigin(e)}).catch(function(){}));var a=e.get("site"),s=!0,l=!1,u=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if(p.origin.id==a.id){n.site=p,p.collaborations.push(n);break}}}catch(e){l=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw u}}},l=e[Symbol.iterator]();!(n=(i=l.next()).done);n=!0)s()}catch(e){_=!0,a=e}finally{try{n||null==l.return||l.return()}finally{if(_)throw a}}return Promise.all(r)})}function L(e,t,r,n,_,i){return Object(d.a)(new a.Parse.Query(s.A.OriginClass).containedIn("site",r).find()).then(function(t){Array.prototype.push.apply(_,t);var r=!0,o=!1,l=void 0;try{for(var u,c=t[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var f=u.value,p=(new s.A).setOrigin(f),h=f.get("site"),E=!0,m=!1,g=void 0;try{for(var b,v=n[Symbol.iterator]();!(E=(b=v.next()).done);E=!0){var O=b.value;if(O.origin.id==h.id){p.site=O,O.models.push(p),i.push(p);break}}}catch(e){m=!0,g=e}finally{try{E||null==v.return||v.return()}finally{if(m)throw g}}}}catch(e){o=!0,l=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw l}}return Object(d.a)(new a.Parse.Query(s.A.OriginClass).equalTo("site",void 0).containedIn("template",e).find())}).then(function(e){Array.prototype.push.apply(_,e);var r=!0,n=!1,a=void 0;try{for(var o,l=e[Symbol.iterator]();!(r=(o=l.next()).done);r=!0){var u=o.value,c=(new s.A).setOrigin(u),d=u.get("template"),f=!0,p=!1,h=void 0;try{for(var E,m=t[Symbol.iterator]();!(f=(E=m.next()).done);f=!0){var g=E.value;if(g.origin.id==d.id){c.template=g,g.models.push(c),i.push(c);break}}}catch(e){p=!0,h=e}finally{try{f||null==m.return||m.return()}finally{if(p)throw h}}}}catch(e){n=!0,a=e}finally{try{r||null==l.return||l.return()}finally{if(n)throw a}}})}function B(e,t){return Object(d.a)(new a.Parse.Query(s.B.OriginClass).containedIn("model",e).find()).then(function(e){var r=!0,n=!1,_=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value,l=(new s.B).setOrigin(o),u=o.get("model"),c=!0,d=!1,f=void 0;try{for(var p,h=t[Symbol.iterator]();!(c=(p=h.next()).done);c=!0){var E=p.value;if(E.origin.id==u.id){l.model=E,E.fields.push(l);break}}}catch(e){d=!0,f=e}finally{try{c||null==h.return||h.return()}finally{if(d)throw f}}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}})}function U(){return function(e){var t=[],r=[],n=[],_=[],a=[],i=[];A(t,r).then(I(n)).then(k).then(function(e){n=n.concat(e);var t=[],r=!0,a=!1,i=void 0;try{for(var l,u=function(){var e=l.value,r=(new s.C).setOrigin(e);t.push(Object(d.a)(e.get("owner").fetch()).then(function(e){return r.owner=(new o.f).setOrigin(e)})),_.push(r)},c=n[Symbol.iterator]();!(r=(l=c.next()).done);r=!0)u()}catch(e){a=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(a)throw i}}return Promise.all(t)}).then(function(){return Promise.all([R(n,_),L(t,r,n,_,a,i).then(function(){return B(a,i)}).then(function(){for(var e=0;et.order?1:-1})}})])}).then(function(){return e({type:f,templates:r,sites:_})})}}function S(e){if(!e)return{type:w,currentSite:null};var t=Object(u.x)(e);return{type:w,currentSite:e,role:t}}function K(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.owner=i.store.getState().user.userData;var r=Object(l.d)(e.name);if(r="".concat(e.owner.emailFiltered,"___").concat(r),e.nameId=Object(u.w)(r,i.store.getState().models.sites),e.updateOrigin(),e.origin.setACL(new a.Parse.ACL(e.owner.origin)),t){var n=!0,_=!1,o=void 0;try{for(var c,f=t.models[Symbol.iterator]();!(n=(c=f.next()).done);n=!0){var h=c.value,E=h.origin.clone(),m=(new s.A).setOrigin(E);m.site=e,m.setTableName(),e.models.push(m);var g=!0,b=!1,v=void 0;try{for(var O,M=h.fields[Symbol.iterator]();!(g=(O=M.next()).done);g=!0){var C=O.value.origin.clone(),P=(new s.B).setOrigin(C);P.model=m,m.fields.push(P)}}catch(e){b=!0,v=e}finally{try{g||null==M.return||M.return()}finally{if(b)throw v}}}}catch(e){_=!0,o=e}finally{try{n||null==f.return||f.return()}finally{if(_)throw o}}Object(d.a)(e.origin.save()).then(function(){var t=[],r=!0,n=!1,_=void 0;try{for(var a,i=e.models[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;o.updateOrigin(),t.push(Object(d.a)(o.origin.save()))}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}return Promise.all(t)}).then(function(){var t=[],r=!0,n=!1,_=void 0;try{for(var a,i=e.models[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value,s=!0,l=!1,u=void 0;try{for(var c,f=o.fields[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;p.updateOrigin(),t.push(Object(d.a)(p.origin.save()))}}catch(e){l=!0,u=e}finally{try{s||null==f.return||f.return()}finally{if(l)throw u}}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}return Promise.all(t)})}else Object(d.a)(e.origin.save());return{type:p,site:e}}function W(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:h}}function x(e){return Object(d.a)(a.Parse.Cloud.run("deleteSite",{siteId:e.origin.id})),{type:E,site:e}}function j(e,t){var r=new o.a;r.user=e,r.email=t;var n=i.store.getState().models.currentSite;return r.site=n,r.updateOrigin(),r.origin.setACL(new a.Parse.ACL(n.owner.origin)),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:r.origin.id}))}),{type:m,collab:r}}function N(e){var t=new o.a;t.email=e;var r=i.store.getState().models.currentSite;return t.site=r,t.updateOrigin(),t.origin.setACL(new a.Parse.ACL(r.owner.origin)),Object(d.a)(t.origin.save()),Object(d.a)(a.Parse.Cloud.run("inviteUser",{email:e,siteName:r.name})),{type:m,collab:t}}function q(e){return e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id}))}),{type:g,collab:e}}function F(e){return Object(d.a)(a.Parse.Cloud.run("onCollaborationModify",{collabId:e.origin.id,deleting:!0})).then(function(){return Object(d.a)(e.origin.destroy())}),{type:b,collab:e}}function V(e){return F(e),{type:v,collab:e}}function H(e){var t=i.store.getState().models.currentSite,r=new s.A;return r.name=e,r.nameId=Object(u.w)(e,t.models),r.color=Object(l.f)(),r.site=t,r.setTableName(),r.updateOrigin(),Object(d.a)(r.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onModelAdd",{modelId:r.origin.id}))}),{type:O,model:r}}function z(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:M,model:e}}function G(e){return{type:T,currentModel:e}}function Y(e){return Object(d.a)(a.Parse.Cloud.run("deleteModel",{modelId:e.origin.id})),{type:C,model:e}}function J(e){if(Object(s.F)(e)||(e.isTitle=!1),e.isTitle){var t=!0,r=!1,n=void 0;try{for(var _,a=e.model.fields[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){var i=_.value;i!=e&&i.isTitle&&(i.isTitle=!1,i.updateOrigin(),Object(d.a)(i.origin.save()))}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}}}function X(e){return e.color=Object(l.f)(),e.nameId=Object(u.w)(e.name,e.model.fields,s.q),e.order=e.model.fields.length,J(e),e.updateOrigin(),Object(d.a)(e.origin.save()).then(function(){return Object(d.a)(a.Parse.Cloud.run("onFieldAdd",{fieldId:e.origin.id}))}),Object(d.a)(e.model.origin.save()),{type:P,field:e}}function Q(e){return J(e),e.updateOrigin(),Object(d.a)(e.origin.save()),Object(d.a)(e.model.origin.save()),{type:D,field:e}}function $(e){return Object(d.a)(e.origin.destroy()),Object(d.a)(e.model.origin.save()),{type:y,field:e}}var Z={templates:[],sites:[],currentSite:null,currentModel:null,role:null};function ee(){var e,t,r,n,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,i=arguments.length>1?arguments[1]:void 0;switch(i.type){case f:return _()({},a,{templates:i.templates,sites:i.sites});case w:return _()({},a,{currentSite:i.currentSite,role:i.role});case T:return _()({},a,{currentModel:i.currentModel});case p:return(e=a.sites).push(i.site),_()({},a,{sites:e,currentSite:i.site});case E:return(e=a.sites).splice(e.indexOf(i.site),1),_()({},a,{sites:e,currentSite:null});case m:return(t=a.currentSite).collaborations.push(i.collab),_()({},a,{currentSite:t});case b:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),_()({},a,{currentSite:t});case v:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),(e=a.sites).splice(e.indexOf(t),1),_()({},a,{currentSite:e[0]});case O:return(t=a.currentSite).models.push(i.model),_()({},a,{currentSite:t});case C:var o=(t=a.currentSite).models;return o.splice(o.indexOf(i.model),1),_()({},a,{currentSite:t});case P:return(r=a.currentModel).fields.push(i.field),_()({},a,{currentModel:r});case y:var s=(r=a.currentModel).fields;return s.splice(s.indexOf(i.field),1),_()({},a,{currentModel:r});case h:case g:case M:return _()({},a);case D:return i.field.model.fields.sort(function(e,t){return e.order>t.order?1:-1}),_()({},a);case c.f:return _()({},a,{currentModel:null,currentSite:null,role:null});default:return a}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(p,"SITE_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(h,"SITE_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(E,"SITE_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(m,"COLLABORATION_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(g,"COLLABORATION_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(b,"COLLABORATION_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(v,"COLLABORATION_SELF_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(O,"MODEL_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(M,"MODEL_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(C,"MODEL_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(P,"FIELD_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(D,"FIELD_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(y,"FIELD_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(w,"SET_CURRENT_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(T,"SET_CURRENT_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(A,"requestTemplates","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(I,"requestCollaborationsPre","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(k,"requestUserSites","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(R,"requestCollaborationsPost","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(L,"requestModels","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(B,"requestFields","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(U,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(S,"setCurrentSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(K,"addSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(W,"updateSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(x,"deleteSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(j,"addCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(N,"addInviteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(q,"updateCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(F,"deleteCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(V,"deleteSelfCollaboration","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(H,"addModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(z,"updateModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(G,"setCurrentModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Y,"deleteModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(J,"checkNewTitle","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(X,"addField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Q,"updateField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register($,"deleteField","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(Z,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(ee,"modelsReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";var n=function(e){};e.exports=function(e,t,r,_,a,i,o,s){if(n(t),!e){var l;if(void 0===t)l=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[r,_,a,i,o,s],c=0;(l=new Error(t.replace(/%s/g,function(){return u[c++]}))).name="Invariant Violation"}throw l.framesToPop=1,l}}},function(e,t,r){var n=r(63).f,_=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in _||r(64)&&n(_,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,r){e.exports=function(){"use strict";var e=Array.prototype.slice;function t(e,t){t&&(e.prototype=Object.create(t.prototype)),e.prototype.constructor=e}function r(e){return i(e)?e:z(e)}function n(e){return o(e)?e:G(e)}function _(e){return s(e)?e:Y(e)}function a(e){return i(e)&&!l(e)?e:J(e)}function i(e){return!(!e||!e[c])}function o(e){return!(!e||!e[d])}function s(e){return!(!e||!e[f])}function l(e){return o(e)||s(e)}function u(e){return!(!e||!e[p])}t(n,r),t(_,r),t(a,r),r.isIterable=i,r.isKeyed=o,r.isIndexed=s,r.isAssociative=l,r.isOrdered=u,r.Keyed=n,r.Indexed=_,r.Set=a;var c="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",f="@@__IMMUTABLE_INDEXED__@@",p="@@__IMMUTABLE_ORDERED__@@",h=5,E=1<>>0;if(""+r!==t||4294967295===r)return NaN;t=r}return t<0?D(e)+t:t}function w(){return!0}function T(e,t,r){return(0===e||void 0!==r&&e<=-r)&&(void 0===t||void 0!==r&&t>=r)}function A(e,t){return k(e,t,0)}function I(e,t){return k(e,t,t)}function k(e,t,r){return void 0===e?r:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var R=0,L=1,B=2,U="function"==typeof Symbol&&Symbol.iterator,S="@@iterator",K=U||S;function W(e){this.next=e}function x(e,t,r,n){var _=0===e?t:1===e?r:[t,r];return n?n.value=_:n={value:_,done:!1},n}function j(){return{value:void 0,done:!0}}function N(e){return!!V(e)}function q(e){return e&&"function"==typeof e.next}function F(e){var t=V(e);return t&&t.call(e)}function V(e){var t=e&&(U&&e[U]||e[S]);if("function"==typeof t)return t}function H(e){return e&&"number"==typeof e.length}function z(e){return null===e||void 0===e?ae():i(e)?e.toSeq():function(e){var t=se(e)||"object"==typeof e&&new te(e);if(!t)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e);return t}(e)}function G(e){return null===e||void 0===e?ae().toKeyedSeq():i(e)?o(e)?e.toSeq():e.fromEntrySeq():ie(e)}function Y(e){return null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e.toIndexedSeq():oe(e)}function J(e){return(null===e||void 0===e?ae():i(e)?o(e)?e.entrySeq():e:oe(e)).toSetSeq()}W.prototype.toString=function(){return"[Iterator]"},W.KEYS=R,W.VALUES=L,W.ENTRIES=B,W.prototype.inspect=W.prototype.toSource=function(){return this.toString()},W.prototype[K]=function(){return this},t(z,r),z.of=function(){return z(arguments)},z.prototype.toSeq=function(){return this},z.prototype.toString=function(){return this.__toString("Seq {","}")},z.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},z.prototype.__iterate=function(e,t){return le(this,e,t,!0)},z.prototype.__iterator=function(e,t){return ue(this,e,t,!0)},t(G,z),G.prototype.toKeyedSeq=function(){return this},t(Y,z),Y.of=function(){return Y(arguments)},Y.prototype.toIndexedSeq=function(){return this},Y.prototype.toString=function(){return this.__toString("Seq [","]")},Y.prototype.__iterate=function(e,t){return le(this,e,t,!1)},Y.prototype.__iterator=function(e,t){return ue(this,e,t,!1)},t(J,z),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},z.isSeq=_e,z.Keyed=G,z.Set=J,z.Indexed=Y;var X,Q,$,Z="@@__IMMUTABLE_SEQ__@@";function ee(e){this._array=e,this.size=e.length}function te(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ne(e){this._iterator=e,this._iteratorCache=[]}function _e(e){return!(!e||!e[Z])}function ae(){return X||(X=new ee([]))}function ie(e){var t=Array.isArray(e)?new ee(e).fromEntrySeq():q(e)?new ne(e).fromEntrySeq():N(e)?new re(e).fromEntrySeq():"object"==typeof e?new te(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function oe(e){var t=se(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function se(e){return H(e)?new ee(e):q(e)?new ne(e):N(e)?new re(e):void 0}function le(e,t,r,n){var _=e._cache;if(_){for(var a=_.length-1,i=0;i<=a;i++){var o=_[r?a-i:i];if(!1===t(o[1],n?o[0]:i,e))return i+1}return i}return e.__iterateUncached(t,r)}function ue(e,t,r,n){var _=e._cache;if(_){var a=_.length-1,i=0;return new W(function(){var e=_[r?a-i:i];return i++>a?{value:void 0,done:!0}:x(t,n?e[0]:i-1,e[1])})}return e.__iteratorUncached(t,r)}function ce(e,t){return t?function e(t,r,n,_){return Array.isArray(r)?t.call(_,n,Y(r).map(function(n,_){return e(t,n,_,r)})):fe(r)?t.call(_,n,G(r).map(function(n,_){return e(t,n,_,r)})):r}(t,e,"",{"":e}):de(e)}function de(e){return Array.isArray(e)?Y(e).map(de).toList():fe(e)?G(e).map(de).toMap():e}function fe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function pe(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function he(e,t){if(e===t)return!0;if(!i(t)||void 0!==e.size&&void 0!==t.size&&e.size!==t.size||void 0!==e.__hash&&void 0!==t.__hash&&e.__hash!==t.__hash||o(e)!==o(t)||s(e)!==s(t)||u(e)!==u(t))return!1;if(0===e.size&&0===t.size)return!0;var r=!l(e);if(u(e)){var n=e.entries();return t.every(function(e,t){var _=n.next().value;return _&&pe(_[1],e)&&(r||pe(_[0],t))})&&n.next().done}var _=!1;if(void 0===e.size)if(void 0===t.size)"function"==typeof e.cacheResult&&e.cacheResult();else{_=!0;var a=e;e=t,t=a}var c=!0,d=t.__iterate(function(t,n){if(r?!e.has(t):_?!pe(t,e.get(n,g)):!pe(e.get(n,g),t))return c=!1,!1});return c&&e.size===d}function Ee(e,t){if(!(this instanceof Ee))return new Ee(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function me(e,t){if(!e)throw new Error(t)}function ge(e,t,r){if(!(this instanceof ge))return new ge(e,t,r);if(me(0!==r,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),r=void 0===r?1:Math.abs(r),tn?{value:void 0,done:!0}:x(e,_,r[t?n-_++:_++])})},t(te,G),te.prototype.get=function(e,t){return void 0===t||this.has(e)?this._object[e]:t},te.prototype.has=function(e){return this._object.hasOwnProperty(e)},te.prototype.__iterate=function(e,t){for(var r=this._object,n=this._keys,_=n.length-1,a=0;a<=_;a++){var i=n[t?_-a:a];if(!1===e(r[i],i,this))return a+1}return a},te.prototype.__iterator=function(e,t){var r=this._object,n=this._keys,_=n.length-1,a=0;return new W(function(){var i=n[t?_-a:a];return a++>_?{value:void 0,done:!0}:x(e,i,r[i])})},te.prototype[p]=!0,t(re,Y),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var r=this._iterable,n=F(r),_=0;if(q(n))for(var a;!(a=n.next()).done&&!1!==e(a.value,_++,this););return _},re.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterable,n=F(r);if(!q(n))return new W(j);var _=0;return new W(function(){var t=n.next();return t.done?t:x(e,_++,t.value)})},t(ne,Y),ne.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var r,n=this._iterator,_=this._iteratorCache,a=0;a<_.length;)if(!1===e(_[a],a++,this))return a;for(;!(r=n.next()).done;){var i=r.value;if(_[a]=i,!1===e(i,a++,this))break}return a},ne.prototype.__iteratorUncached=function(e,t){if(t)return this.cacheResult().__iterator(e,t);var r=this._iterator,n=this._iteratorCache,_=0;return new W(function(){if(_>=n.length){var t=r.next();if(t.done)return t;n[_]=t.value}return x(e,_,n[_++])})},t(Ee,Y),Ee.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},Ee.prototype.get=function(e,t){return this.has(e)?this._value:t},Ee.prototype.includes=function(e){return pe(this._value,e)},Ee.prototype.slice=function(e,t){var r=this.size;return T(e,t,r)?this:new Ee(this._value,I(t,r)-A(e,r))},Ee.prototype.reverse=function(){return this},Ee.prototype.indexOf=function(e){return pe(this._value,e)?0:-1},Ee.prototype.lastIndexOf=function(e){return pe(this._value,e)?this.size:-1},Ee.prototype.__iterate=function(e,t){for(var r=0;r1?" by "+this._step:"")+" ]"},ge.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},ge.prototype.includes=function(e){var t=(e-this._start)/this._step;return t>=0&&t=0&&rr?{value:void 0,done:!0}:x(e,a++,i)})},ge.prototype.equals=function(e){return e instanceof ge?this._start===e._start&&this._end===e._end&&this._step===e._step:he(this,e)},t(be,r),t(ve,be),t(Oe,be),t(Me,be),be.Keyed=ve,be.Indexed=Oe,be.Set=Me;var Ce="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(e,t){var r=65535&(e|=0),n=65535&(t|=0);return r*n+((e>>>16)*n+r*(t>>>16)<<16>>>0)|0};function Pe(e){return e>>>1&1073741824|3221225471&e}function De(e){if(!1===e||null===e||void 0===e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null===e||void 0===e))return 0;if(!0===e)return 1;var t=typeof e;if("number"===t){var r=0|e;for(r!==e&&(r^=4294967295*e);e>4294967295;)r^=e/=4294967295;return Pe(r)}if("string"===t)return e.length>Le?function(e){var t=Se[e];return void 0===t&&(t=ye(e),Ue===Be&&(Ue=0,Se={}),Ue++,Se[e]=t),t}(e):ye(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===t)return function(e){var t;if(Ie&&void 0!==(t=we.get(e)))return t;if(void 0!==(t=e[Re]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Re]))return t;if(void 0!==(t=function(e){if(e&&e.nodeType>0)switch(e.nodeType){case 1:return e.uniqueID;case 9:return e.documentElement&&e.documentElement.uniqueID}}(e)))return t}if(t=++ke,1073741824&ke&&(ke=0),Ie)we.set(e,t);else{if(void 0!==Te&&!1===Te(e))throw new Error("Non-extensible objects are not allowed as keys.");if(Ae)Object.defineProperty(e,Re,{enumerable:!1,configurable:!1,writable:!1,value:t});else if(void 0!==e.propertyIsEnumerable&&e.propertyIsEnumerable===e.constructor.prototype.propertyIsEnumerable)e.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},e.propertyIsEnumerable[Re]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Re]=t}}return t}(e);if("function"==typeof e.toString)return ye(e.toString());throw new Error("Value type "+t+" cannot be hashed.")}function ye(e){for(var t=0,r=0;r>>r)&m,o=(0===r?n:n>>>r)&m,s=i===o?[rt(e,t,r+h,n,_)]:(a=new Ge(t,n,_),i>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function st(e,t,r,n){var _=n?e:P(e);return _[t]=r,_}qe[Ne]=!0,qe.delete=qe.remove,qe.removeIn=qe.deleteIn,Fe.prototype.get=function(e,t,r,n){for(var _=this.entries,a=0,i=_.length;a=lt)return function(e,t,r,n){e||(e=new C);for(var _=new Ge(e,De(r),[r,n]),a=0;a>>e)&m),a=this.bitmap;return 0==(a&_)?n:this.nodes[ot(a&_-1)].get(e+h,t,r,n)},Ve.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=1<=ut)return function(e,t,r,n,_){for(var a=0,i=new Array(E),o=0;0!==r;o++,r>>>=1)i[o]=1&r?t[a++]:void 0;return i[n]=_,new He(e,a+1,i)}(e,d,l,o,p);if(u&&!p&&2===d.length&&tt(d[1^c]))return d[1^c];if(u&&p&&1===d.length&&tt(p))return p;var b=e&&e===this.ownerID,v=u?p?l:l^s:l|s,O=u?p?st(d,c,p,b):function(e,t,r){var n=e.length-1;if(r&&t===n)return e.pop(),e;for(var _=new Array(n),a=0,i=0;i>>e)&m,a=this.nodes[_];return a?a.get(e+h,t,r,n):n},He.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=_===g,l=this.nodes,u=l[o];if(s&&!u)return this;var c=et(u,e,t+h,r,n,_,a,i);if(c===u)return this;var d=this.count;if(u){if(!c&&--d0&&n=0&&e=e.size||t<0)return e.withMutations(function(e){t<0?yt(e,t).set(0,r):yt(e,0,t+1).set(t,r)});t+=e._origin;var n=e._tail,_=e._root,a=O(v);return t>=Tt(e._capacity)?n=Ct(n,e.__ownerID,0,t,r,a):_=Ct(_,e.__ownerID,e._level,t,r,a),a.value?e.__ownerID?(e._root=_,e._tail=n,e.__hash=void 0,e.__altered=!0,e):Ot(e._origin,e._capacity,e._level,_,n):e}(this,e,t)},dt.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},dt.prototype.insert=function(e,t){return this.splice(e,0,t)},dt.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=h,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):Mt()},dt.prototype.push=function(){var e=arguments,t=this.size;return this.withMutations(function(r){yt(r,0,t+e.length);for(var n=0;n>>t&m;if(n>=this.array.length)return new Et([],e);var _,a=0===n;if(t>0){var i=this.array[n];if((_=i&&i.removeBefore(e,t-h,r))===i&&a)return this}if(a&&!_)return this;var o=Pt(this,e);if(!a)for(var s=0;s>>t&m;if(_>=this.array.length)return this;if(t>0){var a=this.array[_];if((n=a&&a.removeAfter(e,t-h,r))===a&&_===this.array.length-1)return this}var i=Pt(this,e);return i.array.splice(_+1),n&&(i.array[_]=n),i};var mt,gt,bt={};function vt(e,t){var r=e._origin,n=e._capacity,_=Tt(n),a=e._tail;return i(e._root,e._level,0);function i(e,o,s){return 0===o?function(e,i){var o=i===_?a&&a.array:e&&e.array,s=i>r?0:r-i,l=n-i;return l>E&&(l=E),function(){if(s===l)return bt;var e=t?--l:s++;return o&&o[e]}}(e,s):function(e,_,a){var o,s=e&&e.array,l=a>r?0:r-a>>_,u=1+(n-a>>_);return u>E&&(u=E),function(){for(;;){if(o){var e=o();if(e!==bt)return e;o=null}if(l===u)return bt;var r=t?--u:l++;o=i(s&&s[r],_-h,a+(r<<_))}}}(e,o,s)}}function Ot(e,t,r,n,_,a,i){var o=Object.create(ht);return o.size=t-e,o._origin=e,o._capacity=t,o._level=r,o._root=n,o._tail=_,o.__ownerID=a,o.__hash=i,o.__altered=!1,o}function Mt(){return mt||(mt=Ot(0,0,h))}function Ct(e,t,r,n,_,a){var i,o=n>>>r&m,s=e&&o0){var l=e&&e.array[o],u=Ct(l,t,r-h,n,_,a);return u===l?e:((i=Pt(e,t)).array[o]=u,i)}return s&&e.array[o]===_?e:(M(a),i=Pt(e,t),void 0===_&&o===i.array.length-1?i.array.pop():i.array[o]=_,i)}function Pt(e,t){return t&&e&&t===e.ownerID?e:new Et(e?e.array.slice():[],t)}function Dt(e,t){if(t>=Tt(e._capacity))return e._tail;if(t<1<0;)r=r.array[t>>>n&m],n-=h;return r}}function yt(e,t,r){void 0!==t&&(t|=0),void 0!==r&&(r|=0);var n=e.__ownerID||new C,_=e._origin,a=e._capacity,i=_+t,o=void 0===r?a:r<0?a+r:_+r;if(i===_&&o===a)return e;if(i>=o)return e.clear();for(var s=e._level,l=e._root,u=0;i+u<0;)l=new Et(l&&l.array.length?[void 0,l]:[],n),u+=1<<(s+=h);u&&(i+=u,_+=u,o+=u,a+=u);for(var c=Tt(a),d=Tt(o);d>=1<c?new Et([],n):f;if(f&&d>c&&ih;g-=h){var b=c>>>g&m;E=E.array[b]=Pt(E.array[b],n)}E.array[c>>>h&m]=f}if(o=d)i-=d,o-=d,s=h,l=null,p=p&&p.removeBefore(n,0,i);else if(i>_||d>>s&m;if(v!==d>>>s&m)break;v&&(u+=(1<_&&(l=l.removeBefore(n,s,i-u)),l&&da&&(a=l.size),i(s)||(l=l.map(function(e){return ce(e)})),n.push(l)}return a>e.size&&(e=e.setSize(a)),it(e,t,n)}function Tt(e){return e>>h<=E&&i.size>=2*a.size?(_=i.filter(function(e,t){return void 0!==e&&o!==t}),n=_.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(n.__ownerID=_.__ownerID=e.__ownerID)):(n=a.remove(t),_=o===i.size-1?i.pop():i.set(o,void 0))}else if(s){if(r===i.get(o)[1])return e;n=a,_=i.set(o,[t,r])}else n=a.set(t,i.size),_=i.set(i.size,[t,r]);return e.__ownerID?(e.size=n.size,e._map=n,e._list=_,e.__hash=void 0,e):kt(n,_)}function Bt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function Ut(e){this._iter=e,this.size=e.size}function St(e){this._iter=e,this.size=e.size}function Kt(e){this._iter=e,this.size=e.size}function Wt(e){var t=Zt(e);return t._iter=e,t.size=e.size,t.flip=function(){return e},t.reverse=function(){var t=e.reverse.apply(this);return t.flip=function(){return e.reverse()},t},t.has=function(t){return e.includes(t)},t.includes=function(t){return e.has(t)},t.cacheResult=er,t.__iterateUncached=function(t,r){var n=this;return e.__iterate(function(e,r){return!1!==t(r,e,n)},r)},t.__iteratorUncached=function(t,r){if(t===B){var n=e.__iterator(t,r);return new W(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})}return e.__iterator(t===L?R:L,r)},t}function xt(e,t,r){var n=Zt(e);return n.size=e.size,n.has=function(t){return e.has(t)},n.get=function(n,_){var a=e.get(n,g);return a===g?_:t.call(r,a,n,e)},n.__iterateUncached=function(n,_){var a=this;return e.__iterate(function(e,_,i){return!1!==n(t.call(r,e,_,i),_,a)},_)},n.__iteratorUncached=function(n,_){var a=e.__iterator(B,_);return new W(function(){var _=a.next();if(_.done)return _;var i=_.value,o=i[0];return x(n,o,t.call(r,i[1],o,e),_)})},n}function jt(e,t){var r=Zt(e);return r._iter=e,r.size=e.size,r.reverse=function(){return e},e.flip&&(r.flip=function(){var t=Wt(e);return t.reverse=function(){return e.flip()},t}),r.get=function(r,n){return e.get(t?r:-1-r,n)},r.has=function(r){return e.has(t?r:-1-r)},r.includes=function(t){return e.includes(t)},r.cacheResult=er,r.__iterate=function(t,r){var n=this;return e.__iterate(function(e,r){return t(e,r,n)},!r)},r.__iterator=function(t,r){return e.__iterator(t,!r)},r}function Nt(e,t,r,n){var _=Zt(e);return n&&(_.has=function(n){var _=e.get(n,g);return _!==g&&!!t.call(r,_,n,e)},_.get=function(n,_){var a=e.get(n,g);return a!==g&&t.call(r,a,n,e)?a:_}),_.__iterateUncached=function(_,a){var i=this,o=0;return e.__iterate(function(e,a,s){if(t.call(r,e,a,s))return o++,_(e,n?a:o-1,i)},a),o},_.__iteratorUncached=function(_,a){var i=e.__iterator(B,a),o=0;return new W(function(){for(;;){var a=i.next();if(a.done)return a;var s=a.value,l=s[0],u=s[1];if(t.call(r,u,l,e))return x(_,n?l:o++,u,a)}})},_}function qt(e,t,r,n){var _=e.size;if(void 0!==t&&(t|=0),void 0!==r&&(r|=0),T(t,r,_))return e;var a=A(t,_),i=I(r,_);if(a!=a||i!=i)return qt(e.toSeq().cacheResult(),t,r,n);var o,s=i-a;s==s&&(o=s<0?0:s);var l=Zt(e);return l.size=0===o?o:e.size&&o||void 0,!n&&_e(e)&&o>=0&&(l.get=function(t,r){return(t=y(this,t))>=0&&to)return{value:void 0,done:!0};var e=_.next();return n||t===L?e:x(t,s-1,t===R?void 0:e.value[1],e)})},l}function Ft(e,t,r,n){var _=Zt(e);return _.__iterateUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterate(_,a);var o=!0,s=0;return e.__iterate(function(e,a,l){if(!o||!(o=t.call(r,e,a,l)))return s++,_(e,n?a:s-1,i)}),s},_.__iteratorUncached=function(_,a){var i=this;if(a)return this.cacheResult().__iterator(_,a);var o=e.__iterator(B,a),s=!0,l=0;return new W(function(){var e,a,u;do{if((e=o.next()).done)return n||_===L?e:x(_,l++,_===R?void 0:e.value[1],e);var c=e.value;a=c[0],u=c[1],s&&(s=t.call(r,u,a,i))}while(s);return _===B?e:x(_,a,u,e)})},_}function Vt(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=0,o=!1;return function e(s,l){var u=this;s.__iterate(function(_,s){return(!t||l0}function Yt(e,t,n){var _=Zt(e);return _.size=new ee(n).map(function(e){return e.size}).min(),_.__iterate=function(e,t){for(var r,n=this.__iterator(L,t),_=0;!(r=n.next()).done&&!1!==e(r.value,_++,this););return _},_.__iteratorUncached=function(e,_){var a=n.map(function(e){return e=r(e),F(_?e.reverse():e)}),i=0,o=!1;return new W(function(){var r;return o||(r=a.map(function(e){return e.next()}),o=r.some(function(e){return e.done})),o?{value:void 0,done:!0}:x(e,i++,t.apply(null,r.map(function(e){return e.value})))})},_}function Jt(e,t){return _e(e)?t:e.constructor(t)}function Xt(e){if(e!==Object(e))throw new TypeError("Expected [K, V] tuple: "+e)}function Qt(e){return Ke(e.size),D(e)}function $t(e){return o(e)?n:s(e)?_:a}function Zt(e){return Object.create((o(e)?G:s(e)?Y:J).prototype)}function er(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):z.prototype.cacheResult.call(this)}function tr(e,t){return e>t?1:e=0;r--)t={value:arguments[r],next:t};return this.__ownerID?(this.size=e,this._head=t,this.__hash=void 0,this.__altered=!0,this):yr(e,t)},Or.prototype.pushAll=function(e){if(0===(e=_(e)).size)return this;Ke(e.size);var t=this.size,r=this._head;return e.reverse().forEach(function(e){t++,r={value:e,next:r}}),this.__ownerID?(this.size=t,this._head=r,this.__hash=void 0,this.__altered=!0,this):yr(t,r)},Or.prototype.pop=function(){return this.slice(1)},Or.prototype.unshift=function(){return this.push.apply(this,arguments)},Or.prototype.unshiftAll=function(e){return this.pushAll(e)},Or.prototype.shift=function(){return this.pop.apply(this,arguments)},Or.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):wr()},Or.prototype.slice=function(e,t){if(T(e,t,this.size))return this;var r=A(e,this.size),n=I(t,this.size);if(n!==this.size)return Oe.prototype.slice.call(this,e,t);for(var _=this.size-r,a=this._head;r--;)a=a.next;return this.__ownerID?(this.size=_,this._head=a,this.__hash=void 0,this.__altered=!0,this):yr(_,a)},Or.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?yr(this.size,this._head,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},Or.prototype.__iterate=function(e,t){if(t)return this.reverse().__iterate(e);for(var r=0,n=this._head;n&&!1!==e(n.value,r++,this);)n=n.next;return r},Or.prototype.__iterator=function(e,t){if(t)return this.reverse().__iterator(e);var r=0,n=this._head;return new W(function(){if(n){var t=n.value;return n=n.next,x(e,r++,t)}return{value:void 0,done:!0}})},Or.isStack=Mr;var Cr,Pr="@@__IMMUTABLE_STACK__@@",Dr=Or.prototype;function yr(e,t,r,n){var _=Object.create(Dr);return _.size=e,_._head=t,_.__ownerID=r,_.__hash=n,_.__altered=!1,_}function wr(){return Cr||(Cr=yr(0))}function Tr(e,t){var r=function(r){e.prototype[r]=t[r]};return Object.keys(t).forEach(r),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(t).forEach(r),e}Dr[Pr]=!0,Dr.withMutations=qe.withMutations,Dr.asMutable=qe.asMutable,Dr.asImmutable=qe.asImmutable,Dr.wasAltered=qe.wasAltered,r.Iterator=W,Tr(r,{toArray:function(){Ke(this.size);var e=new Array(this.size||0);return this.valueSeq().__iterate(function(t,r){e[r]=t}),e},toIndexedSeq:function(){return new Ut(this)},toJS:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJS?e.toJS():e}).__toJS()},toJSON:function(){return this.toSeq().map(function(e){return e&&"function"==typeof e.toJSON?e.toJSON():e}).__toJS()},toKeyedSeq:function(){return new Bt(this,!0)},toMap:function(){return We(this.toKeyedSeq())},toObject:function(){Ke(this.size);var e={};return this.__iterate(function(t,r){e[r]=t}),e},toOrderedMap:function(){return At(this.toKeyedSeq())},toOrderedSet:function(){return hr(o(this)?this.valueSeq():this)},toSet:function(){return or(o(this)?this.valueSeq():this)},toSetSeq:function(){return new St(this)},toSeq:function(){return s(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Or(o(this)?this.valueSeq():this)},toList:function(){return dt(o(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(e,t){return 0===this.size?e+t:e+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+t},concat:function(){var t=e.call(arguments,0);return Jt(this,function(e,t){var r=o(e),_=[e].concat(t).map(function(e){return i(e)?r&&(e=n(e)):e=r?ie(e):oe(Array.isArray(e)?e:[e]),e}).filter(function(e){return 0!==e.size});if(0===_.length)return e;if(1===_.length){var a=_[0];if(a===e||r&&o(a)||s(e)&&s(a))return a}var l=new ee(_);return r?l=l.toKeyedSeq():s(e)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=_.reduce(function(e,t){if(void 0!==e){var r=t.size;if(void 0!==r)return e+r}},0),l}(this,t))},includes:function(e){return this.some(function(t){return pe(t,e)})},entries:function(){return this.__iterator(B)},every:function(e,t){Ke(this.size);var r=!0;return this.__iterate(function(n,_,a){if(!e.call(t,n,_,a))return r=!1,!1}),r},filter:function(e,t){return Jt(this,Nt(this,e,t,!0))},find:function(e,t,r){var n=this.findEntry(e,t);return n?n[1]:r},findEntry:function(e,t){var r;return this.__iterate(function(n,_,a){if(e.call(t,n,_,a))return r=[_,n],!1}),r},findLastEntry:function(e,t){return this.toSeq().reverse().findEntry(e,t)},forEach:function(e,t){return Ke(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Ke(this.size),e=void 0!==e?""+e:",";var t="",r=!0;return this.__iterate(function(n){r?r=!1:t+=e,t+=null!==n&&void 0!==n?n.toString():""}),t},keys:function(){return this.__iterator(R)},map:function(e,t){return Jt(this,xt(this,e,t))},reduce:function(e,t,r){var n,_;return Ke(this.size),arguments.length<2?_=!0:n=t,this.__iterate(function(t,a,i){_?(_=!1,n=t):n=e.call(r,n,t,a,i)}),n},reduceRight:function(e,t,r){var n=this.toKeyedSeq().reverse();return n.reduce.apply(n,arguments)},reverse:function(){return Jt(this,jt(this,!0))},slice:function(e,t){return Jt(this,qt(this,e,t,!0))},some:function(e,t){return!this.every(Lr(e),t)},sort:function(e){return Jt(this,Ht(this,e))},values:function(){return this.__iterator(L)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some(function(){return!0})},count:function(e,t){return D(e?this.toSeq().filter(e,t):this)},countBy:function(e,t){return function(e,t,r){var n=We().asMutable();return e.__iterate(function(_,a){n.update(t.call(r,_,a,e),0,function(e){return e+1})}),n.asImmutable()}(this,e,t)},equals:function(e){return he(this,e)},entrySeq:function(){var e=this;if(e._cache)return new ee(e._cache);var t=e.toSeq().map(Rr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Lr(e),t)},findLast:function(e,t,r){return this.toKeyedSeq().reverse().find(e,t,r)},first:function(){return this.find(w)},flatMap:function(e,t){return Jt(this,function(e,t,r){var n=$t(e);return e.toSeq().map(function(_,a){return n(t.call(r,_,a,e))}).flatten(!0)}(this,e,t))},flatten:function(e){return Jt(this,Vt(this,e,!0))},fromEntrySeq:function(){return new Kt(this)},get:function(e,t){return this.find(function(t,r){return pe(r,e)},void 0,t)},getIn:function(e,t){for(var r,n=this,_=rr(e);!(r=_.next()).done;){var a=r.value;if((n=n&&n.get?n.get(a,g):g)===g)return t}return n},groupBy:function(e,t){return function(e,t,r){var n=o(e),_=(u(e)?At():We()).asMutable();e.__iterate(function(a,i){_.update(t.call(r,a,i,e),function(e){return(e=e||[]).push(n?[i,a]:a),e})});var a=$t(e);return _.map(function(t){return Jt(e,a(t))})}(this,e,t)},has:function(e){return this.get(e,g)!==g},hasIn:function(e){return this.getIn(e,g)!==g},isSubset:function(e){return e="function"==typeof e.includes?e:r(e),this.every(function(t){return e.includes(t)})},isSuperset:function(e){return(e="function"==typeof e.isSubset?e:r(e)).isSubset(this)},keySeq:function(){return this.toSeq().map(kr).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(e){return zt(this,e)},maxBy:function(e,t){return zt(this,t,e)},min:function(e){return zt(this,e?Br(e):Kr)},minBy:function(e,t){return zt(this,t?Br(t):Kr,e)},rest:function(){return this.slice(1)},skip:function(e){return this.slice(Math.max(0,e))},skipLast:function(e){return Jt(this,this.toSeq().reverse().skip(e).reverse())},skipWhile:function(e,t){return Jt(this,Ft(this,e,t,!0))},skipUntil:function(e,t){return this.skipWhile(Lr(e),t)},sortBy:function(e,t){return Jt(this,Ht(this,t,e))},take:function(e){return this.slice(0,Math.max(0,e))},takeLast:function(e){return Jt(this,this.toSeq().reverse().take(e).reverse())},takeWhile:function(e,t){return Jt(this,function(e,t,r){var n=Zt(e);return n.__iterateUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterate(n,_);var i=0;return e.__iterate(function(e,_,o){return t.call(r,e,_,o)&&++i&&n(e,_,a)}),i},n.__iteratorUncached=function(n,_){var a=this;if(_)return this.cacheResult().__iterator(n,_);var i=e.__iterator(B,_),o=!0;return new W(function(){if(!o)return{value:void 0,done:!0};var e=i.next();if(e.done)return e;var _=e.value,s=_[0],l=_[1];return t.call(r,l,s,a)?n===B?e:x(n,s,l,e):(o=!1,{value:void 0,done:!0})})},n}(this,e,t))},takeUntil:function(e,t){return this.takeWhile(Lr(e),t)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(e){if(e.size===1/0)return 0;var t=u(e),r=o(e),n=t?1:0;return function(e,t){return t=Ce(t,3432918353),t=Ce(t<<15|t>>>-15,461845907),t=Ce(t<<13|t>>>-13,5),t=Ce((t=(t+3864292196|0)^e)^t>>>16,2246822507),t=Pe((t=Ce(t^t>>>13,3266489909))^t>>>16)}(e.__iterate(r?t?function(e,t){n=31*n+Wr(De(e),De(t))|0}:function(e,t){n=n+Wr(De(e),De(t))|0}:t?function(e){n=31*n+De(e)|0}:function(e){n=n+De(e)|0}),n)}(this))}});var Ar=r.prototype;Ar[c]=!0,Ar[K]=Ar.values,Ar.__toJS=Ar.toArray,Ar.__toStringMapper=Ur,Ar.inspect=Ar.toSource=function(){return this.toString()},Ar.chain=Ar.flatMap,Ar.contains=Ar.includes,function(){try{Object.defineProperty(Ar,"length",{get:function(){if(!r.noLengthWarning){var e;try{throw new Error}catch(t){e=t.stack}if(-1===e.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+e),this.size}}})}catch(e){}}(),Tr(n,{flip:function(){return Jt(this,Wt(this))},findKey:function(e,t){var r=this.findEntry(e,t);return r&&r[0]},findLastKey:function(e,t){return this.toSeq().reverse().findKey(e,t)},keyOf:function(e){return this.findKey(function(t){return pe(t,e)})},lastKeyOf:function(e){return this.findLastKey(function(t){return pe(t,e)})},mapEntries:function(e,t){var r=this,n=0;return Jt(this,this.toSeq().map(function(_,a){return e.call(t,[a,_],n++,r)}).fromEntrySeq())},mapKeys:function(e,t){var r=this;return Jt(this,this.toSeq().flip().map(function(n,_){return e.call(t,n,_,r)}).flip())}});var Ir=n.prototype;function kr(e,t){return t}function Rr(e,t){return[t,e]}function Lr(e){return function(){return!e.apply(this,arguments)}}function Br(e){return function(){return-e.apply(this,arguments)}}function Ur(e){return"string"==typeof e?JSON.stringify(e):e}function Sr(){return P(arguments)}function Kr(e,t){return et?-1:0}function Wr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Ir[d]=!0,Ir[K]=Ar.entries,Ir.__toJS=Ar.toObject,Ir.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Ur(e)},Tr(_,{toKeyedSeq:function(){return new Bt(this,!1)},filter:function(e,t){return Jt(this,Nt(this,e,t,!1))},findIndex:function(e,t){var r=this.findEntry(e,t);return r?r[0]:-1},indexOf:function(e){var t=this.toKeyedSeq().keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.toKeyedSeq().reverse().keyOf(e);return void 0===t?-1:t},reverse:function(){return Jt(this,jt(this,!1))},slice:function(e,t){return Jt(this,qt(this,e,t,!1))},splice:function(e,t){var r=arguments.length;if(t=Math.max(0|t,0),0===r||2===r&&!t)return this;e=A(e,e<0?this.count():this.size);var n=this.slice(0,e);return Jt(this,1===r?n:n.concat(P(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var r=this.toKeyedSeq().findLastKey(e,t);return void 0===r?-1:r},first:function(){return this.get(0)},flatten:function(e){return Jt(this,Vt(this,e,!1))},get:function(e,t){return(e=y(this,e))<0||this.size===1/0||void 0!==this.size&&e>this.size?t:this.find(function(t,r){return r===e},void 0,t)},has:function(e){return(e=y(this,e))>=0&&(void 0!==this.size?this.size===1/0||e0)return _.getInlineStyleAt(n-1);if(_.getLength())return _.getInlineStyleAt(0);return E(e,r)}(t,r):function(e,t){var r=t.getStartKey(),n=t.getStartOffset(),_=e.getBlockForKey(r);if(n<_.getLength())return _.getInlineStyleAt(n);if(n>0)return _.getInlineStyleAt(n-1);return E(e,r)}(t,r)},e.prototype.getBlockTree=function(e){return this.getImmutable().getIn(["treeMap",e])},e.prototype.isSelectionAtStartOfContent=function(){var e=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(e,0,0)},e.prototype.isSelectionAtEndOfContent=function(){var e=this.getCurrentContent().getBlockMap().last(),t=e.getLength();return this.getSelection().hasEdgeWithin(e.getKey(),t,t)},e.prototype.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(e,t){return p(e,t,!1)},e.forceSelection=function(e,t){return t.getHasFocus()||(t=t.set("hasFocus",!0)),p(e,t,!0)},e.moveSelectionToEnd=function(t){var r=t.getCurrentContent().getLastBlock(),n=r.getKey(),_=r.getLength();return e.acceptSelection(t,new s({anchorKey:n,anchorOffset:_,focusKey:n,focusOffset:_,isBackward:!1}))},e.moveFocusToEnd=function(t){var r=e.moveSelectionToEnd(t);return e.forceSelection(r,r.getSelection())},e.push=function(t,r,n){if(t.getCurrentContent()===r)return t;var _="insert-characters"!==n,a=i.getDirectionMap(r,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:r,directionMap:a,lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:null});var o=t.getSelection(),s=t.getCurrentContent(),l=t.getUndoStack(),u=r;o!==s.getSelectionAfter()||function(e,t){var r=e.getLastChangeType();return t!==r||"insert-characters"!==t&&"backspace-character"!==t&&"delete-character"!==t}(t,n)?(l=l.push(s),u=u.set("selectionBefore",o)):"insert-characters"!==n&&"backspace-character"!==n&&"delete-character"!==n||(u=u.set("selectionBefore",s.getSelectionBefore()));var d=t.getInlineStyleOverride();-1===["adjust-depth","change-block-type","split-block"].indexOf(n)&&(d=null);var f={currentContent:u,directionMap:a,undoStack:l,redoStack:c(),lastChangeType:n,selection:r.getSelectionAfter(),forceSelection:_,inlineStyleOverride:d};return e.set(t,f)},e.undo=function(t){if(!t.getAllowUndo())return t;var r=t.getUndoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:r.shift(),redoStack:t.getRedoStack().push(_),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:_.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var r=t.getRedoStack(),n=r.peek();if(!n)return t;var _=t.getCurrentContent(),a=i.getDirectionMap(n,t.getDirectionMap());return e.set(t,{currentContent:n,directionMap:a,undoStack:t.getUndoStack().push(_),redoStack:r.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:n.getSelectionAfter()})},e.prototype.getImmutable=function(){return this._immutable},e}();function p(e,t,r){return f.set(e,{selection:t,forceSelection:r,nativelyRenderedContent:null,inlineStyleOverride:null})}function h(e,t){return e.getBlockMap().map(function(r){return _.generate(e,r,t)}).toOrderedMap()}function E(e,t){var r=e.getBlockMap().reverse().skipUntil(function(e,r){return r===t}).skip(1).skipUntil(function(e,t){return e.getLength()}).first();return r?r.getInlineStyleAt(r.getLength()-1):l()}e.exports=f},function(e,t,r){t.__esModule=!0,t.Helmet=void 0;var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}var f=function(e){var t,r;return r=t=function(t){function r(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,r),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}(this,t.apply(this,arguments))}return 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)}(r,t),r.prototype.shouldComponentUpdate=function(e){return!(0,s.default)(this.props,e)},r.prototype.mapNestedChildrenToProps=function(e,t){if(!t)return null;switch(e.type){case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.NOSCRIPT:return{innerHTML:t};case u.TAG_NAMES.STYLE:return{cssText:t}}throw new Error("<"+e.type+" /> elements are self-closing and can not contain children. Refer to our API for more information.")},r.prototype.flattenArrayTypeChildren=function(e){var t,r=e.child,_=e.arrayTypeChildren,a=e.newChildProps,i=e.nestedChildren;return n({},_,((t={})[r.type]=[].concat(_[r.type]||[],[n({},a,this.mapNestedChildrenToProps(r,i))]),t))},r.prototype.mapObjectTypeChildren=function(e){var t,r,_=e.child,a=e.newProps,i=e.newChildProps,o=e.nestedChildren;switch(_.type){case u.TAG_NAMES.TITLE:return n({},a,((t={})[_.type]=o,t.titleAttributes=n({},i),t));case u.TAG_NAMES.BODY:return n({},a,{bodyAttributes:n({},i)});case u.TAG_NAMES.HTML:return n({},a,{htmlAttributes:n({},i)})}return n({},a,((r={})[_.type]=n({},i),r))},r.prototype.mapArrayTypeChildrenToProps=function(e,t){var r=n({},t);return Object.keys(e).forEach(function(t){var _;r=n({},r,((_={})[t]=e[t],_))}),r},r.prototype.warnOnInvalidChildren=function(e,t){return!0},r.prototype.mapChildrenToProps=function(e,t){var r=this,n={};return a.default.Children.forEach(e,function(e){if(e&&e.props){var _=e.props,a=_.children,i=d(_,["children"]),o=(0,l.convertReactPropstoHtmlAttributes)(i);switch(r.warnOnInvalidChildren(e,a),e.type){case u.TAG_NAMES.LINK:case u.TAG_NAMES.META:case u.TAG_NAMES.NOSCRIPT:case u.TAG_NAMES.SCRIPT:case u.TAG_NAMES.STYLE:n=r.flattenArrayTypeChildren({child:e,arrayTypeChildren:n,newChildProps:o,nestedChildren:a});break;default:t=r.mapObjectTypeChildren({child:e,newProps:t,newChildProps:o,nestedChildren:a})}}}),t=this.mapArrayTypeChildrenToProps(n,t)},r.prototype.render=function(){var t=this.props,r=t.children,_=d(t,["children"]),i=n({},_);return r&&(i=this.mapChildrenToProps(r,i)),a.default.createElement(e,i)},_(r,null,[{key:"canUseDOM",set:function(t){e.canUseDOM=t}}]),r}(a.default.Component),t.propTypes={base:i.default.object,bodyAttributes:i.default.object,children:i.default.oneOfType([i.default.arrayOf(i.default.node),i.default.node]),defaultTitle:i.default.string,defer:i.default.bool,encodeSpecialCharacters:i.default.bool,htmlAttributes:i.default.object,link:i.default.arrayOf(i.default.object),meta:i.default.arrayOf(i.default.object),noscript:i.default.arrayOf(i.default.object),onChangeClientState:i.default.func,script:i.default.arrayOf(i.default.object),style:i.default.arrayOf(i.default.object),title:i.default.string,titleAttributes:i.default.object,titleTemplate:i.default.string},t.defaultProps={defer:!0,encodeSpecialCharacters:!0},t.peek=e.peek,t.rewind=function(){var t=e.rewind();return t||(t=(0,l.mapStateOnServer)({baseTag:[],bodyAttributes:{},encodeSpecialCharacters:!0,htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}})),t},r}((0,o.default)(l.reducePropsToState,l.handleClientStateChange,l.mapStateOnServer)(function(){return null}));f.renderStatic=f.rewind,t.Helmet=f,t.default=f},function(e,t,r){"use strict"; /* object-assign (c) Sindre Sorhus @license MIT -*/var n=Object.getOwnPropertySymbols,_=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,i,o=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s0&&void 0!==arguments[0]?arguments[0]:S,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case f:e=a.items,t=a.itemsDraft;var i=!0,o=!1,u=void 0;try{for(var d,P=e[Symbol.iterator]();!(i=(d=P.next()).done);i=!0){d.value.postInit(e)}}catch(e){o=!0,u=e}finally{try{i||null==P.return||P.return()}finally{if(o)throw u}}var D=!0,y=!1,w=void 0;try{for(var T,A=t[Symbol.iterator]();!(D=(T=A.next()).done);D=!0){T.value.postInit(e)}}catch(e){y=!0,w=e}finally{try{D||null==A.return||A.return()}finally{if(y)throw w}}var k=!0,I=!1,R=void 0;try{for(var L,B=t[Symbol.iterator]();!(k=(L=B.next()).done);k=!0){var U=L.value,K=U.origin.get("t__owner"),W=!0,x=!1,j=void 0;try{for(var N,q=e[Symbol.iterator]();!(W=(N=q.next()).done);W=!0){var F=N.value;if(F.origin.id==K.id){F.draft=U,U.owner=F;break}}}catch(e){x=!0,j=e}finally{try{W||null==q.return||q.return()}finally{if(x)throw j}}}}catch(e){I=!0,R=e}finally{try{k||null==B.return||B.return()}finally{if(I)throw R}}return _()({},n,{items:e,itemsDraft:t});case O:return _()({},n,{currentItem:a.currentItem});case p:return(e=n.items).push(a.item),_()({},n,{items:e});case h:case m:case g:case b:return _()({},n);case E:return a.isNewDraft?((t=n.itemsDraft).push(a.item.draft),_()({},n,{itemsDraft:t})):_()({},n);case v:var V=a.item;return e=n.items,t=n.itemsDraft,e.splice(e.indexOf(V),1),V.draft&&t.splice(t.indexOf(V.draft),1),_()({},n,{items:e,itemsDraft:t});case M:var H=n.filteredModels,z=new Set(H);return H.has(a.model)?z.delete(a.model):z.add(a.model),_()({},n,{filteredModels:z});case C:var G=n.filteredStatuses,Y=new Set(G);return G.has(a.status)?Y.delete(a.status):Y.add(a.status),_()({},n,{filteredStatuses:Y});case s.e:e=n.items,t=n.itemsDraft,r=Object(c.r)(a.model,e);var J=!0,X=!1,Q=void 0;try{for(var $,Z=r[Symbol.iterator]();!(J=($=Z.next()).done);J=!0){var ee=$.value;e.splice(e.indexOf(ee),1),ee.draft&&t.splice(t.indexOf(ee.draft),1)}}catch(e){X=!0,Q=e}finally{try{J||null==Z.return||Z.return()}finally{if(X)throw Q}}return _()({},n,{items:e,itemsDraft:t});case s.f:e=n.items,t=n.itemsDraft,r=Object(c.s)(a.site,e);var te=!0,re=!1,ne=void 0;try{for(var _e,ae=r[Symbol.iterator]();!(te=(_e=ae.next()).done);te=!0){var ie=_e.value;e.splice(e.indexOf(ie),1),ie.draft&&t.splice(t.indexOf(ie.draft),1)}}catch(e){re=!0,ne=e}finally{try{te||null==ae.return||ae.return()}finally{if(re)throw ne}}return _()({},n,{items:e,itemsDraft:t});case s.a:case s.c:case s.b:e=n.items,t=n.itemsDraft;var oe=a.field.model,se=!0,le=!1,ue=void 0;try{for(var ce,de=e[Symbol.iterator]();!(se=(ce=de.next()).done);se=!0){var fe=ce.value;fe.model==oe&&(fe.model=oe)}}catch(e){le=!0,ue=e}finally{try{se||null==de.return||de.return()}finally{if(le)throw ue}}var pe=!0,he=!1,Ee=void 0;try{for(var me,ge=t[Symbol.iterator]();!(pe=(me=ge.next()).done);pe=!0){var be=me.value;be.model==oe&&(be.model=oe)}}catch(e){he=!0,Ee=e}finally{try{pe||null==ge.return||ge.return()}finally{if(he)throw Ee}}return _()({},n,{items:e,itemsDraft:t});case l.f:return _()({},n,{currentItem:null});default:return n}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(p,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(h,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(E,"ITEM_PUBLISH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(m,"ITEM_DISCARD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(g,"ITEM_ARCHIVE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(b,"ITEM_RESTORE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(v,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(O,"SET_CURRENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(M,"FILTER_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(C,"FILTER_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(P,"requestContentItems","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(D,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(y,"addItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(w,"updateItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(T,"publishItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(A,"discardItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(k,"archiveItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(I,"restoreItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(R,"setCurrentItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(L,"deleteItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(B,"filterModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(U,"filterStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(S,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(K,"contentReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),n(e))}()}).call(this,r(12)(e))},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=n=function(e){return r(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},n(t)}e.exports=n},function(e,t){var r=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=r)},function(e,t,r){for(var n=r(76),_=r(104),a=r(71),i=r(42),o=r(84),s=r(122),l=r(36),u=l("iterator"),c=l("toStringTag"),d=s.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=_(f),h=0;h-1)throw new Error("Cannot modify readonly attribute: "+o);r.unset?_[o]=new b.UnsetOp:n[o]instanceof b.Op?_[o]=n[o]:n[o]&&"object"===(0,a.default)(n[o])&&"string"==typeof n[o].__op?_[o]=(0,b.opFromJSON)(n[o]):"objectId"===o||"id"===o?"string"==typeof n[o]&&(this.id=n[o]):"ACL"!==o||"object"!==(0,a.default)(n[o])||n[o]instanceof p.default?_[o]=new b.SetOp(n[o]):_[o]=new b.SetOp(new p.default(n[o]))}var s=this.attributes,u={};for(var c in _)_[c]instanceof b.RelationOp?u[c]=_[c].applyTo(s[c],this,c):_[c]instanceof b.UnsetOp||(u[c]=_[c].applyTo(s[c]));if(!r.ignoreValidation){var d=this.validate(u);if(d)return"function"==typeof r.error&&r.error(this,d),!1}var f=this._getPendingOps(),h=f.length-1,E=l.default.getObjectStateController();for(var m in _){var g=_[m].mergeWith(f[h][m]);E.setPendingOp(this._getStateIdentifier(),m,g)}return this}},{key:"unset",value:function(e,t){return(t=t||{}).unset=!0,this.set(e,null,t)}},{key:"increment",value:function(e,t){if(void 0===t&&(t=1),"number"!=typeof t)throw new Error("Cannot increment by a non-numeric amount.");return this.set(e,new b.IncrementOp(t))}},{key:"add",value:function(e,t){return this.set(e,new b.AddOp([t]))}},{key:"addAll",value:function(e,t){return this.set(e,new b.AddOp(t))}},{key:"addUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp([t]))}},{key:"addAllUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp(t))}},{key:"remove",value:function(e,t){return this.set(e,new b.RemoveOp([t]))}},{key:"removeAll",value:function(e,t){return this.set(e,new b.RemoveOp(t))}},{key:"op",value:function(e){for(var t=this._getPendingOps(),r=t.length;r--;)if(t[r][e])return t[r][e]}},{key:"clone",value:function(){var e=new this.constructor;e.className||(e.className=this.className);var t=this.attributes;if("function"==typeof this.constructor.readOnlyAttributes){var r=this.constructor.readOnlyAttributes()||[],n={};for(var _ in t)r.indexOf(_)<0&&(n[_]=t[_]);t=n}return e.set&&e.set(t),e}},{key:"newInstance",value:function(){var e=new this.constructor;if(e.className||(e.className=this.className),e.id=this.id,A)return e;var t=l.default.getObjectStateController();return t&&t.duplicateState(this._getStateIdentifier(),e._getStateIdentifier()),e}},{key:"isNew",value:function(){return!this.id}},{key:"existed",value:function(){if(!this.id)return!1;var e=l.default.getObjectStateController().getState(this._getStateIdentifier());return!!e&&e.existed}},{key:"isValid",value:function(){return!this.validate(this.attributes)}},{key:"validate",value:function(e){if(e.hasOwnProperty("ACL")&&!(e.ACL instanceof p.default))return new E.default(E.default.OTHER_CAUSE,"ACL must be a Parse ACL.");for(var t in e)if(!/^[A-Za-z][0-9A-Za-z_]*$/.test(t))return new E.default(E.default.INVALID_KEY_NAME);return!1}},{key:"getACL",value:function(){var e=this.get("ACL");return e instanceof p.default?e:null}},{key:"setACL",value:function(e,t){return this.set("ACL",e,t)}},{key:"revert",value:function(){this._clearPendingOps()}},{key:"clear",value:function(){var e=this.attributes,t={},r=["createdAt","updatedAt"];for(var n in"function"==typeof this.constructor.readOnlyAttributes&&(r=r.concat(this.constructor.readOnlyAttributes())),e)r.indexOf(n)<0&&(t[n]=!0);return this.set(t,{unset:!0})}},{key:"fetch",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),e.hasOwnProperty("include")&&(t.include=[],Array.isArray(e.include)?e.include.forEach(function(e){Array.isArray(e)?t.include=t.include.concat(e):t.include.push(e)}):t.include.push(e.include)),l.default.getObjectController().fetch(this,!0,t)}},{key:"fetchWithInclude",value:function(e,t){return(t=t||{}).include=e,this.fetch(t)}},{key:"save",value:function(e,t,r){var n,_,i=this;if("object"===(0,a.default)(e)||void 0===e?(n=e,"object"===(0,a.default)(t)&&(_=t)):((n={})[e]=t,_=r),!_&&n&&(_={},"function"==typeof n.success&&(_.success=n.success,delete n.success),"function"==typeof n.error&&(_.error=n.error,delete n.error)),n){var o=this.validate(n);if(o)return _&&"function"==typeof _.error&&_.error(this,o),Promise.reject(o);this.set(n,_)}var s={};(_=_||{}).hasOwnProperty("useMasterKey")&&(s.useMasterKey=!!_.useMasterKey),_.hasOwnProperty("sessionToken")&&"string"==typeof _.sessionToken&&(s.sessionToken=_.sessionToken);var u=l.default.getObjectController(),c=(0,D.default)(this);return u.save(c,s).then(function(){return u.save(i,s)})}},{key:"destroy",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),this.id?l.default.getObjectController().destroy(this,t):Promise.resolve()}},{key:"attributes",get:function(){var e=l.default.getObjectStateController();return Object.freeze(e.estimateAttributes(this._getStateIdentifier()))}},{key:"createdAt",get:function(){return this._getServerData().createdAt}},{key:"updatedAt",get:function(){return this._getServerData().updatedAt}}],[{key:"_clearAllState",value:function(){l.default.getObjectStateController().clearAllState()}},{key:"fetchAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),t.hasOwnProperty("include")&&(r.include=[],Array.isArray(t.include)?t.include.forEach(function(e){Array.isArray(e)?r.include=r.include.concat(e):r.include.push(e)}):r.include.push(t.include)),l.default.getObjectController().fetch(e,!0,r)}},{key:"fetchAllWithInclude",value:function(t,r,n){return(n=n||{}).include=r,e.fetchAll(t,n)}},{key:"fetchAllIfNeeded",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().fetch(e,!1,r)}},{key:"destroyAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().destroy(e,r)}},{key:"saveAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().save(e,r)}},{key:"createWithoutData",value:function(e){var t=new this;return t.id=e,t}},{key:"fromJSON",value:function(t,r){if(!t.className)throw new Error("Cannot create an object without a className");var n=y[t.className],_=n?new n:new e(t.className),a={};for(var i in t)"className"!==i&&"__type"!==i&&(a[i]=t[i]);if(r){a.objectId&&(_.id=a.objectId);var o=null;"function"==typeof _._preserveFieldsOnFetch&&(o=_._preserveFieldsOnFetch()),_._clearServerData(),o&&_._finishFetch(o)}return _._finishFetch(a),t.objectId&&_._setExisted(!0),_}},{key:"registerSubclass",value:function(e,t){if("string"!=typeof e)throw new TypeError("The first argument must be a valid class name.");if(void 0===t)throw new TypeError("You must supply a subclass constructor.");if("function"!=typeof t)throw new TypeError("You must register the subclass constructor. Did you attempt to register an instance of the subclass?");y[e]=t,t.className||(t.className=e)}},{key:"extend",value:function(t,r,n){if("string"!=typeof t){if(t&&"string"==typeof t.className)return e.extend(t.className,t,r);throw new Error("Parse.Object.extend's first argument should be the className.")}var _=t;"User"===_&&l.default.get("PERFORM_USER_REWRITE")&&(_="_User");var i=e.prototype;this.hasOwnProperty("__super__")&&this.__super__?i=this.prototype:y[_]&&(i=y[_].prototype);var o=function(e,t){if(this.className=_,this._objCount=T++,"function"==typeof this.initialize&&this.initialize.apply(this,arguments),e&&"object"===(0,a.default)(e)&&!this.set(e||{},t))throw new Error("Can't create an invalid Parse Object")};if(o.className=_,o.__super__=i,o.prototype=Object.create(i,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r)for(var s in r)"className"!==s&&Object.defineProperty(o.prototype,s,{value:r[s],enumerable:!1,writable:!0,configurable:!0});if(n)for(var u in n)"className"!==u&&Object.defineProperty(o,u,{value:n[u],enumerable:!1,writable:!0,configurable:!0});return o.extend=function(t,r,n){return"string"==typeof t?e.extend.call(o,t,r,n):e.extend.call(o,_,t,r)},o.createWithoutData=e.createWithoutData,y[_]=o,o}},{key:"enableSingleInstance",value:function(){A=!0,l.default.setObjectStateController(M)}},{key:"disableSingleInstance",value:function(){A=!1,l.default.setObjectStateController(P)}}]),e}(),R={fetch:function(e,t,r){if(Array.isArray(e)){if(e.length<1)return Promise.resolve([]);var n=[],_=[],a=null,i=[],o=null;if(e.forEach(function(e){o||(a||(a=e.className),a!==e.className&&(o=new E.default(E.default.INVALID_CLASS_NAME,"All objects should be of the same class")),e.id||(o=new E.default(E.default.MISSING_OBJECT_ID,"All objects must have an ID")),(t||0===Object.keys(e._getServerData()).length)&&(_.push(e.id),n.push(e)),i.push(e))}),o)return Promise.reject(o);var s=new v.default(a);return s.containedIn("objectId",_),r&&r.include&&s.include(r.include),s._limit=_.length,s.find(r).then(function(e){var r={};e.forEach(function(e){r[e.id]=e});for(var _=0;_=20&&n.push([]))}),0===n[n.length-1].length&&n.pop();var _=Promise.resolve(),a=[];return n.forEach(function(e){_=_.then(function(){return r.request("POST","batch",{requests:e.map(function(e){return{method:"DELETE",path:k()+"classes/"+e.className+"/"+e._getId(),body:{}}})},t).then(function(t){for(var r=0;r0},function(){var e,a,i=[],s=[];if(o.forEach(function(e){i.length<20&&(0,u.default)(e)?i.push(e):s.push(e)}),o=s,i.length<1)return Promise.reject(new E.default(E.default.OTHER_CAUSE,"Tried to save a batch with a cycle."));var l=new Promise(function(t,r){e=t,a=r});l.resolve=e,l.reject=a;var c=[],d=[];return i.forEach(function(e,t){var r,a,i=new Promise(function(e,t){r=e,a=t});i.resolve=r,i.reject=a,c.push(i),n.pushPendingState(e._getStateIdentifier()),d.push(n.enqueueTask(e._getStateIdentifier(),function(){return i.resolve(),l.then(function(r,n){if(r[t].hasOwnProperty("success"))e._handleSaveResponse(r[t].success,n);else{if(!_&&r[t].hasOwnProperty("error")){var a=r[t].error;_=new E.default(a.code,a.error),o=[]}e._handleSaveError()}})}))}),(0,g.when)(c).then(function(){return r.request("POST","batch",{requests:i.map(function(e){var t=e._getSaveParams();return t.path=k()+t.path,t})},t)}).then(function(e,t){l.resolve(e,t)},function(e){l.reject(new E.default(E.default.INCORRECT_TYPE,e.message))}),(0,g.when)(d)}).then(function(){return _?Promise.reject(_):Promise.resolve(e)})})}if(e instanceof I){var s=e;return n.pushPendingState(e._getStateIdentifier()),n.enqueueTask(e._getStateIdentifier(),function(){var e=s._getSaveParams();return r.request(e.method,e.path,e.body,t).then(function(e,t){s._handleSaveResponse(e,t)},function(e){return s._handleSaveError(),Promise.reject(e)})}).then(function(){return e},function(e){return Promise.reject(e)})}return Promise.resolve()}};l.default.setObjectController(R);var L=I;t.default=L},function(e,t,r){"use strict";(function(t){var r={IS_NODE:void 0!==t&&!!t.versions&&!!t.versions.node&&!t.versions.electron,REQUEST_ATTEMPT_LIMIT:5,SERVER_URL:"https://api.parse.com/1",LIVEQUERY_SERVER_URL:null,VERSION:"js2.1.0",APPLICATION_ID:null,JAVASCRIPT_KEY:null,MASTER_KEY:null,USE_MASTER_KEY:!1,PERFORM_USER_REWRITE:!0,FORCE_REVOCABLE_SESSION:!1};function n(e,t,r){t.forEach(function(t){if("function"!=typeof r[t])throw new Error("".concat(e," must implement ").concat(t,"()"))})}e.exports={get:function(e){if(r.hasOwnProperty(e))return r[e];throw new Error("Configuration key not found: "+e)},set:function(e,t){r[e]=t},setAnalyticsController:function(e){n("AnalyticsController",["track"],e),r.AnalyticsController=e},getAnalyticsController:function(){return r.AnalyticsController},setCloudController:function(e){n("CloudController",["run","getJobsData","startJob"],e),r.CloudController=e},getCloudController:function(){return r.CloudController},setConfigController:function(e){n("ConfigController",["current","get"],e),r.ConfigController=e},getConfigController:function(){return r.ConfigController},setFileController:function(e){n("FileController",["saveFile","saveBase64"],e),r.FileController=e},getFileController:function(){return r.FileController},setInstallationController:function(e){n("InstallationController",["currentInstallationId"],e),r.InstallationController=e},getInstallationController:function(){return r.InstallationController},setObjectController:function(e){n("ObjectController",["save","fetch","destroy"],e),r.ObjectController=e},getObjectController:function(){return r.ObjectController},setObjectStateController:function(e){n("ObjectStateController",["getState","initializeState","removeState","getServerData","setServerData","getPendingOps","setPendingOp","pushPendingState","popPendingState","mergeFirstPendingState","getObjectCache","estimateAttribute","estimateAttributes","commitServerChanges","enqueueTask","clearAllState"],e),r.ObjectStateController=e},getObjectStateController:function(){return r.ObjectStateController},setPushController:function(e){n("PushController",["send"],e),r.PushController=e},getPushController:function(){return r.PushController},setQueryController:function(e){n("QueryController",["find","aggregate"],e),r.QueryController=e},getQueryController:function(){return r.QueryController},setRESTController:function(e){n("RESTController",["request","ajax"],e),r.RESTController=e},getRESTController:function(){return r.RESTController},setSchemaController:function(e){n("SchemaController",["get","create","update","delete","send","purge"],e),r.SchemaController=e},getSchemaController:function(){return r.SchemaController},setSessionController:function(e){n("SessionController",["getSession"],e),r.SessionController=e},getSessionController:function(){return r.SessionController},setStorageController:function(e){e.async?n("An async StorageController",["getItemAsync","setItemAsync","removeItemAsync"],e):n("A synchronous StorageController",["getItem","setItem","removeItem"],e),r.StorageController=e},getStorageController:function(){return r.StorageController},setAsyncStorage:function(e){r.AsyncStorage=e},getAsyncStorage:function(){return r.AsyncStorage},setUserController:function(e){n("UserController",["setCurrentUser","currentUser","currentUserAsync","signUp","logIn","become","logOut","requestPasswordReset","upgradeToRevocableSession","linkWith"],e),r.UserController=e},getUserController:function(){return r.UserController},setLiveQueryController:function(e){n("LiveQueryController",["subscribe","unsubscribe","open","close"],e),r.LiveQueryController=e},getLiveQueryController:function(){return r.LiveQueryController},setHooksController:function(e){n("HooksController",["create","get","update","remove"],e),r.HooksController=e},getHooksController:function(){return r.HooksController}}}).call(this,r(131))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(330)),n(r(226)),n(r(331)),n(r(697)),n(r(698)),n(r(699)),n(r(700))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(395)},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){r(287)("asyncIterator")},function(e,t,r){"use strict";var n=r(42),_=r(96),a=r(64),i=r(44),o=r(71),s=r(205).KEY,l=r(51),u=r(189),c=r(126),d=r(120),f=r(36),p=r(288),h=r(287),E=r(564),m=r(275),g=r(67),b=r(57),v=r(95),O=r(188),M=r(121),C=r(192),P=r(565),D=r(286),y=r(63),w=r(104),T=D.f,A=y.f,k=P.f,I=n.Symbol,R=n.JSON,L=R&&R.stringify,B=f("_hidden"),U=f("toPrimitive"),S={}.propertyIsEnumerable,K=u("symbol-registry"),W=u("symbols"),x=u("op-symbols"),j=Object.prototype,N="function"==typeof I,q=n.QObject,F=!q||!q.prototype||!q.prototype.findChild,V=a&&l(function(){return 7!=C(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=T(j,t);n&&delete j[t],A(e,t,r),n&&e!==j&&A(j,t,n)}:A,H=function(e){var t=W[e]=C(I.prototype);return t._k=e,t},z=N&&"symbol"==typeof I.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof I},G=function(e,t,r){return e===j&&G(x,t,r),g(e),t=O(t,!0),g(r),_(W,t)?(r.enumerable?(_(e,B)&&e[B][t]&&(e[B][t]=!1),r=C(r,{enumerable:M(0,!1)})):(_(e,B)||A(e,B,M(1,{})),e[B][t]=!0),V(e,t,r)):A(e,t,r)},Y=function(e,t){g(e);for(var r,n=E(t=v(t)),_=0,a=n.length;a>_;)G(e,r=n[_++],t[r]);return e},J=function(e){var t=S.call(this,e=O(e,!0));return!(this===j&&_(W,e)&&!_(x,e))&&(!(t||!_(this,e)||!_(W,e)||_(this,B)&&this[B][e])||t)},X=function(e,t){if(e=v(e),t=O(t,!0),e!==j||!_(W,t)||_(x,t)){var r=T(e,t);return!r||!_(W,t)||_(e,B)&&e[B][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=k(v(e)),n=[],a=0;r.length>a;)_(W,t=r[a++])||t==B||t==s||n.push(t);return n},$=function(e){for(var t,r=e===j,n=k(r?x:v(e)),a=[],i=0;n.length>i;)!_(W,t=n[i++])||r&&!_(j,t)||a.push(W[t]);return a};N||(o((I=function(){if(this instanceof I)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===j&&t.call(x,r),_(this,B)&&_(this[B],e)&&(this[B][e]=!1),V(this,e,M(1,r))};return a&&F&&V(j,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),D.f=X,y.f=G,r(207).f=P.f=Q,r(161).f=J,r(197).f=$,a&&!r(119)&&o(j,"propertyIsEnumerable",J,!0),p.f=function(e){return H(f(e))}),i(i.G+i.W+i.F*!N,{Symbol:I});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=w(f.store),re=0;te.length>re;)h(te[re++]);i(i.S+i.F*!N,"Symbol",{for:function(e){return _(K,e+="")?K[e]:K[e]=I(e)},keyFor:function(e){if(!z(e))throw TypeError(e+" is not a symbol!");for(var t in K)if(K[t]===e)return t},useSetter:function(){F=!0},useSimple:function(){F=!1}}),i(i.S+i.F*!N,"Object",{create:function(e,t){return void 0===t?C(e):Y(C(e),t)},defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&i(i.S+i.F*(!N||l(function(){var e=I();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],_=1;arguments.length>_;)n.push(arguments[_++]);if(r=t=n[1],(b(t)||void 0!==e)&&!z(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!z(t))return t}),n[1]=t,L.apply(R,n)}}),I.prototype[U]||r(84)(I.prototype,U,I.prototype.valueOf),c(I,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(_,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function o(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){e.done?_(e.value):new r(function(t){t(e.value)}).then(i,o)}s((n=n.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var r,n,_,a,i={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(_=n[2&a[0]?"return":a[0]?"throw":"next"])&&!(_=_.call(n,a[1])).done)return _;switch(n=0,_&&(a=[0,_.value]),a[0]){case 0:case 1:_=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(_=(_=i.trys).length>0&&_[_.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!_||a[1]>_[0]&&a[1]<_[3])){i.label=a[1];break}if(6===a[0]&&i.label<_[1]){i.label=_[1],_=a;break}if(_&&i.label<_[2]){i.label=_[2],i.ops.push(a);break}_[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=_=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(212);function i(e,t){for(var r,n=0,_=t;r=e.getCurrentContent().getBlockBefore(_);)n+=r.getText().length+1,_=r.getKey();return n}function o(e){var t=e.getSelection(),r=t.getStartKey(),n=t.getStartOffset(),_=t.getEndKey(),a=t.getEndOffset(),o=i(e,r);return{start:n+o,end:n+s(e,r,n,_,a)+o}}function s(e,t,r,n,_){if(t===n)return _-r;for(var a,i=e.getCurrentContent().getBlockForKey(t).getText().length-r,o=t;(a=e.getCurrentContent().getBlockAfter(o))&&a.getKey()!==n;)i+=a.getText().length+1,o=a.getKey();return i+=_+1}function l(e){return e.getCurrentContent().getPlainText("\n")}t.getContentLengthOfAllBlocksBefore=i,t.getSelection=o,t.getContentLengthBetween=s,t.getPlainText=l;var u=function(e,t,r,n,_){return!t||er+t.getText().length?u(e,_.getBlockAfter(t.getKey()),r+t.getText().length+1,0,_):{block:t,globalOffset:r,blockOffset:e-r}};function c(e,t){var r=e.getFirstBlock();if(null===r)return null;var n=u(t.start,r,0,0,e);if(null===n)return null;var _=u(t.end,n.block,n.globalOffset,n.blockOffset,e);return null===_?null:a.SelectionState.createEmpty(n.block.getKey()).merge({anchorKey:n.block.getKey(),anchorOffset:n.blockOffset,focusKey:_.block.getKey(),focusOffset:_.blockOffset})}function d(e,t){var r=t.text,n=t.selection,_=a.ContentState.createFromText(r),i=a.EditorState.forceSelection(e,e.getSelection());i=a.EditorState.push(i,_,"insert-characters");var o=n?c(i.getCurrentContent(),n):e.getSelection();return a.EditorState.forceSelection(i,o)}t.buildSelectionState=c,t.getMarkdownStateFromDraftState=function(e){return{text:l(e),selection:o(e)}},t.getMdeStateFromDraftState=function(e,t){return n(this,void 0,void 0,function(){var r,n;return _(this,function(_){switch(_.label){case 0:return r=l(e),t?[4,t(r)]:[3,2];case 1:return n=_.sent(),[3,3];case 2:n="",_.label=3;case 3:return[2,{html:n,markdown:r,draftEditorState:e}]}})})},t.buildNewDraftState=d,t.buildNewMdeState=function(e,t,r,a){return void 0===a&&(a=null),n(this,void 0,void 0,function(){var n,i;return _(this,function(_){switch(_.label){case 0:return n=d(e.draftEditorState,{text:r,selection:a}),t?[4,t(r)]:[3,2];case 1:return i=_.sent(),[3,3];case 2:i="",_.label=3;case 3:return[2,{html:i,markdown:r,draftEditorState:n}]}})})}},function(e,t,r){"use strict";var n=r(61),_=r(610),a=r(89),i=r(30),o=r(611),s=r(613),l=r(167),u=r(616),c=r(617),d=r(29),f=r(618),p=r(305),h=r(619),E=r(620),m=i.OrderedSet,g={replaceText:function(e,t,r,_,a){var i=p(e,t),o=h(i,t),s=n.create({style:_||m(),entity:a||null});return c(o,o.getSelectionAfter(),r,s)},insertText:function(e,t,r,n,_){return t.isCollapsed()||d(!1),g.replaceText(e,t,r,n,_)},moveText:function(e,t,r){var n=l(e,t),_=g.removeRange(e,t,"backward");return g.replaceWithFragment(_,r,n)},replaceWithFragment:function(e,t,r){var n=p(e,t),_=h(n,t);return u(_,_.getSelectionAfter(),r)},removeRange:function(e,t,r){var n,_,i=void 0,o=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),_=t.getFocusKey(),i=e.getBlockForKey(n),o=e.getBlockForKey(_);var l=t.getStartOffset(),u=t.getEndOffset(),c=i.getEntityAt(l),d=o.getEntityAt(u-1);if(n===_&&c&&c===d){var f=s(e.getEntityMap(),i,o,t,r);return h(e,f)}var E=t;a.draft_segmented_entities_behavior&&(E=s(e.getEntityMap(),i,o,t,r));var m=p(e,E);return h(m,E)},splitBlock:function(e,t){var r=p(e,t),n=h(r,t);return E(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return _.add(e,t,r)},removeInlineStyle:function(e,t,r){return _.remove(e,t,r)},setBlockType:function(e,t,r){return f(e,t,function(e){return e.merge({type:r,depth:0})})},setBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:r})})},mergeBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:e.getData().merge(r)})})},applyEntity:function(e,t,r){var n=p(e,t);return o(n,t,r)}};e.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContainerComponent});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(813),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContainerComponent=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContainerComponent(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContainerComponent),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ContainerComponent).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ContainerComponent,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContainerComponent,[{key:"render",value:function(){var e=this.props,t=e.haveTitle2,r=e.title,n=e.titles,_=e.children,a=e.onClickBack,i=e.onClickRLink,o=e.rLinkTitle,s=e.backgroundOffset,l="header";t&&(l="header header-double");var u=n;r&&(u=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},r));var c={};return s&&(c={height:"calc(100% - ".concat(s,"px)")}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"ContainerComponent"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"background",style:c}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:l},a&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"back",onClick:a},"Back"),u,o&&i&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"json-fields",onClick:i},o)),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"content"},_))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContainerComponent}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContainerComponent,"ContainerComponent","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/ContainerComponent/ContainerComponent.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,r){"use strict";var n=r(44),_=r(196)(1);n(n.P+n.F*!r(127)([].map,!0),"Array",{map:function(e){return _(this,e,arguments[1])}})},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1;a--)if(r(e[a-1])){n=a;break}for(a=t;a=0&&r>=0;_--)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function u(e,t){if(void 0===e&&(e=""),t===e.length-1)return 0;for(var r=2,n=!0,_=t;_=0;_++)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function c(e){var t=e.text,r=e.selection,n=u(t,r.end),_=Array(n+1).join("\n"),a=t,i=0;if(_){var o=s(t,_,r.end);a=o.newText,i=o.insertionLength}return{newText:a,insertionLength:i,newSelection:r}}function d(e,t,r){var n=e.slice(r.start,r.end).split(/\n/),_=0,a=n.map(function(e,r){if("string"==typeof t)return _+=t.length,t+e;if("function"==typeof t){var n=t(e,r);return _+=n.length,t(e,r)+e}throw Error("insertion is expected to be either a string or a function")}).join("\n");return{newText:e.slice(0,r.start)+a+e.slice(r.end),insertionLength:_,newSelection:{start:n.length>1?r.start:r.start+_,end:r.end+_}}}Object.defineProperty(t,"__esModule",{value:!0}),t.getSurroundingWord=_,t.insertBeforeAndAfter=function(e,t){var r=e.text,n=e.selection,_=s(r,t,(n=a({text:r,selection:n})).start),i=_.newText,o=_.insertionLength;return{text:s(i,t,n.end+o).newText,selection:{start:n.start+o,end:n.end+o}}},t.selectWordIfCaretIsInsideOne=a,t.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore=i,t.insertBefore=o,t.insertAfter=function(e,t,r){var _=s(e,t,r.end),a={start:r.start,end:r.end+_.insertionLength};return n({},_,{newSelection:a})},t.insertText=s,t.getBreaksNeededForEmptyLineBefore=l,t.getBreaksNeededForEmptyLineAfter=u,t.insertBreaksAfterSoThatThereIsAnEmptyLineAfter=c,t.insertBeforeEachLine=d,t.makeList=function(e,t){var r,n=e.text,_=e.selection;return{text:n=(r=d(n=(r=c({text:n=(r=i({text:n,selection:_=a({text:n,selection:_})})).newText,selection:_=r.newSelection})).newText,t,_=r.newSelection)).newText,selection:_=r.newSelection}},t.onTab=function(e,t){for(var r=e.text,n=e.selection,_=0,a=n.start;a-1>-1;a--)if("\n"===r[a-1]){_=a;break}var i=r.length;for(a=n.end;a0&&void 0!==arguments[0]?arguments[0]:d;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,e.call(this,h(r)))}return 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)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),f,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t}(l(d));e.exports=E},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentBase});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(829),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentBase=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContentBase(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ContentBase),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(ContentBase).call(this,e))).state={error:null,value:null,isEditable:!1},t.field=null,t.setFieldValue=null,t.setValue=function(e,r){t.setState({value:e,error:null}),t.setFieldValue(t.field,e,r)},t.field=e.field,t.setFieldValue=e.setFieldValue,t.state.isEditable=e.isEditable,t.state.value=e.value,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(ContentBase,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ContentBase,[{key:"componentWillReceiveProps",value:function(e){this.setState({isEditable:e.isEditable,value:e.value})}},{key:"getError",value:function(){return this.field.isRequired&&void 0===this.state.value?"This field is required!":null}},{key:"validate",value:function(){var e=this.getError();return this.setState({error:e}),!e}},{key:"getTitle",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},this.field.name)}},{key:"getInput",value:function(){return null}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},this.getTitle(),this.getInput(),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.error))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentBase}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentBase,"ContentBase","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentBase.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n=r(57);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,r){r(4);var n=r(567);function _(t,r,a){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=_=Reflect.get:e.exports=_=function(e,t,r){var _=n(e,t);if(_){var a=Object.getOwnPropertyDescriptor(_,t);return a.get?a.get.call(r):a.value}},_(t,r,a||t)}e.exports=_},function(e,t,r){"use strict";(function(e,n){r.d(t,"b",function(){return s}),r.d(t,"c",function(){return c}),r.d(t,"a",function(){return d});var _=r(14),a=r(21),i=r(24),o=r(101);!function(){var t=r(1).enterModule;t&&t(e)}();var s={};function l(){return s.serverURL=n.env.REACT_APP_SERVER_URL||o.b.serverURL,s.appId=n.env.REACT_APP_APP_ID||o.b.appId,s.JSkey=n.env.JS_KEY||o.b.JSkey,s.RESTkey=n.env.REST_KEY||o.b.RESTkey,fetch("/chisel-config.json").then(function(e){if(e.ok)return e.json();throw e.statusText}).then(function(e){s.serverURL=e.configServerURL||s.serverURL,s.appId=e.configAppId||s.appId,s.JSkey=e.configJSkey||s.JSkey,s.RESTkey=e.configRESTkey||s.RESTkey}).catch(function(){})}function u(){_.Parse.initialize(s.appId,s.JSkey),_.Parse.serverURL=s.serverURL}function c(){l().then(function(){u(),a.store.dispatch(Object(i.j)())}).catch(function(e){console.log(e)})}function d(e){e&&(s.serverURL=e,localStorage.setItem("parseServerURL",e),_.Parse.serverURL=e)}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"config","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(l,"requestConfig","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(u,"subInitParse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(c,"initApp","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(d,"changeServerURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),n(e))}()}).call(this,r(12)(e),r(131))},function(e,t,r){var n=r(42),_=r(84),a=r(96),i=r(120)("src"),o=Function.toString,s=(""+o).split("toString");r(94).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,r,o){var l="function"==typeof r;l&&(a(r,"name")||_(r,"name",t)),e[t]!==r&&(l&&(a(r,i)||_(r,i,e[t]?""+e[t]:s.join(String(t)))),e===n?e[t]=r:o?e[t]?e[t]=r:_(e,t,r):(delete e[t],_(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||o.call(this)})},function(e,t,r){"use strict";var n=r(631),_=r(634),a=r(635),i=r(636);function o(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var a=r.slice(e.length);return!!t&&(a=n?n(a):a,_.contains(a,t))}function s(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return o(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return o(n.browserArchitecture,null,e)},isDevice:function(e){return o(n.deviceName,null,e)},isEngine:function(e){return o(n.engineName,n.engineVersion,e)},isPlatform:function(e){return o(n.platformName,n.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return o(n.platformArchitecture,null,e)}};e.exports=a(l,i)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t=0;a--){var i=_[a],o=r[i];o!==n[i]&&(-1===u.indexOf(i)||Array.isArray(o)||(o=[o]),this.flatpickr.set(i,o))}e.hasOwnProperty("value")&&e.value!==this.props.value&&this.flatpickr.setDate(e.value,!1)}},{key:"componentDidMount",value:function(){var e=this,t=n({onClose:function(){e.node.blur&&e.node.blur()}},this.props.options);u.forEach(function(r){e.props[r]&&(t[r]=e.props[r])}),this.flatpickr=new s.default(this.node,t),this.props.hasOwnProperty("value")&&this.flatpickr.setDate(this.props.value,!1)}},{key:"componentWillUnmount",value:function(){this.flatpickr.destroy()}},{key:"render",value:function(){var e=this,t=this.props,r=t.options,_=t.defaultValue,a=(t.value,t.children),o=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["options","defaultValue","value","children"]);return u.forEach(function(e){delete o[e]}),r.wrap?i.default.createElement("div",n({},o,{ref:function(t){e.node=t}}),a):i.default.createElement("input",n({},o,{defaultValue:_,ref:function(t){e.node=t}}))}}]),t}();c.propTypes={defaultValue:o.default.string,options:o.default.object,onChange:o.default.func,onOpen:o.default.func,onClose:o.default.func,onMonthChange:o.default.func,onYearChange:o.default.func,onReady:o.default.func,onValueUpdate:o.default.func,onDayCreate:o.default.func,value:o.default.oneOfType([o.default.string,o.default.array,o.default.object,o.default.number]),children:o.default.node},c.defaultProps={options:{}},t.default=c},function(e,t,r){var n=r(239),_="object"==typeof self&&self&&self.Object===Object&&self,a=n||_||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t,r){"use strict";var n=r(265),_=r(266),a=r(122),i=r(95);e.exports=r(191)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,_(1)):_(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(e,t){e.exports='Group 4Created with Sketch.'},function(e,t,r){"use strict";var n={},_=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||n.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*_).toString(32);return n[e]=!0,e}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){var n; +*/var n=Object.getOwnPropertySymbols,_=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={},r=0;r<10;r++)t["_"+String.fromCharCode(r)]=r;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var n={};return"abcdefghijklmnopqrst".split("").forEach(function(e){n[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},n)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var r,i,o=function(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}(e),s=1;s0&&void 0!==arguments[0]?arguments[0]:S,a=arguments.length>1?arguments[1]:void 0;switch(a.type){case f:e=a.items,t=a.itemsDraft;var i=!0,o=!1,u=void 0;try{for(var d,P=e[Symbol.iterator]();!(i=(d=P.next()).done);i=!0){d.value.postInit(e)}}catch(e){o=!0,u=e}finally{try{i||null==P.return||P.return()}finally{if(o)throw u}}var D=!0,y=!1,w=void 0;try{for(var T,A=t[Symbol.iterator]();!(D=(T=A.next()).done);D=!0){T.value.postInit(e)}}catch(e){y=!0,w=e}finally{try{D||null==A.return||A.return()}finally{if(y)throw w}}var I=!0,k=!1,R=void 0;try{for(var L,B=t[Symbol.iterator]();!(I=(L=B.next()).done);I=!0){var U=L.value,K=U.origin.get("t__owner"),W=!0,x=!1,j=void 0;try{for(var N,q=e[Symbol.iterator]();!(W=(N=q.next()).done);W=!0){var F=N.value;if(F.origin.id==K.id){F.draft=U,U.owner=F;break}}}catch(e){x=!0,j=e}finally{try{W||null==q.return||q.return()}finally{if(x)throw j}}}}catch(e){k=!0,R=e}finally{try{I||null==B.return||B.return()}finally{if(k)throw R}}return _()({},n,{items:e,itemsDraft:t});case O:return _()({},n,{currentItem:a.currentItem});case p:return(e=n.items).push(a.item),_()({},n,{items:e});case h:case m:case g:case b:return _()({},n);case E:return a.isNewDraft?((t=n.itemsDraft).push(a.item.draft),_()({},n,{itemsDraft:t})):_()({},n);case v:var V=a.item;return e=n.items,t=n.itemsDraft,e.splice(e.indexOf(V),1),V.draft&&t.splice(t.indexOf(V.draft),1),_()({},n,{items:e,itemsDraft:t});case M:var H=n.filteredModels,z=new Set(H);return H.has(a.model)?z.delete(a.model):z.add(a.model),_()({},n,{filteredModels:z});case C:var G=n.filteredStatuses,Y=new Set(G);return G.has(a.status)?Y.delete(a.status):Y.add(a.status),_()({},n,{filteredStatuses:Y});case s.e:e=n.items,t=n.itemsDraft,r=Object(c.r)(a.model,e);var J=!0,X=!1,Q=void 0;try{for(var $,Z=r[Symbol.iterator]();!(J=($=Z.next()).done);J=!0){var ee=$.value;e.splice(e.indexOf(ee),1),ee.draft&&t.splice(t.indexOf(ee.draft),1)}}catch(e){X=!0,Q=e}finally{try{J||null==Z.return||Z.return()}finally{if(X)throw Q}}return _()({},n,{items:e,itemsDraft:t});case s.f:e=n.items,t=n.itemsDraft,r=Object(c.s)(a.site,e);var te=!0,re=!1,ne=void 0;try{for(var _e,ae=r[Symbol.iterator]();!(te=(_e=ae.next()).done);te=!0){var ie=_e.value;e.splice(e.indexOf(ie),1),ie.draft&&t.splice(t.indexOf(ie.draft),1)}}catch(e){re=!0,ne=e}finally{try{te||null==ae.return||ae.return()}finally{if(re)throw ne}}return _()({},n,{items:e,itemsDraft:t});case s.a:case s.c:case s.b:e=n.items,t=n.itemsDraft;var oe=a.field.model,se=!0,le=!1,ue=void 0;try{for(var ce,de=e[Symbol.iterator]();!(se=(ce=de.next()).done);se=!0){var fe=ce.value;fe.model==oe&&(fe.model=oe)}}catch(e){le=!0,ue=e}finally{try{se||null==de.return||de.return()}finally{if(le)throw ue}}var pe=!0,he=!1,Ee=void 0;try{for(var me,ge=t[Symbol.iterator]();!(pe=(me=ge.next()).done);pe=!0){var be=me.value;be.model==oe&&(be.model=oe)}}catch(e){he=!0,Ee=e}finally{try{pe||null==ge.return||ge.return()}finally{if(he)throw Ee}}return _()({},n,{items:e,itemsDraft:t});case l.f:return _()({},n,{currentItem:null});default:return n}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(f,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(p,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(h,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(E,"ITEM_PUBLISH","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(m,"ITEM_DISCARD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(g,"ITEM_ARCHIVE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(b,"ITEM_RESTORE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(v,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(O,"SET_CURRENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(M,"FILTER_MODEL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(C,"FILTER_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(P,"requestContentItems","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(D,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(y,"addItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(w,"updateItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(T,"publishItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(A,"discardItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(I,"archiveItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(k,"restoreItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(R,"setCurrentItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(L,"deleteItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(B,"filterModel","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(U,"filterStatus","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(S,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(K,"contentReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),n(e))}()}).call(this,r(12)(e))},function(e,t){function r(e){return(r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function n(t){return"function"==typeof Symbol&&"symbol"===r(Symbol.iterator)?e.exports=n=function(e){return r(e)}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":r(e)},n(t)}e.exports=n},function(e,t,r){for(var n=r(72),_=r(106),a=r(71),i=r(45),o=r(84),s=r(128),l=r(36),u=l("iterator"),c=l("toStringTag"),d=s.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=_(f),h=0;h-1)throw new Error("Cannot modify readonly attribute: "+o);r.unset?_[o]=new b.UnsetOp:n[o]instanceof b.Op?_[o]=n[o]:n[o]&&"object"===(0,a.default)(n[o])&&"string"==typeof n[o].__op?_[o]=(0,b.opFromJSON)(n[o]):"objectId"===o||"id"===o?"string"==typeof n[o]&&(this.id=n[o]):"ACL"!==o||"object"!==(0,a.default)(n[o])||n[o]instanceof p.default?_[o]=new b.SetOp(n[o]):_[o]=new b.SetOp(new p.default(n[o]))}var s=this.attributes,u={};for(var c in _)_[c]instanceof b.RelationOp?u[c]=_[c].applyTo(s[c],this,c):_[c]instanceof b.UnsetOp||(u[c]=_[c].applyTo(s[c]));if(!r.ignoreValidation){var d=this.validate(u);if(d)return"function"==typeof r.error&&r.error(this,d),!1}var f=this._getPendingOps(),h=f.length-1,E=l.default.getObjectStateController();for(var m in _){var g=_[m].mergeWith(f[h][m]);E.setPendingOp(this._getStateIdentifier(),m,g)}return this}},{key:"unset",value:function(e,t){return(t=t||{}).unset=!0,this.set(e,null,t)}},{key:"increment",value:function(e,t){if(void 0===t&&(t=1),"number"!=typeof t)throw new Error("Cannot increment by a non-numeric amount.");return this.set(e,new b.IncrementOp(t))}},{key:"add",value:function(e,t){return this.set(e,new b.AddOp([t]))}},{key:"addAll",value:function(e,t){return this.set(e,new b.AddOp(t))}},{key:"addUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp([t]))}},{key:"addAllUnique",value:function(e,t){return this.set(e,new b.AddUniqueOp(t))}},{key:"remove",value:function(e,t){return this.set(e,new b.RemoveOp([t]))}},{key:"removeAll",value:function(e,t){return this.set(e,new b.RemoveOp(t))}},{key:"op",value:function(e){for(var t=this._getPendingOps(),r=t.length;r--;)if(t[r][e])return t[r][e]}},{key:"clone",value:function(){var e=new this.constructor;e.className||(e.className=this.className);var t=this.attributes;if("function"==typeof this.constructor.readOnlyAttributes){var r=this.constructor.readOnlyAttributes()||[],n={};for(var _ in t)r.indexOf(_)<0&&(n[_]=t[_]);t=n}return e.set&&e.set(t),e}},{key:"newInstance",value:function(){var e=new this.constructor;if(e.className||(e.className=this.className),e.id=this.id,A)return e;var t=l.default.getObjectStateController();return t&&t.duplicateState(this._getStateIdentifier(),e._getStateIdentifier()),e}},{key:"isNew",value:function(){return!this.id}},{key:"existed",value:function(){if(!this.id)return!1;var e=l.default.getObjectStateController().getState(this._getStateIdentifier());return!!e&&e.existed}},{key:"isValid",value:function(){return!this.validate(this.attributes)}},{key:"validate",value:function(e){if(e.hasOwnProperty("ACL")&&!(e.ACL instanceof p.default))return new E.default(E.default.OTHER_CAUSE,"ACL must be a Parse ACL.");for(var t in e)if(!/^[A-Za-z][0-9A-Za-z_]*$/.test(t))return new E.default(E.default.INVALID_KEY_NAME);return!1}},{key:"getACL",value:function(){var e=this.get("ACL");return e instanceof p.default?e:null}},{key:"setACL",value:function(e,t){return this.set("ACL",e,t)}},{key:"revert",value:function(){this._clearPendingOps()}},{key:"clear",value:function(){var e=this.attributes,t={},r=["createdAt","updatedAt"];for(var n in"function"==typeof this.constructor.readOnlyAttributes&&(r=r.concat(this.constructor.readOnlyAttributes())),e)r.indexOf(n)<0&&(t[n]=!0);return this.set(t,{unset:!0})}},{key:"fetch",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),e.hasOwnProperty("include")&&(t.include=[],Array.isArray(e.include)?e.include.forEach(function(e){Array.isArray(e)?t.include=t.include.concat(e):t.include.push(e)}):t.include.push(e.include)),l.default.getObjectController().fetch(this,!0,t)}},{key:"fetchWithInclude",value:function(e,t){return(t=t||{}).include=e,this.fetch(t)}},{key:"save",value:function(e,t,r){var n,_,i=this;if("object"===(0,a.default)(e)||void 0===e?(n=e,"object"===(0,a.default)(t)&&(_=t)):((n={})[e]=t,_=r),!_&&n&&(_={},"function"==typeof n.success&&(_.success=n.success,delete n.success),"function"==typeof n.error&&(_.error=n.error,delete n.error)),n){var o=this.validate(n);if(o)return _&&"function"==typeof _.error&&_.error(this,o),Promise.reject(o);this.set(n,_)}var s={};(_=_||{}).hasOwnProperty("useMasterKey")&&(s.useMasterKey=!!_.useMasterKey),_.hasOwnProperty("sessionToken")&&"string"==typeof _.sessionToken&&(s.sessionToken=_.sessionToken);var u=l.default.getObjectController(),c=(0,D.default)(this);return u.save(c,s).then(function(){return u.save(i,s)})}},{key:"destroy",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken),this.id?l.default.getObjectController().destroy(this,t):Promise.resolve()}},{key:"attributes",get:function(){var e=l.default.getObjectStateController();return Object.freeze(e.estimateAttributes(this._getStateIdentifier()))}},{key:"createdAt",get:function(){return this._getServerData().createdAt}},{key:"updatedAt",get:function(){return this._getServerData().updatedAt}}],[{key:"_clearAllState",value:function(){l.default.getObjectStateController().clearAllState()}},{key:"fetchAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),t.hasOwnProperty("include")&&(r.include=[],Array.isArray(t.include)?t.include.forEach(function(e){Array.isArray(e)?r.include=r.include.concat(e):r.include.push(e)}):r.include.push(t.include)),l.default.getObjectController().fetch(e,!0,r)}},{key:"fetchAllWithInclude",value:function(t,r,n){return(n=n||{}).include=r,e.fetchAll(t,n)}},{key:"fetchAllIfNeeded",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().fetch(e,!1,r)}},{key:"destroyAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().destroy(e,r)}},{key:"saveAll",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r={};return t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),l.default.getObjectController().save(e,r)}},{key:"createWithoutData",value:function(e){var t=new this;return t.id=e,t}},{key:"fromJSON",value:function(t,r){if(!t.className)throw new Error("Cannot create an object without a className");var n=y[t.className],_=n?new n:new e(t.className),a={};for(var i in t)"className"!==i&&"__type"!==i&&(a[i]=t[i]);if(r){a.objectId&&(_.id=a.objectId);var o=null;"function"==typeof _._preserveFieldsOnFetch&&(o=_._preserveFieldsOnFetch()),_._clearServerData(),o&&_._finishFetch(o)}return _._finishFetch(a),t.objectId&&_._setExisted(!0),_}},{key:"registerSubclass",value:function(e,t){if("string"!=typeof e)throw new TypeError("The first argument must be a valid class name.");if(void 0===t)throw new TypeError("You must supply a subclass constructor.");if("function"!=typeof t)throw new TypeError("You must register the subclass constructor. Did you attempt to register an instance of the subclass?");y[e]=t,t.className||(t.className=e)}},{key:"extend",value:function(t,r,n){if("string"!=typeof t){if(t&&"string"==typeof t.className)return e.extend(t.className,t,r);throw new Error("Parse.Object.extend's first argument should be the className.")}var _=t;"User"===_&&l.default.get("PERFORM_USER_REWRITE")&&(_="_User");var i=e.prototype;this.hasOwnProperty("__super__")&&this.__super__?i=this.prototype:y[_]&&(i=y[_].prototype);var o=function(e,t){if(this.className=_,this._objCount=T++,"function"==typeof this.initialize&&this.initialize.apply(this,arguments),e&&"object"===(0,a.default)(e)&&!this.set(e||{},t))throw new Error("Can't create an invalid Parse Object")};if(o.className=_,o.__super__=i,o.prototype=Object.create(i,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),r)for(var s in r)"className"!==s&&Object.defineProperty(o.prototype,s,{value:r[s],enumerable:!1,writable:!0,configurable:!0});if(n)for(var u in n)"className"!==u&&Object.defineProperty(o,u,{value:n[u],enumerable:!1,writable:!0,configurable:!0});return o.extend=function(t,r,n){return"string"==typeof t?e.extend.call(o,t,r,n):e.extend.call(o,_,t,r)},o.createWithoutData=e.createWithoutData,y[_]=o,o}},{key:"enableSingleInstance",value:function(){A=!0,l.default.setObjectStateController(M)}},{key:"disableSingleInstance",value:function(){A=!1,l.default.setObjectStateController(P)}}]),e}(),R={fetch:function(e,t,r){if(Array.isArray(e)){if(e.length<1)return Promise.resolve([]);var n=[],_=[],a=null,i=[],o=null;if(e.forEach(function(e){o||(a||(a=e.className),a!==e.className&&(o=new E.default(E.default.INVALID_CLASS_NAME,"All objects should be of the same class")),e.id||(o=new E.default(E.default.MISSING_OBJECT_ID,"All objects must have an ID")),(t||0===Object.keys(e._getServerData()).length)&&(_.push(e.id),n.push(e)),i.push(e))}),o)return Promise.reject(o);var s=new v.default(a);return s.containedIn("objectId",_),r&&r.include&&s.include(r.include),s._limit=_.length,s.find(r).then(function(e){var r={};e.forEach(function(e){r[e.id]=e});for(var _=0;_=20&&n.push([]))}),0===n[n.length-1].length&&n.pop();var _=Promise.resolve(),a=[];return n.forEach(function(e){_=_.then(function(){return r.request("POST","batch",{requests:e.map(function(e){return{method:"DELETE",path:I()+"classes/"+e.className+"/"+e._getId(),body:{}}})},t).then(function(t){for(var r=0;r0},function(){var e,a,i=[],s=[];if(o.forEach(function(e){i.length<20&&(0,u.default)(e)?i.push(e):s.push(e)}),o=s,i.length<1)return Promise.reject(new E.default(E.default.OTHER_CAUSE,"Tried to save a batch with a cycle."));var l=new Promise(function(t,r){e=t,a=r});l.resolve=e,l.reject=a;var c=[],d=[];return i.forEach(function(e,t){var r,a,i=new Promise(function(e,t){r=e,a=t});i.resolve=r,i.reject=a,c.push(i),n.pushPendingState(e._getStateIdentifier()),d.push(n.enqueueTask(e._getStateIdentifier(),function(){return i.resolve(),l.then(function(r,n){if(r[t].hasOwnProperty("success"))e._handleSaveResponse(r[t].success,n);else{if(!_&&r[t].hasOwnProperty("error")){var a=r[t].error;_=new E.default(a.code,a.error),o=[]}e._handleSaveError()}})}))}),(0,g.when)(c).then(function(){return r.request("POST","batch",{requests:i.map(function(e){var t=e._getSaveParams();return t.path=I()+t.path,t})},t)}).then(function(e,t){l.resolve(e,t)},function(e){l.reject(new E.default(E.default.INCORRECT_TYPE,e.message))}),(0,g.when)(d)}).then(function(){return _?Promise.reject(_):Promise.resolve(e)})})}if(e instanceof k){var s=e;return n.pushPendingState(e._getStateIdentifier()),n.enqueueTask(e._getStateIdentifier(),function(){var e=s._getSaveParams();return r.request(e.method,e.path,e.body,t).then(function(e,t){s._handleSaveResponse(e,t)},function(e){return s._handleSaveError(),Promise.reject(e)})}).then(function(){return e},function(e){return Promise.reject(e)})}return Promise.resolve()}};l.default.setObjectController(R);var L=k;t.default=L},function(e,t,r){"use strict";(function(t){var r={IS_NODE:void 0!==t&&!!t.versions&&!!t.versions.node&&!t.versions.electron,REQUEST_ATTEMPT_LIMIT:5,SERVER_URL:"https://api.parse.com/1",LIVEQUERY_SERVER_URL:null,VERSION:"js2.1.0",APPLICATION_ID:null,JAVASCRIPT_KEY:null,MASTER_KEY:null,USE_MASTER_KEY:!1,PERFORM_USER_REWRITE:!0,FORCE_REVOCABLE_SESSION:!1};function n(e,t,r){t.forEach(function(t){if("function"!=typeof r[t])throw new Error("".concat(e," must implement ").concat(t,"()"))})}e.exports={get:function(e){if(r.hasOwnProperty(e))return r[e];throw new Error("Configuration key not found: "+e)},set:function(e,t){r[e]=t},setAnalyticsController:function(e){n("AnalyticsController",["track"],e),r.AnalyticsController=e},getAnalyticsController:function(){return r.AnalyticsController},setCloudController:function(e){n("CloudController",["run","getJobsData","startJob"],e),r.CloudController=e},getCloudController:function(){return r.CloudController},setConfigController:function(e){n("ConfigController",["current","get"],e),r.ConfigController=e},getConfigController:function(){return r.ConfigController},setFileController:function(e){n("FileController",["saveFile","saveBase64"],e),r.FileController=e},getFileController:function(){return r.FileController},setInstallationController:function(e){n("InstallationController",["currentInstallationId"],e),r.InstallationController=e},getInstallationController:function(){return r.InstallationController},setObjectController:function(e){n("ObjectController",["save","fetch","destroy"],e),r.ObjectController=e},getObjectController:function(){return r.ObjectController},setObjectStateController:function(e){n("ObjectStateController",["getState","initializeState","removeState","getServerData","setServerData","getPendingOps","setPendingOp","pushPendingState","popPendingState","mergeFirstPendingState","getObjectCache","estimateAttribute","estimateAttributes","commitServerChanges","enqueueTask","clearAllState"],e),r.ObjectStateController=e},getObjectStateController:function(){return r.ObjectStateController},setPushController:function(e){n("PushController",["send"],e),r.PushController=e},getPushController:function(){return r.PushController},setQueryController:function(e){n("QueryController",["find","aggregate"],e),r.QueryController=e},getQueryController:function(){return r.QueryController},setRESTController:function(e){n("RESTController",["request","ajax"],e),r.RESTController=e},getRESTController:function(){return r.RESTController},setSchemaController:function(e){n("SchemaController",["get","create","update","delete","send","purge"],e),r.SchemaController=e},getSchemaController:function(){return r.SchemaController},setSessionController:function(e){n("SessionController",["getSession"],e),r.SessionController=e},getSessionController:function(){return r.SessionController},setStorageController:function(e){e.async?n("An async StorageController",["getItemAsync","setItemAsync","removeItemAsync"],e):n("A synchronous StorageController",["getItem","setItem","removeItem"],e),r.StorageController=e},getStorageController:function(){return r.StorageController},setAsyncStorage:function(e){r.AsyncStorage=e},getAsyncStorage:function(){return r.AsyncStorage},setUserController:function(e){n("UserController",["setCurrentUser","currentUser","currentUserAsync","signUp","logIn","become","logOut","requestPasswordReset","upgradeToRevocableSession","linkWith"],e),r.UserController=e},getUserController:function(){return r.UserController},setLiveQueryController:function(e){n("LiveQueryController",["subscribe","unsubscribe","open","close"],e),r.LiveQueryController=e},getLiveQueryController:function(){return r.LiveQueryController},setHooksController:function(e){n("HooksController",["create","get","update","remove"],e),r.HooksController=e},getHooksController:function(){return r.HooksController}}}).call(this,r(132))},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(331)),n(r(228)),n(r(332)),n(r(700)),n(r(701)),n(r(702)),n(r(703))},function(e,t){var r;r=function(){return this}();try{r=r||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(r=window)}e.exports=r},function(e,t,r){r(288)("asyncIterator")},function(e,t,r){"use strict";var n=r(45),_=r(94),a=r(64),i=r(44),o=r(71),s=r(201).KEY,l=r(54),u=r(192),c=r(129),d=r(122),f=r(36),p=r(289),h=r(288),E=r(561),m=r(267),g=r(67),b=r(58),v=r(95),O=r(189),M=r(121),C=r(194),P=r(562),D=r(287),y=r(63),w=r(106),T=D.f,A=y.f,I=P.f,k=n.Symbol,R=n.JSON,L=R&&R.stringify,B=f("_hidden"),U=f("toPrimitive"),S={}.propertyIsEnumerable,K=u("symbol-registry"),W=u("symbols"),x=u("op-symbols"),j=Object.prototype,N="function"==typeof k,q=n.QObject,F=!q||!q.prototype||!q.prototype.findChild,V=a&&l(function(){return 7!=C(A({},"a",{get:function(){return A(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=T(j,t);n&&delete j[t],A(e,t,r),n&&e!==j&&A(j,t,n)}:A,H=function(e){var t=W[e]=C(k.prototype);return t._k=e,t},z=N&&"symbol"==typeof k.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof k},G=function(e,t,r){return e===j&&G(x,t,r),g(e),t=O(t,!0),g(r),_(W,t)?(r.enumerable?(_(e,B)&&e[B][t]&&(e[B][t]=!1),r=C(r,{enumerable:M(0,!1)})):(_(e,B)||A(e,B,M(1,{})),e[B][t]=!0),V(e,t,r)):A(e,t,r)},Y=function(e,t){g(e);for(var r,n=E(t=v(t)),_=0,a=n.length;a>_;)G(e,r=n[_++],t[r]);return e},J=function(e){var t=S.call(this,e=O(e,!0));return!(this===j&&_(W,e)&&!_(x,e))&&(!(t||!_(this,e)||!_(W,e)||_(this,B)&&this[B][e])||t)},X=function(e,t){if(e=v(e),t=O(t,!0),e!==j||!_(W,t)||_(x,t)){var r=T(e,t);return!r||!_(W,t)||_(e,B)&&e[B][t]||(r.enumerable=!0),r}},Q=function(e){for(var t,r=I(v(e)),n=[],a=0;r.length>a;)_(W,t=r[a++])||t==B||t==s||n.push(t);return n},$=function(e){for(var t,r=e===j,n=I(r?x:v(e)),a=[],i=0;n.length>i;)!_(W,t=n[i++])||r&&!_(j,t)||a.push(W[t]);return a};N||(o((k=function(){if(this instanceof k)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(r){this===j&&t.call(x,r),_(this,B)&&_(this[B],e)&&(this[B][e]=!1),V(this,e,M(1,r))};return a&&F&&V(j,e,{configurable:!0,set:t}),H(e)}).prototype,"toString",function(){return this._k}),D.f=X,y.f=G,r(205).f=P.f=Q,r(163).f=J,r(204).f=$,a&&!r(126)&&o(j,"propertyIsEnumerable",J,!0),p.f=function(e){return H(f(e))}),i(i.G+i.W+i.F*!N,{Symbol:k});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)f(Z[ee++]);for(var te=w(f.store),re=0;te.length>re;)h(te[re++]);i(i.S+i.F*!N,"Symbol",{for:function(e){return _(K,e+="")?K[e]:K[e]=k(e)},keyFor:function(e){if(!z(e))throw TypeError(e+" is not a symbol!");for(var t in K)if(K[t]===e)return t},useSetter:function(){F=!0},useSimple:function(){F=!1}}),i(i.S+i.F*!N,"Object",{create:function(e,t){return void 0===t?C(e):Y(C(e),t)},defineProperty:G,defineProperties:Y,getOwnPropertyDescriptor:X,getOwnPropertyNames:Q,getOwnPropertySymbols:$}),R&&i(i.S+i.F*(!N||l(function(){var e=k();return"[null]"!=L([e])||"{}"!=L({a:e})||"{}"!=L(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],_=1;arguments.length>_;)n.push(arguments[_++]);if(r=t=n[1],(b(t)||void 0!==e)&&!z(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!z(t))return t}),n[1]=t,L.apply(R,n)}}),k.prototype[U]||r(84)(k.prototype,U,k.prototype.valueOf),c(k,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(e,t,r){"use strict";!function e(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(e){console.error(e)}}(),e.exports=r(397)},function(e,t,r){"use strict";var n=r(44),_=r(190)(1);n(n.P+n.F*!r(127)([].map,!0),"Array",{map:function(e){return _(this,e,arguments[1])}})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,r){"use strict";var n=this&&this.__awaiter||function(e,t,r,n){return new(r||(r=Promise))(function(_,a){function i(e){try{s(n.next(e))}catch(e){a(e)}}function o(e){try{s(n.throw(e))}catch(e){a(e)}}function s(e){e.done?_(e.value):new r(function(t){t(e.value)}).then(i,o)}s((n=n.apply(e,t||[])).next())})},_=this&&this.__generator||function(e,t){var r,n,_,a,i={label:0,sent:function(){if(1&_[0])throw _[1];return _[1]},trys:[],ops:[]};return a={next:o(0),throw:o(1),return:o(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function o(a){return function(o){return function(a){if(r)throw new TypeError("Generator is already executing.");for(;i;)try{if(r=1,n&&(_=n[2&a[0]?"return":a[0]?"throw":"next"])&&!(_=_.call(n,a[1])).done)return _;switch(n=0,_&&(a=[0,_.value]),a[0]){case 0:case 1:_=a;break;case 4:return i.label++,{value:a[1],done:!1};case 5:i.label++,n=a[1],a=[0];continue;case 7:a=i.ops.pop(),i.trys.pop();continue;default:if(!(_=(_=i.trys).length>0&&_[_.length-1])&&(6===a[0]||2===a[0])){i=0;continue}if(3===a[0]&&(!_||a[1]>_[0]&&a[1]<_[3])){i.label=a[1];break}if(6===a[0]&&i.label<_[1]){i.label=_[1],_=a;break}if(_&&i.label<_[2]){i.label=_[2],i.ops.push(a);break}_[2]&&i.ops.pop(),i.trys.pop();continue}a=t.call(e,i)}catch(e){a=[6,e],n=0}finally{r=_=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,o])}}};Object.defineProperty(t,"__esModule",{value:!0});var a=r(214);function i(e,t){for(var r,n=0,_=t;r=e.getCurrentContent().getBlockBefore(_);)n+=r.getText().length+1,_=r.getKey();return n}function o(e){var t=e.getSelection(),r=t.getStartKey(),n=t.getStartOffset(),_=t.getEndKey(),a=t.getEndOffset(),o=i(e,r);return{start:n+o,end:n+s(e,r,n,_,a)+o}}function s(e,t,r,n,_){if(t===n)return _-r;for(var a,i=e.getCurrentContent().getBlockForKey(t).getText().length-r,o=t;(a=e.getCurrentContent().getBlockAfter(o))&&a.getKey()!==n;)i+=a.getText().length+1,o=a.getKey();return i+=_+1}function l(e){return e.getCurrentContent().getPlainText("\n")}t.getContentLengthOfAllBlocksBefore=i,t.getSelection=o,t.getContentLengthBetween=s,t.getPlainText=l;var u=function(e,t,r,n,_){return!t||er+t.getText().length?u(e,_.getBlockAfter(t.getKey()),r+t.getText().length+1,0,_):{block:t,globalOffset:r,blockOffset:e-r}};function c(e,t){var r=e.getFirstBlock();if(null===r)return null;var n=u(t.start,r,0,0,e);if(null===n)return null;var _=u(t.end,n.block,n.globalOffset,n.blockOffset,e);return null===_?null:a.SelectionState.createEmpty(n.block.getKey()).merge({anchorKey:n.block.getKey(),anchorOffset:n.blockOffset,focusKey:_.block.getKey(),focusOffset:_.blockOffset})}function d(e,t){var r=t.text,n=t.selection,_=a.ContentState.createFromText(r),i=a.EditorState.forceSelection(e,e.getSelection());i=a.EditorState.push(i,_,"insert-characters");var o=n?c(i.getCurrentContent(),n):e.getSelection();return a.EditorState.forceSelection(i,o)}t.buildSelectionState=c,t.getMarkdownStateFromDraftState=function(e){return{text:l(e),selection:o(e)}},t.getMdeStateFromDraftState=function(e,t){return n(this,void 0,void 0,function(){var r,n;return _(this,function(_){switch(_.label){case 0:return r=l(e),t?[4,t(r)]:[3,2];case 1:return n=_.sent(),[3,3];case 2:n="",_.label=3;case 3:return[2,{html:n,markdown:r,draftEditorState:e}]}})})},t.buildNewDraftState=d,t.buildNewMdeState=function(e,t,r,a){return void 0===a&&(a=null),n(this,void 0,void 0,function(){var n,i;return _(this,function(_){switch(_.label){case 0:return n=d(e.draftEditorState,{text:r,selection:a}),t?[4,t(r)]:[3,2];case 1:return i=_.sent(),[3,3];case 2:i="",_.label=3;case 3:return[2,{html:i,markdown:r,draftEditorState:n}]}})})}},function(e,t,r){"use strict";var n=r(61),_=r(613),a=r(89),i=r(31),o=r(614),s=r(616),l=r(168),u=r(619),c=r(620),d=r(29),f=r(621),p=r(306),h=r(622),E=r(623),m=i.OrderedSet,g={replaceText:function(e,t,r,_,a){var i=p(e,t),o=h(i,t),s=n.create({style:_||m(),entity:a||null});return c(o,o.getSelectionAfter(),r,s)},insertText:function(e,t,r,n,_){return t.isCollapsed()||d(!1),g.replaceText(e,t,r,n,_)},moveText:function(e,t,r){var n=l(e,t),_=g.removeRange(e,t,"backward");return g.replaceWithFragment(_,r,n)},replaceWithFragment:function(e,t,r){var n=p(e,t),_=h(n,t);return u(_,_.getSelectionAfter(),r)},removeRange:function(e,t,r){var n,_,i=void 0,o=void 0;t.getIsBackward()&&(t=t.merge({anchorKey:t.getFocusKey(),anchorOffset:t.getFocusOffset(),focusKey:t.getAnchorKey(),focusOffset:t.getAnchorOffset(),isBackward:!1})),n=t.getAnchorKey(),_=t.getFocusKey(),i=e.getBlockForKey(n),o=e.getBlockForKey(_);var l=t.getStartOffset(),u=t.getEndOffset(),c=i.getEntityAt(l),d=o.getEntityAt(u-1);if(n===_&&c&&c===d){var f=s(e.getEntityMap(),i,o,t,r);return h(e,f)}var E=t;a.draft_segmented_entities_behavior&&(E=s(e.getEntityMap(),i,o,t,r));var m=p(e,E);return h(m,E)},splitBlock:function(e,t){var r=p(e,t),n=h(r,t);return E(n,n.getSelectionAfter())},applyInlineStyle:function(e,t,r){return _.add(e,t,r)},removeInlineStyle:function(e,t,r){return _.remove(e,t,r)},setBlockType:function(e,t,r){return f(e,t,function(e){return e.merge({type:r,depth:0})})},setBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:r})})},mergeBlockData:function(e,t,r){return f(e,t,function(e){return e.merge({data:e.getData().merge(r)})})},applyEntity:function(e,t,r){var n=p(e,t);return o(n,t,r)}};e.exports=g},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContainerComponent});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(820),_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContainerComponent=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ContainerComponent_sss__WEBPACK_IMPORTED_MODULE_7___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContainerComponent(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContainerComponent),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ContainerComponent).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ContainerComponent,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContainerComponent,[{key:"render",value:function(){var e=this.props,t=e.haveTitle2,r=e.title,n=e.titles,_=e.children,a=e.onClickBack,i=e.onClickRLink,o=e.rLinkTitle,s=e.backgroundOffset,l="header";t&&(l="header header-double");var u=n;r&&(u=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},r));var c={};return s&&(c={height:"calc(100% - ".concat(s,"px)")}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"ContainerComponent"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"background",style:c}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:l},a&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"back",onClick:a},"Back"),u,o&&i&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"json-fields",onClick:i},o)),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"content"},_))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContainerComponent}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContainerComponent,"ContainerComponent","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/ContainerComponent/ContainerComponent.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t){e.exports=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r-1;a--)if(r(e[a-1])){n=a;break}for(a=t;a=0&&r>=0;_--)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function u(e,t){if(void 0===e&&(e=""),t===e.length-1)return 0;for(var r=2,n=!0,_=t;_=0;_++)switch(e.charCodeAt(_)){case 32:continue;case 10:r--,n=!1;break;default:return r}return n?0:r}function c(e){var t=e.text,r=e.selection,n=u(t,r.end),_=Array(n+1).join("\n"),a=t,i=0;if(_){var o=s(t,_,r.end);a=o.newText,i=o.insertionLength}return{newText:a,insertionLength:i,newSelection:r}}function d(e,t,r){var n=e.slice(r.start,r.end).split(/\n/),_=0,a=n.map(function(e,r){if("string"==typeof t)return _+=t.length,t+e;if("function"==typeof t){var n=t(e,r);return _+=n.length,t(e,r)+e}throw Error("insertion is expected to be either a string or a function")}).join("\n");return{newText:e.slice(0,r.start)+a+e.slice(r.end),insertionLength:_,newSelection:{start:n.length>1?r.start:r.start+_,end:r.end+_}}}Object.defineProperty(t,"__esModule",{value:!0}),t.getSurroundingWord=_,t.insertBeforeAndAfter=function(e,t){var r=e.text,n=e.selection,_=s(r,t,(n=a({text:r,selection:n})).start),i=_.newText,o=_.insertionLength;return{text:s(i,t,n.end+o).newText,selection:{start:n.start+o,end:n.end+o}}},t.selectWordIfCaretIsInsideOne=a,t.insertBreaksBeforeSoThatThereIsAnEmptyLineBefore=i,t.insertBefore=o,t.insertAfter=function(e,t,r){var _=s(e,t,r.end),a={start:r.start,end:r.end+_.insertionLength};return n({},_,{newSelection:a})},t.insertText=s,t.getBreaksNeededForEmptyLineBefore=l,t.getBreaksNeededForEmptyLineAfter=u,t.insertBreaksAfterSoThatThereIsAnEmptyLineAfter=c,t.insertBeforeEachLine=d,t.makeList=function(e,t){var r,n=e.text,_=e.selection;return{text:n=(r=d(n=(r=c({text:n=(r=i({text:n,selection:_=a({text:n,selection:_})})).newText,selection:_=r.newSelection})).newText,t,_=r.newSelection)).newText,selection:_=r.newSelection}},t.onTab=function(e,t){for(var r=e.text,n=e.selection,_=0,a=n.start;a-1>-1;a--)if("\n"===r[a-1]){_=a;break}var i=r.length;for(a=n.end;a0&&void 0!==arguments[0]?arguments[0]:d;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,e.call(this,h(r)))}return 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)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.getChildKeys=function(){return this.get("children")},t.prototype.getParentKey=function(){return this.get("parent")},t.prototype.getPrevSiblingKey=function(){return this.get("prevSibling")},t.prototype.getNextSiblingKey=function(){return this.get("nextSibling")},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),f,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t}(l(d));e.exports=E},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentBase});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(30),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(836),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentBase=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContentBase(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ContentBase),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(ContentBase).call(this,e))).state={error:null,value:null,isEditable:!1},t.field=null,t.setFieldValue=null,t.setValue=function(e,r){t.setState({value:e,error:null}),t.setFieldValue(t.field,e,r)},t.field=e.field,t.setFieldValue=e.setFieldValue,t.state.isEditable=e.isEditable,t.state.value=e.value,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(ContentBase,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(ContentBase,[{key:"componentWillReceiveProps",value:function(e){this.setState({isEditable:e.isEditable,value:e.value})}},{key:"getError",value:function(){return this.field.isRequired&&void 0===this.state.value?"This field is required!":null}},{key:"validate",value:function(){var e=this.getError();return this.setState({error:e}),!e}},{key:"getTitle",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},this.field.name)}},{key:"getInput",value:function(){return null}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},this.getTitle(),this.getInput(),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.error))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentBase}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentBase,"ContentBase","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentBase.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n=r(58);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},function(e,t,r){r(4);var n=r(564);function _(t,r,a){return"undefined"!=typeof Reflect&&Reflect.get?e.exports=_=Reflect.get:e.exports=_=function(e,t,r){var _=n(e,t);if(_){var a=Object.getOwnPropertyDescriptor(_,t);return a.get?a.get.call(r):a.value}},_(t,r,a||t)}e.exports=_},function(e,t,r){"use strict";(function(e,n){r.d(t,"b",function(){return s}),r.d(t,"c",function(){return c}),r.d(t,"a",function(){return d});var _=r(14),a=r(22),i=r(23),o=r(102);!function(){var t=r(1).enterModule;t&&t(e)}();var s={};function l(){return s.serverURL=n.env.REACT_APP_SERVER_URL||o.b.serverURL,s.appId=n.env.REACT_APP_APP_ID||o.b.appId,s.JSkey=n.env.JS_KEY||o.b.JSkey,s.RESTkey=n.env.REST_KEY||o.b.RESTkey,fetch("/chisel-config.json").then(function(e){if(e.ok)return e.json();throw e.statusText}).then(function(e){s.serverURL=e.configServerURL||s.serverURL,s.appId=e.configAppId||s.appId,s.JSkey=e.configJSkey||s.JSkey,s.RESTkey=e.configRESTkey||s.RESTkey}).catch(function(){})}function u(){_.Parse.initialize(s.appId,s.JSkey),_.Parse.serverURL=s.serverURL}function c(){l().then(function(){u(),a.store.dispatch(Object(i.j)())}).catch(function(e){console.log(e)})}function d(e){e&&(s.serverURL=e,localStorage.setItem("parseServerURL",e),_.Parse.serverURL=e)}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"config","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(l,"requestConfig","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(u,"subInitParse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(c,"initApp","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),t.register(d,"changeServerURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/initialize.js"),n(e))}()}).call(this,r(12)(e),r(132))},function(e,t,r){var n=r(45),_=r(84),a=r(94),i=r(122)("src"),o=Function.toString,s=(""+o).split("toString");r(93).inspectSource=function(e){return o.call(e)},(e.exports=function(e,t,r,o){var l="function"==typeof r;l&&(a(r,"name")||_(r,"name",t)),e[t]!==r&&(l&&(a(r,i)||_(r,i,e[t]?""+e[t]:s.join(String(t)))),e===n?e[t]=r:o?e[t]?e[t]=r:_(e,t,r):(delete e[t],_(e,t,r)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[i]||o.call(this)})},function(e,t,r){"use strict";var n=r(275),_=r(276),a=r(128),i=r(95);e.exports=r(193)(Array,"Array",function(e,t){this._t=i(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,_(1)):_(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values"),a.Arguments=a.Array,n("keys"),n("values"),n("entries")},function(e,t,r){"use strict";var n=r(634),_=r(637),a=r(638),i=r(639);function o(e,t,r,n){if(e===r)return!0;if(!r.startsWith(e))return!1;var a=r.slice(e.length);return!!t&&(a=n?n(a):a,_.contains(a,t))}function s(e){return"Windows"===n.platformName?e.replace(/^\s*NT/,""):e}var l={isBrowser:function(e){return o(n.browserName,n.browserFullVersion,e)},isBrowserArchitecture:function(e){return o(n.browserArchitecture,null,e)},isDevice:function(e){return o(n.deviceName,null,e)},isEngine:function(e){return o(n.engineName,n.engineVersion,e)},isPlatform:function(e){return o(n.platformName,n.platformFullVersion,e,s)},isPlatformArchitecture:function(e){return o(n.platformArchitecture,null,e)}};e.exports=a(l,i)},function(e,t,r){var n; /*! Copyright (c) 2017 Jed Watson. Licensed under the MIT License (MIT), see @@ -14,7 +14,7 @@ object-assign Licensed under the MIT License (MIT), see http://jedwatson.github.io/classnames */ -!function(){"use strict";var r={}.hasOwnProperty;function _(){for(var e=[],t=0;t0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0,r=e.items;switch(t.type){case u:return _()({},e,{items:t.items});case c:return r.push(t.item),_()({},e,{items:r});case f:return r.splice(r.indexOf(t.item),1),_()({},e,{items:r});case d:return _()({},e);default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(u,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(c,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(d,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(f,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(p,"requestMedia","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(h,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(E,"addMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(m,"updateMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(g,"removeMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(b,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(v,"mediaReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;!function(e){e&&e.__esModule}(r(79));t.addQueryStringValueToPath=function(e,t,r){var a=n(e),i=a.pathname,o=a.search,s=a.hash;return _({pathname:i,search:o+(-1===o.indexOf("?")?"?":"&")+t+"="+r,hash:s})},t.stripQueryStringValueFromPath=function(e,t){var r=n(e),a=r.pathname,i=r.search,o=r.hash;return _({pathname:a,search:i.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,r){return"?"===t?t:r}),hash:o})},t.getQueryStringValueFromPath=function(e,t){var r=n(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return r&&r[1]};var n=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),r="",n="",_=t.indexOf("#");-1!==_&&(n=t.substring(_),t=t.substring(0,_));var a=t.indexOf("?");return-1!==a&&(r=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:r,hash:n}},_=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,r=e.pathname,n=e.search,_=e.hash,a=(t||"")+r;return n&&"?"!==n&&(a+=n),_&&(a+=_),a}},function(e,t,r){var n=r(63),_=r(121);e.exports=r(64)?function(e,t,r){return n.f(e,t,_(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(124);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,_){return e.call(t,r,n,_)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports='icon-HammerCreated with Sketch.'},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(6)),l=n(r(148)),u=function(e){function t(e,r){var n;return(0,_.default)(this,t),(n=(0,i.default)(this,(0,o.default)(t).call(this,r))).code=e,Object.defineProperty((0,l.default)((0,l.default)(n)),"message",{enumerable:!0,value:r}),n}return(0,s.default)(t,e),(0,a.default)(t,[{key:"toString",value:function(){return"ParseError: "+this.code+" "+this.message}}]),t}((0,n(r(568)).default)(Error));u.OTHER_CAUSE=-1,u.INTERNAL_SERVER_ERROR=1,u.CONNECTION_FAILED=100,u.OBJECT_NOT_FOUND=101,u.INVALID_QUERY=102,u.INVALID_CLASS_NAME=103,u.MISSING_OBJECT_ID=104,u.INVALID_KEY_NAME=105,u.INVALID_POINTER=106,u.INVALID_JSON=107,u.COMMAND_UNAVAILABLE=108,u.NOT_INITIALIZED=109,u.INCORRECT_TYPE=111,u.INVALID_CHANNEL_NAME=112,u.PUSH_MISCONFIGURED=115,u.OBJECT_TOO_LARGE=116,u.OPERATION_FORBIDDEN=119,u.CACHE_MISS=120,u.INVALID_NESTED_KEY=121,u.INVALID_FILE_NAME=122,u.INVALID_ACL=123,u.TIMEOUT=124,u.INVALID_EMAIL_ADDRESS=125,u.MISSING_CONTENT_TYPE=126,u.MISSING_CONTENT_LENGTH=127,u.INVALID_CONTENT_LENGTH=128,u.FILE_TOO_LARGE=129,u.FILE_SAVE_ERROR=130,u.DUPLICATE_VALUE=137,u.INVALID_ROLE_NAME=139,u.EXCEEDED_QUOTA=140,u.SCRIPT_FAILED=141,u.VALIDATION_ERROR=142,u.INVALID_IMAGE_DATA=143,u.UNSAVED_FILE_ERROR=151,u.INVALID_PUSH_TIME_ERROR=152,u.FILE_DELETE_ERROR=153,u.REQUEST_LIMIT_EXCEEDED=155,u.INVALID_EVENT_NAME=160,u.USERNAME_MISSING=200,u.PASSWORD_MISSING=201,u.USERNAME_TAKEN=202,u.EMAIL_TAKEN=203,u.EMAIL_MISSING=204,u.EMAIL_NOT_FOUND=205,u.SESSION_MISSING=206,u.MUST_CREATE_USER_THROUGH_SIGNUP=207,u.ACCOUNT_ALREADY_LINKED=208,u.INVALID_SESSION_TOKEN=209,u.LINKED_ID_MISSING=250,u.INVALID_LINKED_SESSION=251,u.UNSUPPORTED_SERVICE=252,u.INVALID_SCHEMA_OPERATION=255,u.AGGREGATE_ERROR=600,u.FILE_READ_ERROR=601,u.X_DOMAIN_REQUEST=602;var c=u;t.default=c},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=r(107),s=(n(r(46)),n(r(133))),l=function(){function e(t,r){(0,_.default)(this,e),(0,i.default)(this,"parent",void 0),(0,i.default)(this,"key",void 0),(0,i.default)(this,"targetClassName",void 0),this.parent=t,this.key=r,this.targetClassName=null}return(0,a.default)(e,[{key:"_ensureParentAndKey",value:function(e,t){if(this.key=this.key||t,this.key!==t)throw new Error("Internal Error. Relation retrieved from two different keys.");if(this.parent){if(this.parent.className!==e.className)throw new Error("Internal Error. Relation retrieved from two different Objects.");if(this.parent.id){if(this.parent.id!==e.id)throw new Error("Internal Error. Relation retrieved from two different Objects.")}else e.id&&(this.parent=e)}else this.parent=e}},{key:"add",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp(e,[]),r=this.parent;if(!r)throw new Error("Cannot add to a Relation without a parent");return r.set(this.key,t),this.targetClassName=t._targetClassName,r}},{key:"remove",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp([],e);if(!this.parent)throw new Error("Cannot remove from a Relation without a parent");this.parent.set(this.key,t),this.targetClassName=t._targetClassName}},{key:"toJSON",value:function(){return{__type:"Relation",className:this.targetClassName}}},{key:"query",value:function(){var e,t=this.parent;if(!t)throw new Error("Cannot construct a query for a Relation without a parent");return this.targetClassName?e=new s.default(this.targetClassName):(e=new s.default(t.className),e._extraOptions.redirectClassNameForKey=this.key),e._addCondition("$relatedTo","object",{__type:"Pointer",className:t.className,objectId:t.id}),e._addCondition("$relatedTo","key",this.key),e}}]),e}();t.default=l},function(e,t,r){"use strict";var n=r(609);e.exports=n},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return f}),r.d(t,"c",function(){return p}),r.d(t,"d",function(){return h}),r.d(t,"a",function(){return g});r(45);var n=r(11),_=r.n(n),a=(r(303),r(21));!function(){var t=r(1).enterModule;t&&t(e)}();var i="app/serverStatus/LOG_REQUEST",o="app/serverStatus/LOG_RESPONSE",s="app/serverStatus/SET_PROBLEM_B",l="app/serverStatus/TIMER_TICK",u=0,c=7e3,d=2e4;function f(e){return u||(u=setInterval(function(){return a.store.dispatch(E())},1e3)),{type:i,time:e}}function p(e){var t=a.store.getState().serverStatus.requests;return(!t.length||1==t.length&&t[0]==e)&&(clearInterval(u),u=0),{type:o,time:e}}function h(){return clearInterval(u),u=0,{type:s}}function E(){return{type:l,time:Date.now()}}var m={requests:[],problemA:!1,problemB:!1};function g(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0,r=e.requests.slice();switch(t.type){case i:return r.push(t.time),_()({},e,{problemB:!1,requests:r});case o:return r.splice(r.indexOf(t.time),1),r.length?_()({},e,{requests:r}):_()({},e,{requests:r,problemA:!1,problemB:!1});case l:return _()({},e,{problemA:t.time-r[0]>c,problemB:t.time-r[0]>d});case s:return _()({},e,{problemB:!0});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"LOG_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(o,"LOG_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(s,"SET_PROBLEM_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(l,"TIMER_TICK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(u,"timer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(c,"TIME_A","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(d,"TIME_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(f,"logRequest","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(p,"logResponse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(h,"setProblemB","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(E,"timerTick","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(m,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(g,"serverStatusReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){var n=r(150),_=r(408),a=r(409),i="[object Null]",o="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?o:i:s&&s in Object(e)?_(e):a(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){var n=r(446),_=r(449);e.exports=function(e,t){var r=_(e,t);return n(r)?r:void 0}},function(e,t){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(e,t,r){var n=r(190),_=r(123);e.exports=function(e){return n(_(e))}},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){"use strict";var n=r(540)(!0);r(191)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=n(r(47)),s=/^data:([a-zA-Z]+\/[-a-zA-Z0-9+.]+)(;charset=[a-zA-Z0-9\-\/]*)?;base64,/;function l(e){if(e<26)return String.fromCharCode(65+e);if(e<52)return String.fromCharCode(e-26+97);if(e<62)return String.fromCharCode(e-52+48);if(62===e)return"+";if(63===e)return"/";throw new TypeError("Tried to encode large digit "+e+" in base64.")}var u=function(){function e(t,r,n){(0,_.default)(this,e),(0,i.default)(this,"_name",void 0),(0,i.default)(this,"_url",void 0),(0,i.default)(this,"_source",void 0),(0,i.default)(this,"_previousSave",void 0);var a=n||"";if(this._name=t,void 0!==r)if(Array.isArray(r))this._source={format:"base64",base64:e.encodeBase64(r),type:a};else if("undefined"!=typeof File&&r instanceof File)this._source={format:"file",file:r,type:a};else{if(!r||"string"!=typeof r.base64)throw new TypeError("Cannot create a Parse.File with that data.");var o=r.base64,l=o.indexOf(",");if(-1!==l){var u=s.exec(o.slice(0,l+1));this._source={format:"base64",base64:o.slice(l+1),type:u[1]}}else this._source={format:"base64",base64:o,type:a}}}return(0,a.default)(e,[{key:"name",value:function(){return this._name}},{key:"url",value:function(e){if(e=e||{},this._url)return e.forceSecure?this._url.replace(/^http:\/\//i,"https://"):this._url}},{key:"save",value:function(e){var t=this;e=e||{};var r=o.default.getFileController();if(this._previousSave||("file"===this._source.format?this._previousSave=r.saveFile(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t}):this._previousSave=r.saveBase64(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t})),this._previousSave)return this._previousSave}},{key:"toJSON",value:function(){return{__type:"File",name:this._name,url:this._url}}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.name()===t.name()&&this.url()===t.url()&&void 0!==this.url()}}],[{key:"fromJSON",value:function(t){if("File"!==t.__type)throw new TypeError("JSON object does not represent a ParseFile");var r=new e(t.name);return r._url=t.url,r}},{key:"encodeBase64",value:function(e){var t=[];t.length=Math.ceil(e.length/3);for(var r=0;r>2&63),l(n<<4&48|_>>4&15),i?l(_<<2&60|a>>6&3):"=",o?l(63&a):"="].join("")}return t.join("")}}]),e}(),c={saveFile:function(e,t){if("file"!==t.format)throw new Error("saveFile can only be used with File-type sources.");var r={"X-Parse-Application-ID":o.default.get("APPLICATION_ID"),"Content-Type":t.type||(t.file?t.file.type:null)},n=o.default.get("JAVASCRIPT_KEY");n&&(r["X-Parse-JavaScript-Key"]=n);var _=o.default.get("SERVER_URL");return"/"!==_[_.length-1]&&(_+="/"),_+="files/"+e,o.default.getRESTController().ajax("POST",_,t.file,r).then(function(e){return e.response})},saveBase64:function(e,t,r){if("base64"!==t.format)throw new Error("saveBase64 can only be used with Base64-type sources.");var n={base64:t.base64};return t.type&&(n._ContentType=t.type),o.default.getRESTController().request("POST","files/"+e,n,r)}};o.default.setFileController(c);var d=u;t.default=d},function(e,t,r){"use strict";var n=r(61),_=r(30),a=r(136),i=_.List,o=_.Map,s=_.OrderedSet,l=_.Record,u=_.Repeat,c=s(),d=function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=i(u(n.EMPTY,r.length))),e},f=function(e){function t(r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,e.call(this,d(r)))}return 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)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),h,e,t)},t}(l({key:"",type:"unstyled",text:"",characterList:i(),depth:0,data:o()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},function(e,t,r){"use strict";var n=r(29),_=55296,a=56319,i=56320,o=57343,s=/[\uD800-\uDFFF]/;function l(e){return _<=e&&e<=o}function u(e){return s.test(e)}function c(e,t){return 1+l(e.charCodeAt(t))}function d(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!u(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var _=0;if(t>0){for(;t>0&&_=n)return""}else if(t<0){for(_=n;t<0&&0<_;t++)_-=c(e,_-1);_<0&&(_=0)}var a=n;if(r0&&a0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="string"==typeof e?(0,i.parsePath)(e):e;return{pathname:n.pathname||"/",search:n.search||"",hash:n.hash||"",state:n.state,action:t,key:r}};var l=function(e){return"[object Date]"===Object.prototype.toString.call(e)},u=t.statesAreEqual=function e(t,r){if(t===r)return!0;var _=void 0===t?"undefined":n(t);if(_!==(void 0===r?"undefined":n(r)))return!1;if("function"===_&&(0,a.default)(!1),"object"===_){if(l(t)&&l(r)&&(0,a.default)(!1),!Array.isArray(t)){var i=Object.keys(t),o=Object.keys(r);return i.length===o.length&&i.every(function(n){return e(t[n],r[n])})}return Array.isArray(r)&&t.length===r.length&&t.every(function(t,n){return e(t,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&u(e.state,t.state)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(267),_=r(194);e.exports=Object.keys||function(e){return n(e,_)}},function(e,t,r){var n=r(123);e.exports=function(e){return Object(n(e))}},function(e,t,r){r(198)("replace",2,function(e,t,r){return[function(n,_){"use strict";var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,_):r.call(String(a),n,_)},r]})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.opFromJSON=function(e){if(!e||!e.__op)return null;switch(e.__op){case"Delete":return new b;case"Increment":return new v(e.amount);case"Add":return new O((0,d.default)(e.objects));case"AddUnique":return new M((0,d.default)(e.objects));case"Remove":return new C((0,d.default)(e.objects));case"AddRelation":var t=(0,d.default)(e.objects);return Array.isArray(t)?new P(t,[]):new P([],[]);case"RemoveRelation":var r=(0,d.default)(e.objects);return Array.isArray(r)?new P([],r):new P([],[]);case"Batch":for(var n=[],_=[],a=0;a-1;)t.splice(n,1),n=t.indexOf(this._value[r]);if(this._value[r]instanceof p.default&&this._value[r].id)for(var _=0;_-1&&r.splice(t,1)}),this.relationsToAdd.forEach(function(e){r.indexOf(e)<0&&r.push(e)});var n=e.relationsToRemove.concat([]);this.relationsToAdd.forEach(function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)}),this.relationsToRemove.forEach(function(e){n.indexOf(e)<0&&n.push(e)});var _=new t(r,n);return _._targetClassName=this._targetClassName,_}throw new Error("Cannot merge Relation Op with the previous Op")}},{key:"toJSON",value:function(){var e=this,t=function(t){return{__type:"Pointer",className:e._targetClassName,objectId:t}},r=null,n=null;return this.relationsToAdd.length>0&&(r={__op:"AddRelation",objects:this.relationsToAdd.map(t)}),this.relationsToRemove.length>0&&(n={__op:"RemoveRelation",objects:this.relationsToRemove.map(t)}),r&&n?{__op:"Batch",ops:[r,n]}:r||n||{}}}]),t}(m);t.RelationOp=P},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return function e(t,r,n,f){if(t instanceof l.default){if(r)throw new Error("Parse Objects not allowed here");var p=t.id?t.className+":"+t.id:t;return n||!f||f.indexOf(p)>-1||t.dirty()||Object.keys(t._getServerData()).length<1?t.toPointer():(f=f.concat(p),t._toFullJSON(f))}if(t instanceof u.Op||t instanceof a.default||t instanceof o.default||t instanceof s.default||t instanceof c.default)return t.toJSON();if(t instanceof i.default){if(!t.url())throw new Error("Tried to encode an unsaved file.");return t.toJSON()}if("[object Date]"===d.call(t)){if(isNaN(t))throw new Error("Tried to encode an invalid date.");return{__type:"Date",iso:t.toJSON()}}if("[object RegExp]"===d.call(t)&&"string"==typeof t.source)return t.source;if(Array.isArray(t))return t.map(function(t){return e(t,r,n,f)});if(t&&"object"===(0,_.default)(t)){var h={};for(var E in t)h[E]=e(t[E],r,n,f);return h}return t}(e,!!t,!!r,n||[])};var _=n(r(41)),a=n(r(130)),i=n(r(98)),o=n(r(132)),s=n(r(208)),l=n(r(46)),u=r(107),c=n(r(88)),d=Object.prototype.toString},function(e,t,r){"use strict";var n=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,e.apply(this,arguments))}return 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)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),_=this.getFocusKey();if(n===_&&n===e){var a=this.getStartOffset();return t<=this.getEndOffset()&&a<=r}if(e!==n&&e!==_)return!1;var i=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=i&&r>=i},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,r(30).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},function(e,t,r){"use strict";function n(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(n).join(" "):Array.prototype.map.call(arguments,n).join(" ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var n=r(237);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return n.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return n.routerReducer}});var _=r(238);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return _.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return _.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return _.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return _.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return _.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return _.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return _.routerActions}});var a=o(r(406)),i=o(r(407));function o(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=a.default,t.routerMiddleware=i.default},function(e,t,r){(function(e,n){var _; +!function(){"use strict";var r={}.hasOwnProperty;function _(){for(var e=[],t=0;t=0;a--){var i=_[a],o=r[i];o!==n[i]&&(-1===u.indexOf(i)||Array.isArray(o)||(o=[o]),this.flatpickr.set(i,o))}e.hasOwnProperty("value")&&e.value!==this.props.value&&this.flatpickr.setDate(e.value,!1)}},{key:"componentDidMount",value:function(){var e=this,t=n({onClose:function(){e.node.blur&&e.node.blur()}},this.props.options);u.forEach(function(r){e.props[r]&&(t[r]=e.props[r])}),this.flatpickr=new s.default(this.node,t),this.props.hasOwnProperty("value")&&this.flatpickr.setDate(this.props.value,!1)}},{key:"componentWillUnmount",value:function(){this.flatpickr.destroy()}},{key:"render",value:function(){var e=this,t=this.props,r=t.options,_=t.defaultValue,a=(t.value,t.children),o=function(e,t){var r={};for(var n in e)t.indexOf(n)>=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(t,["options","defaultValue","value","children"]);return u.forEach(function(e){delete o[e]}),r.wrap?i.default.createElement("div",n({},o,{ref:function(t){e.node=t}}),a):i.default.createElement("input",n({},o,{defaultValue:_,ref:function(t){e.node=t}}))}}]),t}();c.propTypes={defaultValue:o.default.string,options:o.default.object,onChange:o.default.func,onOpen:o.default.func,onClose:o.default.func,onMonthChange:o.default.func,onYearChange:o.default.func,onReady:o.default.func,onValueUpdate:o.default.func,onDayCreate:o.default.func,value:o.default.oneOfType([o.default.string,o.default.array,o.default.object,o.default.number]),children:o.default.node},c.defaultProps={options:{}},t.default=c},function(e,t,r){var n=r(241),_="object"==typeof self&&self&&self.Object===Object&&self,a=n||_||Function("return this")();e.exports=a},function(e,t){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},function(e,t){e.exports='Group 4Created with Sketch.'},function(e,t,r){"use strict";var n={},_=Math.pow(2,24);e.exports=function(){for(var e=void 0;void 0===e||n.hasOwnProperty(e)||!isNaN(+e);)e=Math.floor(Math.random()*_).toString(32);return n[e]=!0,e}},function(e,t,r){"use strict";e.exports=function(){}},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return u}),r.d(t,"d",function(){return h}),r.d(t,"b",function(){return E}),r.d(t,"f",function(){return m}),r.d(t,"e",function(){return g}),r.d(t,"c",function(){return v});r(43);var n=r(11),_=r.n(n),a=(r(50),r(51),r(42),r(229),r(14)),i=r(22),o=r(145),s=r(16),l=r(13);!function(){var t=r(1).enterModule;t&&t(e)}();var u="app/media/INIT_END",c="app/media/ITEM_ADD",d="app/media/ITEM_UPDATE",f="app/media/ITEM_DELETE";function p(){var e=i.store.getState().models.sites,t=[],r=!0,n=!1,_=void 0;try{for(var u,c=e[Symbol.iterator]();!(r=(u=c.next()).done);r=!0){var d=u.value;t.push(d.origin)}}catch(e){n=!0,_=e}finally{try{r||null==c.return||c.return()}finally{if(n)throw _}}return Object(l.a)(new a.Parse.Query(o.a.OriginClass).containedIn("site",t).find()).then(function(e){var t=[],r=!0,n=!1,_=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var l=a.value,u=(new o.a).setOrigin(l);u.site=Object(s.y)(l.get("site").id),t.push(u)}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}return t})}function h(){return function(e){p().then(function(t){return e({type:u,items:t})})}}function E(e){return e.updateOrigin(),Object(l.a)(e.origin.save()).then(function(){return Object(l.a)(a.Parse.Cloud.run("onMediaItemAdd",{itemId:e.origin.id}))}),{type:c,item:e}}function m(e){return e.updateOrigin(),Object(l.a)(e.origin.save()),{type:d,item:e}}function g(e){return Object(l.a)(e.origin.destroy()),{type:f,item:e}}var b={items:[]};function v(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:b,t=arguments.length>1?arguments[1]:void 0,r=e.items;switch(t.type){case u:return _()({},e,{items:t.items});case c:return r.push(t.item),_()({},e,{items:r});case f:return r.splice(r.indexOf(t.item),1),_()({},e,{items:r});case d:return _()({},e);default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(u,"INIT_END","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(c,"ITEM_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(d,"ITEM_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(f,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(p,"requestMedia","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(h,"init","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(E,"addMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(m,"updateMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(g,"removeMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(b,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(v,"mediaReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";t.__esModule=!0,t.createPath=t.parsePath=t.getQueryStringValueFromPath=t.stripQueryStringValueFromPath=t.addQueryStringValueToPath=void 0;!function(e){e&&e.__esModule}(r(81));t.addQueryStringValueToPath=function(e,t,r){var a=n(e),i=a.pathname,o=a.search,s=a.hash;return _({pathname:i,search:o+(-1===o.indexOf("?")?"?":"&")+t+"="+r,hash:s})},t.stripQueryStringValueFromPath=function(e,t){var r=n(e),a=r.pathname,i=r.search,o=r.hash;return _({pathname:a,search:i.replace(new RegExp("([?&])"+t+"=[a-zA-Z0-9]+(&?)"),function(e,t,r){return"?"===t?t:r}),hash:o})},t.getQueryStringValueFromPath=function(e,t){var r=n(e).search.match(new RegExp("[?&]"+t+"=([a-zA-Z0-9]+)"));return r&&r[1]};var n=t.parsePath=function(e){var t=function(e){var t=e.match(/^(https?:)?\/\/[^\/]*/);return null==t?e:e.substring(t[0].length)}(e),r="",n="",_=t.indexOf("#");-1!==_&&(n=t.substring(_),t=t.substring(0,_));var a=t.indexOf("?");return-1!==a&&(r=t.substring(a),t=t.substring(0,a)),""===t&&(t="/"),{pathname:t,search:r,hash:n}},_=t.createPath=function(e){if(null==e||"string"==typeof e)return e;var t=e.basename,r=e.pathname,n=e.search,_=e.hash,a=(t||"")+r;return n&&"?"!==n&&(a+=n),_&&(a+=_),a}},function(e,t,r){var n=r(63),_=r(121);e.exports=r(64)?function(e,t,r){return n.f(e,t,_(1,r))}:function(e,t,r){return e[t]=r,e}},function(e,t,r){var n=r(123);e.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,_){return e.call(t,r,n,_)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports='icon-HammerCreated with Sketch.'},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(6)),l=n(r(149)),u=function(e){function t(e,r){var n;return(0,_.default)(this,t),(n=(0,i.default)(this,(0,o.default)(t).call(this,r))).code=e,Object.defineProperty((0,l.default)((0,l.default)(n)),"message",{enumerable:!0,value:r}),n}return(0,s.default)(t,e),(0,a.default)(t,[{key:"toString",value:function(){return"ParseError: "+this.code+" "+this.message}}]),t}((0,n(r(565)).default)(Error));u.OTHER_CAUSE=-1,u.INTERNAL_SERVER_ERROR=1,u.CONNECTION_FAILED=100,u.OBJECT_NOT_FOUND=101,u.INVALID_QUERY=102,u.INVALID_CLASS_NAME=103,u.MISSING_OBJECT_ID=104,u.INVALID_KEY_NAME=105,u.INVALID_POINTER=106,u.INVALID_JSON=107,u.COMMAND_UNAVAILABLE=108,u.NOT_INITIALIZED=109,u.INCORRECT_TYPE=111,u.INVALID_CHANNEL_NAME=112,u.PUSH_MISCONFIGURED=115,u.OBJECT_TOO_LARGE=116,u.OPERATION_FORBIDDEN=119,u.CACHE_MISS=120,u.INVALID_NESTED_KEY=121,u.INVALID_FILE_NAME=122,u.INVALID_ACL=123,u.TIMEOUT=124,u.INVALID_EMAIL_ADDRESS=125,u.MISSING_CONTENT_TYPE=126,u.MISSING_CONTENT_LENGTH=127,u.INVALID_CONTENT_LENGTH=128,u.FILE_TOO_LARGE=129,u.FILE_SAVE_ERROR=130,u.DUPLICATE_VALUE=137,u.INVALID_ROLE_NAME=139,u.EXCEEDED_QUOTA=140,u.SCRIPT_FAILED=141,u.VALIDATION_ERROR=142,u.INVALID_IMAGE_DATA=143,u.UNSAVED_FILE_ERROR=151,u.INVALID_PUSH_TIME_ERROR=152,u.FILE_DELETE_ERROR=153,u.REQUEST_LIMIT_EXCEEDED=155,u.INVALID_EVENT_NAME=160,u.USERNAME_MISSING=200,u.PASSWORD_MISSING=201,u.USERNAME_TAKEN=202,u.EMAIL_TAKEN=203,u.EMAIL_MISSING=204,u.EMAIL_NOT_FOUND=205,u.SESSION_MISSING=206,u.MUST_CREATE_USER_THROUGH_SIGNUP=207,u.ACCOUNT_ALREADY_LINKED=208,u.INVALID_SESSION_TOKEN=209,u.LINKED_ID_MISSING=250,u.INVALID_LINKED_SESSION=251,u.UNSUPPORTED_SERVICE=252,u.INVALID_SCHEMA_OPERATION=255,u.AGGREGATE_ERROR=600,u.FILE_READ_ERROR=601,u.X_DOMAIN_REQUEST=602;var c=u;t.default=c},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=r(107),s=(n(r(46)),n(r(134))),l=function(){function e(t,r){(0,_.default)(this,e),(0,i.default)(this,"parent",void 0),(0,i.default)(this,"key",void 0),(0,i.default)(this,"targetClassName",void 0),this.parent=t,this.key=r,this.targetClassName=null}return(0,a.default)(e,[{key:"_ensureParentAndKey",value:function(e,t){if(this.key=this.key||t,this.key!==t)throw new Error("Internal Error. Relation retrieved from two different keys.");if(this.parent){if(this.parent.className!==e.className)throw new Error("Internal Error. Relation retrieved from two different Objects.");if(this.parent.id){if(this.parent.id!==e.id)throw new Error("Internal Error. Relation retrieved from two different Objects.")}else e.id&&(this.parent=e)}else this.parent=e}},{key:"add",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp(e,[]),r=this.parent;if(!r)throw new Error("Cannot add to a Relation without a parent");return r.set(this.key,t),this.targetClassName=t._targetClassName,r}},{key:"remove",value:function(e){Array.isArray(e)||(e=[e]);var t=new o.RelationOp([],e);if(!this.parent)throw new Error("Cannot remove from a Relation without a parent");this.parent.set(this.key,t),this.targetClassName=t._targetClassName}},{key:"toJSON",value:function(){return{__type:"Relation",className:this.targetClassName}}},{key:"query",value:function(){var e,t=this.parent;if(!t)throw new Error("Cannot construct a query for a Relation without a parent");return this.targetClassName?e=new s.default(this.targetClassName):(e=new s.default(t.className),e._extraOptions.redirectClassNameForKey=this.key),e._addCondition("$relatedTo","object",{__type:"Pointer",className:t.className,objectId:t.id}),e._addCondition("$relatedTo","key",this.key),e}}]),e}();t.default=l},function(e,t,r){"use strict";var n=r(612);e.exports=n},function(e,t,r){var n=r(151),_=r(410),a=r(411),i="[object Null]",o="[object Undefined]",s=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?o:i:s&&s in Object(e)?_(e):a(e)}},function(e,t){e.exports=function(e){return null!=e&&"object"==typeof e}},function(e,t,r){var n=r(448),_=r(451);e.exports=function(e,t){var r=_(e,t);return n(r)?r:void 0}},function(e,t){var r=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=r)},function(e,t){var r={}.hasOwnProperty;e.exports=function(e,t){return r.call(e,t)}},function(e,t,r){var n=r(191),_=r(124);e.exports=function(e){return n(_(e))}},function(e,t,r){"use strict";var n=r(559)(!0);r(193)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=n(t,r),this._i+=e.length,{value:e,done:!1})})},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=n(r(47)),s=/^data:([a-zA-Z]+\/[-a-zA-Z0-9+.]+)(;charset=[a-zA-Z0-9\-\/]*)?;base64,/;function l(e){if(e<26)return String.fromCharCode(65+e);if(e<52)return String.fromCharCode(e-26+97);if(e<62)return String.fromCharCode(e-52+48);if(62===e)return"+";if(63===e)return"/";throw new TypeError("Tried to encode large digit "+e+" in base64.")}var u=function(){function e(t,r,n){(0,_.default)(this,e),(0,i.default)(this,"_name",void 0),(0,i.default)(this,"_url",void 0),(0,i.default)(this,"_source",void 0),(0,i.default)(this,"_previousSave",void 0);var a=n||"";if(this._name=t,void 0!==r)if(Array.isArray(r))this._source={format:"base64",base64:e.encodeBase64(r),type:a};else if("undefined"!=typeof File&&r instanceof File)this._source={format:"file",file:r,type:a};else{if(!r||"string"!=typeof r.base64)throw new TypeError("Cannot create a Parse.File with that data.");var o=r.base64,l=o.indexOf(",");if(-1!==l){var u=s.exec(o.slice(0,l+1));this._source={format:"base64",base64:o.slice(l+1),type:u[1]}}else this._source={format:"base64",base64:o,type:a}}}return(0,a.default)(e,[{key:"name",value:function(){return this._name}},{key:"url",value:function(e){if(e=e||{},this._url)return e.forceSecure?this._url.replace(/^http:\/\//i,"https://"):this._url}},{key:"save",value:function(e){var t=this;e=e||{};var r=o.default.getFileController();if(this._previousSave||("file"===this._source.format?this._previousSave=r.saveFile(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t}):this._previousSave=r.saveBase64(this._name,this._source,e).then(function(e){return t._name=e.name,t._url=e.url,t})),this._previousSave)return this._previousSave}},{key:"toJSON",value:function(){return{__type:"File",name:this._name,url:this._url}}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.name()===t.name()&&this.url()===t.url()&&void 0!==this.url()}}],[{key:"fromJSON",value:function(t){if("File"!==t.__type)throw new TypeError("JSON object does not represent a ParseFile");var r=new e(t.name);return r._url=t.url,r}},{key:"encodeBase64",value:function(e){var t=[];t.length=Math.ceil(e.length/3);for(var r=0;r>2&63),l(n<<4&48|_>>4&15),i?l(_<<2&60|a>>6&3):"=",o?l(63&a):"="].join("")}return t.join("")}}]),e}(),c={saveFile:function(e,t){if("file"!==t.format)throw new Error("saveFile can only be used with File-type sources.");var r={"X-Parse-Application-ID":o.default.get("APPLICATION_ID"),"Content-Type":t.type||(t.file?t.file.type:null)},n=o.default.get("JAVASCRIPT_KEY");n&&(r["X-Parse-JavaScript-Key"]=n);var _=o.default.get("SERVER_URL");return"/"!==_[_.length-1]&&(_+="/"),_+="files/"+e,o.default.getRESTController().ajax("POST",_,t.file,r).then(function(e){return e.response})},saveBase64:function(e,t,r){if("base64"!==t.format)throw new Error("saveBase64 can only be used with Base64-type sources.");var n={base64:t.base64};return t.type&&(n._ContentType=t.type),o.default.getRESTController().request("POST","files/"+e,n,r)}};o.default.setFileController(c);var d=u;t.default=d},function(e,t,r){"use strict";var n=r(61),_=r(31),a=r(138),i=_.List,o=_.Map,s=_.OrderedSet,l=_.Record,u=_.Repeat,c=s(),d=function(e){if(!e)return e;var t=e.characterList,r=e.text;return r&&!t&&(e.characterList=i(u(n.EMPTY,r.length))),e},f=function(e){function t(r){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,e.call(this,d(r)))}return 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)}(t,e),t.prototype.getKey=function(){return this.get("key")},t.prototype.getType=function(){return this.get("type")},t.prototype.getText=function(){return this.get("text")},t.prototype.getCharacterList=function(){return this.get("characterList")},t.prototype.getLength=function(){return this.getText().length},t.prototype.getDepth=function(){return this.get("depth")},t.prototype.getData=function(){return this.get("data")},t.prototype.getInlineStyleAt=function(e){var t=this.getCharacterList().get(e);return t?t.getStyle():c},t.prototype.getEntityAt=function(e){var t=this.getCharacterList().get(e);return t?t.getEntity():null},t.prototype.findStyleRanges=function(e,t){a(this.getCharacterList(),p,e,t)},t.prototype.findEntityRanges=function(e,t){a(this.getCharacterList(),h,e,t)},t}(l({key:"",type:"unstyled",text:"",characterList:i(),depth:0,data:o()}));function p(e,t){return e.getStyle()===t.getStyle()}function h(e,t){return e.getEntity()===t.getEntity()}e.exports=f},function(e,t,r){"use strict";var n=r(29),_=55296,a=56319,i=56320,o=57343,s=/[\uD800-\uDFFF]/;function l(e){return _<=e&&e<=o}function u(e){return s.test(e)}function c(e,t){return 1+l(e.charCodeAt(t))}function d(e,t,r){if(t=t||0,r=void 0===r?1/0:r||0,!u(e))return e.substr(t,r);var n=e.length;if(n<=0||t>n||r<=0)return"";var _=0;if(t>0){for(;t>0&&_=n)return""}else if(t<0){for(_=n;t<0&&0<_;t++)_-=c(e,_-1);_<0&&(_=0)}var a=n;if(r0&&a0&&void 0!==arguments[0]?arguments[0]:m,t=arguments.length>1?arguments[1]:void 0,r=e.requests.slice();switch(t.type){case i:return r.push(t.time),_()({},e,{problemB:!1,requests:r});case o:return r.splice(r.indexOf(t.time),1),r.length?_()({},e,{requests:r}):_()({},e,{requests:r,problemA:!1,problemB:!1});case l:var n=t.time-r[0]>c,a=t.time-r[0]>d;return a&&(r=[]),_()({},e,{problemA:n,problemB:a,requests:r});case s:return _()({},e,{requests:[],problemB:!0});default:return e}}!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(i,"LOG_REQUEST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(o,"LOG_RESPONSE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(s,"SET_PROBLEM_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(l,"TIMER_TICK","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(u,"timer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(c,"TIME_A","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(d,"TIME_B","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(f,"logRequest","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(p,"logResponse","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(h,"setProblemB","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(E,"timerTick","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(m,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),t.register(g,"serverStatusReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"b",function(){return n}),r.d(t,"a",function(){return _}),function(){var t=r(1).enterModule;t&&t(e)}();var n={serverURL:"http://localhost:1337/parse",appId:"SampleAppId",JSkey:"liYLwLfENUIiiD6bz8TerwIZPPnJWP3VVHCSUUOT",RESTkey:"AMMaWJMu4u6hSANZfbBFZHLhU83DWOXHXPVnPHJE"},_=10485760;!function(){var t=r(1).default,a=r(1).leaveModule;t&&(t.register(n,"config","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ConnectConstants.js"),t.register(_,"FILE_SIZE_MAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ConnectConstants.js"),a(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";t.__esModule=!0,t.locationsAreEqual=t.statesAreEqual=t.createLocation=t.createQuery=void 0;var n="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},_=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:"/",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:o.POP,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,n="string"==typeof e?(0,i.parsePath)(e):e;return{pathname:n.pathname||"/",search:n.search||"",hash:n.hash||"",state:n.state,action:t,key:r}};var l=function(e){return"[object Date]"===Object.prototype.toString.call(e)},u=t.statesAreEqual=function e(t,r){if(t===r)return!0;var _=void 0===t?"undefined":n(t);if(_!==(void 0===r?"undefined":n(r)))return!1;if("function"===_&&(0,a.default)(!1),"object"===_){if(l(t)&&l(r)&&(0,a.default)(!1),!Array.isArray(t)){var i=Object.keys(t),o=Object.keys(r);return i.length===o.length&&i.every(function(n){return e(t[n],r[n])})}return Array.isArray(r)&&t.length===r.length&&t.every(function(t,n){return e(t,r[n])})}return!1};t.locationsAreEqual=function(e,t){return e.key===t.key&&e.pathname===t.pathname&&e.search===t.search&&e.hash===t.hash&&u(e.state,t.state)}},function(e,t){var r={}.toString;e.exports=function(e){return r.call(e).slice(8,-1)}},function(e,t,r){var n=r(124);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(277),_=r(196);e.exports=Object.keys||function(e){return n(e,_)}},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.opFromJSON=function(e){if(!e||!e.__op)return null;switch(e.__op){case"Delete":return new b;case"Increment":return new v(e.amount);case"Add":return new O((0,d.default)(e.objects));case"AddUnique":return new M((0,d.default)(e.objects));case"Remove":return new C((0,d.default)(e.objects));case"AddRelation":var t=(0,d.default)(e.objects);return Array.isArray(t)?new P(t,[]):new P([],[]);case"RemoveRelation":var r=(0,d.default)(e.objects);return Array.isArray(r)?new P([],r):new P([],[]);case"Batch":for(var n=[],_=[],a=0;a-1;)t.splice(n,1),n=t.indexOf(this._value[r]);if(this._value[r]instanceof p.default&&this._value[r].id)for(var _=0;_-1&&r.splice(t,1)}),this.relationsToAdd.forEach(function(e){r.indexOf(e)<0&&r.push(e)});var n=e.relationsToRemove.concat([]);this.relationsToAdd.forEach(function(e){var t=n.indexOf(e);t>-1&&n.splice(t,1)}),this.relationsToRemove.forEach(function(e){n.indexOf(e)<0&&n.push(e)});var _=new t(r,n);return _._targetClassName=this._targetClassName,_}throw new Error("Cannot merge Relation Op with the previous Op")}},{key:"toJSON",value:function(){var e=this,t=function(t){return{__type:"Pointer",className:e._targetClassName,objectId:t}},r=null,n=null;return this.relationsToAdd.length>0&&(r={__op:"AddRelation",objects:this.relationsToAdd.map(t)}),this.relationsToRemove.length>0&&(n={__op:"RemoveRelation",objects:this.relationsToRemove.map(t)}),r&&n?{__op:"Batch",ops:[r,n]}:r||n||{}}}]),t}(m);t.RelationOp=P},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,r,n){return function e(t,r,n,f){if(t instanceof l.default){if(r)throw new Error("Parse Objects not allowed here");var p=t.id?t.className+":"+t.id:t;return n||!f||f.indexOf(p)>-1||t.dirty()||Object.keys(t._getServerData()).length<1?t.toPointer():(f=f.concat(p),t._toFullJSON(f))}if(t instanceof u.Op||t instanceof a.default||t instanceof o.default||t instanceof s.default||t instanceof c.default)return t.toJSON();if(t instanceof i.default){if(!t.url())throw new Error("Tried to encode an unsaved file.");return t.toJSON()}if("[object Date]"===d.call(t)){if(isNaN(t))throw new Error("Tried to encode an invalid date.");return{__type:"Date",iso:t.toJSON()}}if("[object RegExp]"===d.call(t)&&"string"==typeof t.source)return t.source;if(Array.isArray(t))return t.map(function(t){return e(t,r,n,f)});if(t&&"object"===(0,_.default)(t)){var h={};for(var E in t)h[E]=e(t[E],r,n,f);return h}return t}(e,!!t,!!r,n||[])};var _=n(r(41)),a=n(r(131)),i=n(r(97)),o=n(r(133)),s=n(r(206)),l=n(r(46)),u=r(107),c=n(r(88)),d=Object.prototype.toString},function(e,t,r){r(209)("replace",2,function(e,t,r){return[function(n,_){"use strict";var a=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,a,_):r.call(String(a),n,_)},r]})},function(e,t,r){"use strict";var n=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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}(this,e.apply(this,arguments))}return 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)}(t,e),t.prototype.serialize=function(){return"Anchor: "+this.getAnchorKey()+":"+this.getAnchorOffset()+", Focus: "+this.getFocusKey()+":"+this.getFocusOffset()+", Is Backward: "+String(this.getIsBackward())+", Has Focus: "+String(this.getHasFocus())},t.prototype.getAnchorKey=function(){return this.get("anchorKey")},t.prototype.getAnchorOffset=function(){return this.get("anchorOffset")},t.prototype.getFocusKey=function(){return this.get("focusKey")},t.prototype.getFocusOffset=function(){return this.get("focusOffset")},t.prototype.getIsBackward=function(){return this.get("isBackward")},t.prototype.getHasFocus=function(){return this.get("hasFocus")},t.prototype.hasEdgeWithin=function(e,t,r){var n=this.getAnchorKey(),_=this.getFocusKey();if(n===_&&n===e){var a=this.getStartOffset();return t<=this.getEndOffset()&&a<=r}if(e!==n&&e!==_)return!1;var i=e===n?this.getAnchorOffset():this.getFocusOffset();return t<=i&&r>=i},t.prototype.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},t.prototype.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},t.prototype.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},t.prototype.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},t.prototype.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},t.createEmpty=function(e){return new t({anchorKey:e,anchorOffset:0,focusKey:e,focusOffset:0,isBackward:!1,hasFocus:!1})},t}((0,r(31).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));e.exports=n},function(e,t,r){"use strict";function n(e){return e.replace(/\//g,"-")}e.exports=function(e){return"object"==typeof e?Object.keys(e).filter(function(t){return e[t]}).map(n).join(" "):Array.prototype.map.call(arguments,n).join(" ")}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.routerMiddleware=t.routerActions=t.goForward=t.goBack=t.go=t.replace=t.push=t.CALL_HISTORY_METHOD=t.routerReducer=t.LOCATION_CHANGE=t.syncHistoryWithStore=void 0;var n=r(239);Object.defineProperty(t,"LOCATION_CHANGE",{enumerable:!0,get:function(){return n.LOCATION_CHANGE}}),Object.defineProperty(t,"routerReducer",{enumerable:!0,get:function(){return n.routerReducer}});var _=r(240);Object.defineProperty(t,"CALL_HISTORY_METHOD",{enumerable:!0,get:function(){return _.CALL_HISTORY_METHOD}}),Object.defineProperty(t,"push",{enumerable:!0,get:function(){return _.push}}),Object.defineProperty(t,"replace",{enumerable:!0,get:function(){return _.replace}}),Object.defineProperty(t,"go",{enumerable:!0,get:function(){return _.go}}),Object.defineProperty(t,"goBack",{enumerable:!0,get:function(){return _.goBack}}),Object.defineProperty(t,"goForward",{enumerable:!0,get:function(){return _.goForward}}),Object.defineProperty(t,"routerActions",{enumerable:!0,get:function(){return _.routerActions}});var a=o(r(408)),i=o(r(409));function o(e){return e&&e.__esModule?e:{default:e}}t.syncHistoryWithStore=a.default,t.routerMiddleware=i.default},function(e,t,r){(function(e,n){var _; /** * @license * Lodash (Custom Build) @@ -23,8 +23,8 @@ object-assign * Released under MIT license * Based on Underscore.js 1.8.3 * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */(function(){var a,i="Expected a function",o=1,s=2,l=1,u=1/0,c=9007199254740991,d="[object Arguments]",f="[object Array]",p="[object AsyncFunction]",h="[object Boolean]",E="[object Date]",m="[object Error]",g="[object Function]",b="[object GeneratorFunction]",v="[object Number]",O="[object Object]",M="[object Proxy]",C="[object RegExp]",P="[object String]",D=/[&<>"']/g,y=RegExp(D.source),w=/^(?:0|[1-9]\d*)$/,T="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,k=T||A||Function("return this")();t&&!t.nodeType&&t&&"object"==typeof n&&n&&n.nodeType;function I(e,t){return e.push.apply(e,t),e}function R(e){return function(t){return null==t?a:t[e]}}var L=function(e){return function(t){return null==e?a:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});var B=Array.prototype,U=Object.prototype,S=U.hasOwnProperty,K=0,W=U.toString,x=k._,j=Object.create,N=U.propertyIsEnumerable,q=k.isFinite,F=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),V=Math.max;function H(e){return e instanceof G?e:new G(e)}var z=function(){function e(){}return function(t){if(!Ne(t))return{};if(j)return j(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function G(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t}function Y(e,t,r){var n=e[t];S.call(e,t)&&Ue(n,r)&&(r!==a||t in e)||J(e,t,r)}function J(e,t,r){e[t]=r}function X(e,t,r){if("function"!=typeof e)throw new TypeError(i);return setTimeout(function(){e.apply(a,r)},t)}G.prototype=z(H.prototype),G.prototype.constructor=G;var Q=function(e,t){return function(r,n){if(null==r)return r;if(!We(r))return e(r,n);for(var _=r.length,a=t?_:-1,i=Object(r);(t?a--:++a<_)&&!1!==n(i[a],a,i););return r}}(re);function $(e,t,r){for(var n=-1,_=e.length;++n<_;){var i=e[n],o=t(i);if(null!=o&&(s===a?o==o:r(o,s)))var s=o,l=i}return l}function Z(e,t){var r=[];return Q(e,function(e,n,_){t(e,n,_)&&r.push(e)}),r}function ee(e,t,r,n,_){var a=-1,i=e.length;for(r||(r=be),_||(_=[]);++a0&&r(o)?t>1?ee(o,t-1,r,n,_):I(_,o):n||(_[_.length]=o)}return _}var te=function(e){return function(t,r,n){for(var _=-1,a=Object(t),i=n(t),o=i.length;o--;){var s=i[e?o:++_];if(!1===r(a[s],s,a))break}return t}}();function re(e,t){return e&&te(e,t,$e)}function ne(e,t){return Z(t,function(t){return je(e[t])})}function _e(e){return function(e){return W.call(e)}(e)}function ae(e,t){return e>t}var ie=at;function oe(e,t,r,n,_){return e===t||(null==e||null==t||!qe(e)&&!qe(t)?e!=e&&t!=t:function(e,t,r,n,_,i){var l=Ke(e),u=Ke(t),c=l?f:_e(e),p=u?f:_e(t),g=(c=c==d?O:c)==O,b=(p=p==d?O:p)==O,M=c==p;i||(i=[]);var D=Te(i,function(t){return t[0]==e}),y=Te(i,function(e){return e[0]==t});if(D&&y)return D[1]==t;if(i.push([e,t]),i.push([t,e]),M&&!g){var w=l?function(e,t,r,n,_,i){var l=r&o,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var d=-1,f=!0,p=r&s?[]:a;for(;++d_?0:_+t),(r=r>_?_:r)<0&&(r+=_),_=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(_);++n<_;)a[n]=e[n+t];return a}function pe(e){return fe(e,0,e.length)}function he(e,t){var r;return Q(e,function(e,n,_){return!(r=t(e,n,_))}),!!r}function Ee(e,t,r,n){var _=!r;r||(r={});for(var i=-1,o=t.length;++i1?r[_-1]:a;for(i=e.length>3&&"function"==typeof i?(_--,i):a,t=Object(t);++n<_;){var o=r[n];o&&e(t,o,n,i)}return t})}function ge(e,t,r,n){if("function"!=typeof e)throw new TypeError(i);var _=t&l,a=function(e){return function(){var t=arguments,r=z(e.prototype),n=e.apply(r,t);return Ne(n)?n:r}}(e);return function t(){for(var i=-1,o=arguments.length,s=-1,l=n.length,u=Array(l+o),c=this&&this!==k&&this instanceof t?a:e;++s-1&&e%1==0&&e-1?_[i?t[o]:o]:a}}(function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var _=null==r?0:ze(r);return _<0&&(_=V(n+_,0)),function(e,t,r,n){for(var _=e.length,a=r+(n?1:-1);n?a--:++a<_;)if(t(e[a],a,e))return a;return-1}(e,se(t),_)});function Ae(e,t){return Q(e,se(t))}function ke(e,t,r){return function(e,t,r,n,_){return _(e,function(e,_,a){r=n?(n=!1,e):t(r,e,_,a)}),r}(e,se(t),r,arguments.length<3,Q)}function Ie(e,t){var r;if("function"!=typeof t)throw new TypeError(i);return e=ze(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Re=de(function(e,t,r){return ge(e,32|l,t,r)}),Le=de(function(e,t){return X(e,1,t)}),Be=de(function(e,t,r){return X(e,Ge(t)||0,r)});function Ue(e,t){return e===t||e!=e&&t!=t}var Se=ie(function(){return arguments}())?ie:function(e){return qe(e)&&S.call(e,"callee")&&!N.call(e,"callee")},Ke=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}(e.length)&&!je(e)}var xe=function(e){return qe(e)&&_e(e)==E};function je(e){if(!Ne(e))return!1;var t=_e(e);return t==g||t==b||t==p||t==M}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qe(e){return null!=e&&"object"==typeof e}function Fe(e){return"number"==typeof e||qe(e)&&_e(e)==v}var Ve=function(e){return qe(e)&&_e(e)==C};function He(e){return"string"==typeof e||!Ke(e)&&qe(e)&&_e(e)==P}var ze=Number,Ge=Number;function Ye(e){return"string"==typeof e?e:null==e?"":e+""}var Je=me(function(e,t){Ee(t,F(t),e)}),Xe=me(function(e,t){Ee(t,Oe(t),e)});var Qe=de(function(e,t){e=Object(e);var r=-1,n=t.length,_=n>2?t[2]:a;for(_&&ve(t[0],t[1],_)&&(n=1);++rt||n&&i&&s||!r&&s||!_)return 1;if(!n&&e> Error, via react-flip-move <<\n\nYou provided a stateless functional component as a child to . Unfortunately, SFCs aren't supported, because Flip Move needs access to the backing instances via refs, and SFCs don't have a public instance that holds that info.\n\nPlease wrap your components in a native element (eg.
), or a non-functional component.\n"),o("\n>> Error, via react-flip-move <<\n\nYou provided a primitive (text or number) node as a child to . Flip Move needs containers with unique keys to move children around.\n\nPlease wrap your value in a native element (eg. ), or a component.\n");var s=o("\n>> Warning, via react-flip-move <<\n\nWhen using \"wrapperless\" mode (by supplying 'typeName' of 'null'), strange things happen when the direct parent has the default \"static\" position.\n\nFlipMove has added 'position: relative' to this node, to ensure Flip Move animates correctly.\n\nTo avoid seeing this warning, simply apply a non-static position to that parent node.\n"),l=o("\n>> Warning, via react-flip-move <<\n\nOne or more of Flip Move's child elements have the html attribute 'disabled' set to true.\n\nPlease note that this will cause animations to break in Internet Explorer 11 and below. Either remove the disabled attribute or set 'animation' to false.\n"),u={elevator:{from:{transform:"scale(0)",opacity:"0"},to:{transform:"",opacity:""}},fade:{from:{opacity:"0"},to:{opacity:""}},accordionVertical:{from:{transform:"scaleY(0)",transformOrigin:"center top"},to:{transform:"",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(0)",transformOrigin:"left center"},to:{transform:"",transformOrigin:"left center"}},none:null},c={elevator:{from:{transform:"scale(1)",opacity:"1"},to:{transform:"scale(0)",opacity:"0"}},fade:{from:{opacity:"1"},to:{opacity:"0"}},accordionVertical:{from:{transform:"scaleY(1)",transformOrigin:"center top"},to:{transform:"scaleY(0)",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(1)",transformOrigin:"left center"},to:{transform:"scaleX(0)",transformOrigin:"left center"}},none:null},d=u,f="elevator",p="none",h=function(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:[],r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}(this.props,r);return n.style=O({position:"relative"},n.style),t.delegated=n,t},r.prototype.convertTimingProp=function(e){var t=this.props[e],n="number"==typeof t?t:parseInt(t,10);return isNaN(n)?r.defaultProps[e]:n},r.prototype.convertAnimationProp=function(e,t){switch(void 0===e?"undefined":b(e)){case"boolean":return t[e?f:p];case"string":return-1===Object.keys(t).indexOf(e)?t[f]:t[e];default:return e}},r.prototype.render=function(){return _.a.createElement(e,this.convertProps(this.props))},r}(n.Component),t.defaultProps={easing:"ease-in-out",duration:350,delay:0,staggerDurationBy:0,staggerDelayBy:0,typeName:"div",enterAnimation:f,leaveAnimation:f,disableAllAnimations:!1,getPosition:function(e){return e.getBoundingClientRect()},maintainContainerHeight:!1,verticalAlignment:"top"},r}(function(e){function t(){var r,n;v(this,t);for(var _=arguments.length,a=Array(_),o=0;o<_;o++)a[o]=arguments[o];return r=n=C(this,e.call.apply(e,[this].concat(a))),n.state={children:A(n.props?n.props.children:[]).map(function(e){return O({},e,{element:e,appearing:!0})})},n.childrenData={},n.parentData={domNode:null,boundingBox:null},n.heightPlaceholderData={domNode:null},n.remainingAnimations=0,n.childrenToAnimate=[],n.findDOMContainer=function(){var e=i.a.findDOMNode(n),t=e&&e.parentNode;t&&t instanceof HTMLElement&&("static"===window.getComputedStyle(t).position&&(t.style.position="relative",s()),n.parentData.domNode=t)},n.runAnimation=function(){var e=n.state.children.filter(n.doesChildNeedToBeAnimated),t=e.map(function(e){return n.computeInitialStyles(e)});e.forEach(function(e,r){n.remainingAnimations+=1,n.childrenToAnimate.push(T(e)),n.animateChild(e,r,t[r])}),"function"==typeof n.props.onStartAll&&n.callChildrenHook(n.props.onStartAll)},n.doesChildNeedToBeAnimated=function(e){if(!T(e))return!1;var t=n.getChildData(T(e)),r=t.domNode,_=t.boundingBox,a=n.parentData.boundingBox;if(!r)return!1;var i=n.props,o=i.appearAnimation,s=i.enterAnimation,l=i.leaveAnimation,u=i.getPosition,c=e.appearing&&o,d=e.entering&&s,f=e.leaving&&l;if(c||d||f)return!0;var p=D({childDomNode:r,childBoundingBox:_,parentBoundingBox:a,getPosition:u}),h=p[0],E=p[1];return 0!==h||0!==E},C(n,r)}return M(t,e),t.prototype.componentDidMount=function(){null===this.props.typeName&&this.findDOMContainer(),this.props.appearAnimation&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.componentWillReceiveProps=function(e){this.updateBoundingBoxCaches();var t=A(e.children);this.setState({children:this.isAnimationDisabled(e)?t.map(function(e){return O({},e,{element:e})}):this.calculateNextSetOfChildren(t)})},t.prototype.componentDidUpdate=function(e){null===this.props.typeName&&this.findDOMContainer(),!function(e,t){if(e===t)return!0;var r=!m(e)||!m(t),n=e.length!==t.length;return!r&&!n&&E(function(e,r){return e===t[r]},e)}(A(this.props.children).map(function(e){return e.key}),A(e.children).map(function(e){return e.key}))&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.calculateNextSetOfChildren=function(e){var t=this,r=e.map(function(e){var r=t.findChildByKey(e.key),n=!r||r.leaving;return O({},e,{element:e,entering:n})}),n=0;return this.state.children.forEach(function(_,a){if(!h(function(e){return e.key===T(_)},e)&&t.props.leaveAnimation){var i=O({},_,{leaving:!0}),o=a+n;r.splice(o,0,i),n+=1}}),r},t.prototype.prepForAnimation=function(){var e=this,t=this.props,r=t.leaveAnimation,n=t.maintainContainerHeight,_=t.getPosition;r&&(this.state.children.filter(function(e){return e.leaving}).forEach(function(t){var r=e.getChildData(T(t));!e.isAnimationDisabled(e.props)&&r.domNode&&r.domNode.disabled&&l(),r.boundingBox&&function(e,t){var r=e.domNode,n=e.boundingBox;if(r&&n){var _=window.getComputedStyle(r),a=["margin-top","margin-left","margin-right"].reduce(function(e,t){var r,n=_.getPropertyValue(t);return O({},e,((r={})[t]=Number(n.replace("px","")),r))},{});P({domNode:r,styles:{position:"absolute",top:("bottom"===t?n.top-n.height:n.top)-a["margin-top"]+"px",left:n.left-a["margin-left"]+"px",right:n.right-a["margin-right"]+"px"}})}}(r,e.props.verticalAlignment)}),n&&this.heightPlaceholderData.domNode&&function(e){var t=e.domNode,r=e.parentData,n=e.getPosition,_=r.domNode,a=r.boundingBox;if(_&&a){P({domNode:t,styles:{height:"0"}});var i=a.height-n(_).height;P({domNode:t,styles:{height:i>0?i+"px":"0"}})}}({domNode:this.heightPlaceholderData.domNode,parentData:this.parentData,getPosition:_}));this.state.children.forEach(function(t){var r=e.getChildData(T(t)).domNode;r&&(t.entering||t.leaving||P({domNode:r,styles:{transition:""}}))})},t.prototype.animateChild=function(e,t,r){var n=this,_=this.getChildData(T(e)).domNode;_&&(P({domNode:_,styles:r}),this.props.onStart&&this.props.onStart(e,_),requestAnimationFrame(function(){requestAnimationFrame(function(){var r={transition:function(e,t){var r=t.delay,n=t.duration,_=t.staggerDurationBy,a=t.staggerDelayBy,i=t.easing;r+=e*a,n+=e*_;return["transform","opacity"].map(function(e){return e+" "+n+"ms "+i+" "+r+"ms"}).join(", ")}(t,n.props),transform:"",opacity:""};e.appearing&&n.props.appearAnimation?r=O({},r,n.props.appearAnimation.to):e.entering&&n.props.enterAnimation?r=O({},r,n.props.enterAnimation.to):e.leaving&&n.props.leaveAnimation&&(r=O({},r,n.props.leaveAnimation.to)),P({domNode:_,styles:r})})}),this.bindTransitionEndHandler(e))},t.prototype.bindTransitionEndHandler=function(e){var t=this,r=this.getChildData(T(e)).domNode;if(r){r.addEventListener(y,function n(_){_.target===r&&(r.style.transition="",t.triggerFinishHooks(e,r),r.removeEventListener(y,n),e.leaving&&t.removeChildData(T(e)))})}},t.prototype.triggerFinishHooks=function(e,t){var r=this;if(this.props.onFinish&&this.props.onFinish(e,t),this.remainingAnimations-=1,0===this.remainingAnimations){var n=this.state.children.filter(function(e){return!e.leaving}).map(function(e){return O({},e,{element:e.element,appearing:!1,entering:!1})});this.setState({children:n},function(){"function"==typeof r.props.onFinishAll&&r.callChildrenHook(r.props.onFinishAll),r.childrenToAnimate=[]}),this.heightPlaceholderData.domNode&&(this.heightPlaceholderData.domNode.style.height="0")}},t.prototype.callChildrenHook=function(e){var t=this,r=[],n=[];this.childrenToAnimate.forEach(function(e){var _=t.findChildByKey(e);_&&(r.push(_),t.hasChildData(e)&&n.push(t.getChildData(e).domNode))}),e(r,n)},t.prototype.updateBoundingBoxCaches=function(){var e=this,t=this.parentData.domNode;if(t){this.parentData.boundingBox=this.props.getPosition(t);var r=[];this.state.children.forEach(function(n){var _=T(n);if(_)if(e.hasChildData(_)){var a=e.getChildData(_);a.domNode&&n?r.push(function(e){var t=e.childDomNode,r=e.parentDomNode,n=e.getPosition,_=n(r),a=n(t),i=a.top,o=a.left,s=a.right,l=a.bottom,u=a.width,c=a.height;return{top:i-_.top,left:o-_.left,right:_.right-s,bottom:_.bottom-l,width:u,height:c}}({childDomNode:a.domNode,parentDomNode:t,getPosition:e.props.getPosition})):r.push(null)}else r.push(null);else r.push(null)}),this.state.children.forEach(function(t,n){var _=T(t),a=r[n];_&&e.setChildData(_,{boundingBox:a})})}},t.prototype.computeInitialStyles=function(e){if(e.appearing)return this.props.appearAnimation?this.props.appearAnimation.from:{};if(e.entering)return this.props.enterAnimation?O({position:"",top:"",left:"",right:"",bottom:""},this.props.enterAnimation.from):{};if(e.leaving)return this.props.leaveAnimation?this.props.leaveAnimation.from:{};var t=this.getChildData(T(e)),r=t.domNode,n=t.boundingBox,_=this.parentData.boundingBox;if(!r)return{};var a=D({childDomNode:r,childBoundingBox:n,parentBoundingBox:_,getPosition:this.props.getPosition});return{transform:"translate("+a[0]+"px, "+a[1]+"px)"}},t.prototype.isAnimationDisabled=function(e){return w||e.disableAllAnimations||0===e.duration&&0===e.delay&&0===e.staggerDurationBy&&0===e.staggerDelayBy},t.prototype.findChildByKey=function(e){return h(function(t){return T(t)===e},this.state.children)},t.prototype.hasChildData=function(e){return Object.prototype.hasOwnProperty.call(this.childrenData,e)},t.prototype.getChildData=function(e){return this.hasChildData(e)?this.childrenData[e]:{}},t.prototype.setChildData=function(e,t){this.childrenData[e]=O({},this.getChildData(e),t)},t.prototype.removeChildData=function(e){delete this.childrenData[e],this.setState(function(t){return O({},t,{children:t.children.filter(function(t){return t.element.key!==e})})})},t.prototype.createHeightPlaceholder=function(){var e=this,t=this.props.typeName,r="ul"===t||"ol"===t?"li":"div";return Object(n.createElement)(r,{key:"height-placeholder",ref:function(t){e.heightPlaceholderData.domNode=t},style:{visibility:"hidden",height:0}})},t.prototype.childrenWithRefs=function(){var e=this;return this.state.children.map(function(t){return Object(n.cloneElement)(t.element,{ref:function(r){if(r){var n=function(e){if("undefined"==typeof HTMLElement)return null;if(e instanceof HTMLElement)return e;var t=Object(a.findDOMNode)(e);return t&&t.nodeType===Node.TEXT_NODE?null:t}(r);e.setChildData(T(t),{domNode:n})}}})})},t.prototype.render=function(){var e=this,t=this.props,r=t.typeName,_=t.delegated,a=t.leaveAnimation,i=t.maintainContainerHeight,o=this.childrenWithRefs();if(a&&i&&o.push(this.createHeightPlaceholder()),!r)return o;var s=O({},_,{children:o,ref:function(t){e.parentData.domNode=t}});return Object(n.createElement)(r,s)},t}(n.Component));t.a=k},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return SwitchControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),lodash_core__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(112),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(760),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SwitchControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function SwitchControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,SwitchControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SwitchControl).call(this,e))).state={checked:!1},t.id="0",t.onChange=function(e){var r=t.props,n=r.onChange,_=r.disabled;n&&!_&&n(e.target.checked)},t.state.checked=e.checked,t.id=lodash_core__WEBPACK_IMPORTED_MODULE_7___default.a.uniqueId("switch_"),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SwitchControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SwitchControl,[{key:"componentWillReceiveProps",value:function(e){this.setState({checked:e.checked})}},{key:"render",value:function(){var e=this.props,t=e.label,r=e.disabled,n="SwitchControl";return void 0===this.state.checked&&(n+=" undefined"),r&&(n+=" disabled"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:n},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{type:"checkbox",styleName:"checkbox",id:this.id,disabled:r,checked:!!this.state.checked,onChange:this.onChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"label",htmlFor:this.id},t))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SwitchControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SwitchControl,"SwitchControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/SwitchControl/SwitchControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return EditableTitleControl});var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(821),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MIN_TEXT="WWWW",EditableTitleControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function EditableTitleControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,EditableTitleControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(EditableTitleControl).call(this,e))).state={text:"",editing:!1,width:0},t.input=null,t.testTextElm=null,t.minTextWidth=0,t.editable=!1,t.startText=void 0,t.onEditClick=function(){t.editable&&!t.state.editing&&t.setState({editing:!0},function(){return t.input.focus()})},t.onChange=function(e){t.setText(e.target.value)},t.onBlur=function(){t.editable&&!t.props.alertShowing&&(!t.props.required||t.state.text?(t.setState({editing:!1}),t.props.update(t.state.text,function(e){return t.setText(e)},!0)):t.props.required&&t.setText(t.startText))},t.onKeyDown=function(e){e.stopPropagation(),!t.props.alertShowing&&t.editable&&(13==e.keyCode?t.props.required&&!t.state.text||(t.setState({editing:!1}),t.props.update(t.state.text)):27==e.keyCode&&(t.setState({editing:!1}),t.setText(t.startText)))},t.startText=e.text,t.editable=!e.disabled&&!!e.update,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(EditableTitleControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(EditableTitleControl,[{key:"setText",value:function(e){var t=e=e||"";t||(t=this.props.placeholder),t||(t=MIN_TEXT),this.testTextElm.innerText=t;var r=this.testTextElm.clientWidth+15;r0?_(n(e),9007199254740991):0}},function(e,t,r){var n=r(63).f,_=r(96),a=r(36)("toStringTag");e.exports=function(e,t,r){e&&!_(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(51);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,r){var n=r(44);n(n.S+n.F,"Object",{assign:r(559)})},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){if(null===t||"object"!==(0,_.default)(t))return t;if(Array.isArray(t)){var r=[];return t.forEach(function(t,n){r[n]=e(t)}),r}if("string"==typeof t.__op)return(0,l.opFromJSON)(t);if("Pointer"===t.__type&&t.className)return s.default.fromJSON(t);if("Object"===t.__type&&t.className)return s.default.fromJSON(t);if("Relation"===t.__type){var n=new u.default(null,null);return n.targetClassName=t.className,n}if("Date"===t.__type)return new Date(t.iso);if("File"===t.__type)return a.default.fromJSON(t);if("GeoPoint"===t.__type)return new i.default({latitude:t.latitude,longitude:t.longitude});if("Polygon"===t.__type)return new o.default(t.coordinates);var c={};for(var d in t)c[d]=e(t[d]);return c};var _=n(r(41)),a=(n(r(130)),n(r(98))),i=n(r(132)),o=n(r(208)),s=n(r(46)),l=r(107),u=n(r(88))},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(289)),l=n(r(164)),u=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"permissionsById",void 0),this.permissionsById={},t&&"object"===(0,_.default)(t))if(t instanceof l.default)this.setReadAccess(t,!0),this.setWriteAccess(t,!0);else for(var r in t){var n=t[r];if("string"!=typeof r)throw new TypeError("Tried to create an ACL with an invalid user id.");for(var i in this.permissionsById[r]={},n){var s=n[i];if("read"!==i&&"write"!==i)throw new TypeError("Tried to create an ACL with an invalid permission type.");if("boolean"!=typeof s)throw new TypeError("Tried to create an ACL with an invalid permission value.");this.permissionsById[r][i]=s}}else if("function"==typeof t)throw new TypeError("ParseACL constructed with a function. Did you forget ()?")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};for(var t in this.permissionsById)e[t]=this.permissionsById[t];return e}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var r=Object.keys(this.permissionsById),n=Object.keys(t.permissionsById);if(r.length!==n.length)return!1;for(var _ in this.permissionsById){if(!t.permissionsById[_])return!1;if(this.permissionsById[_].read!==t.permissionsById[_].read)return!1;if(this.permissionsById[_].write!==t.permissionsById[_].write)return!1}return!0}},{key:"_setAccess",value:function(e,t,r){if(t instanceof l.default)t=t.id;else if(t instanceof s.default){var n=t.getName();if(!n)throw new TypeError("Role must have a name");t="role:"+n}if("string"!=typeof t)throw new TypeError("userId must be a string.");if("boolean"!=typeof r)throw new TypeError("allowed must be either true or false.");var _=this.permissionsById[t];if(!_){if(!r)return;_={},this.permissionsById[t]=_}r?this.permissionsById[t][e]=!0:(delete _[e],0===Object.keys(_).length&&delete this.permissionsById[t])}},{key:"_getAccess",value:function(e,t){if(t instanceof l.default){if(!(t=t.id))throw new Error("Cannot get access for a ParseUser without an ID")}else if(t instanceof s.default){var r=t.getName();if(!r)throw new TypeError("Role must have a name");t="role:"+r}var n=this.permissionsById[t];return!!n&&!!n[e]}},{key:"setReadAccess",value:function(e,t){this._setAccess("read",e,t)}},{key:"getReadAccess",value:function(e){return this._getAccess("read",e)}},{key:"setWriteAccess",value:function(e,t){this._setAccess("write",e,t)}},{key:"getWriteAccess",value:function(e){return this._getAccess("write",e)}},{key:"setPublicReadAccess",value:function(e){this.setReadAccess("*",e)}},{key:"getPublicReadAccess",value:function(){return this.getReadAccess("*")}},{key:"setPublicWriteAccess",value:function(e){this.setWriteAccess("*",e)}},{key:"getPublicWriteAccess",value:function(){return this.getWriteAccess("*")}},{key:"getRoleReadAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getReadAccess("role:"+e)}},{key:"getRoleWriteAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getWriteAccess("role:"+e)}},{key:"setRoleReadAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setReadAccess("role:"+e,t)}},{key:"setRoleWriteAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setWriteAccess("role:"+e,t)}}]),e}();t.default=u},function(e,t){var r,n,_=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c1)for(var r=1;r90)throw new TypeError("GeoPoint latitude out of bounds: "+e+" > 90.0.");if(t<-180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" < -180.0.");if(t>180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" > 180.0.")}},{key:"current",value:function(){return navigator.geolocation.getCurrentPosition(function(t){return new e(t.coords.latitude,t.coords.longitude)})}}]),e}();t.default=s},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(47)),l=n(r(108)),u=r(209),c=n(r(87)),d=n(r(132)),f=n(r(46));function p(e){return"\\Q"+e.replace("\\E","\\E\\\\E\\Q")+"\\E"}function h(e){var t=null;return e.forEach(function(e){if(t||(t=e.className),t!==e.className)throw new Error("All queries must be for the same class.")}),t}function E(e,t){var r={};(t.forEach(function(t){var n=-1!==t.indexOf(".");if(n||e.hasOwnProperty(t)){if(n){var _=t.split("."),a=e,i=r;_.forEach(function(e,t,r){a&&!a.hasOwnProperty(e)&&(a[e]=void 0),void 0!==a&&(a=a[e]),t0)&&function e(t,r,n,_){if(_)for(var a in t)t.hasOwnProperty(a)&&!r.hasOwnProperty(a)&&(r[a]=t[a]);for(var i in n)void 0!==r[i]&&null!==r[i]&&void 0!==t&&null!==t&&e(t[i],r[i],n[i],!0)}(s.default.getObjectStateController().getServerData({id:e.objectId,className:e.className}),e,r,!1)}var m=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"className",void 0),(0,o.default)(this,"_where",void 0),(0,o.default)(this,"_include",void 0),(0,o.default)(this,"_select",void 0),(0,o.default)(this,"_limit",void 0),(0,o.default)(this,"_skip",void 0),(0,o.default)(this,"_order",void 0),(0,o.default)(this,"_extraOptions",void 0),"string"==typeof t)"User"===t&&s.default.get("PERFORM_USER_REWRITE")?this.className="_User":this.className=t;else if(t instanceof f.default)this.className=t.className;else{if("function"!=typeof t)throw new TypeError("A ParseQuery must be constructed with a ParseObject or class name.");if("string"==typeof t.className)this.className=t.className;else{var r=new t;this.className=r.className}}this._where={},this._include=[],this._limit=-1,this._skip=0,this._extraOptions={}}return(0,i.default)(e,[{key:"_orQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$or=t,this}},{key:"_andQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$and=t,this}},{key:"_norQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$nor=t,this}},{key:"_addCondition",value:function(e,t,r){return this._where[e]&&"string"!=typeof this._where[e]||(this._where[e]={}),this._where[e][t]=(0,l.default)(r,!1,!0),this}},{key:"_regexStartWith",value:function(e){return"^"+p(e)}},{key:"toJSON",value:function(){var e={where:this._where};for(var t in this._include.length&&(e.include=this._include.join(",")),this._select&&(e.keys=this._select.join(",")),this._limit>=0&&(e.limit=this._limit),this._skip>0&&(e.skip=this._skip),this._order&&(e.order=this._order.join(",")),this._extraOptions)e[t]=this._extraOptions[t];return e}},{key:"withJSON",value:function(e){for(var t in e.where&&(this._where=e.where),e.include&&(this._include=e.include.split(",")),e.keys&&(this._select=e.keys.split(",")),e.limit&&(this._limit=e.limit),e.skip&&(this._skip=e.skip),e.order&&(this._order=e.order.split(",")),e)e.hasOwnProperty(t)&&-1===["where","include","keys","limit","skip","order"].indexOf(t)&&(this._extraOptions[t]=e[t]);return this}},{key:"get",value:function(e,t){this.equalTo("objectId",e);var r={};return t&&t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t&&t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),this.first(r).then(function(e){if(e)return e;var t=new c.default(c.default.OBJECT_NOT_FOUND,"Object not found.");return Promise.reject(t)})}},{key:"find",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this._select;return n.find(this.className,this.toJSON(),r).then(function(e){return e.results.map(function(r){var n=e.className||t.className;return r.className||(r.className=n),_&&E(r,_),f.default.fromJSON(r,!_)})})}},{key:"count",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken);var r=s.default.getQueryController(),n=this.toJSON();return n.limit=0,n.count=1,r.find(this.className,n,t).then(function(e){return e.count})}},{key:"distinct",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController(),_={distinct:e,where:this._where};return n.aggregate(this.className,_,r).then(function(e){return e.results})}},{key:"aggregate",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController();if(!Array.isArray(e)&&"object"!==(0,_.default)(e))throw new Error("Invalid pipeline must be Array or Object");return n.aggregate(this.className,{pipeline:e},r).then(function(e){return e.results})}},{key:"first",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this.toJSON();_.limit=1;var a=this._select;return n.find(this.className,_,r).then(function(e){var r=e.results;if(r[0])return r[0].className||(r[0].className=t.className),a&&E(r[0],a),f.default.fromJSON(r[0],!a)})}},{key:"each",value:function(t,r){if(r=r||{},this._order||this._skip||this._limit>=0)return Promise.reject("Cannot iterate on a query with sort, skip, or limit.");var n=new e(this.className);for(var a in n._limit=r.batchSize||100,n._include=this._include.map(function(e){return e}),this._select&&(n._select=this._select.map(function(e){return e})),n._where={},this._where){var i=this._where[a];if(Array.isArray(i))n._where[a]=i.map(function(e){return e});else if(i&&"object"===(0,_.default)(i)){var o={};for(var s in n._where[a]=o,i)o[s]=i[s]}else n._where[a]=i}n.ascending("objectId");var l={};r.hasOwnProperty("useMasterKey")&&(l.useMasterKey=r.useMasterKey),r.hasOwnProperty("sessionToken")&&(l.sessionToken=r.sessionToken);var c=!1;return(0,u.continueWhile)(function(){return!c},function(){return n.find(l).then(function(e){var r=Promise.resolve();return e.forEach(function(e){r=r.then(function(){return t(e)})}),r.then(function(){e.length>=n._limit?n.greaterThan("objectId",e[e.length-1].id):c=!0})})})}},{key:"equalTo",value:function(e,t){return void 0===t?this.doesNotExist(e):(this._where[e]=(0,l.default)(t,!1,!0),this)}},{key:"notEqualTo",value:function(e,t){return this._addCondition(e,"$ne",t)}},{key:"lessThan",value:function(e,t){return this._addCondition(e,"$lt",t)}},{key:"greaterThan",value:function(e,t){return this._addCondition(e,"$gt",t)}},{key:"lessThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$lte",t)}},{key:"greaterThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$gte",t)}},{key:"containedIn",value:function(e,t){return this._addCondition(e,"$in",t)}},{key:"notContainedIn",value:function(e,t){return this._addCondition(e,"$nin",t)}},{key:"containedBy",value:function(e,t){return this._addCondition(e,"$containedBy",t)}},{key:"containsAll",value:function(e,t){return this._addCondition(e,"$all",t)}},{key:"containsAllStartingWith",value:function(e,t){var r=this;return Array.isArray(t)||(t=[t]),t=t.map(function(e){return{$regex:r._regexStartWith(e)}}),this.containsAll(e,t)}},{key:"exists",value:function(e){return this._addCondition(e,"$exists",!0)}},{key:"doesNotExist",value:function(e){return this._addCondition(e,"$exists",!1)}},{key:"matches",value:function(e,t,r){return this._addCondition(e,"$regex",t),r||(r=""),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),r.length&&this._addCondition(e,"$options",r),this}},{key:"matchesQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$inQuery",r)}},{key:"doesNotMatchQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$notInQuery",r)}},{key:"matchesKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$select",{key:t,query:n})}},{key:"doesNotMatchKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$dontSelect",{key:t,query:n})}},{key:"contains",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t))}},{key:"fullText",value:function(e,t,r){if(r=r||{},!e)throw new Error("A key is required.");if(!t)throw new Error("A search term is required");if("string"!=typeof t)throw new Error("The value being searched for must be a string.");var n={$term:t};for(var _ in r)switch(_){case"language":n.$language=r[_];break;case"caseSensitive":n.$caseSensitive=r[_];break;case"diacriticSensitive":n.$diacriticSensitive=r[_];break;default:throw new Error("Unknown option: ".concat(_))}return this._addCondition(e,"$text",{$search:n})}},{key:"sortByTextScore",value:function(){return this.ascending("$score"),this.select(["$score"]),this}},{key:"startsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",this._regexStartWith(t))}},{key:"endsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t)+"$")}},{key:"near",value:function(e,t){return t instanceof d.default||(t=new d.default(t)),this._addCondition(e,"$nearSphere",t)}},{key:"withinRadians",value:function(e,t,r,n){return n||void 0===n?(this.near(e,t),this._addCondition(e,"$maxDistance",r)):this._addCondition(e,"$geoWithin",{$centerSphere:[[t.longitude,t.latitude],r]})}},{key:"withinMiles",value:function(e,t,r,n){return this.withinRadians(e,t,r/3958.8,n)}},{key:"withinKilometers",value:function(e,t,r,n){return this.withinRadians(e,t,r/6371,n)}},{key:"withinGeoBox",value:function(e,t,r){return t instanceof d.default||(t=new d.default(t)),r instanceof d.default||(r=new d.default(r)),this._addCondition(e,"$within",{$box:[t,r]}),this}},{key:"withinPolygon",value:function(e,t){return this._addCondition(e,"$geoWithin",{$polygon:t})}},{key:"polygonContains",value:function(e,t){return this._addCondition(e,"$geoIntersects",{$point:t})}},{key:"ascending",value:function(){this._order=[];for(var e=arguments.length,t=new Array(e),r=0;ra;)i(r[a++]);e._c=[],e._n=!1,t&&!e._h&&B(e)})}},B=function(e){m.call(s,function(){var t,r,n,_=e._v,a=U(e);if(a&&(t=v(function(){T?P.emit("unhandledRejection",_,e):(r=s.onunhandledrejection)?r({promise:e,reason:_}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",_)}),e._h=T||U(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},U=function(e){return 1!==e._h&&0===(e._a||e._c).length},S=function(e){m.call(s,function(){var t;T?P.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},K=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},W=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw C("Promise can't be resolved itself");(t=R(e))?g(function(){var n={_w:r,_d:!1};try{t.call(e,l(W,n,1),l(K,n,1))}catch(e){K.call(n,e)}}):(r._v=e,r._s=1,L(r,!1))}catch(e){K.call({_w:r,_d:!1},e)}}};I||(w=function(e){p(this,w,"Promise","_h"),f(e),n.call(this);try{e(l(W,this,1),l(K,this,1))}catch(e){K.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(201)(w.prototype,{then:function(e,t){var r=k(E(this,w));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=T?P.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n;this.promise=e,this.resolve=l(W,e,1),this.reject=l(K,e,1)},b.f=k=function(e){return e===w||e===i?new a(e):_(e)}),c(c.G+c.W+c.F*!I,{Promise:w}),r(126)(w,"Promise"),r(204)("Promise"),i=r(94).Promise,c(c.S+c.F*!I,"Promise",{reject:function(e){var t=k(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(o||!I),"Promise",{resolve:function(e){return M(o&&this===i?w:this,e)}}),c(c.S+c.F*!(I&&r(195)(function(e){w.all(e).catch(A)})),"Promise",{all:function(e){var t=this,r=k(t),n=r.resolve,_=r.reject,a=v(function(){var r=[],a=0,i=1;h(e,!1,function(e){var o=a++,s=!1;r.push(void 0),i++,t.resolve(e).then(function(e){s||(s=!0,r[o]=e,--i||n(r))},_)}),--i||n(r)});return a.e&&_(a.v),r.promise},race:function(e){var t=this,r=k(t),n=r.reject,_=v(function(){h(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return _.e&&n(_.v),r.promise}})},function(e,t,r){"use strict";var n=r(30).OrderedMap,_={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}};e.exports=_},function(e,t,r){"use strict";e.exports=function(e,t,r,n){if(e.size){var _=0;e.reduce(function(e,a,i){return t(e,a)||(r(e)&&n(_,i),_=i),a}),r(e.last())&&n(_,e.count())}}},function(e,t,r){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,r){"use strict";var n=r(55);e.exports=function(e,t,r){var _=e.getSelection(),a=e.getCurrentContent(),i=_;if(_.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return a}else if(e.isSelectionAtStartOfContent())return a;if((i=t(e))===_)return a}return n.removeRange(a,i,r)}},function(e,t,r){e.exports=r.p+"assets/images/chisel-logo.png"},function(e,t,r){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return DropdownControl});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),classnames__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(80),classnames__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_9__),svg_inline_react__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_10__),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(768),_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var DropdownControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_DropdownControl_sss__WEBPACK_IMPORTED_MODULE_12___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function DropdownControl(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,DropdownControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(DropdownControl).call(this,e))).state={suggestionValue:"",suggestionsVisibility:!1,disabled:!1},t.suggestionsList=[],t.onSuggest=null,t.onSuggestionClick=function(e){var r=e.target.innerText;t.setState({suggestionValue:r,suggestionsVisibility:!1}),t.onSuggest(r)},t.onSuggestionInputClick=function(e){t.setState({suggestionsVisibility:!t.state.suggestionsVisibility,suggestionValue:e.target.value})},t.onSuggestionBlur=function(){t.setState({suggestionsVisibility:!1})};var r=e.suggestionsList,n=e.suggest,_=e.current,a=e.disabled;return t.onSuggest=n,t.suggestionsList=r,t.state.disabled=a,t.state.suggestionValue=_,-1==r.indexOf(_)&&(t.state.suggestionValue=r[0]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(DropdownControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(DropdownControl,[{key:"componentWillReceiveProps",value:function(e){var t=e.suggestionsList,r=e.current,n=e.disabled;this.suggestionsList=t,-1!=t.indexOf(r)?this.setState({suggestionValue:r,disabled:n}):this.setState({suggestionValue:t[0],disabled:n})}},{key:"render",value:function(){var e=this,t=this.props,r=t.label,n=t.type;if(this.state.disabled)return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:r,icon:"lock",value:this.state.suggestionValue,dropdown:!0,readOnly:!0});var _,a=classnames__WEBPACK_IMPORTED_MODULE_9___default()({"input-wrapper type-wrapper":void 0===n,"input-wrapper type-wrapper dropdown-big":"big"===n}),i=classnames__WEBPACK_IMPORTED_MODULE_9___default()({input:!0,"input suggestions-visible":this.state.suggestionsVisibility}),o=classnames__WEBPACK_IMPORTED_MODULE_9___default()({"arrow-down":!0,"arrow-down arrow-rotated":this.state.suggestionsVisibility}),s=this.suggestionsList.map(function(t){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{onMouseDown:e.onSuggestionClick,styleName:"suggestion",key:t},t)}),l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:o,src:__webpack_require__(276)});return"big"===n&&(l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:"arrows",src:__webpack_require__(277)})),r&&(_=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"label"},r)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:a,onBlur:this.onSuggestionBlur},_,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper"},l,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("input",{styleName:i,value:this.state.suggestionValue,onClick:this.onSuggestionInputClick,readOnly:!0}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"suggestions"},s)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),DropdownControl}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(DropdownControl,"DropdownControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/DropdownControl/DropdownControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return LAYOUT_SPLIT}),__webpack_require__.d(__webpack_exports__,"b",function(){return MarkdownEditor});var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(134),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_mde__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(232),react_mde__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_mde__WEBPACK_IMPORTED_MODULE_7__),showdown__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(351),showdown__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(showdown__WEBPACK_IMPORTED_MODULE_8__),react_css_modules__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_9__),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(785),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(787),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var LAYOUT_TABS="tabbed",LAYOUT_SPLIT="horizontal",MarkdownEditor=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_9___default()(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MarkdownEditor(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,MarkdownEditor),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(MarkdownEditor).call(this,e))).state={mdeState:{markdown:""}},t.onChange=void 0,t.layout=LAYOUT_TABS,t.converter=null,t.onChangeMde=function(e){var r=t.state.mdeState.markdown;t.setState({mdeState:e}),e.markdown!=r&&t.onChange(e.markdown)},t.genPreview=function(e){return Promise.resolve(t.converter.makeHtml(e))},t.state.mdeState.markdown=e.value,t.onChange=e.onChange,e.layout&&(t.layout=e.layout),t.converter=new showdown__WEBPACK_IMPORTED_MODULE_8__.Converter({tables:!0,simplifiedAutoLink:!0,simpleLineBreaks:!0,tasklists:!0,strikethrough:!0}),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(MarkdownEditor,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MarkdownEditor,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=this.state.mdeState;e.value!=r.markdown&&react_mde__WEBPACK_IMPORTED_MODULE_7__.DraftUtil.buildNewMdeState(r,this.genPreview,e.value).then(function(e){return t.setState({mdeState:e})})}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_mde__WEBPACK_IMPORTED_MODULE_7___default.a,{className:this.props.className,onChange:this.onChangeMde,editorState:this.state.mdeState,generateMarkdownPreview:this.genPreview,layout:this.layout})}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MarkdownEditor}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(LAYOUT_TABS,"LAYOUT_TABS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(LAYOUT_SPLIT,"LAYOUT_SPLIT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(MarkdownEditor,"MarkdownEditor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n=r(720),_=r(721),a=r(722);e.exports=function(e,t){return n(e)||_(e,t)||a()}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MediaItemData});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),parse__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_4__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MEDIA_TYPE__IMAGE="MEDIA_TYPE__IMAGE",keys=[],MediaItemData=function(){function MediaItemData(){for(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,MediaItemData),this.origin=null,this.name="",this.type=MEDIA_TYPE__IMAGE,this.file=null,this.assigned=!1,this.key=0,this.site=null;-1!=keys.indexOf(this.key);)this.key++;keys.push(this.key)}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,null,[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_4__.Parse.Object.extend("MediaItem")}}]),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("type")&&(this.type=e.get("type")),e.get("file")&&(this.file=e.get("file")),e.get("assigned")&&(this.assigned=e.get("assigned")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new MediaItemData.OriginClass),this.origin.set("name",this.name),this.origin.set("type",this.type),this.origin.set("file",this.file),this.origin.set("assigned",this.assigned),this.origin.set("site",this.site.origin)}},{key:"clone",value:function(){var e=new MediaItemData;return e.file=this.file,e.name=this.name,e.type=this.type,e.site=this.site,e.assigned=this.assigned,e}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MediaItemData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MEDIA_TYPE__IMAGE,"MEDIA_TYPE__IMAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(keys,"keys","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(MediaItemData,"MediaItemData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(this.props,[]);return delete p.md5,delete p.email,delete p.protocol,delete p.rating,delete p.size,delete p.style,delete p.className,delete p.default,!d&&(0,s.default)()?a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:c,height:this.props.size,width:this.props.size},p,{className:f})):a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:u,srcSet:c+" 2x",height:this.props.size,width:this.props.size},p,{className:f}))}}]),t}();c.displayName="Gravatar",c.propTypes={email:l.default.string,md5:l.default.string,size:l.default.number,rating:l.default.string,default:l.default.string,className:l.default.string,protocol:l.default.string,style:l.default.object},c.defaultProps={size:50,rating:"g",default:"retro",protocol:"//"},e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=t.sortableHandle=t.sortableElement=t.sortableContainer=t.SortableHandle=t.SortableElement=t.SortableContainer=void 0;var n=r(170);Object.defineProperty(t,"arrayMove",{enumerable:!0,get:function(){return n.arrayMove}});var _=o(r(737)),a=o(r(739)),i=o(r(740));function o(e){return e&&e.__esModule?e:{default:e}}t.SortableContainer=_.default,t.SortableElement=a.default,t.SortableHandle=i.default,t.sortableContainer=_.default,t.sortableElement=a.default,t.sortableHandle=i.default},function(e,t,r){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},t.removeEventListener=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.supportsPopstateOnHashchange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,r){var n=r(91),_=r(75),a="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!_(e))return!1;var t=n(e);return t==i||t==o||t==a||t==s}},function(e,t,r){var n=r(74).Symbol;e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(436),_=r(437),a=r(438),i=r(439),o=r(440);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t0?n:r)(e)}},function(e,t){e.exports='icon-PopupCreated with Sketch.'},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,r){"use strict";var n=r(283),_=r(206);e.exports=r(284)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(_(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(_(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(69)),u=n(r(6)),c=n(r(47)),d=n(r(296)),f=n(r(87)),p=n(r(46)),h=n(r(297)),E=n(r(165)),m=!c.default.get("IS_NODE"),g=!1,b=null,v={},O=function(e){function t(e){var r;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this,"_User")),e&&"object"===(0,_.default)(e)&&!r.set(e||{}))throw new Error("Can't create an invalid Parse User");return r}return(0,u.default)(t,e),(0,i.default)(t,[{key:"_upgradeToRevocableSession",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),c.default.getUserController().upgradeToRevocableSession(this,t)}},{key:"_linkWith",value:function(e,t){var r,n=this;if("string"==typeof e?(r=e,e=v[e]):r=e.getAuthType(),t&&t.hasOwnProperty("authData")){var a=this.get("authData")||{};if("object"!==(0,_.default)(a))throw new Error("Invalid type: authData field should be an object");return a[r]=t.authData,c.default.getUserController().linkWith(this,a)}return new Promise(function(t,r){e.authenticate({success:function(e,_){var a={};a.authData=_,n._linkWith(e,a).then(function(){t(n)},function(e){r(e)})},error:function(e,t){r(t)}})})}},{key:"_synchronizeAuthData",value:function(e){if(this.isCurrent()&&e){var t;"string"==typeof e?e=v[t=e]:t=e.getAuthType();var r=this.get("authData");if(e&&r&&"object"===(0,_.default)(r))e.restoreAuthentication(r[t])||this._unlinkFrom(e)}}},{key:"_synchronizeAllAuthData",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._synchronizeAuthData(t)}},{key:"_cleanupAuthData",value:function(){if(this.isCurrent()){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)e[t]||delete e[t]}}},{key:"_unlinkFrom",value:function(e){var t=this;return"string"==typeof e&&(e=v[e]),this._linkWith(e,{authData:null}).then(function(){return t._synchronizeAuthData(e),Promise.resolve(t)})}},{key:"_isLinked",value:function(e){var t;t="string"==typeof e?e:e.getAuthType();var r=this.get("authData")||{};return"object"===(0,_.default)(r)&&!!r[t]}},{key:"_logOutWithAll",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._logOutWith(t)}},{key:"_logOutWith",value:function(e){this.isCurrent()&&("string"==typeof e&&(e=v[e]),e&&e.deauthenticate&&e.deauthenticate())}},{key:"_preserveFieldsOnFetch",value:function(){return{sessionToken:this.get("sessionToken")}}},{key:"isCurrent",value:function(){var e=t.current();return!!e&&e.id===this.id}},{key:"getUsername",value:function(){var e=this.get("username");return null==e||"string"==typeof e?e:""}},{key:"setUsername",value:function(e){var t=this.get("authData");t&&"object"===(0,_.default)(t)&&t.hasOwnProperty("anonymous")&&(t.anonymous=null),this.set("username",e)}},{key:"setPassword",value:function(e){this.set("password",e)}},{key:"getEmail",value:function(){var e=this.get("email");return null==e||"string"==typeof e?e:""}},{key:"setEmail",value:function(e){return this.set("email",e)}},{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return null==e||"string"==typeof e?e:""}},{key:"authenticated",value:function(){var e=t.current();return!!this.get("sessionToken")&&!!e&&e.id===this.id}},{key:"signUp",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().signUp(this,e,r)}},{key:"logIn",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("installationId")&&(t.installationId=e.installationId),c.default.getUserController().logIn(this,t)}},{key:"requestEmailChange",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().requestEmailChange(this,e,r)}},{key:"save",value:function(){for(var e=this,r=arguments.length,n=new Array(r),_=0;_=n.length)for(var _=r-n.length;1+_--;)n.push(void 0);return n.splice(r,0,n.splice(t,1)[0]),n},t.omit=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;nt)return t;return r},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:_(t.marginTop),right:_(t.marginRight),bottom:_(t.marginBottom),left:_(t.marginLeft)}},t.provideDisplayName=function(e,t){var r=t.displayName||t.name;return r?e+"("+r+")":e},t.getPosition=function(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.getEdgeOffset=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,left:0};if(t){var _={top:n.top+t.offsetTop,left:n.left+t.offsetLeft};return t.parentNode!==r?e(t.parentNode,r,_):_}},t.getLockPixelOffset=function(e){var t=e.lockOffset,r=e.width,_=e.height,a=t,i=t,o="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,n.default)(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=i=parseFloat(t),o=s[1]}(0,n.default)(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===o&&(a=a*r/100,i=i*_/100);return{x:a,y:i}};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(27));t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function _(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),_=t.stringifyQuery,u=t.parseQueryString;"function"!=typeof _&&(_=s),"function"!=typeof u&&(u=l);var c=function(e){return e?(null==e.query&&(e.query=u(e.search.substring(1))),e):e},d=function(e,t){if(null==t)return e;var r="string"==typeof e?(0,o.parsePath)(e):e,a=_(t);return n({},r,{search:a?"?"+a:""})};return n({},r,{getCurrentLocation:function(){return c(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,a.default)(e,c(t),r)})},listen:function(e){return r.listen(function(t){return e(c(t))})},push:function(e){return r.push(d(e,e.query))},replace:function(e){return r.replace(d(e,e.query))},createPath:function(e){return r.createPath(d(e,e.query))},createHref:function(e){return r.createHref(d(e,e.query))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),i=t.basename,o=function(e){return e?(i&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(i.toLowerCase())?(e.pathname=e.pathname.substring(i.length),e.basename=i,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},s=function(e){if(!i)return e;var t="string"==typeof e?(0,a.parsePath)(e):e,r=t.pathname,_="/"===i.slice(-1)?i:i+"/",o="/"===r.charAt(0)?r.slice(1):r;return n({},t,{pathname:_+o})};return n({},r,{getCurrentLocation:function(){return o(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,_.default)(e,o(t),r)})},listen:function(e){return r.listen(function(t){return e(o(t))})},push:function(e){return r.push(s(e))},replace:function(e){return r.replace(s(e))},createPath:function(e){return r.createPath(s(e))},createHref:function(e){return r.createHref(s(e))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,r=e.getUserConfirmation,s=e.pushLocation,l=e.replaceLocation,u=e.go,c=e.keyLength,d=void 0,f=void 0,p=[],h=[],E=[],m=function(e){var t=f&&f.action===i.POP?E.indexOf(f.key):d?E.indexOf(d.key):-1;(d=e).action===i.PUSH?E=[].concat(E.slice(0,t+1),[d.key]):d.action===i.REPLACE&&(E[t]=d.key),h.forEach(function(e){return e(d)})},g=function(e){d&&(0,o.locationsAreEqual)(d,e)||f&&(0,o.locationsAreEqual)(f,e)||(f=e,function(e,t){(0,n.loopAsync)(p.length,function(t,r,n){(0,a.default)(p[t],e,function(e){return null!=e?n(e):r()})},function(e){r&&"string"==typeof e?r(e,function(e){return t(!1!==e)}):t(!1!==e)})}(e,function(t){if(f===e)if(f=null,t){if(e.action===i.PUSH){var r=(0,_.createPath)(d);(0,_.createPath)(e)===r&&(0,o.statesAreEqual)(d.state,e.state)&&(e.action=i.REPLACE)}e.action===i.POP?m(e):e.action===i.PUSH?!1!==s(e)&&m(e):e.action===i.REPLACE&&!1!==l(e)&&m(e)}else if(d&&e.action===i.POP){var n=E.indexOf(d.key),a=E.indexOf(e.key);-1!==n&&-1!==a&&u(n-a)}}))},b=function(){return Math.random().toString(36).substr(2,c||6)},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b();return(0,o.createLocation)(e,t,r)};return{getCurrentLocation:t,listenBefore:function(e){return p.push(e),function(){return p=p.filter(function(t){return t!==e})}},listen:function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},transitionTo:g,push:function(e){return g(v(e,i.PUSH))},replace:function(e){return g(v(e,i.REPLACE))},go:u,goBack:function(){return u(-1)},goForward:function(){return u(1)},createKey:b,createPath:_.createPath,createHref:function(e){return(0,_.createPath)(e)},createLocation:v}}},function(e,t,r){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,r){"use strict";t.__esModule=!0,t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=void 0;var n=r(102),_=r(147),a=r(236),i=r(83),o=r(177).canUseDOM&&!(0,_.supportsPopstateOnHashchange)(),s=function(e){var t=e&&e.key;return(0,n.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:t?(0,a.readState)(t):void 0},void 0,t)},l=t.getCurrentLocation=function(){var e=void 0;try{e=window.history.state||{}}catch(t){e={}}return s(e)},u=(t.getUserConfirmation=function(e,t){return t(window.confirm(e))},t.startListener=function(e){var t=function(t){(0,_.isExtraneousPopstateEvent)(t)||e(s(t.state))};(0,_.addEventListener)(window,"popstate",t);var r=function(){return e(l())};return o&&(0,_.addEventListener)(window,"hashchange",r),function(){(0,_.removeEventListener)(window,"popstate",t),o&&(0,_.removeEventListener)(window,"hashchange",r)}},function(e,t){var r=e.state,n=e.key;void 0!==r&&(0,a.saveState)(n,r),t({key:n},(0,i.createPath)(e))});t.pushLocation=function(e){return u(e,function(e,t){return window.history.pushState(e,null,t)})},t.replaceLocation=function(e){return u(e,function(e,t){return window.history.replaceState(e,null,t)})},t.go=function(e){e&&window.history.go(e)}},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var _=typeof e;return!!(t=null==t?r:t)&&("number"==_||"symbol"!=_&&n.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=r}},function(e,t,r){var n=r(93)(r(74),"Map");e.exports=n},function(e,t,r){var n=r(450),_=r(457),a=r(459),i=r(460),o=r(461);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++tdocument.F=Object<\/script>"),e.close(),s=e.F;n--;)delete s.prototype[a[n]];return s()};e.exports=Object.create||function(e,t){var r;return null!==e?(o.prototype=n(e),r=new o,o.prototype=null,r[i]=e):r=s(),void 0===t?r:_(r,t)}},function(e,t,r){var n=r(189)("keys"),_=r(120);e.exports=function(e){return n[e]||(n[e]=_(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,r){var n=r(36)("iterator"),_=!1;try{var a=[7][n]();a.return=function(){_=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!_)return!1;var r=!1;try{var a=[7],i=a[n]();i.next=function(){return{done:r=!0}},a[n]=function(){return i},e(a)}catch(e){}return r}},function(e,t,r){var n=r(85),_=r(190),a=r(105),i=r(125),o=r(542);e.exports=function(e,t){var r=1==e,s=2==e,l=3==e,u=4==e,c=6==e,d=5==e||c,f=t||o;return function(t,o,p){for(var h,E,m=a(t),g=_(m),b=n(o,p,3),v=i(g.length),O=0,M=r?f(t,v):s?f(t,0):void 0;v>O;O++)if((d||O in g)&&(E=b(h=g[O],O,m),e))if(r)M[O]=E;else if(E)switch(e){case 3:return!0;case 5:return h;case 6:return O;case 2:M.push(h)}else if(u)return!1;return c?-1:l||u?u:M}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,r){"use strict";var n=r(84),_=r(71),a=r(51),i=r(123),o=r(36);e.exports=function(e,t,r){var s=o(e),l=r(i,s,""[e]),u=l[0],c=l[1];a(function(){var t={};return t[s]=function(){return 7},7!=""[e](t)})&&(_(String.prototype,e,u),n(RegExp.prototype,s,2==t?function(e,t){return c.call(e,this,t)}:function(e){return c.call(e,this)}))}},function(e,t,r){r(64)&&"g"!=/./g.flags&&r(63).f(RegExp.prototype,"flags",{configurable:!0,get:r(200)})},function(e,t,r){"use strict";var n=r(67);e.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,r){var n=r(71);e.exports=function(e,t,r){for(var _ in t)n(e,_,t[_],r);return e}},function(e,t){e.exports=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e}},function(e,t,r){var n=r(85),_=r(271),a=r(272),i=r(67),o=r(125),s=r(273),l={},u={};(t=e.exports=function(e,t,r,c,d){var f,p,h,E,m=d?function(){return e}:s(e),g=n(r,c,t?2:1),b=0;if("function"!=typeof m)throw TypeError(e+" is not iterable!");if(a(m)){for(f=o(e.length);f>b;b++)if((E=t?g(i(p=e[b])[0],p[1]):g(e[b]))===l||E===u)return E}else for(h=m.call(e);!(p=h.next()).done;)if((E=_(h,g,p.value,t))===l||E===u)return E}).BREAK=l,t.RETURN=u},function(e,t,r){"use strict";var n=r(42),_=r(63),a=r(64),i=r(36)("species");e.exports=function(e){var t=n[e];a&&t&&!t[i]&&_.f(t,i,{configurable:!0,get:function(){return this}})}},function(e,t,r){var n=r(120)("meta"),_=r(57),a=r(96),i=r(63).f,o=0,s=Object.isExtensible||function(){return!0},l=!r(51)(function(){return s(Object.preventExtensions({}))}),u=function(e){i(e,n,{value:{i:"O"+ ++o,w:{}}})},c=e.exports={KEY:n,NEED:!1,fastKey:function(e,t){if(!_(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,n)){if(!s(e))return"F";if(!t)return"E";u(e)}return e[n].i},getWeak:function(e,t){if(!a(e,n)){if(!s(e))return!0;if(!t)return!1;u(e)}return e[n].w},onFreeze:function(e){return l&&c.NEED&&s(e)&&!a(e,n)&&u(e),e}}},function(e,t,r){var n=r(57);e.exports=function(e,t){if(!n(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,r){var n=r(267),_=r(194).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,_)}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(59)),o=n(r(132)),s=function(){function e(t){(0,_.default)(this,e),(0,i.default)(this,"_coordinates",void 0),this._coordinates=e._validate(t)}return(0,a.default)(e,[{key:"toJSON",value:function(){return e._validate(this._coordinates),{__type:"Polygon",coordinates:this._coordinates}}},{key:"equals",value:function(t){if(!(t instanceof e)||this.coordinates.length!==t.coordinates.length)return!1;for(var r=!0,n=1;nr||e.longitude_)return!1;for(var o=!1,s=0,l=this._coordinates.length-1;se.longitude!=f>e.longitude&&e.latitude<(d-u)*(e.longitude-c)/(f-c)+u&&(o=!o)}return o}},{key:"coordinates",get:function(){return this._coordinates},set:function(t){this._coordinates=e._validate(t)}}],[{key:"_validate",value:function(e){if(!Array.isArray(e))throw new TypeError("Coordinates must be an Array");if(e.length<3)throw new TypeError("Polygon must have at least 3 GeoPoints or Points");for(var t=[],r=0;r1||e.first().getLength()>0},t.prototype.createEntity=function(e,t,r){return o.__create(e,t,r),this},t.prototype.mergeEntityData=function(e,t){return o.__mergeData(e,t),this},t.prototype.replaceEntityData=function(e,t){return o.__replaceData(e,t),this},t.prototype.addEntity=function(e){return o.__add(e),this},t.prototype.getEntity=function(e){return o.__get(e)},t.createFromBlockArray=function(e,r){var _=Array.isArray(e)?e:e.contentBlocks,a=n.createFromArray(_),i=a.isEmpty()?new u:u.createEmpty(a.first().getKey());return new t({blockMap:a,entityMap:r||o,selectionBefore:i,selectionAfter:i})},t.createFromText=function(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=e.split(r).map(function(e){return e=d(e),new E({key:c(),text:e,type:"unstyled",characterList:f(h(_.EMPTY,e.length))})});return t.createFromBlockArray(n)},t}(p({entityMap:null,blockMap:null,selectionBefore:null,selectionAfter:null}));e.exports=m},function(e,t,r){"use strict";var n=new RegExp("\r","g");e.exports=function(e){return e.replace(n,"")}},function(e,t,r){"use strict";var n=r(29),_="LTR",a="RTL",i=null;function o(e){return e===_||e===a}function s(e){return o(e)||n(!1),e===_?"ltr":"rtl"}function l(e){i=e}var u={NEUTRAL:"NEUTRAL",LTR:_,RTL:a,isStrong:o,getHTMLDir:s,getHTMLDirIfDifferent:function(e,t){return o(e)||n(!1),o(t)||n(!1),e===t?null:s(e)},setGlobalDir:l,initGlobalDir:function(){l(_)},getGlobalDir:function(){return i||this.initGlobalDir(),i||n(!1),i}};e.exports=u},function(e,t,r){"use strict";var n=r(30).Map,_=r(0),a=r(110),i=n({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},"unordered-list-item":{element:"li",wrapper:_.createElement("ul",{className:a("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:_.createElement("ol",{className:a("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:_.createElement("pre",{className:a("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});e.exports=i},function(e,t,r){"use strict";e.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(e,t,r){"use strict";function n(e,t){return t&&"MUTABLE"===e.__get(t).getMutability()?t:null}e.exports=function(e,t){var r;if(t.isCollapsed()){var _=t.getAnchorKey(),a=t.getAnchorOffset();return a>0?(r=e.getBlockForKey(_).getEntityAt(a-1))!==e.getBlockForKey(_).getEntityAt(a)?null:n(e.getEntityMap(),r):null}var i=t.getStartKey(),o=t.getStartOffset(),s=e.getBlockForKey(i);return r=o===s.getLength()?null:s.getEntityAt(o),n(e.getEntityMap(),r)}},function(e,t,r){"use strict";var n=r(639);e.exports=function e(t,r){return!(!t||!r)&&(t===r||!n(t)&&(n(r)?e(t,r.parentNode):"contains"in t?t.contains(r):!!t.compareDocumentPosition&&!!(16&t.compareDocumentPosition(r))))}},function(e,t,r){"use strict";function n(e,t){var r=_.get(e,t);return"auto"===r||"scroll"===r}var _={get:r(641),getScrollParent:function(e){if(!e)return null;for(var t=e.ownerDocument;e&&e!==t.body;){if(n(e,"overflow")||n(e,"overflowY")||n(e,"overflowX"))return e;e=e.parentNode}return t.defaultView||t.parentWindow}};e.exports=_},function(e,t,r){"use strict";var n=r(646),_=r(647);e.exports=function(e){var t=n(e.ownerDocument||e.document);e.Window&&e instanceof e.Window&&(e=t);var r=_(e),a=e===t?e.ownerDocument.documentElement:e,i=e.scrollWidth-a.clientWidth,o=e.scrollHeight-a.clientHeight;return r.x=Math.max(0,Math.min(r.x,i)),r.y=Math.max(0,Math.min(r.y,o)),r}},function(e,t,r){"use strict";var n=r(317);e.exports=function(e){for(var t=e;t&&t!==document.documentElement;){var r=n(t);if(null!=r)return r;t=t.parentNode}return null}},function(e,t,r){"use strict";var n=r(72).isPlatform("Mac OS X"),_={isCtrlKeyCommand:function(e){return!!e.ctrlKey&&!e.altKey},isOptionKeyCommand:function(e){return n&&e.altKey},hasCommandModifier:function(e){return n?!!e.metaKey&&!e.altKey:_.isCtrlKeyCommand(e)}};e.exports=_},function(e,t,r){"use strict";e.exports=function(e,t){var r=e.getSelection(),n=e.getCurrentContent(),_=r.getStartKey(),a=r.getStartOffset(),i=_,o=0;if(t>a){var s=n.getKeyBefore(_);null==s?i=_:(i=s,o=n.getBlockForKey(s).getText().length)}else o=a-t;return r.merge({focusKey:i,focusOffset:o,isBackward:!0})}},function(e,t,r){"use strict";var n=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r1?arguments[1]:void 0)}}),r(265)("find")},function(e,t,r){"use strict";(function(e,n){var _,a=r(337);_="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==e?e:n;var i=Object(a.a)(_);t.a=i}).call(this,r(49),r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return SiteLoader});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(758),_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SiteLoader=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_SiteLoader_sss__WEBPACK_IMPORTED_MODULE_7___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function SiteLoader(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,SiteLoader),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SiteLoader).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SiteLoader,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SiteLoader,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader-wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"loader-inner"})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SiteLoader}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SiteLoader,"SiteLoader","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/SiteLoader/SiteLoader.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationNumber});var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(17),components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(81),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(771),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationNumber=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_12___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationNumber(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ValidationNumber),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ValidationNumber).call(this,e))).state={range:{active:!1,min:0,max:0,minActive:!0,maxActive:!0,errorMsg:""}},t.onRangeActive=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{active:e})},t.update)},t.onRangeMin=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{min:e})},t.update)},t.onRangeMax=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{max:e})},t.update)},t.onRangeMinActive=function(e){var r=t.state.range.maxActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{minActive:e,maxActive:r})},t.update)},t.onRangeMaxActive=function(e){var r=t.state.range.minActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{maxActive:e,minActive:r})},t.update)},t.onRangeErrorMsg=function(e){var r=e.target.value;t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_1___default()({},t.state.range,{errorMsg:r})},t.update)},t.update=function(){t.props.update(t.state)},Object.assign(t.state,e.validations),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ValidationNumber,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ValidationNumber,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"switch"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Accept only specified number range",checked:this.state.range.active,onChange:this.onRangeActive})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Min",checked:this.state.range.minActive,onChange:this.onRangeMinActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onRangeMin,value:this.state.range.min,readOnly:!this.state.range.active||!this.state.range.minActive})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_9__.a,{title:"Max",checked:this.state.range.maxActive,onChange:this.onRangeMaxActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onRangeMax,value:this.state.range.max,readOnly:!this.state.range.active||!this.state.range.maxActive}))),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_10__.a,{label:"Custom error message",onChange:this.onRangeErrorMsg,value:this.state.range.errorMsg,readOnly:!this.state.range.active}),this.state.range.min>this.state.range.max&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationNumber}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationNumber,"ValidationNumber","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationNumber.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationString});var core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(199),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7__),react__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_8__),react_css_modules__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_9__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(81),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(771),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationString=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_9___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationString(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_3___default()(this,ValidationString),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_5___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(ValidationString).call(this,e))).state={range:{active:!1,min:0,max:0,minActive:!0,maxActive:!0,errorMsg:""},pattern:{active:!1,pattern:"",flags:"",errorMsg:""}},t.onRangeActive=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{active:e})},t.update)},t.onRangeMin=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{min:e})},t.update)},t.onRangeMax=function(e){t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{max:e})},t.update)},t.onRangeMinActive=function(e){var r=t.state.range.maxActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{minActive:e,maxActive:r})},t.update)},t.onRangeMaxActive=function(e){var r=t.state.range.minActive;e||(r=!0),t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{maxActive:e,minActive:r})},t.update)},t.onRangeErrorMsg=function(e){var r=e.target.value;t.setState({range:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.range,{errorMsg:r})},t.update)},t.onPatternActive=function(e){t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{active:e})},t.update)},t.onPatternPattern=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{pattern:r})},t.update)},t.onPatternFlags=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{flags:r})},t.update)},t.onPatternErrorMsg=function(e){var r=e.target.value;t.setState({pattern:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_2___default()({},t.state.pattern,{errorMsg:r})},t.update)},t.update=function(){t.props.update(t.state)},Object.assign(t.state,e.validations),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_7___default()(ValidationString,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(ValidationString,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Accept only specified number range",checked:this.state.range.active,onChange:this.onRangeActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Min",checked:this.state.range.minActive,onChange:this.onRangeMinActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__.a,{onChange:this.onRangeMin,value:this.state.range.min,readOnly:!this.state.range.active||!this.state.range.minActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Max",checked:this.state.range.maxActive,onChange:this.onRangeMaxActive,disabled:!this.state.range.active}),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"range-field"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__.a,{onChange:this.onRangeMax,value:this.state.range.max,readOnly:!this.state.range.active||!this.state.range.maxActive}))),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:"Custom error message",onChange:this.onRangeErrorMsg,value:this.state.range.errorMsg,readOnly:!this.state.range.active}),this.state.range.min>this.state.range.max&&react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_10__.a,{title:"Match a specific pattern",checked:this.state.pattern.active,onChange:this.onPatternActive})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern-pattern"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onPatternPattern,placeholder:"Pattern",value:this.state.pattern.pattern,readOnly:!this.state.pattern.active})),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"pattern-flags"},react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{onChange:this.onPatternFlags,placeholder:"Flags",value:this.state.pattern.flags,readOnly:!this.state.pattern.active}))),react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{label:"Custom error message",onChange:this.onPatternErrorMsg,value:this.state.pattern.errorMsg,readOnly:!this.state.pattern.active})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationString}(react__WEBPACK_IMPORTED_MODULE_8__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationString,"ValidationString","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationString.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(211);t.ReactMdeCommands=n;var _=r(712);t.ReactMdeTypes=_;var a=r(48);t.ReactMdeComponents=a;var i=r(332);t.ReactMdeLayoutComponents=i;var o=r(54);t.DraftUtil=o;var s=r(60);t.MarkdownUtil=s;var l=r(717);t.default=l.ReactMde},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return DropdownControl});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),lodash_core__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(112),lodash_core__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_8__),_RadioControl_sss__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(831),_RadioControl_sss__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_RadioControl_sss__WEBPACK_IMPORTED_MODULE_9__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var DropdownControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_RadioControl_sss__WEBPACK_IMPORTED_MODULE_9___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function DropdownControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,DropdownControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(DropdownControl).call(this,e))).state={value:!1},t.id="0",t.onChange=function(e){var r=t.props,n=r.onChange,_=r.disabled,a=r.data;n&&!_&&e.target.checked&&n(a)},t.state.value=e.value,t.id=lodash_core__WEBPACK_IMPORTED_MODULE_8___default.a.uniqueId("radio_"),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(DropdownControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(DropdownControl,[{key:"componentWillReceiveProps",value:function(e){this.setState({value:e.value})}},{key:"render",value:function(){var e=this.props,t=e.data,r=e.name,n=e.label,_="RadioControl";return e.disabled&&(_+=" disabled"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:_},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("input",{styleName:"input",type:"radio",id:this.id,name:r,value:t,checked:this.state.value===t,onChange:this.onChange}),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("label",{styleName:"label",htmlFor:this.id},n))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),DropdownControl}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(DropdownControl,"DropdownControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/RadioControl/RadioControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23),utils_initialize__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(70),ducks_user__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(24),utils_common__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(19),_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(837),_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MODE_SETUP="MODE_SETUP",MODE_DONE="MODE_DONE",PasswordSet=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_PasswordSet_sss__WEBPACK_IMPORTED_MODULE_14___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function PasswordSet(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,PasswordSet),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(PasswordSet).call(this,e))).state={mode:MODE_SETUP,password:"",passwordConfirm:"",error:null},t.urlParams={},t.lock=!1,t.onPasswordChange=function(e){t.setState({password:e.target.value})},t.onPasswordConfirmChange=function(e){t.setState({passwordConfirm:e.target.value})},t.onChange=function(e){if(e.preventDefault(),!t.isAvail())return!1;var r={username:t.urlParams.username,token:t.urlParams.token,"utf-8":"✓",new_password:t.state.password};return fetch(utils_initialize__WEBPACK_IMPORTED_MODULE_11__.b.serverURL+"/apps/"+t.urlParams.id+"/request_password_reset",{method:"POST",mode:"no-cors",headers:{"Content-Type":"application/x-www-form-urlencoded"},body:Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.a)(r)}).then(function(e){t.setState({mode:MODE_DONE})}).catch(function(e){t.setState({error:e})}),!1},t.onLogin=function(e){(e.preventDefault(),t.lock)||(t.lock=!0,(0,t.props.userActions.login)(t.urlParams.username,t.state.password))},t.urlParams=Object(utils_common__WEBPACK_IMPORTED_MODULE_13__.h)(),t.state.error=t.urlParams.error,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(PasswordSet,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(PasswordSet,[{key:"isAvail",value:function(){return this.state.password&&this.state.password==this.state.passwordConfirm}},{key:"render",value:function(){var e,t;switch(this.state.mode){case MODE_SETUP:t="Please, type a new password for ".concat(this.urlParams.username,":"),e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onChange},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",name:"new_password",type:"password",value:this.state.password,placeholder:"Enter password",onChange:this.onPasswordChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.passwordConfirm,placeholder:"Confirm password",onChange:this.onPasswordConfirmChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.isAvail(),value:"Change password"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},this.state.error)));break;case MODE_DONE:t="Your password was changed successfully.",e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onLogin},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",value:"Log in"})))}return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"container"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("title",null,"Changing password - Chisel")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"PasswordSet"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"logo"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img",{src:__webpack_require__(139)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},t),e))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),PasswordSet}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);function mapStateToProps(e){return{authorized:e.user.authorized}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({login:ducks_user__WEBPACK_IMPORTED_MODULE_12__.k},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_7__.b)(mapStateToProps,mapDispatchToProps)(PasswordSet);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MODE_SETUP,"MODE_SETUP","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(MODE_DONE,"MODE_DONE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(PasswordSet,"PasswordSet","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/LinksEmail/PasswordSet/PasswordSet.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";var n=r(402),_=r(35);function a(e,t){return t.encode?t.strict?n(e):encodeURIComponent(e):e}t.extract=function(e){return e.split("?")[1]||""},t.parse=function(e,t){var r=function(e){var t;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=_({arrayFormat:"none"},t)),n=Object.create(null);return"string"!=typeof e?n:(e=e.trim().replace(/^(\?|#|&)/,""))?(e.split("&").forEach(function(e){var t=e.replace(/\+/g," ").split("="),_=t.shift(),a=t.length>0?t.join("="):void 0;a=void 0===a?null:decodeURIComponent(a),r(decodeURIComponent(_),a,n)}),Object.keys(n).sort().reduce(function(e,t){var r=n[t];return Boolean(r)&&"object"==typeof r&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"==typeof t?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(r):e[t]=r,e},Object.create(null))):n},t.stringify=function(e,t){var r=function(e){switch(e.arrayFormat){case"index":return function(t,r,n){return null===r?[a(t,e),"[",n,"]"].join(""):[a(t,e),"[",a(n,e),"]=",a(r,e)].join("")};case"bracket":return function(t,r){return null===r?a(t,e):[a(t,e),"[]=",a(r,e)].join("")};default:return function(t,r){return null===r?a(t,e):[a(t,e),"=",a(r,e)].join("")}}}(t=_({encode:!0,strict:!0,arrayFormat:"none"},t));return e?Object.keys(e).sort().map(function(n){var _=e[n];if(void 0===_)return"";if(null===_)return a(n,t);if(Array.isArray(_)){var i=[];return _.slice().forEach(function(e){void 0!==e&&i.push(r(n,e,i.length))}),i.join("&")}return a(n,t)+"="+a(_,t)}).filter(function(e){return e.length>0}).join("&"):""}},function(e,t,r){"use strict";t.__esModule=!0,t.readState=t.saveState=void 0;!function(e){e&&e.__esModule}(r(79));var n={QuotaExceededError:!0,QUOTA_EXCEEDED_ERR:!0},_={SecurityError:!0},a=function(e){return"@@History/"+e};t.saveState=function(e,t){if(window.sessionStorage)try{null==t?window.sessionStorage.removeItem(a(e)):window.sessionStorage.setItem(a(e),JSON.stringify(t))}catch(e){if(_[e.name])return;if(n[e.name]&&0===window.sessionStorage.length)return;throw e}},t.readState=function(e){var t=void 0;try{t=window.sessionStorage.getItem(a(e))}catch(e){if(_[e.name])return}if(t)try{return JSON.parse(t)}catch(e){}}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:a,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.type,i=t.payload;if(r===_)return n({},e,{locationBeforeTransitions:i});return e};var _=t.LOCATION_CHANGE="@@router/LOCATION_CHANGE",a={locationBeforeTransitions:null}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=t.CALL_HISTORY_METHOD="@@router/CALL_HISTORY_METHOD";function _(e){return function(){for(var t=arguments.length,r=Array(t),_=0;_=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(g,["children"]);return i.default.isValidElement(b)?f.props.children=e(i.default.Children.only(b),r,n):((0,_.default)(b)||(0,s.default)(b))&&(f.props.children=d((0,o.default)(b),r,n)),(0,a.default)(v,function(t,a){i.default.isValidElement(t)?f.props[a]=e(i.default.Children.only(t),r,n):(0,_.default)(t)&&(f.props[a]=d(t,r,n))}),m.length&&(c=(0,u.default)(r,m,n.handleNotFoundStyleName))&&(f.props.className&&(c=f.props.className+" "+c),f.props.className=c),delete f.props.styleName,p?(Object.freeze(f.props),Object.freeze(f)):h&&Object.freeze(f.props),E&&Object.preventExtensions(f.props),f};t.default=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return(0,n.default)(e)?f(e,t,r):e},e.exports=t.default},function(e,t,r){var n=r(412),_=r(242),a=r(427),i=r(62);e.exports=function(e,t){return(i(e)?n:_)(e,a(t))}},function(e,t,r){var n=r(413),_=r(426)(n);e.exports=_},function(e,t,r){var n=r(418),_=r(92),a=Object.prototype,i=a.hasOwnProperty,o=a.propertyIsEnumerable,s=n(function(){return arguments}())?n:function(e){return _(e)&&i.call(e,"callee")&&!o.call(e,"callee")};e.exports=s},function(e,t,r){(function(e){var n=r(74),_=r(419),a=t&&!t.nodeType&&t,i=a&&"object"==typeof e&&e&&!e.nodeType&&e,o=i&&i.exports===a?n.Buffer:void 0,s=(o?o.isBuffer:void 0)||_;e.exports=s}).call(this,r(180)(e))},function(e,t,r){var n=r(420),_=r(421),a=r(422),i=a&&a.isTypedArray,o=i?_(i):n;e.exports=o},function(e,t){var r=Object.prototype;e.exports=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||r)}},function(e,t){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,_=0,a=[];++rd))return!1;var p=u.get(e);if(p&&u.get(t))return p==t;var h=-1,E=!0,m=r&o?new n:void 0;for(u.set(e,t),u.set(t,e);++hs;)n(o,r=t[s++])&&(~a(l,r)||l.push(r));return l}},function(e,t,r){var n=r(95),_=r(125),a=r(538);e.exports=function(e){return function(t,r,i){var o,s=n(t),l=_(s.length),u=a(i,l);if(e&&r!=r){for(;l>u;)if((o=s[u++])!=o)return!0}else for(;l>u;u++)if((e||u in s)&&s[u]===r)return e||u||0;return!e&&-1}}},function(e,t,r){var n=r(42).document;e.exports=n&&n.documentElement},function(e,t,r){"use strict";var n=r(85),_=r(44),a=r(105),i=r(271),o=r(272),s=r(125),l=r(541),u=r(273);_(_.S+_.F*!r(195)(function(e){Array.from(e)}),"Array",{from:function(e){var t,r,_,c,d=a(e),f="function"==typeof this?this:Array,p=arguments.length,h=p>1?arguments[1]:void 0,E=void 0!==h,m=0,g=u(d);if(E&&(h=n(h,p>2?arguments[2]:void 0,2)),void 0==g||f==Array&&o(g))for(r=new f(t=s(d.length));t>m;m++)l(r,m,E?h(d[m],m):d[m]);else for(c=g.call(d),r=new f;!(_=c.next()).done;m++)l(r,m,E?i(c,h,[_.value,m],!0):_.value);return r.length=m,r}})},function(e,t,r){var n=r(67);e.exports=function(e,t,r,_){try{return _?t(n(r)[0],r[1]):t(r)}catch(t){var a=e.return;throw void 0!==a&&n(a.call(e)),t}}},function(e,t,r){var n=r(122),_=r(36)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||a[_]===e)}},function(e,t,r){var n=r(274),_=r(36)("iterator"),a=r(122);e.exports=r(94).getIteratorMethod=function(e){if(void 0!=e)return e[_]||e["@@iterator"]||a[n(e)]}},function(e,t,r){var n=r(103),_=r(36)("toStringTag"),a="Arguments"==n(function(){return arguments}());e.exports=function(e){var t,r,i;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),_))?r:a?n(t):"Object"==(i=n(t))&&"function"==typeof t.callee?"Arguments":i}},function(e,t,r){var n=r(103);e.exports=Array.isArray||function(e){return"Array"==n(e)}},function(e,t){e.exports='ShapeCreated with Sketch.'},function(e,t){e.exports='IconCreated with Sketch.'},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports=''},function(e,t){e.exports='icon-AddCreated with Sketch.'},function(e,t,r){"use strict";var n=r(63).f,_=r(192),a=r(201),i=r(85),o=r(202),s=r(203),l=r(191),u=r(266),c=r(204),d=r(64),f=r(205).fastKey,p=r(206),h=d?"_s":"size",E=function(e,t){var r,n=f(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r};e.exports={getConstructor:function(e,t,r,l){var u=e(function(e,n){o(e,u,t,"_i"),e._t=t,e._i=_(null),e._f=void 0,e._l=void 0,e[h]=0,void 0!=n&&s(n,r,e[l],e)});return a(u.prototype,{clear:function(){for(var e=p(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[h]=0},delete:function(e){var r=p(this,t),n=E(r,e);if(n){var _=n.n,a=n.p;delete r._i[n.i],n.r=!0,a&&(a.n=_),_&&(_.p=a),r._f==n&&(r._f=_),r._l==n&&(r._l=a),r[h]--}return!!n},forEach:function(e){p(this,t);for(var r,n=i(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!E(p(this,t),e)}}),d&&n(u.prototype,"size",{get:function(){return p(this,t)[h]}}),u},def:function(e,t,r){var n,_,a=E(e,t);return a?a.v=r:(e._l=a={i:_=f(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=a),n&&(n.n=a),e[h]++,"F"!==_&&(e._i[_]=a)),e},getEntry:E,setStrong:function(e,t,r){l(e,t,function(e,r){this._t=p(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))},r?"entries":"values",!r,!0),c(t)}}},function(e,t,r){"use strict";var n=r(42),_=r(44),a=r(71),i=r(201),o=r(205),s=r(203),l=r(202),u=r(57),c=r(51),d=r(195),f=r(126),p=r(285);e.exports=function(e,t,r,h,E,m){var g=n[e],b=g,v=E?"set":"add",O=b&&b.prototype,M={},C=function(e){var t=O[e];a(O,e,"delete"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(m&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof b&&(m||O.forEach&&!c(function(){(new b).entries().next()}))){var P=new b,D=P[v](m?{}:-0,1)!=P,y=c(function(){P.has(1)}),w=d(function(e){new b(e)}),T=!m&&c(function(){for(var e=new b,t=5;t--;)e[v](t,t);return!e.has(-0)});w||((b=t(function(t,r){l(t,b,e);var n=p(new g,t,b);return void 0!=r&&s(r,E,n[v],n),n})).prototype=O,O.constructor=b),(y||T)&&(C("delete"),C("has"),E&&C("get")),(T||D)&&C(v),m&&O.clear&&delete O.clear}else b=h.getConstructor(t,e,E,v),i(b.prototype,r),o.NEED=!0;return f(b,e),M[e]=b,_(_.G+_.W+_.F*(b!=g),M),m||h.setStrong(b,e,E),b}},function(e,t,r){var n=r(57),_=r(563).set;e.exports=function(e,t,r){var a,i=t.constructor;return i!==r&&"function"==typeof i&&(a=i.prototype)!==r.prototype&&n(a)&&_&&_(e,a),e}},function(e,t,r){var n=r(161),_=r(121),a=r(95),i=r(188),o=r(96),s=r(264),l=Object.getOwnPropertyDescriptor;t.f=r(64)?l:function(e,t){if(e=a(e),t=i(t,!0),s)try{return l(e,t)}catch(e){}if(o(e,t))return _(!n.f.call(e,t),e[t])}},function(e,t,r){var n=r(42),_=r(94),a=r(119),i=r(288),o=r(63).f;e.exports=function(e){var t=_.Symbol||(_.Symbol=a?{}:n.Symbol||{});"_"==e.charAt(0)||e in t||o(t,e,{value:i.f(e)})}},function(e,t,r){t.f=r(36)},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(5)),o=n(r(4)),s=n(r(69)),l=n(r(6)),u=n(r(130)),c=n(r(87)),d=n(r(46)),f=function(e){function t(e,r){var n;return(0,_.default)(this,t),n=(0,i.default)(this,(0,o.default)(t).call(this,"_Role")),"string"==typeof e&&r instanceof u.default&&(n.setName(e),n.setACL(r)),n}return(0,l.default)(t,e),(0,a.default)(t,[{key:"getName",value:function(){var e=this.get("name");return null==e||"string"==typeof e?e:""}},{key:"setName",value:function(e,t){return this.set("name",e,t)}},{key:"getUsers",value:function(){return this.relation("users")}},{key:"getRoles",value:function(){return this.relation("roles")}},{key:"validate",value:function(e,r){var n=(0,s.default)((0,o.default)(t.prototype),"validate",this).call(this,e,r);if(n)return n;if("name"in e&&e.name!==this.getName()){var _=e.name;if(this.id&&this.id!==e.objectId)return new c.default(c.default.OTHER_CAUSE,"A role's name can only be set before it has been saved.");if("string"!=typeof _)return new c.default(c.default.OTHER_CAUSE,"A role's name must be a String.");if(!/^[0-9a-zA-Z\-_ ]+$/.test(_))return new c.default(c.default.OTHER_CAUSE,"A role's name can be only contain alphanumeric characters, _, -, and spaces.")}return!1}}]),t}(d.default);d.default.registerSubclass("_Role",f);var p=f;t.default=p},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if(e.indexOf(t)>-1)return!0;for(var r=0;r\/'"]/g,function(e){return n[e]})};var n={"&":"&","<":"<",">":">","/":"/","'":"'",'"':"""}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=new RegExp("^([0-9]{1,4})-([0-9]{1,2})-([0-9]{1,2})T([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2})(.([0-9]+))?Z$").exec(e);if(!t)return null;var r=t[1]||0,n=(t[2]||1)-1,_=t[3]||0,a=t[4]||0,i=t[5]||0,o=t[6]||0,s=t[8]||0;return new Date(Date.UTC(r,n,_,a,i,o,s))}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.defaultState=function(){return{serverData:{},pendingOps:[{}],objectCache:{},tasks:new l.default,existed:!1}},t.setServerData=function(e,t){for(var r in t)void 0!==t[r]?e[r]=t[r]:delete e[r]},t.setPendingOp=function(e,t,r){var n=e.length-1;r?e[n][t]=r:delete e[n][t]},t.pushPendingState=function(e){e.push({})},t.popPendingState=c,t.mergeFirstPendingState=function(e){var t=c(e),r=e[0];for(var n in t)if(r[n]&&t[n]){var _=r[n].mergeWith(t[n]);_&&(r[n]=_)}else r[n]=t[n]},t.estimateAttribute=function(e,t,r,n,_){for(var a=e[_],i=0;i-1}},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(6)),u=n(r(47)),c=n(r(296)),d=n(r(46)),f=n(r(164)),p=function(e){function t(e){var r;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this,"_Session")),e&&"object"===(0,_.default)(e)&&!r.set(e||{}))throw new Error("Can't create an invalid Session");return r}return(0,l.default)(t,e),(0,i.default)(t,[{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return"string"==typeof e?e:""}}],[{key:"readOnlyAttributes",value:function(){return["createdWith","expiresAt","installationId","restricted","sessionToken","user"]}},{key:"current",value:function(e){e=e||{};var t=u.default.getSessionController(),r={};return e.hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),f.default.currentAsync().then(function(e){return e?(r.sessionToken=e.getSessionToken(),t.getSession(r)):Promise.reject("There is no current user.")})}},{key:"isCurrentSessionRevocable",value:function(){var e=f.default.current();return!!e&&(0,c.default)(e.getSessionToken()||"")}}]),t}(d.default);d.default.registerSubclass("_Session",p);var h={getSession:function(e){var t=u.default.getRESTController(),r=new p;return t.request("GET","sessions/me",{},e).then(function(e){return r._finishFetch(e),r._setExisted(!0),r})}};u.default.setSessionController(h);var E=p;t.default=E},function(e,t,r){"use strict";var n=r(26);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(6)),u=n(r(148)),c=n(r(59)),d=n(r(210)),f=n(r(46)),p=n(r(587)),h=r(209),E={INITIALIZED:"initialized",CONNECTING:"connecting",CONNECTED:"connected",CLOSED:"closed",RECONNECTING:"reconnecting",DISCONNECTED:"disconnected"},m="connect",g="subscribe",b="unsubscribe",v="connected",O="subscribed",M="unsubscribed",C="error",P="close",D="error",y="open",w="open",T="close",A="error",k=function(e){function t(e){var r,n=e.applicationId,_=e.serverURL,i=e.javascriptKey,l=e.masterKey,d=e.sessionToken;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this)),(0,c.default)((0,u.default)((0,u.default)(r)),"attempts",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"id",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"requestId",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"applicationId",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"serverURL",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"javascriptKey",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"masterKey",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"sessionToken",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"connectPromise",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"subscriptions",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"socket",void 0),(0,c.default)((0,u.default)((0,u.default)(r)),"state",void 0),!_||0!==_.indexOf("ws"))throw new Error("You need to set a proper Parse LiveQuery server url before using LiveQueryClient");return r.reconnectHandle=null,r.attempts=1,r.id=0,r.requestId=1,r.serverURL=_,r.applicationId=n,r.javascriptKey=i,r.masterKey=l,r.sessionToken=d,r.connectPromise=(0,h.resolvingPromise)(),r.subscriptions=new Map,r.state=E.INITIALIZED,r}return(0,l.default)(t,e),(0,i.default)(t,[{key:"shouldOpen",value:function(){return this.state===E.INITIALIZED||this.state===E.DISCONNECTED}},{key:"subscribe",value:function(e,t){var r=this;if(e){var n=e.className,_=e.toJSON(),a=_.where,i=_.keys?_.keys.split(","):void 0,o={op:g,requestId:this.requestId,query:{className:n,where:a,fields:i}};t&&(o.sessionToken=t);var s=new p.default(this.requestId,e,t);return this.subscriptions.set(this.requestId,s),this.requestId+=1,this.connectPromise.then(function(){r.socket.send(JSON.stringify(o))}),s.on("error",function(){}),s}}},{key:"unsubscribe",value:function(e){var t=this;if(e){this.subscriptions.delete(e.id);var r={op:b,requestId:e.id};this.connectPromise.then(function(){t.socket.send(JSON.stringify(r))})}}},{key:"open",value:function(){var e=this,t=this._getWebSocketImplementation();t?(this.state!==E.RECONNECTING&&(this.state=E.CONNECTING),this.socket=new t(this.serverURL),this.socket.onopen=function(){e._handleWebSocketOpen()},this.socket.onmessage=function(t){e._handleWebSocketMessage(t)},this.socket.onclose=function(){e._handleWebSocketClose()},this.socket.onerror=function(t){e._handleWebSocketError(t)}):this.emit(D,"Can not find WebSocket implementation")}},{key:"resubscribe",value:function(){var e=this;this.subscriptions.forEach(function(t,r){var n=t.query,_=n.toJSON(),a=_.where,i=_.keys?_.keys.split(","):void 0,o=n.className,s=t.sessionToken,l={op:g,requestId:r,query:{className:o,where:a,fields:i}};s&&(l.sessionToken=s),e.connectPromise.then(function(){e.socket.send(JSON.stringify(l))})})}},{key:"close",value:function(){if(this.state!==E.INITIALIZED&&this.state!==E.DISCONNECTED){this.state=E.DISCONNECTED,this.socket.close();var e=!0,t=!1,r=void 0;try{for(var n,_=this.subscriptions.values()[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){n.value.emit(T)}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}this._handleReset(),this.emit(P)}}},{key:"_getWebSocketImplementation",value:function(){return"function"==typeof WebSocket||"object"===("undefined"==typeof WebSocket?"undefined":(0,_.default)(WebSocket))?WebSocket:null}},{key:"_handleReset",value:function(){this.attempts=1,this.id=0,this.requestId=1,this.connectPromise=(0,h.resolvingPromise)(),this.subscriptions=new Map}},{key:"_handleWebSocketOpen",value:function(){this.attempts=1;var e={op:m,applicationId:this.applicationId,javascriptKey:this.javascriptKey,masterKey:this.masterKey,sessionToken:this.sessionToken};this.socket.send(JSON.stringify(e))}},{key:"_handleWebSocketMessage",value:function(e){var t=e.data;"string"==typeof t&&(t=JSON.parse(t));var r=null;switch(t.requestId&&(r=this.subscriptions.get(t.requestId)),t.op){case v:this.state===E.RECONNECTING&&this.resubscribe(),this.emit(y),this.id=t.clientId,this.connectPromise.resolve(),this.state=E.CONNECTED;break;case O:r&&r.emit(w);break;case C:t.requestId?r&&r.emit(A,t.error):this.emit(D,t.error);break;case M:break;default:delete t.object.__type;var n=f.default.fromJSON(t.object,!1);if(!r)break;r.emit(t.op,n)}}},{key:"_handleWebSocketClose",value:function(){if(this.state!==E.DISCONNECTED){this.state=E.CLOSED,this.emit(P);var e=!0,t=!1,r=void 0;try{for(var n,_=this.subscriptions.values()[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){n.value.emit(T)}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}this._handleReconnect()}}},{key:"_handleWebSocketError",value:function(e){this.emit(D,e);var t=!0,r=!1,n=void 0;try{for(var _,a=this.subscriptions.values()[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){_.value.emit(A)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}this._handleReconnect()}},{key:"_handleReconnect",value:function(){var e=this;if(this.state!==E.DISCONNECTED){this.state=E.RECONNECTING;var t=function(e){return Math.random()*Math.min(30,Math.pow(2,e)-1)*1e3}(this.attempts);this.reconnectHandle&&clearTimeout(this.reconnectHandle),this.reconnectHandle=setTimeout(function(){e.attempts++,e.connectPromise=(0,h.resolvingPromise)(),e.open()}.bind(this),t)}}}]),t}(d.default);t.default=k},function(e,t,r){var n=r(42),_=r(285),a=r(63).f,i=r(207).f,o=r(591),s=r(200),l=n.RegExp,u=l,c=l.prototype,d=/a/g,f=/a/g,p=new l(d)!==d;if(r(64)&&(!p||r(51)(function(){return f[r(36)("match")]=!1,l(d)!=d||l(f)==f||"/a/i"!=l(d,"i")}))){l=function(e,t){var r=this instanceof l,n=o(e),a=void 0===t;return!r&&n&&e.constructor===l&&a?e:_(p?new u(n&&!a?e.source:e,t):u((n=e instanceof l)?e.source:e,n&&a?s.call(e):t),r?this:c,l)};for(var h=function(e){e in l||a(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},E=i(u),m=0;E.length>m;)h(E[m++]);c.constructor=l,l.prototype=c,r(71)(n,"RegExp",l)}r(204)("RegExp")},function(e,t,r){"use strict";var n=r(283),_=r(206);e.exports=r(284)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return n.def(_(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){var n,_,a,i=r(85),o=r(597),s=r(269),l=r(187),u=r(42),c=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,h=u.Dispatch,E=0,m={},g=function(){var e=+this;if(m.hasOwnProperty(e)){var t=m[e];delete m[e],t()}},b=function(e){g.call(e.data)};d&&f||(d=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return m[++E]=function(){o("function"==typeof e?e:Function(e),t)},n(E),E},f=function(e){delete m[e]},"process"==r(103)(c)?n=function(e){c.nextTick(i(g,e,1))}:h&&h.now?n=function(e){h.now(i(g,e,1))}:p?(a=(_=new p).port2,_.port1.onmessage=b,n=i(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(n=function(e){u.postMessage(e+"","*")},u.addEventListener("message",b,!1)):n="onreadystatechange"in l("script")?function(e){s.appendChild(l("script")).onreadystatechange=function(){s.removeChild(this),g.call(e)}}:function(e){setTimeout(i(g,e,1),0)}),e.exports={set:d,clear:f}},function(e,t,r){"use strict";var n=r(124);e.exports.f=function(e){return new function(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=n(t),this.reject=n(r)}(e)}},function(e,t,r){var n=r(44);n(n.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,r){"use strict";var n=r(65),_=r(30),a=r(78),i=_.OrderedMap;e.exports=function(e){return e.first()instanceof n?function(e){var t={},r=void 0;return i(e.withMutations(function(e){e.forEach(function(n,_){var i=n.getKey(),o=n.getNextSiblingKey(),s=n.getPrevSiblingKey(),l=n.getChildKeys(),u=n.getParentKey(),c=a();if(t[i]=c,o&&(e.get(o)?e.setIn([o,"prevSibling"],c):e.setIn([i,"nextSibling"],null)),s&&(e.get(s)?e.setIn([s,"nextSibling"],c):e.setIn([i,"prevSibling"],null)),u&&e.get(u)){var d=e.get(u).getChildKeys();e.setIn([u,"children"],d.set(d.indexOf(n.getKey()),c))}else e.setIn([i,"parent"],null),r&&(e.setIn([r.getKey(),"nextSibling"],c),e.setIn([i,"prevSibling"],t[r.getKey()])),r=e.get(i);l.forEach(function(t){e.get(t)?e.setIn([t,"parent"],c):e.setIn([i,"children"],n.getChildKeys().filter(function(e){return e!==t}))})})}).toArray().map(function(e){return[t[e.getKey()],e.set("key",t[e.getKey()])]}))}(e):function(e){return i(e.toArray().map(function(e){var t=a();return[t,e.set("key",t)]}))}(e)}},function(e,t,r){"use strict";var n=r(61),_=r(136),a=r(29);function i(e,t,r){var i=t.getCharacterList(),o=r>0?i.get(r-1):void 0,s=r=r&&(n={start:e,end:t})}),"object"!=typeof n&&a(!1),n}(i,u,r),f=d.start,p=d.end;f0&&window.scrollTo(_.x,_.y+a+10)}else{r instanceof HTMLElement||E(!1),(a=r.offsetHeight+r.offsetTop-(n.offsetHeight+_.y))>0&&s.setTop(n,s.getTop(n)+a+10)}}},t.prototype._renderChildren=function(){var e=this,t=this.props.block,r=t.getKey(),o=t.getText(),s=this.props.tree.size-1,l=g(this.props.selection,r);return this.props.tree.map(function(d,f){var p=d.get("leaves"),h=p.size-1,E=p.map(function(n,u){var c=a.encode(r,f,u),d=n.get("start"),p=n.get("end");return i.createElement(_,{key:c,offsetKey:c,block:t,start:d,selection:l?e.props.selection:null,forceSelection:e.props.forceSelection,text:o.slice(d,p),styleSet:t.getInlineStyleAt(d),customStyleMap:e.props.customStyleMap,customStyleFn:e.props.customStyleFn,isLast:f===s&&u===h})}).toArray(),g=d.get("decoratorKey");if(null==g)return E;if(!e.props.decorator)return E;var b=m(e.props.decorator),v=b.getComponentForKey(g);if(!v)return E;var O=b.getPropsForKey(g),M=a.encode(r,f,0),C=o.slice(p.first().get("start"),p.last().get("end")),P=c.getHTMLDirIfDifferent(u.getDirection(C),e.props.direction);return i.createElement(v,n({},O,{contentState:e.props.contentState,decoratedText:C,dir:P,key:M,entityKey:t.getEntityAt(d.get("start")),offsetKey:M}),E)}).toArray()},t.prototype.render=function(){var e=this.props,t=e.direction,r=e.offsetKey,n=d({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===t,"public/DraftStyleDefault/rtl":"RTL"===t});return i.createElement("div",{"data-offset-key":r,className:n},this._renderChildren())},t}(i.Component);e.exports=b},function(e,t,r){"use strict";e.exports=function(e){if(void 0===(e=e||("undefined"!=typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}},function(e,t,r){"use strict";function n(e,t){return!!t&&(e===t.documentElement||e===t.body)}var _={getTop:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollTop||t.documentElement.scrollTop:e.scrollTop},setTop:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollTop=r.documentElement.scrollTop=t:e.scrollTop=t},getLeft:function(e){var t=e.ownerDocument;return n(e,t)?t.body.scrollLeft||t.documentElement.scrollLeft:e.scrollLeft},setLeft:function(e,t){var r=e.ownerDocument;n(e,r)?r.body.scrollLeft=r.documentElement.scrollLeft=t:e.scrollLeft=t}};e.exports=_},function(e,t,r){"use strict";var n=r(651),_=r(652),a=r(213),i=new RegExp("\r\n","g"),o={"text/rtf":1,"text/html":1};function s(e){if("file"==e.kind)return e.getAsFile()}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.data=t,this.types=t.types?_(t.types):[]}return e.prototype.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some(function(e){return o[e]})},e.prototype.getText=function(){var e;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(e=this.data.getData("text/plain")):e=this.data.getData("Text")),e?e.replace(i,"\n"):null},e.prototype.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.prototype.isLink=function(){return this.types.some(function(e){return-1!=e.indexOf("Url")||-1!=e.indexOf("text/uri-list")||e.indexOf("text/x-moz-url")})},e.prototype.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.prototype.isImage=function(){var e=this.types.some(function(e){return-1!=e.indexOf("application/x-moz-file")});if(e)return!0;for(var t=this.getFiles(),r=0;r0},e}();e.exports=l},function(e,t,r){"use strict";e.exports=function e(t){if(t instanceof Element){var r=t.getAttribute("data-offset-key");if(r)return r;for(var n=0;n0&&(r=a.childNodes.length)),0===r){var u=null;if(null!=s)u=s;else{var c=function(e){for(;e.firstChild&&(e.firstChild instanceof Element&&"true"===e.firstChild.getAttribute("data-blocks")||_(e.firstChild));)e=e.firstChild;return e}(a);u=o(_(c))}return{key:u,offset:0}}var d=a.childNodes[r-1],f=null,p=null;if(_(d)){var h=function(e){for(;e.lastChild&&(e.lastChild instanceof Element&&"true"===e.lastChild.getAttribute("data-blocks")||_(e.lastChild));)e=e.lastChild;return e}(d);f=o(_(h)),p=l(h)}else f=o(s),p=l(d);return{key:f,offset:p}}function l(e){var t=e.textContent;return"\n"===t?0:t.length}e.exports=function(e,t,r,_,i,l){var u=r.nodeType===Node.TEXT_NODE,c=i.nodeType===Node.TEXT_NODE;if(u&&c)return{selectionState:a(e,o(n(r)),_,o(n(i)),l),needsRecovery:!1};var d=null,f=null,p=!0;return u?(d={key:o(n(r)),offset:_},f=s(t,i,l)):c?(f={key:o(n(i)),offset:l},d=s(t,r,_)):(d=s(t,r,_),f=s(t,i,l),r===i&&_===l&&(p=!!r.firstChild&&"BR"!==r.firstChild.nodeName)),{selectionState:a(e,d.key,d.offset,f.key,f.offset),needsRecovery:p}}},function(e,t,r){"use strict";var n="\\s|(?![_])"+r(670).getPunctuation(),_=new RegExp("^(?:"+n+")*(?:['‘’]|(?!"+n+").)*(?:(?!"+n+").)"),a=new RegExp("(?:(?!"+n+").)(?:['‘’]|(?!"+n+").)*(?:"+n+")*$");function i(e,t){var r=t?a.exec(e):_.exec(e);return r?r[0]:e}var o={getBackward:function(e){return i(e,!0)},getForward:function(e){return i(e,!1)}};e.exports=o},function(e,t,r){"use strict";e.exports=function(e,t){var r,n=e.getSelection(),_=n.getStartKey(),a=n.getStartOffset(),i=e.getCurrentContent(),o=_;return t>i.getBlockForKey(_).getText().length-a?(o=i.getKeyAfter(_),r=0):r=a+t,n.merge({focusKey:o,focusOffset:r})}},function(e,t,r){"use strict";var n,_=a||function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:null;return{text:"\r",inlines:[C()],entities:new Array(1),blocks:[function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return _({},K,e)}({parent:r,key:m(),type:e,depth:Math.max(0,Math.min(4,t))})]}},V=function e(t,r,n,a,i,o,s,l,u,d){var f=U,p=r.nodeName.toLowerCase(),E=t,m="unstyled",g=!1,b=i&&x(i,a,l),v=_({},S),M=void 0;if("#text"===p){var P=r.textContent,y=P.trim();if(a&&""===y&&r.parentElement){var w=r.parentElement.nodeName.toLowerCase();if("ol"===w||"ul"===w)return{chunk:_({},S),entityMap:t}}return""===y&&"pre"!==i?{chunk:function(e){var t=new Array(1);return e&&(t[0]=e),_({},S,{text:" ",inlines:[C()],entities:t})}(u),entityMap:t}:("pre"!==i&&(P=P.replace(D," ")),U=p,{chunk:{text:P,inlines:Array(P.length).fill(n),entities:Array(P.length).fill(u),blocks:[]},entityMap:t})}if(U=p,"br"===p)return"br"!==f||i&&"unstyled"!==b?{chunk:q(),entityMap:t}:{chunk:F("unstyled",s,d),entityMap:t};if("img"===p&&r instanceof HTMLImageElement&&r.attributes.getNamedItem("src")&&r.attributes.getNamedItem("src").value){var T=r,K={};B.forEach(function(e){var t=T.getAttribute(e);t&&(K[e]=t)}),r.textContent="📷",u=c.__create("IMAGE","MUTABLE",K||{})}n=function(e,t,r){var n=I[e];if(n)r=r.add(n).toOrderedSet();else if(t instanceof HTMLElement){var _=t;r=r.withMutations(function(e){var t=_.style.fontWeight,r=_.style.fontStyle,n=_.style.textDecoration;A.indexOf(t)>=0?e.add("BOLD"):k.indexOf(t)>=0&&e.remove("BOLD"),"italic"===r?e.add("ITALIC"):"normal"===r&&e.remove("ITALIC"),"underline"===n&&e.add("UNDERLINE"),"line-through"===n&&e.add("STRIKETHROUGH"),"none"===n&&(e.remove("UNDERLINE"),e.remove("STRIKETHROUGH"))}).toOrderedSet()}return r}(p,r,n),"ul"!==p&&"ol"!==p||(a&&(s+=1),a=p),!O&&"li"===p&&r instanceof HTMLElement&&(s=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(R).some(function(r){e.classList.contains(r)&&(t=R[r])}),t}(r,s));var W=x(p,a,l),V=a&&"li"===i&&"li"===p,H=(!i||O)&&-1!==o.indexOf(p);(V||H)&&(M=(v=F(W,s,d)).blocks[0].key,i=p,g=!O),V&&(m="ul"===a?"unordered-list-item":"ordered-list-item");var z=r.firstChild;null!=z&&(p=z.nodeName.toLowerCase());for(var G=null;z;){z instanceof HTMLAnchorElement&&z.href&&N(z)?function(){var e=z,t={};L.forEach(function(r){var n=e.getAttribute(r);n&&(t[r]=n)}),t.url=new h(e.href).toString(),G=c.__create("LINK","MUTABLE",t||{})}():G=void 0;var Y=e(E,z,n,a,i,o,s,l,G||u,O?M:null),J=Y.chunk;E=Y.entityMap,v=j(v,J,O);var X=z.nextSibling;!d&&X&&o.indexOf(p)>=0&&i&&(v=j(v,q())),X&&(p=X.nodeName.toLowerCase()),z=X}return g&&(v=j(v,F(m,s,d))),{chunk:v,entityMap:E}},H=function(e,t,r,n){e=e.trim().replace(P,"").replace(y," ").replace(w,"").replace(T,"");var a=function(e){var t=e.get("unstyled").element,r=p([]);return e.forEach(function(e){e.aliasedElements&&e.aliasedElements.forEach(function(e){r=r.add(e)}),r=r.add(e.element)}),r.filter(function(e){return e&&e!==t}).toArray().sort()}(r),i=t(e);if(!i)return null;U=null;var o=function(e,t){return t.some(function(t){return-1!==e.indexOf("<"+t)})}(e,a)?a:["div"],s=V(n,i,C(),"ul",null,o,-1,r),l=s.chunk,u=s.entityMap;return 0===l.text.indexOf("\r")&&(l={text:l.text.slice(1),inlines:l.inlines.slice(1),entities:l.entities.slice(1),blocks:l.blocks}),"\r"===l.text.slice(-1)&&(l.text=l.text.slice(0,-1),l.inlines=l.inlines.slice(0,-1),l.entities=l.entities.slice(0,-1),l.blocks.pop()),0===l.blocks.length&&l.blocks.push(_({},S,{type:"unstyled",depth:0})),l.text.split("\r").length===l.blocks.length+1&&l.blocks.unshift({type:"unstyled",depth:0}),{chunk:l,entityMap:u}};e.exports=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:g,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u,n=H(e,t,r,c);if(null==n)return null;var _=n.chunk,a=n.entityMap;return{contentBlocks:function(e){if(!e||!e.text||!Array.isArray(e.blocks))return null;var t=0,r=e.blocks,n=e.inlines,_=e.entities,a=O?l:s;return e.text.split("\r").reduce(function(e,i,s){i=v(i);var u=r[s],c=t+i.length,d=n.slice(t,c),f=_.slice(t,c),p=M(d.map(function(e,t){var r={style:e,entity:null};return f[t]&&(r.entity=f[t]),o.create(r)}));t=c+1;var h=u.depth,E=u.type,g=u.parent,b=u.key||m(),O=null;if(g){var C=e.cacheRef[g],P=e.contentBlocks[C];if(P.getChildKeys().isEmpty()&&P.getText()){var D=P.getCharacterList(),y=P.getText();O=m();var w=new l({key:O,text:y,characterList:D,parent:g,nextSibling:b});e.contentBlocks.push(w),P=P.withMutations(function(e){e.set("characterList",M()).set("text","").set("children",P.children.push(w.getKey()))})}e.contentBlocks[C]=P.set("children",P.children.push(b))}var T=new a({key:b,parent:g,type:E,depth:h,text:i,characterList:p,prevSibling:O||(0===s||r[s-1].parent!==g?null:r[s-1].key),nextSibling:s===r.length-1||r[s+1].parent!==g?null:r[s+1].key});return e.contentBlocks.push(T),e.cacheRef[T.key]=s,e},{cacheRef:{},contentBlocks:[]}).contentBlocks}(_),entityMap:a}}},function(e,t,r){"use strict";var n=r(72),_=r(29),a=n.isBrowser("IE <= 9");e.exports=function(e){var t,r=null;return!a&&document.implementation&&document.implementation.createHTMLDocument&&((t=document.implementation.createHTMLDocument("foo")).documentElement||_(!1),t.documentElement.innerHTML=e,r=t.getElementsByTagName("body")[0]),r}},function(e,t,r){"use strict";var n=r(55),_=r(33),a=(r(109),r(682)),i=r(68),o={currentBlockContainsLink:function(e){var t=e.getSelection(),r=e.getCurrentContent(),n=r.getEntityMap();return r.getBlockForKey(t.getAnchorKey()).getCharacterList().slice(t.getStartOffset(),t.getEndOffset()).some(function(e){var t=e.getEntity();return!!t&&"LINK"===n.__get(t).getType()})},getCurrentBlockType:function(e){var t=e.getSelection();return e.getCurrentContent().getBlockForKey(t.getStartKey()).getType()},getDataObjectForLinkURL:function(e){return{url:e.toString()}},handleKeyCommand:function(e,t){switch(t){case"bold":return o.toggleInlineStyle(e,"BOLD");case"italic":return o.toggleInlineStyle(e,"ITALIC");case"underline":return o.toggleInlineStyle(e,"UNDERLINE");case"code":return o.toggleCode(e);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return o.onBackspace(e);case"delete":case"delete-word":case"delete-to-end-of-block":return o.onDelete(e);default:return null}},insertSoftNewline:function(e){var t=n.insertText(e.getCurrentContent(),e.getSelection(),"\n",e.getCurrentInlineStyle(),null),r=_.push(e,t,"insert-characters");return _.forceSelection(r,t.getSelectionAfter())},onBackspace:function(e){var t=e.getSelection();if(!t.isCollapsed()||t.getAnchorOffset()||t.getFocusOffset())return null;var r=e.getCurrentContent(),n=t.getStartKey(),a=r.getBlockBefore(n);if(a&&"atomic"===a.getType()){var i=r.getBlockMap().delete(a.getKey()),s=r.merge({blockMap:i,selectionAfter:t});if(s!==r)return _.push(e,s,"remove-range")}var l=o.tryToRemoveBlockStyle(e);return l?_.push(e,l,"change-block-type"):null},onDelete:function(e){var t=e.getSelection();if(!t.isCollapsed())return null;var r=e.getCurrentContent(),a=t.getStartKey(),i=r.getBlockForKey(a).getLength();if(t.getStartOffset()0&&i!==o)return null;var s=i.getType(),l=a.getBlockBefore(_);if("code-block"===s&&l&&"code-block"===l.getType()&&0!==l.getLength())return null;if("unstyled"!==s)return n.setBlockType(a,t,"unstyled")}return null}};e.exports=o},function(e,t,r){"use strict";var n=r(224),_=r(218),a=r(72),i=a.isPlatform("Mac OS X"),o=a.isPlatform("Windows"),s=i&&a.isBrowser("Firefox < 29"),l=n.hasCommandModifier,u=n.isCtrlKeyCommand;function c(e){return i&&e.altKey||u(e)}e.exports=function(e){switch(e.keyCode){case 66:return l(e)?"bold":null;case 68:return u(e)?"delete":null;case 72:return u(e)?"backspace":null;case 73:return l(e)?"italic":null;case 74:return l(e)?"code":null;case 75:return!o&&u(e)?"secondary-cut":null;case 77:case 79:return u(e)?"split-block":null;case 84:return i&&u(e)?"transpose-characters":null;case 85:return l(e)?"underline":null;case 87:return i&&u(e)?"backspace-word":null;case 89:return u(e)?o?"redo":"secondary-paste":null;case 90:return function(e){return l(e)?e.shiftKey?"redo":"undo":null}(e)||null;case _.RETURN:return"split-block";case _.DELETE:return function(e){return o&&e.shiftKey?null:c(e)?"delete-word":"delete"}(e);case _.BACKSPACE:return function(e){return l(e)&&i?"backspace-to-start-of-line":c(e)?"backspace-word":"backspace"}(e);case _.LEFT:return s&&l(e)?"move-selection-to-start-of-block":null;case _.RIGHT:return s&&l(e)?"move-selection-to-end-of-block":null;default:return null}}},function(e,t,r){"use strict";var n={stringify:function(e){return"_"+String(e)},unstringify:function(e){return e.slice(1)}};e.exports=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(0);t.MdeToolbarButtonGroup=function(e){return n.createElement("ul",{className:"mde-header-group"},e.children)}},function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])};return function(t,r){function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),_=this&&this.__assign||Object.assign||function(e){for(var t,r=1,n=arguments.length;r0&&void 0!==arguments[0]?arguments[0]:{};Array.isArray(e)?e={entries:e}:"string"==typeof e&&(e={entries:[e]});var t=function(){var e=c[d],t=(0,i.createPath)(e),r=void 0,_=void 0;e.key&&(r=e.key,_=h(r));var o=(0,i.parsePath)(t);return(0,a.createLocation)(n({},o,{state:_}),void 0,r)},r=function(e){var t=d+e;return t>=0&&t=0&&d0&&void 0!==arguments[0]?arguments[0]:{};a.canUseDOM||(0,_.default)(!1);var t=e.forceRefresh||!(0,s.supportsHistory)()?o:i,r=t.getUserConfirmation,u=t.getCurrentLocation,c=t.pushLocation,d=t.replaceLocation,f=t.go,p=(0,l.default)(n({getUserConfirmation:r},e,{getCurrentLocation:u,pushLocation:c,replaceLocation:d,go:f})),h=0,E=void 0,m=function(e,t){1==++h&&(E=i.startListener(p.transitionTo));var r=t?p.listenBefore(e):p.listen(e);return function(){r(),0==--h&&E()}};return n({},p,{listenBefore:function(e){return m(e,!0)},listen:function(e){return m(e,!1)}})}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};a.canUseDOM||(0,_.default)(!1);var t=e.queryKey,r=e.hashType;"string"!=typeof t&&(t="_k"),null==r&&(r="slash"),r in c||(r="slash");var l=c[r],u=o.getUserConfirmation,d=(0,s.default)(n({getUserConfirmation:u},e,{getCurrentLocation:function(){return o.getCurrentLocation(l,t)},pushLocation:function(e){return o.pushLocation(e,l,t)},replaceLocation:function(e){return o.replaceLocation(e,l,t)},go:o.go})),f=0,p=void 0,h=function(e,r){1==++f&&(p=o.startListener(d.transitionTo,l,t));var n=r?d.listenBefore(e):d.listen(e);return function(){n(),0==--f&&p()}};(0,i.supportsGoWithoutReloadUsingHash)();return n({},d,{listenBefore:function(e){return h(e,!0)},listen:function(e){return h(e,!1)},go:function(e){d.go(e)},createHref:function(e){return"#"+l.encodePath(d.createHref(e))}})}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),redux__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(343),react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_transition_group_CSSTransition__WEBPACK_IMPORTED_MODULE_9__),components_modals_SiteLoader_SiteLoader__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(229),components_modals_FieldModal_FieldModal__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(344),components_modals_MediaModal_MediaModal__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(348),components_modals_WysiwygModal_WysiwygModal__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(349),components_modals_MarkdownModal_MarkdownModal__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(350),components_modals_ReferenceModal_ReferenceModal__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(352),components_modals_ModelChooseModal_ModelChooseModal__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(353),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(38),ducks_nav__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7),ducks_models__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(25),_app_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(797),_app_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_app_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var App=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_app_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_React$Component){function App(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,App);for(var r=arguments.length,n=new Array(r),_=0;_n&&react__WEBPACK_IMPORTED_MODULE_8___default.a.createElement("div",{styleName:"error"},"Error: the min value should be smaller than max value! Please, fix it.")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationDate}(react__WEBPACK_IMPORTED_MODULE_8__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationDate,"ValidationDate","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationDate.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ValidationReference});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(128),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(270),core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_from__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(11),_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_7__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_8__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_9__),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(300),core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(core_js_modules_es6_set__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15__),react__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_16__),react_css_modules__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_17__),components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(39),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(17),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(771),_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ValidationReference=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_17___default()(_FieldModal_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ValidationReference(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_11___default()(this,ValidationReference),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_13___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_14___default()(ValidationReference).call(this,e))).state={models:{active:!1,modelsList:[],errorMsg:""}},t.modelsAll=void 0,t.modelsSet=new Set,t.onTypesActive=function(e){t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{active:e})},t.update)},t.onTypesErrorMsg=function(e){var r=e.target.value;t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{errorMsg:r})},t.update)},t.onModelChange=function(e,r){r?t.modelsSet.add(e):t.modelsSet.delete(e),t.setState({models:_babel_runtime_helpers_objectSpread__WEBPACK_IMPORTED_MODULE_6___default()({},t.state.models,{modelsList:Array.from(t.modelsSet)})},t.update)},t.update=function(){t.props.update(t.state)},t.modelsAll=e.models,Object.assign(t.state,e.validations);var r=t.state.models.modelsList;return r&&"function"==typeof r[Symbol.iterator]&&(t.modelsSet=new Set(r)),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_15___default()(ValidationReference,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_12___default()(ValidationReference,[{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"validation"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"active"},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__.a,{title:"Accept only specified entry models",checked:this.state.models.active,onChange:this.onTypesActive})),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"models"},this.modelsAll.map(function(t){return react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement("div",{styleName:"model-checkbox",key:t.nameId},react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_CheckboxControl_CheckboxControl__WEBPACK_IMPORTED_MODULE_18__.a,{title:t.name,checked:e.modelsSet.has(t.nameId),onChange:function(r){return e.onModelChange(t.nameId,r)},disabled:!e.state.models.active}))})),react__WEBPACK_IMPORTED_MODULE_16___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_19__.a,{label:"Custom error message",onChange:this.onTypesErrorMsg,value:this.state.models.errorMsg,readOnly:!this.state.models.active})))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ValidationReference}(react__WEBPACK_IMPORTED_MODULE_16__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ValidationReference,"ValidationReference","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/FieldModal/Validations/ValidationReference.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MediaModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(173),index__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(21),_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(777),_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MediaModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_MediaModal_sss__WEBPACK_IMPORTED_MODULE_15___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MediaModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,MediaModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(MediaModal).call(this,e))).state={selectedItems:[],searchText:""},t.isMult=!1,t.active=!1,t.callback=null,t.items=[],t.focusElm=null,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode&&setTimeout(t.onChoose,1)},t.onSearch=function(e){var r=e.target.value;t.setState({searchText:r,selectedItems:[]})},t.onSelect=function(e){if(t.isMult){var r=t.state.selectedItems,n=r.indexOf(e);-1==n?r.push(e):r.splice(n,1),t.setState({selectedItems:r})}else t.setState({selectedItems:[e]})},t.onSearchKeyDown=function(e){e.stopPropagation(),27==e.keyCode&&t.setState({searchText:""})},t.onChoose=function(){t.state.selectedItems.length&&t.active&&(t.callback(t.state.selectedItems),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.isMult=e.params.isMult,t.callback=e.params.callback,t.items=index__WEBPACK_IMPORTED_MODULE_14__.store.getState().media.items,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(MediaModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(MediaModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"searchMatch",value:function(e,t){return!e||-1!=t.toLowerCase().indexOf(e.toLowerCase())}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__.a,{type:"big",label:"search media files",DOMRef:function(t){return e.focusElm=t},value:this.state.searchText,onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"media"},this.items.filter(function(e){return!e.assigned}).filter(function(t){return e.searchMatch(e.state.searchText,t.name)}).map(function(t){var r="media-item";return-1!=e.state.selectedItems.indexOf(t)&&(r+=" media-chosen"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"media-header",onClick:function(){return e.onSelect(t)}},t.name),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_13__.a,{item:t}))})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedItems.length,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MediaModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MediaModal,"MediaModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/MediaModal/MediaModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return WysiwygModal});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(779),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_8__),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(781),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_9__),react_medium_editor__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(174),react_medium_editor__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_medium_editor__WEBPACK_IMPORTED_MODULE_10__),_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(783),_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var WysiwygModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_WysiwygModal_sss__WEBPACK_IMPORTED_MODULE_11___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function WysiwygModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,WysiwygModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(WysiwygModal).call(this,e))).text="",t.onClose=null,t.callback=null,t.onClosing=function(){t.callback(t.text),t.onClose()},t.onChange=function(e){t.text=e},t.onClose=e.onClose,t.callback=e.params.callback,t.text=e.params.text,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(WysiwygModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(WysiwygModal,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"return",onClick:this.onClosing},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{styleName:"cross",src:__webpack_require__(77)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_medium_editor__WEBPACK_IMPORTED_MODULE_10___default.a,{styleName:"editor",text:this.text,onChange:this.onChange}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),WysiwygModal}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(WysiwygModal,"WysiwygModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/WysiwygModal/WysiwygModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MarkdownModal});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(142),_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(789),_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MarkdownModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_MarkdownModal_sss__WEBPACK_IMPORTED_MODULE_9___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MarkdownModal(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,MarkdownModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(MarkdownModal).call(this,e))).text="",t.onClose=null,t.callback=null,t.onClosing=function(){t.callback(t.text),t.onClose()},t.onChange=function(e){t.text=e},t.onClose=e.onClose,t.callback=e.params.callback,t.text=e.params.text,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(MarkdownModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(MarkdownModal,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"return",onClick:this.onClosing},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{styleName:"cross",src:__webpack_require__(77)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__.b,{layout:components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_8__.a,value:this.text,onChange:this.onChange}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MarkdownModal}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MarkdownModal,"MarkdownModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/MarkdownModal/MarkdownModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n;/*! showdown v 1.8.7 - 16-10-2018 */ -(function(){function _(e){"use strict";var t={omitExtraWLInCodeBlocks:{defaultValue:!1,describe:"Omit the default extra whiteline added to code blocks",type:"boolean"},noHeaderId:{defaultValue:!1,describe:"Turn on/off generated header id",type:"boolean"},prefixHeaderId:{defaultValue:!1,describe:"Add a prefix to the generated header ids. Passing a string will prefix that string to the header id. Setting to true will add a generic 'section-' prefix",type:"string"},rawPrefixHeaderId:{defaultValue:!1,describe:'Setting this option to true will prevent showdown from modifying the prefix. This might result in malformed IDs (if, for instance, the " char is used in the prefix)',type:"boolean"},ghCompatibleHeaderId:{defaultValue:!1,describe:"Generate header ids compatible with github style (spaces are replaced with dashes, a bunch of non alphanumeric chars are removed)",type:"boolean"},rawHeaderId:{defaultValue:!1,describe:"Remove only spaces, ' and \" from generated header ids (including prefixes), replacing them with dashes (-). WARNING: This might result in malformed ids",type:"boolean"},headerLevelStart:{defaultValue:!1,describe:"The header blocks level start",type:"integer"},parseImgDimensions:{defaultValue:!1,describe:"Turn on/off image dimension parsing",type:"boolean"},simplifiedAutoLink:{defaultValue:!1,describe:"Turn on/off GFM autolink style",type:"boolean"},excludeTrailingPunctuationFromURLs:{defaultValue:!1,describe:"Excludes trailing punctuation from links generated with autoLinking",type:"boolean"},literalMidWordUnderscores:{defaultValue:!1,describe:"Parse midword underscores as literal underscores",type:"boolean"},literalMidWordAsterisks:{defaultValue:!1,describe:"Parse midword asterisks as literal asterisks",type:"boolean"},strikethrough:{defaultValue:!1,describe:"Turn on/off strikethrough support",type:"boolean"},tables:{defaultValue:!1,describe:"Turn on/off tables support",type:"boolean"},tablesHeaderId:{defaultValue:!1,describe:"Add an id to table headers",type:"boolean"},ghCodeBlocks:{defaultValue:!0,describe:"Turn on/off GFM fenced code blocks support",type:"boolean"},tasklists:{defaultValue:!1,describe:"Turn on/off GFM tasklist support",type:"boolean"},smoothLivePreview:{defaultValue:!1,describe:"Prevents weird effects in live previews due to incomplete input",type:"boolean"},smartIndentationFix:{defaultValue:!1,description:"Tries to smartly fix indentation in es6 strings",type:"boolean"},disableForced4SpacesIndentedSublists:{defaultValue:!1,description:"Disables the requirement of indenting nested sublists by 4 spaces",type:"boolean"},simpleLineBreaks:{defaultValue:!1,description:"Parses simple line breaks as
(GFM Style)",type:"boolean"},requireSpaceBeforeHeadingText:{defaultValue:!1,description:"Makes adding a space between `#` and the header text mandatory (GFM Style)",type:"boolean"},ghMentions:{defaultValue:!1,description:"Enables github @mentions",type:"boolean"},ghMentionsLink:{defaultValue:"https://github.com/{u}",description:"Changes the link generated by @mentions. Only applies if ghMentions option is enabled.",type:"string"},encodeEmails:{defaultValue:!0,description:"Encode e-mail addresses through the use of Character Entities, transforming ASCII e-mail addresses into its equivalent decimal entities",type:"boolean"},openLinksInNewWindow:{defaultValue:!1,description:"Open all links in new windows",type:"boolean"},backslashEscapesHTMLTags:{defaultValue:!1,description:"Support for HTML Tag escaping. ex:
foo
",type:"boolean"},emoji:{defaultValue:!1,description:"Enable emoji support. Ex: `this is a :smile: emoji`",type:"boolean"},underline:{defaultValue:!1,description:"Enable support for underline. Syntax is double or triple underscores: `__underline word__`. With this option enabled, underscores no longer parses into `` and ``",type:"boolean"},completeHTMLDocument:{defaultValue:!1,description:"Outputs a complete html document, including ``, `` and `` tags",type:"boolean"},metadata:{defaultValue:!1,description:"Enable support for document metadata (defined at the top of the document between `«««` and `»»»` or between `---` and `---`).",type:"boolean"},splitAdjacentBlockquotes:{defaultValue:!1,description:"Split adjacent blockquote blocks",type:"boolean"}};if(!1===e)return JSON.parse(JSON.stringify(t));var r={};for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n].defaultValue);return r}var a={},i={},o={},s=_(!0),l="vanilla",u={github:{omitExtraWLInCodeBlocks:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,disableForced4SpacesIndentedSublists:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghCompatibleHeaderId:!0,ghMentions:!0,backslashEscapesHTMLTags:!0,emoji:!0,splitAdjacentBlockquotes:!0},original:{noHeaderId:!0,ghCodeBlocks:!1},ghost:{omitExtraWLInCodeBlocks:!0,parseImgDimensions:!0,simplifiedAutoLink:!0,excludeTrailingPunctuationFromURLs:!0,literalMidWordUnderscores:!0,strikethrough:!0,tables:!0,tablesHeaderId:!0,ghCodeBlocks:!0,tasklists:!0,smoothLivePreview:!0,simpleLineBreaks:!0,requireSpaceBeforeHeadingText:!0,ghMentions:!1,encodeEmails:!0},vanilla:_(!0),allOn:function(){"use strict";var e=_(!0),t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=!0);return t}()};function c(e,t){"use strict";var r=t?"Error in "+t+" extension->":"Error in unnamed extension",n={valid:!0,error:""};a.helper.isArray(e)||(e=[e]);for(var _=0;_-1,c=new RegExp(t+"|"+r,"g"+l.replace(/g/g,"")),d=new RegExp(t,l.replace(/g/g,"")),f=[];do{for(_=0;i=c.exec(e);)if(d.test(i[0]))_++||(o=(a=c.lastIndex)-i[0].length);else if(_&&!--_){s=i.index+i[0].length;var p={left:{start:o,end:a},match:{start:a,end:i.index},right:{start:i.index,end:s},wholeMatch:{start:o,end:s}};if(f.push(p),!u)return f}}while(_&&(c.lastIndex=a));return f};a.helper.matchRecursiveRegExp=function(e,t,r,n){"use strict";for(var _=f(e,t,r,n),a=[],i=0;i<_.length;++i)a.push([e.slice(_[i].wholeMatch.start,_[i].wholeMatch.end),e.slice(_[i].match.start,_[i].match.end),e.slice(_[i].left.start,_[i].left.end),e.slice(_[i].right.start,_[i].right.end)]);return a},a.helper.replaceRecursiveRegExp=function(e,t,r,n,_){"use strict";if(!a.helper.isFunction(t)){var i=t;t=function(){return i}}var o=f(e,r,n,_),s=e,l=o.length;if(l>0){var u=[];0!==o[0].wholeMatch.start&&u.push(e.slice(0,o[0].wholeMatch.start));for(var c=0;c=0?n+(r||0):n},a.helper.splitAtIndex=function(e,t){"use strict";if(!a.helper.isString(e))throw"InvalidArgumentError: first parameter of showdown.helper.regexIndexOf function must be a string";return[e.substring(0,t),e.substring(t)]},a.helper.encodeEmailAddress=function(e){"use strict";var t=[function(e){return"&#"+e.charCodeAt(0)+";"},function(e){return"&#x"+e.charCodeAt(0).toString(16)+";"},function(e){return e}];return e=e.replace(/./g,function(e){if("@"===e)e=t[Math.floor(2*Math.random())](e);else{var r=Math.random();e=r>.9?t[2](e):r>.45?t[1](e):t[0](e)}return e})},"undefined"==typeof console&&(console={warn:function(e){"use strict";alert(e)},log:function(e){"use strict";alert(e)},error:function(e){"use strict";throw e}}),a.helper.regexes={asteriskDashAndColon:/([*_:~])/g},a.helper.emojis={"+1":"👍","-1":"👎",100:"💯",1234:"🔢","1st_place_medal":"🥇","2nd_place_medal":"🥈","3rd_place_medal":"🥉","8ball":"🎱",a:"🅰️",ab:"🆎",abc:"🔤",abcd:"🔡",accept:"🉑",aerial_tramway:"🚡",airplane:"✈️",alarm_clock:"⏰",alembic:"⚗️",alien:"👽",ambulance:"🚑",amphora:"🏺",anchor:"⚓️",angel:"👼",anger:"💢",angry:"😠",anguished:"😧",ant:"🐜",apple:"🍎",aquarius:"♒️",aries:"♈️",arrow_backward:"◀️",arrow_double_down:"⏬",arrow_double_up:"⏫",arrow_down:"⬇️",arrow_down_small:"🔽",arrow_forward:"▶️",arrow_heading_down:"⤵️",arrow_heading_up:"⤴️",arrow_left:"⬅️",arrow_lower_left:"↙️",arrow_lower_right:"↘️",arrow_right:"➡️",arrow_right_hook:"↪️",arrow_up:"⬆️",arrow_up_down:"↕️",arrow_up_small:"🔼",arrow_upper_left:"↖️",arrow_upper_right:"↗️",arrows_clockwise:"🔃",arrows_counterclockwise:"🔄",art:"🎨",articulated_lorry:"🚛",artificial_satellite:"🛰",astonished:"😲",athletic_shoe:"👟",atm:"🏧",atom_symbol:"⚛️",avocado:"🥑",b:"🅱️",baby:"👶",baby_bottle:"🍼",baby_chick:"🐤",baby_symbol:"🚼",back:"🔙",bacon:"🥓",badminton:"🏸",baggage_claim:"🛄",baguette_bread:"🥖",balance_scale:"⚖️",balloon:"🎈",ballot_box:"🗳",ballot_box_with_check:"☑️",bamboo:"🎍",banana:"🍌",bangbang:"‼️",bank:"🏦",bar_chart:"📊",barber:"💈",baseball:"⚾️",basketball:"🏀",basketball_man:"⛹️",basketball_woman:"⛹️‍♀️",bat:"🦇",bath:"🛀",bathtub:"🛁",battery:"🔋",beach_umbrella:"🏖",bear:"🐻",bed:"🛏",bee:"🐝",beer:"🍺",beers:"🍻",beetle:"🐞",beginner:"🔰",bell:"🔔",bellhop_bell:"🛎",bento:"🍱",biking_man:"🚴",bike:"🚲",biking_woman:"🚴‍♀️",bikini:"👙",biohazard:"☣️",bird:"🐦",birthday:"🎂",black_circle:"⚫️",black_flag:"🏴",black_heart:"🖤",black_joker:"🃏",black_large_square:"⬛️",black_medium_small_square:"◾️",black_medium_square:"◼️",black_nib:"✒️",black_small_square:"▪️",black_square_button:"🔲",blonde_man:"👱",blonde_woman:"👱‍♀️",blossom:"🌼",blowfish:"🐡",blue_book:"📘",blue_car:"🚙",blue_heart:"💙",blush:"😊",boar:"🐗",boat:"⛵️",bomb:"💣",book:"📖",bookmark:"🔖",bookmark_tabs:"📑",books:"📚",boom:"💥",boot:"👢",bouquet:"💐",bowing_man:"🙇",bow_and_arrow:"🏹",bowing_woman:"🙇‍♀️",bowling:"🎳",boxing_glove:"🥊",boy:"👦",bread:"🍞",bride_with_veil:"👰",bridge_at_night:"🌉",briefcase:"💼",broken_heart:"💔",bug:"🐛",building_construction:"🏗",bulb:"💡",bullettrain_front:"🚅",bullettrain_side:"🚄",burrito:"🌯",bus:"🚌",business_suit_levitating:"🕴",busstop:"🚏",bust_in_silhouette:"👤",busts_in_silhouette:"👥",butterfly:"🦋",cactus:"🌵",cake:"🍰",calendar:"📆",call_me_hand:"🤙",calling:"📲",camel:"🐫",camera:"📷",camera_flash:"📸",camping:"🏕",cancer:"♋️",candle:"🕯",candy:"🍬",canoe:"🛶",capital_abcd:"🔠",capricorn:"♑️",car:"🚗",card_file_box:"🗃",card_index:"📇",card_index_dividers:"🗂",carousel_horse:"🎠",carrot:"🥕",cat:"🐱",cat2:"🐈",cd:"💿",chains:"⛓",champagne:"🍾",chart:"💹",chart_with_downwards_trend:"📉",chart_with_upwards_trend:"📈",checkered_flag:"🏁",cheese:"🧀",cherries:"🍒",cherry_blossom:"🌸",chestnut:"🌰",chicken:"🐔",children_crossing:"🚸",chipmunk:"🐿",chocolate_bar:"🍫",christmas_tree:"🎄",church:"⛪️",cinema:"🎦",circus_tent:"🎪",city_sunrise:"🌇",city_sunset:"🌆",cityscape:"🏙",cl:"🆑",clamp:"🗜",clap:"👏",clapper:"🎬",classical_building:"🏛",clinking_glasses:"🥂",clipboard:"📋",clock1:"🕐",clock10:"🕙",clock1030:"🕥",clock11:"🕚",clock1130:"🕦",clock12:"🕛",clock1230:"🕧",clock130:"🕜",clock2:"🕑",clock230:"🕝",clock3:"🕒",clock330:"🕞",clock4:"🕓",clock430:"🕟",clock5:"🕔",clock530:"🕠",clock6:"🕕",clock630:"🕡",clock7:"🕖",clock730:"🕢",clock8:"🕗",clock830:"🕣",clock9:"🕘",clock930:"🕤",closed_book:"📕",closed_lock_with_key:"🔐",closed_umbrella:"🌂",cloud:"☁️",cloud_with_lightning:"🌩",cloud_with_lightning_and_rain:"⛈",cloud_with_rain:"🌧",cloud_with_snow:"🌨",clown_face:"🤡",clubs:"♣️",cocktail:"🍸",coffee:"☕️",coffin:"⚰️",cold_sweat:"😰",comet:"☄️",computer:"💻",computer_mouse:"🖱",confetti_ball:"🎊",confounded:"😖",confused:"😕",congratulations:"㊗️",construction:"🚧",construction_worker_man:"👷",construction_worker_woman:"👷‍♀️",control_knobs:"🎛",convenience_store:"🏪",cookie:"🍪",cool:"🆒",policeman:"👮",copyright:"©️",corn:"🌽",couch_and_lamp:"🛋",couple:"👫",couple_with_heart_woman_man:"💑",couple_with_heart_man_man:"👨‍❤️‍👨",couple_with_heart_woman_woman:"👩‍❤️‍👩",couplekiss_man_man:"👨‍❤️‍💋‍👨",couplekiss_man_woman:"💏",couplekiss_woman_woman:"👩‍❤️‍💋‍👩",cow:"🐮",cow2:"🐄",cowboy_hat_face:"🤠",crab:"🦀",crayon:"🖍",credit_card:"💳",crescent_moon:"🌙",cricket:"🏏",crocodile:"🐊",croissant:"🥐",crossed_fingers:"🤞",crossed_flags:"🎌",crossed_swords:"⚔️",crown:"👑",cry:"😢",crying_cat_face:"😿",crystal_ball:"🔮",cucumber:"🥒",cupid:"💘",curly_loop:"➰",currency_exchange:"💱",curry:"🍛",custard:"🍮",customs:"🛃",cyclone:"🌀",dagger:"🗡",dancer:"💃",dancing_women:"👯",dancing_men:"👯‍♂️",dango:"🍡",dark_sunglasses:"🕶",dart:"🎯",dash:"💨",date:"📅",deciduous_tree:"🌳",deer:"🦌",department_store:"🏬",derelict_house:"🏚",desert:"🏜",desert_island:"🏝",desktop_computer:"🖥",male_detective:"🕵️",diamond_shape_with_a_dot_inside:"💠",diamonds:"♦️",disappointed:"😞",disappointed_relieved:"😥",dizzy:"💫",dizzy_face:"😵",do_not_litter:"🚯",dog:"🐶",dog2:"🐕",dollar:"💵",dolls:"🎎",dolphin:"🐬",door:"🚪",doughnut:"🍩",dove:"🕊",dragon:"🐉",dragon_face:"🐲",dress:"👗",dromedary_camel:"🐪",drooling_face:"🤤",droplet:"💧",drum:"🥁",duck:"🦆",dvd:"📀","e-mail":"📧",eagle:"🦅",ear:"👂",ear_of_rice:"🌾",earth_africa:"🌍",earth_americas:"🌎",earth_asia:"🌏",egg:"🥚",eggplant:"🍆",eight_pointed_black_star:"✴️",eight_spoked_asterisk:"✳️",electric_plug:"🔌",elephant:"🐘",email:"✉️",end:"🔚",envelope_with_arrow:"📩",euro:"💶",european_castle:"🏰",european_post_office:"🏤",evergreen_tree:"🌲",exclamation:"❗️",expressionless:"😑",eye:"👁",eye_speech_bubble:"👁‍🗨",eyeglasses:"👓",eyes:"👀",face_with_head_bandage:"🤕",face_with_thermometer:"🤒",fist_oncoming:"👊",factory:"🏭",fallen_leaf:"🍂",family_man_woman_boy:"👪",family_man_boy:"👨‍👦",family_man_boy_boy:"👨‍👦‍👦",family_man_girl:"👨‍👧",family_man_girl_boy:"👨‍👧‍👦",family_man_girl_girl:"👨‍👧‍👧",family_man_man_boy:"👨‍👨‍👦",family_man_man_boy_boy:"👨‍👨‍👦‍👦",family_man_man_girl:"👨‍👨‍👧",family_man_man_girl_boy:"👨‍👨‍👧‍👦",family_man_man_girl_girl:"👨‍👨‍👧‍👧",family_man_woman_boy_boy:"👨‍👩‍👦‍👦",family_man_woman_girl:"👨‍👩‍👧",family_man_woman_girl_boy:"👨‍👩‍👧‍👦",family_man_woman_girl_girl:"👨‍👩‍👧‍👧",family_woman_boy:"👩‍👦",family_woman_boy_boy:"👩‍👦‍👦",family_woman_girl:"👩‍👧",family_woman_girl_boy:"👩‍👧‍👦",family_woman_girl_girl:"👩‍👧‍👧",family_woman_woman_boy:"👩‍👩‍👦",family_woman_woman_boy_boy:"👩‍👩‍👦‍👦",family_woman_woman_girl:"👩‍👩‍👧",family_woman_woman_girl_boy:"👩‍👩‍👧‍👦",family_woman_woman_girl_girl:"👩‍👩‍👧‍👧",fast_forward:"⏩",fax:"📠",fearful:"😨",feet:"🐾",female_detective:"🕵️‍♀️",ferris_wheel:"🎡",ferry:"⛴",field_hockey:"🏑",file_cabinet:"🗄",file_folder:"📁",film_projector:"📽",film_strip:"🎞",fire:"🔥",fire_engine:"🚒",fireworks:"🎆",first_quarter_moon:"🌓",first_quarter_moon_with_face:"🌛",fish:"🐟",fish_cake:"🍥",fishing_pole_and_fish:"🎣",fist_raised:"✊",fist_left:"🤛",fist_right:"🤜",flags:"🎏",flashlight:"🔦",fleur_de_lis:"⚜️",flight_arrival:"🛬",flight_departure:"🛫",floppy_disk:"💾",flower_playing_cards:"🎴",flushed:"😳",fog:"🌫",foggy:"🌁",football:"🏈",footprints:"👣",fork_and_knife:"🍴",fountain:"⛲️",fountain_pen:"🖋",four_leaf_clover:"🍀",fox_face:"🦊",framed_picture:"🖼",free:"🆓",fried_egg:"🍳",fried_shrimp:"🍤",fries:"🍟",frog:"🐸",frowning:"😦",frowning_face:"☹️",frowning_man:"🙍‍♂️",frowning_woman:"🙍",middle_finger:"🖕",fuelpump:"⛽️",full_moon:"🌕",full_moon_with_face:"🌝",funeral_urn:"⚱️",game_die:"🎲",gear:"⚙️",gem:"💎",gemini:"♊️",ghost:"👻",gift:"🎁",gift_heart:"💝",girl:"👧",globe_with_meridians:"🌐",goal_net:"🥅",goat:"🐐",golf:"⛳️",golfing_man:"🏌️",golfing_woman:"🏌️‍♀️",gorilla:"🦍",grapes:"🍇",green_apple:"🍏",green_book:"📗",green_heart:"💚",green_salad:"🥗",grey_exclamation:"❕",grey_question:"❔",grimacing:"😬",grin:"😁",grinning:"😀",guardsman:"💂",guardswoman:"💂‍♀️",guitar:"🎸",gun:"🔫",haircut_woman:"💇",haircut_man:"💇‍♂️",hamburger:"🍔",hammer:"🔨",hammer_and_pick:"⚒",hammer_and_wrench:"🛠",hamster:"🐹",hand:"✋",handbag:"👜",handshake:"🤝",hankey:"💩",hatched_chick:"🐥",hatching_chick:"🐣",headphones:"🎧",hear_no_evil:"🙉",heart:"❤️",heart_decoration:"💟",heart_eyes:"😍",heart_eyes_cat:"😻",heartbeat:"💓",heartpulse:"💗",hearts:"♥️",heavy_check_mark:"✔️",heavy_division_sign:"➗",heavy_dollar_sign:"💲",heavy_heart_exclamation:"❣️",heavy_minus_sign:"➖",heavy_multiplication_x:"✖️",heavy_plus_sign:"➕",helicopter:"🚁",herb:"🌿",hibiscus:"🌺",high_brightness:"🔆",high_heel:"👠",hocho:"🔪",hole:"🕳",honey_pot:"🍯",horse:"🐴",horse_racing:"🏇",hospital:"🏥",hot_pepper:"🌶",hotdog:"🌭",hotel:"🏨",hotsprings:"♨️",hourglass:"⌛️",hourglass_flowing_sand:"⏳",house:"🏠",house_with_garden:"🏡",houses:"🏘",hugs:"🤗",hushed:"😯",ice_cream:"🍨",ice_hockey:"🏒",ice_skate:"⛸",icecream:"🍦",id:"🆔",ideograph_advantage:"🉐",imp:"👿",inbox_tray:"📥",incoming_envelope:"📨",tipping_hand_woman:"💁",information_source:"ℹ️",innocent:"😇",interrobang:"⁉️",iphone:"📱",izakaya_lantern:"🏮",jack_o_lantern:"🎃",japan:"🗾",japanese_castle:"🏯",japanese_goblin:"👺",japanese_ogre:"👹",jeans:"👖",joy:"😂",joy_cat:"😹",joystick:"🕹",kaaba:"🕋",key:"🔑",keyboard:"⌨️",keycap_ten:"🔟",kick_scooter:"🛴",kimono:"👘",kiss:"💋",kissing:"😗",kissing_cat:"😽",kissing_closed_eyes:"😚",kissing_heart:"😘",kissing_smiling_eyes:"😙",kiwi_fruit:"🥝",koala:"🐨",koko:"🈁",label:"🏷",large_blue_circle:"🔵",large_blue_diamond:"🔷",large_orange_diamond:"🔶",last_quarter_moon:"🌗",last_quarter_moon_with_face:"🌜",latin_cross:"✝️",laughing:"😆",leaves:"🍃",ledger:"📒",left_luggage:"🛅",left_right_arrow:"↔️",leftwards_arrow_with_hook:"↩️",lemon:"🍋",leo:"♌️",leopard:"🐆",level_slider:"🎚",libra:"♎️",light_rail:"🚈",link:"🔗",lion:"🦁",lips:"👄",lipstick:"💄",lizard:"🦎",lock:"🔒",lock_with_ink_pen:"🔏",lollipop:"🍭",loop:"➿",loud_sound:"🔊",loudspeaker:"📢",love_hotel:"🏩",love_letter:"💌",low_brightness:"🔅",lying_face:"🤥",m:"Ⓜ️",mag:"🔍",mag_right:"🔎",mahjong:"🀄️",mailbox:"📫",mailbox_closed:"📪",mailbox_with_mail:"📬",mailbox_with_no_mail:"📭",man:"👨",man_artist:"👨‍🎨",man_astronaut:"👨‍🚀",man_cartwheeling:"🤸‍♂️",man_cook:"👨‍🍳",man_dancing:"🕺",man_facepalming:"🤦‍♂️",man_factory_worker:"👨‍🏭",man_farmer:"👨‍🌾",man_firefighter:"👨‍🚒",man_health_worker:"👨‍⚕️",man_in_tuxedo:"🤵",man_judge:"👨‍⚖️",man_juggling:"🤹‍♂️",man_mechanic:"👨‍🔧",man_office_worker:"👨‍💼",man_pilot:"👨‍✈️",man_playing_handball:"🤾‍♂️",man_playing_water_polo:"🤽‍♂️",man_scientist:"👨‍🔬",man_shrugging:"🤷‍♂️",man_singer:"👨‍🎤",man_student:"👨‍🎓",man_teacher:"👨‍🏫",man_technologist:"👨‍💻",man_with_gua_pi_mao:"👲",man_with_turban:"👳",tangerine:"🍊",mans_shoe:"👞",mantelpiece_clock:"🕰",maple_leaf:"🍁",martial_arts_uniform:"🥋",mask:"😷",massage_woman:"💆",massage_man:"💆‍♂️",meat_on_bone:"🍖",medal_military:"🎖",medal_sports:"🏅",mega:"📣",melon:"🍈",memo:"📝",men_wrestling:"🤼‍♂️",menorah:"🕎",mens:"🚹",metal:"🤘",metro:"🚇",microphone:"🎤",microscope:"🔬",milk_glass:"🥛",milky_way:"🌌",minibus:"🚐",minidisc:"💽",mobile_phone_off:"📴",money_mouth_face:"🤑",money_with_wings:"💸",moneybag:"💰",monkey:"🐒",monkey_face:"🐵",monorail:"🚝",moon:"🌔",mortar_board:"🎓",mosque:"🕌",motor_boat:"🛥",motor_scooter:"🛵",motorcycle:"🏍",motorway:"🛣",mount_fuji:"🗻",mountain:"⛰",mountain_biking_man:"🚵",mountain_biking_woman:"🚵‍♀️",mountain_cableway:"🚠",mountain_railway:"🚞",mountain_snow:"🏔",mouse:"🐭",mouse2:"🐁",movie_camera:"🎥",moyai:"🗿",mrs_claus:"🤶",muscle:"💪",mushroom:"🍄",musical_keyboard:"🎹",musical_note:"🎵",musical_score:"🎼",mute:"🔇",nail_care:"💅",name_badge:"📛",national_park:"🏞",nauseated_face:"🤢",necktie:"👔",negative_squared_cross_mark:"❎",nerd_face:"🤓",neutral_face:"😐",new:"🆕",new_moon:"🌑",new_moon_with_face:"🌚",newspaper:"📰",newspaper_roll:"🗞",next_track_button:"⏭",ng:"🆖",no_good_man:"🙅‍♂️",no_good_woman:"🙅",night_with_stars:"🌃",no_bell:"🔕",no_bicycles:"🚳",no_entry:"⛔️",no_entry_sign:"🚫",no_mobile_phones:"📵",no_mouth:"😶",no_pedestrians:"🚷",no_smoking:"🚭","non-potable_water":"🚱",nose:"👃",notebook:"📓",notebook_with_decorative_cover:"📔",notes:"🎶",nut_and_bolt:"🔩",o:"⭕️",o2:"🅾️",ocean:"🌊",octopus:"🐙",oden:"🍢",office:"🏢",oil_drum:"🛢",ok:"🆗",ok_hand:"👌",ok_man:"🙆‍♂️",ok_woman:"🙆",old_key:"🗝",older_man:"👴",older_woman:"👵",om:"🕉",on:"🔛",oncoming_automobile:"🚘",oncoming_bus:"🚍",oncoming_police_car:"🚔",oncoming_taxi:"🚖",open_file_folder:"📂",open_hands:"👐",open_mouth:"😮",open_umbrella:"☂️",ophiuchus:"⛎",orange_book:"📙",orthodox_cross:"☦️",outbox_tray:"📤",owl:"🦉",ox:"🐂",package:"📦",page_facing_up:"📄",page_with_curl:"📃",pager:"📟",paintbrush:"🖌",palm_tree:"🌴",pancakes:"🥞",panda_face:"🐼",paperclip:"📎",paperclips:"🖇",parasol_on_ground:"⛱",parking:"🅿️",part_alternation_mark:"〽️",partly_sunny:"⛅️",passenger_ship:"🛳",passport_control:"🛂",pause_button:"⏸",peace_symbol:"☮️",peach:"🍑",peanuts:"🥜",pear:"🍐",pen:"🖊",pencil2:"✏️",penguin:"🐧",pensive:"😔",performing_arts:"🎭",persevere:"😣",person_fencing:"🤺",pouting_woman:"🙎",phone:"☎️",pick:"⛏",pig:"🐷",pig2:"🐖",pig_nose:"🐽",pill:"💊",pineapple:"🍍",ping_pong:"🏓",pisces:"♓️",pizza:"🍕",place_of_worship:"🛐",plate_with_cutlery:"🍽",play_or_pause_button:"⏯",point_down:"👇",point_left:"👈",point_right:"👉",point_up:"☝️",point_up_2:"👆",police_car:"🚓",policewoman:"👮‍♀️",poodle:"🐩",popcorn:"🍿",post_office:"🏣",postal_horn:"📯",postbox:"📮",potable_water:"🚰",potato:"🥔",pouch:"👝",poultry_leg:"🍗",pound:"💷",rage:"😡",pouting_cat:"😾",pouting_man:"🙎‍♂️",pray:"🙏",prayer_beads:"📿",pregnant_woman:"🤰",previous_track_button:"⏮",prince:"🤴",princess:"👸",printer:"🖨",purple_heart:"💜",purse:"👛",pushpin:"📌",put_litter_in_its_place:"🚮",question:"❓",rabbit:"🐰",rabbit2:"🐇",racehorse:"🐎",racing_car:"🏎",radio:"📻",radio_button:"🔘",radioactive:"☢️",railway_car:"🚃",railway_track:"🛤",rainbow:"🌈",rainbow_flag:"🏳️‍🌈",raised_back_of_hand:"🤚",raised_hand_with_fingers_splayed:"🖐",raised_hands:"🙌",raising_hand_woman:"🙋",raising_hand_man:"🙋‍♂️",ram:"🐏",ramen:"🍜",rat:"🐀",record_button:"⏺",recycle:"♻️",red_circle:"🔴",registered:"®️",relaxed:"☺️",relieved:"😌",reminder_ribbon:"🎗",repeat:"🔁",repeat_one:"🔂",rescue_worker_helmet:"⛑",restroom:"🚻",revolving_hearts:"💞",rewind:"⏪",rhinoceros:"🦏",ribbon:"🎀",rice:"🍚",rice_ball:"🍙",rice_cracker:"🍘",rice_scene:"🎑",right_anger_bubble:"🗯",ring:"💍",robot:"🤖",rocket:"🚀",rofl:"🤣",roll_eyes:"🙄",roller_coaster:"🎢",rooster:"🐓",rose:"🌹",rosette:"🏵",rotating_light:"🚨",round_pushpin:"📍",rowing_man:"🚣",rowing_woman:"🚣‍♀️",rugby_football:"🏉",running_man:"🏃",running_shirt_with_sash:"🎽",running_woman:"🏃‍♀️",sa:"🈂️",sagittarius:"♐️",sake:"🍶",sandal:"👡",santa:"🎅",satellite:"📡",saxophone:"🎷",school:"🏫",school_satchel:"🎒",scissors:"✂️",scorpion:"🦂",scorpius:"♏️",scream:"😱",scream_cat:"🙀",scroll:"📜",seat:"💺",secret:"㊙️",see_no_evil:"🙈",seedling:"🌱",selfie:"🤳",shallow_pan_of_food:"🥘",shamrock:"☘️",shark:"🦈",shaved_ice:"🍧",sheep:"🐑",shell:"🐚",shield:"🛡",shinto_shrine:"⛩",ship:"🚢",shirt:"👕",shopping:"🛍",shopping_cart:"🛒",shower:"🚿",shrimp:"🦐",signal_strength:"📶",six_pointed_star:"🔯",ski:"🎿",skier:"⛷",skull:"💀",skull_and_crossbones:"☠️",sleeping:"😴",sleeping_bed:"🛌",sleepy:"😪",slightly_frowning_face:"🙁",slightly_smiling_face:"🙂",slot_machine:"🎰",small_airplane:"🛩",small_blue_diamond:"🔹",small_orange_diamond:"🔸",small_red_triangle:"🔺",small_red_triangle_down:"🔻",smile:"😄",smile_cat:"😸",smiley:"😃",smiley_cat:"😺",smiling_imp:"😈",smirk:"😏",smirk_cat:"😼",smoking:"🚬",snail:"🐌",snake:"🐍",sneezing_face:"🤧",snowboarder:"🏂",snowflake:"❄️",snowman:"⛄️",snowman_with_snow:"☃️",sob:"😭",soccer:"⚽️",soon:"🔜",sos:"🆘",sound:"🔉",space_invader:"👾",spades:"♠️",spaghetti:"🍝",sparkle:"❇️",sparkler:"🎇",sparkles:"✨",sparkling_heart:"💖",speak_no_evil:"🙊",speaker:"🔈",speaking_head:"🗣",speech_balloon:"💬",speedboat:"🚤",spider:"🕷",spider_web:"🕸",spiral_calendar:"🗓",spiral_notepad:"🗒",spoon:"🥄",squid:"🦑",stadium:"🏟",star:"⭐️",star2:"🌟",star_and_crescent:"☪️",star_of_david:"✡️",stars:"🌠",station:"🚉",statue_of_liberty:"🗽",steam_locomotive:"🚂",stew:"🍲",stop_button:"⏹",stop_sign:"🛑",stopwatch:"⏱",straight_ruler:"📏",strawberry:"🍓",stuck_out_tongue:"😛",stuck_out_tongue_closed_eyes:"😝",stuck_out_tongue_winking_eye:"😜",studio_microphone:"🎙",stuffed_flatbread:"🥙",sun_behind_large_cloud:"🌥",sun_behind_rain_cloud:"🌦",sun_behind_small_cloud:"🌤",sun_with_face:"🌞",sunflower:"🌻",sunglasses:"😎",sunny:"☀️",sunrise:"🌅",sunrise_over_mountains:"🌄",surfing_man:"🏄",surfing_woman:"🏄‍♀️",sushi:"🍣",suspension_railway:"🚟",sweat:"😓",sweat_drops:"💦",sweat_smile:"😅",sweet_potato:"🍠",swimming_man:"🏊",swimming_woman:"🏊‍♀️",symbols:"🔣",synagogue:"🕍",syringe:"💉",taco:"🌮",tada:"🎉",tanabata_tree:"🎋",taurus:"♉️",taxi:"🚕",tea:"🍵",telephone_receiver:"📞",telescope:"🔭",tennis:"🎾",tent:"⛺️",thermometer:"🌡",thinking:"🤔",thought_balloon:"💭",ticket:"🎫",tickets:"🎟",tiger:"🐯",tiger2:"🐅",timer_clock:"⏲",tipping_hand_man:"💁‍♂️",tired_face:"😫",tm:"™️",toilet:"🚽",tokyo_tower:"🗼",tomato:"🍅",tongue:"👅",top:"🔝",tophat:"🎩",tornado:"🌪",trackball:"🖲",tractor:"🚜",traffic_light:"🚥",train:"🚋",train2:"🚆",tram:"🚊",triangular_flag_on_post:"🚩",triangular_ruler:"📐",trident:"🔱",triumph:"😤",trolleybus:"🚎",trophy:"🏆",tropical_drink:"🍹",tropical_fish:"🐠",truck:"🚚",trumpet:"🎺",tulip:"🌷",tumbler_glass:"🥃",turkey:"🦃",turtle:"🐢",tv:"📺",twisted_rightwards_arrows:"🔀",two_hearts:"💕",two_men_holding_hands:"👬",two_women_holding_hands:"👭",u5272:"🈹",u5408:"🈴",u55b6:"🈺",u6307:"🈯️",u6708:"🈷️",u6709:"🈶",u6e80:"🈵",u7121:"🈚️",u7533:"🈸",u7981:"🈲",u7a7a:"🈳",umbrella:"☔️",unamused:"😒",underage:"🔞",unicorn:"🦄",unlock:"🔓",up:"🆙",upside_down_face:"🙃",v:"✌️",vertical_traffic_light:"🚦",vhs:"📼",vibration_mode:"📳",video_camera:"📹",video_game:"🎮",violin:"🎻",virgo:"♍️",volcano:"🌋",volleyball:"🏐",vs:"🆚",vulcan_salute:"🖖",walking_man:"🚶",walking_woman:"🚶‍♀️",waning_crescent_moon:"🌘",waning_gibbous_moon:"🌖",warning:"⚠️",wastebasket:"🗑",watch:"⌚️",water_buffalo:"🐃",watermelon:"🍉",wave:"👋",wavy_dash:"〰️",waxing_crescent_moon:"🌒",wc:"🚾",weary:"😩",wedding:"💒",weight_lifting_man:"🏋️",weight_lifting_woman:"🏋️‍♀️",whale:"🐳",whale2:"🐋",wheel_of_dharma:"☸️",wheelchair:"♿️",white_check_mark:"✅",white_circle:"⚪️",white_flag:"🏳️",white_flower:"💮",white_large_square:"⬜️",white_medium_small_square:"◽️",white_medium_square:"◻️",white_small_square:"▫️",white_square_button:"🔳",wilted_flower:"🥀",wind_chime:"🎐",wind_face:"🌬",wine_glass:"🍷",wink:"😉",wolf:"🐺",woman:"👩",woman_artist:"👩‍🎨",woman_astronaut:"👩‍🚀",woman_cartwheeling:"🤸‍♀️",woman_cook:"👩‍🍳",woman_facepalming:"🤦‍♀️",woman_factory_worker:"👩‍🏭",woman_farmer:"👩‍🌾",woman_firefighter:"👩‍🚒",woman_health_worker:"👩‍⚕️",woman_judge:"👩‍⚖️",woman_juggling:"🤹‍♀️",woman_mechanic:"👩‍🔧",woman_office_worker:"👩‍💼",woman_pilot:"👩‍✈️",woman_playing_handball:"🤾‍♀️",woman_playing_water_polo:"🤽‍♀️",woman_scientist:"👩‍🔬",woman_shrugging:"🤷‍♀️",woman_singer:"👩‍🎤",woman_student:"👩‍🎓",woman_teacher:"👩‍🏫",woman_technologist:"👩‍💻",woman_with_turban:"👳‍♀️",womans_clothes:"👚",womans_hat:"👒",women_wrestling:"🤼‍♀️",womens:"🚺",world_map:"🗺",worried:"😟",wrench:"🔧",writing_hand:"✍️",x:"❌",yellow_heart:"💛",yen:"💴",yin_yang:"☯️",yum:"😋",zap:"⚡️",zipper_mouth_face:"🤐",zzz:"💤",octocat:':octocat:',showdown:"S"},a.Converter=function(e){"use strict";var t={},r=[],n=[],_={},i=l,d={parsed:{},raw:"",format:""};function f(e,t){if(t=t||null,a.helper.isString(e)){if(t=e=a.helper.stdExtName(e),a.extensions[e])return console.warn("DEPRECATION WARNING: "+e+" is an old extension that uses a deprecated loading method.Please inform the developer that the extension should be updated!"),void function(e,t){"function"==typeof e&&(e=e(new a.Converter));a.helper.isArray(e)||(e=[e]);var _=c(e,t);if(!_.valid)throw Error(_.error);for(var i=0;i? ?(['"].*['"])?\)$/m)>-1)i="";else if(!i){if(_||(_=n.toLowerCase().replace(/ ?\n/g," ")),i="#"+_,a.helper.isUndefined(r.gUrls[_]))return e;i=r.gUrls[_],a.helper.isUndefined(r.gTitles[_])||(l=r.gTitles[_])}var u='"};return e=(e=(e=(e=(e=r.converter._dispatch("anchors.before",e,t,r)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)] ?(?:\n *)?\[(.*?)]()()()()/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]?<([^>]*)>(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[((?:\[[^\]]*]|[^\[\]])*)]()[ \t]*\([ \t]??(?:[ \t]*((["'])([^"]*?)\5))?[ \t]?\)/g,n)).replace(/\[([^\[\]]+)]()()()()()/g,n),t.ghMentions&&(e=e.replace(/(^|\s)(\\)?(@([a-z\d]+(?:[a-z\d.-]+?[a-z\d]+)*))/gim,function(e,r,n,_,i){if("\\"===n)return r+_;if(!a.helper.isString(t.ghMentionsLink))throw new Error("ghMentionsLink option must be a string");var o=t.ghMentionsLink.replace(/\{u}/g,i),s="";return t.openLinksInNewWindow&&(s=' target="¨E95Eblank"'),r+'"+_+""})),e=r.converter._dispatch("anchors.after",e,t,r)});var p=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+?\.[^'">\s]+?)()(\1)?(?=\s|$)(?!["<>])/gi,h=/([*~_]+|\b)(((https?|ftp|dict):\/\/|www\.)[^'">\s]+\.[^'">\s]+?)([.!?,()\[\]])?(\1)?(?=\s|$)(?!["<>])/gi,E=/()<(((https?|ftp|dict):\/\/|www\.)[^'">\s]+)()>()/gi,m=/(^|\s)(?:mailto:)?([A-Za-z0-9!#$%&'*+-/=?^_`{|}~.]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)(?=$|\s)/gim,g=/<()(?:mailto:)?([-.\w]+@[-a-z0-9]+(\.[-a-z0-9]+)*\.[a-z]+)>/gi,b=function(e){"use strict";return function(t,r,n,_,i,o,s){var l=n=n.replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback),u="",c="",d=r||"",f=s||"";return/^www\./i.test(n)&&(n=n.replace(/^www\./i,"http://www.")),e.excludeTrailingPunctuationFromURLs&&o&&(u=o),e.openLinksInNewWindow&&(c=' target="¨E95Eblank"'),d+'"+l+""+u+f}},v=function(e,t){"use strict";return function(r,n,_){var i="mailto:";return n=n||"",_=a.subParser("unescapeSpecialChars")(_,e,t),e.encodeEmails?(i=a.helper.encodeEmailAddress(i+_),_=a.helper.encodeEmailAddress(_)):i+=_,n+''+_+""}};a.subParser("autoLinks",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("autoLinks.before",e,t,r)).replace(E,b(t))).replace(g,v(t,r)),e=r.converter._dispatch("autoLinks.after",e,t,r)}),a.subParser("simplifiedAutoLinks",function(e,t,r){"use strict";return t.simplifiedAutoLink?(e=r.converter._dispatch("simplifiedAutoLinks.before",e,t,r),e=(e=t.excludeTrailingPunctuationFromURLs?e.replace(h,b(t)):e.replace(p,b(t))).replace(m,v(t,r)),e=r.converter._dispatch("simplifiedAutoLinks.after",e,t,r)):e}),a.subParser("blockGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("blockGamut.before",e,t,r),e=a.subParser("blockQuotes")(e,t,r),e=a.subParser("headers")(e,t,r),e=a.subParser("horizontalRule")(e,t,r),e=a.subParser("lists")(e,t,r),e=a.subParser("codeBlocks")(e,t,r),e=a.subParser("tables")(e,t,r),e=a.subParser("hashHTMLBlocks")(e,t,r),e=a.subParser("paragraphs")(e,t,r),e=r.converter._dispatch("blockGamut.after",e,t,r)}),a.subParser("blockQuotes",function(e,t,r){"use strict";e=r.converter._dispatch("blockQuotes.before",e,t,r),e+="\n\n";var n=/(^ {0,3}>[ \t]?.+\n(.+\n)*\n*)+/gm;return t.splitAdjacentBlockquotes&&(n=/^ {0,3}>[\s\S]*?(?:\n\n)/gm),e=e.replace(n,function(e){return e=(e=(e=e.replace(/^[ \t]*>[ \t]?/gm,"")).replace(/¨0/g,"")).replace(/^[ \t]+$/gm,""),e=a.subParser("githubCodeBlocks")(e,t,r),e=(e=(e=a.subParser("blockGamut")(e,t,r)).replace(/(^|\n)/g,"$1 ")).replace(/(\s*
[^\r]+?<\/pre>)/gm,function(e,t){var r=t;return r=(r=r.replace(/^  /gm,"¨0")).replace(/¨0/g,"")}),a.subParser("hashBlock")("
\n"+e+"\n
",t,r)}),e=r.converter._dispatch("blockQuotes.after",e,t,r)}),a.subParser("codeBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("codeBlocks.before",e,t,r);return e=(e=(e+="¨0").replace(/(?:\n\n|^)((?:(?:[ ]{4}|\t).*\n+)+)(\n*[ ]{0,3}[^ \t\n]|(?=¨0))/g,function(e,n,_){var i=n,o=_,s="\n";return i=a.subParser("outdent")(i,t,r),i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),t.omitExtraWLInCodeBlocks&&(s=""),i="
"+i+s+"
",a.subParser("hashBlock")(i,t,r)+o})).replace(/¨0/,""),e=r.converter._dispatch("codeBlocks.after",e,t,r)}),a.subParser("codeSpans",function(e,t,r){"use strict";return void 0===(e=r.converter._dispatch("codeSpans.before",e,t,r))&&(e=""),e=e.replace(/(^|[^\\])(`+)([^\r]*?[^`])\2(?!`)/gm,function(e,n,_,i){var o=i;return o=(o=o.replace(/^([ \t]*)/g,"")).replace(/[ \t]*$/g,""),o=n+""+(o=a.subParser("encodeCode")(o,t,r))+"",o=a.subParser("hashHTMLSpans")(o,t,r)}),e=r.converter._dispatch("codeSpans.after",e,t,r)}),a.subParser("completeHTMLDocument",function(e,t,r){"use strict";if(!t.completeHTMLDocument)return e;e=r.converter._dispatch("completeHTMLDocument.before",e,t,r);var n="html",_="\n",a="",i='\n',o="",s="";for(var l in void 0!==r.metadata.parsed.doctype&&(_="\n","html"!==(n=r.metadata.parsed.doctype.toString().toLowerCase())&&"html5"!==n||(i='')),r.metadata.parsed)if(r.metadata.parsed.hasOwnProperty(l))switch(l.toLowerCase()){case"doctype":break;case"title":a=""+r.metadata.parsed.title+"\n";break;case"charset":i="html"===n||"html5"===n?'\n':'\n';break;case"language":case"lang":o=' lang="'+r.metadata.parsed[l]+'"',s+='\n';break;default:s+='\n'}return e=_+"\n\n"+a+i+s+"\n\n"+e.trim()+"\n\n",e=r.converter._dispatch("completeHTMLDocument.after",e,t,r)}),a.subParser("detab",function(e,t,r){"use strict";return e=(e=(e=(e=(e=(e=r.converter._dispatch("detab.before",e,t,r)).replace(/\t(?=\t)/g," ")).replace(/\t/g,"¨A¨B")).replace(/¨B(.+?)¨A/g,function(e,t){for(var r=t,n=4-r.length%4,_=0;_/g,">"),e=r.converter._dispatch("encodeAmpsAndAngles.after",e,t,r)}),a.subParser("encodeBackslashEscapes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("encodeBackslashEscapes.before",e,t,r)).replace(/\\(\\)/g,a.helper.escapeCharactersCallback)).replace(/\\([`*_{}\[\]()>#+.!~=|-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeBackslashEscapes.after",e,t,r)}),a.subParser("encodeCode",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("encodeCode.before",e,t,r)).replace(/&/g,"&").replace(//g,">").replace(/([*_{}\[\]\\=~-])/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("encodeCode.after",e,t,r)}),a.subParser("escapeSpecialCharsWithinTagAttributes",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.before",e,t,r)).replace(/<\/?[a-z\d_:-]+(?:[\s]+[\s\S]+?)?>/gi,function(e){return e.replace(/(.)<\/?code>(?=.)/g,"$1`").replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)})).replace(/-]|-[^>])(?:[^-]|-[^-])*)--)>/gi,function(e){return e.replace(/([\\`*_~=|])/g,a.helper.escapeCharactersCallback)}),e=r.converter._dispatch("escapeSpecialCharsWithinTagAttributes.after",e,t,r)}),a.subParser("githubCodeBlocks",function(e,t,r){"use strict";return t.ghCodeBlocks?(e=r.converter._dispatch("githubCodeBlocks.before",e,t,r),e=(e=(e+="¨0").replace(/(?:^|\n)(?: {0,3})(```+|~~~+)(?: *)([^\s`~]*)\n([\s\S]*?)\n(?: {0,3})\1/g,function(e,n,_,i){var o=t.omitExtraWLInCodeBlocks?"":"\n";return i=a.subParser("encodeCode")(i,t,r),i=(i=(i=a.subParser("detab")(i,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,""),i="
"+i+o+"
",i=a.subParser("hashBlock")(i,t,r),"\n\n¨G"+(r.ghCodeBlocks.push({text:e,codeblock:i})-1)+"G\n\n"})).replace(/¨0/,""),r.converter._dispatch("githubCodeBlocks.after",e,t,r)):e}),a.subParser("hashBlock",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("hashBlock.before",e,t,r)).replace(/(^\n+|\n+$)/g,""),e="\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n",e=r.converter._dispatch("hashBlock.after",e,t,r)}),a.subParser("hashCodeTags",function(e,t,r){"use strict";e=r.converter._dispatch("hashCodeTags.before",e,t,r);return e=a.helper.replaceRecursiveRegExp(e,function(e,n,_,i){var o=_+a.subParser("encodeCode")(n,t,r)+i;return"¨C"+(r.gHtmlSpans.push(o)-1)+"C"},"]*>","","gim"),e=r.converter._dispatch("hashCodeTags.after",e,t,r)}),a.subParser("hashElement",function(e,t,r){"use strict";return function(e,t){var n=t;return n=(n=(n=n.replace(/\n\n/g,"\n")).replace(/^\n/,"")).replace(/\n+$/g,""),n="\n\n¨K"+(r.gHtmlBlocks.push(n)-1)+"K\n\n"}}),a.subParser("hashHTMLBlocks",function(e,t,r){"use strict";e=r.converter._dispatch("hashHTMLBlocks.before",e,t,r);var n=["pre","div","h1","h2","h3","h4","h5","h6","blockquote","table","dl","ol","ul","script","noscript","form","fieldset","iframe","math","style","section","header","footer","nav","article","aside","address","audio","canvas","figure","hgroup","output","video","p"],_=function(e,t,n,_){var a=e;return-1!==n.search(/\bmarkdown\b/)&&(a=n+r.converter.makeHtml(t)+_),"\n\n¨K"+(r.gHtmlBlocks.push(a)-1)+"K\n\n"};t.backslashEscapesHTMLTags&&(e=e.replace(/\\<(\/?[^>]+?)>/g,function(e,t){return"<"+t+">"}));for(var i=0;i]*>)","im"),l="<"+n[i]+"\\b[^>]*>",u="";-1!==(o=a.helper.regexIndexOf(e,s));){var c=a.helper.splitAtIndex(e,o),d=a.helper.replaceRecursiveRegExp(c[1],_,l,u,"im");if(d===c[1])break;e=c[0].concat(d)}return e=e.replace(/(\n {0,3}(<(hr)\b([^<>])*?\/?>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=(e=a.helper.replaceRecursiveRegExp(e,function(e){return"\n\n¨K"+(r.gHtmlBlocks.push(e)-1)+"K\n\n"},"^ {0,3}\x3c!--","--\x3e","gm")).replace(/(?:\n\n)( {0,3}(?:<([?%])[^\r]*?\2>)[ \t]*(?=\n{2,}))/g,a.subParser("hashElement")(e,t,r)),e=r.converter._dispatch("hashHTMLBlocks.after",e,t,r)}),a.subParser("hashHTMLSpans",function(e,t,r){"use strict";function n(e){return"¨C"+(r.gHtmlSpans.push(e)-1)+"C"}return e=(e=(e=(e=(e=r.converter._dispatch("hashHTMLSpans.before",e,t,r)).replace(/<[^>]+?\/>/gi,function(e){return n(e)})).replace(/<([^>]+?)>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<([^>]+?)\s[^>]+?>[\s\S]*?<\/\1>/g,function(e){return n(e)})).replace(/<[^>]+?>/gi,function(e){return n(e)}),e=r.converter._dispatch("hashHTMLSpans.after",e,t,r)}),a.subParser("unhashHTMLSpans",function(e,t,r){"use strict";e=r.converter._dispatch("unhashHTMLSpans.before",e,t,r);for(var n=0;n]*>\\s*]*>","^ {0,3}\\s*
","gim"),e=r.converter._dispatch("hashPreCodeTags.after",e,t,r)}),a.subParser("headers",function(e,t,r){"use strict";e=r.converter._dispatch("headers.before",e,t,r);var n=isNaN(parseInt(t.headerLevelStart))?1:parseInt(t.headerLevelStart),_=t.smoothLivePreview?/^(.+)[ \t]*\n={2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n=+[ \t]*\n+/gm,i=t.smoothLivePreview?/^(.+)[ \t]*\n-{2,}[ \t]*\n+/gm:/^(.+)[ \t]*\n-+[ \t]*\n+/gm;e=(e=e.replace(_,function(e,_){var i=a.subParser("spanGamut")(_,t,r),o=t.noHeaderId?"":' id="'+s(_)+'"',l=""+i+"";return a.subParser("hashBlock")(l,t,r)})).replace(i,function(e,_){var i=a.subParser("spanGamut")(_,t,r),o=t.noHeaderId?"":' id="'+s(_)+'"',l=n+1,u=""+i+"";return a.subParser("hashBlock")(u,t,r)});var o=t.requireSpaceBeforeHeadingText?/^(#{1,6})[ \t]+(.+?)[ \t]*#*\n+/gm:/^(#{1,6})[ \t]*(.+?)[ \t]*#*\n+/gm;function s(e){var n,_;if(t.customizedHeaderId){var i=e.match(/\{([^{]+?)}\s*$/);i&&i[1]&&(e=i[1])}return n=e,_=a.helper.isString(t.prefixHeaderId)?t.prefixHeaderId:!0===t.prefixHeaderId?"section-":"",t.rawPrefixHeaderId||(n=_+n),n=t.ghCompatibleHeaderId?n.replace(/ /g,"-").replace(/&/g,"").replace(/¨T/g,"").replace(/¨D/g,"").replace(/[&+$,\/:;=?@"#{}|^¨~\[\]`\\*)(%.!'<>]/g,"").toLowerCase():t.rawHeaderId?n.replace(/ /g,"-").replace(/&/g,"&").replace(/¨T/g,"¨").replace(/¨D/g,"$").replace(/["']/g,"-").toLowerCase():n.replace(/[^\w]/g,"").toLowerCase(),t.rawPrefixHeaderId&&(n=_+n),r.hashLinkCounts[n]?n=n+"-"+r.hashLinkCounts[n]++:r.hashLinkCounts[n]=1,n}return e=e.replace(o,function(e,_,i){var o=i;t.customizedHeaderId&&(o=i.replace(/\s?\{([^{]+?)}\s*$/,""));var l=a.subParser("spanGamut")(o,t,r),u=t.noHeaderId?"":' id="'+s(i)+'"',c=n-1+_.length,d=""+l+"";return a.subParser("hashBlock")(d,t,r)}),e=r.converter._dispatch("headers.after",e,t,r)}),a.subParser("horizontalRule",function(e,t,r){"use strict";e=r.converter._dispatch("horizontalRule.before",e,t,r);var n=a.subParser("hashBlock")("
",t,r);return e=(e=(e=e.replace(/^ {0,2}( ?-){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?\*){3,}[ \t]*$/gm,n)).replace(/^ {0,2}( ?_){3,}[ \t]*$/gm,n),e=r.converter._dispatch("horizontalRule.after",e,t,r)}),a.subParser("images",function(e,t,r){"use strict";function n(e,t,n,_,i,o,s,l){var u=r.gUrls,c=r.gTitles,d=r.gDimensions;if(n=n.toLowerCase(),l||(l=""),e.search(/\(? ?(['"].*['"])?\)$/m)>-1)_="";else if(""===_||null===_){if(""!==n&&null!==n||(n=t.toLowerCase().replace(/ ?\n/g," ")),_="#"+n,a.helper.isUndefined(u[n]))return e;_=u[n],a.helper.isUndefined(c[n])||(l=c[n]),a.helper.isUndefined(d[n])||(i=d[n].width,o=d[n].height)}t=t.replace(/"/g,""").replace(a.helper.regexes.asteriskDashAndColon,a.helper.escapeCharactersCallback);var f=''+t+'"}return e=(e=(e=(e=(e=(e=r.converter._dispatch("images.before",e,t,r)).replace(/!\[([^\]]*?)] ?(?:\n *)?\[([\s\S]*?)]()()()()()/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,function(e,t,r,_,a,i,o,s){return n(e,t,r,_=_.replace(/\s/g,""),a,i,0,s)})).replace(/!\[([^\]]*?)][ \t]*()\([ \t]?<([^>]*)>(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(?:(["'])([^"]*?)\6))?[ \t]?\)/g,n)).replace(/!\[([^\]]*?)][ \t]*()\([ \t]??(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*(?:(["'])([^"]*?)\6)?[ \t]?\)/g,n)).replace(/!\[([^\[\]]+)]()()()()()/g,n),e=r.converter._dispatch("images.after",e,t,r)}),a.subParser("italicsAndBold",function(e,t,r){"use strict";function n(e,t,r){return t+e+r}return e=r.converter._dispatch("italicsAndBold.before",e,t,r),e=t.literalMidWordUnderscores?(e=(e=e.replace(/\b___(\S[\s\S]*)___\b/g,function(e,t){return n(t,"","")})).replace(/\b__(\S[\s\S]*)__\b/g,function(e,t){return n(t,"","")})).replace(/\b_(\S[\s\S]*?)_\b/g,function(e,t){return n(t,"","")}):(e=(e=e.replace(/___(\S[\s\S]*?)___/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/__(\S[\s\S]*?)__/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/_([^\s_][\s\S]*?)_/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=t.literalMidWordAsterisks?(e=(e=e.replace(/([^*]|^)\B\*\*\*(\S[\s\S]*?)\*\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*\*(\S[\s\S]*?)\*\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")})).replace(/([^*]|^)\B\*(\S[\s\S]*?)\*\B(?!\*)/g,function(e,t,r){return n(r,t+"","")}):(e=(e=e.replace(/\*\*\*(\S[\s\S]*?)\*\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*\*(\S[\s\S]*?)\*\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e})).replace(/\*([^\s*][\s\S]*?)\*/g,function(e,t){return/\S$/.test(t)?n(t,"",""):e}),e=r.converter._dispatch("italicsAndBold.after",e,t,r)}),a.subParser("lists",function(e,t,r){"use strict";function n(e,n){r.gListLevel++,e=e.replace(/\n{2,}$/,"\n");var _=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0| {0,3}([*+-]|\d+[.])[ \t]+))/gm,i=/\n[ \t]*\n(?!¨0)/.test(e+="¨0");return t.disableForced4SpacesIndentedSublists&&(_=/(\n)?(^ {0,3})([*+-]|\d+[.])[ \t]+((\[(x|X| )?])?[ \t]*[^\r]+?(\n{1,2}))(?=\n*(¨0|\2([*+-]|\d+[.])[ \t]+))/gm),e=(e=e.replace(_,function(e,n,_,o,s,l,u){u=u&&""!==u.trim();var c=a.subParser("outdent")(s,t,r),d="";return l&&t.tasklists&&(d=' class="task-list-item" style="list-style-type: none;"',c=c.replace(/^[ \t]*\[(x|X| )?]/m,function(){var e='-1?(c=a.subParser("githubCodeBlocks")(c,t,r),c=a.subParser("blockGamut")(c,t,r)):(c=(c=a.subParser("lists")(c,t,r)).replace(/\n$/,""),c=(c=a.subParser("hashHTMLBlocks")(c,t,r)).replace(/\n\n+/g,"\n\n"),c=i?a.subParser("paragraphs")(c,t,r):a.subParser("spanGamut")(c,t,r)),c=""+(c=c.replace("¨A",""))+"\n"})).replace(/¨0/g,""),r.gListLevel--,n&&(e=e.replace(/\s+$/,"")),e}function _(e,t){if("ol"===t){var r=e.match(/^ *(\d+)\./);if(r&&"1"!==r[1])return' start="'+r[1]+'"'}return""}function i(e,r,a){var i=t.disableForced4SpacesIndentedSublists?/^ ?\d+\.[ \t]/gm:/^ {0,3}\d+\.[ \t]/gm,o=t.disableForced4SpacesIndentedSublists?/^ ?[*+-][ \t]/gm:/^ {0,3}[*+-][ \t]/gm,s="ul"===r?i:o,l="";if(-1!==e.search(s))!function t(u){var c=u.search(s),d=_(e,r);-1!==c?(l+="\n\n<"+r+d+">\n"+n(u.slice(0,c),!!a)+"\n",s="ul"===(r="ul"===r?"ol":"ul")?i:o,t(u.slice(c))):l+="\n\n<"+r+d+">\n"+n(u,!!a)+"\n"}(e);else{var u=_(e,r);l="\n\n<"+r+u+">\n"+n(e,!!a)+"\n"}return l}return e=r.converter._dispatch("lists.before",e,t,r),e+="¨0",e=(e=r.gListLevel?e.replace(/^(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r){return i(t,r.search(/[*+-]/g)>-1?"ul":"ol",!0)}):e.replace(/(\n\n|^\n?)(( {0,3}([*+-]|\d+[.])[ \t]+)[^\r]+?(¨0|\n{2,}(?=\S)(?![ \t]*(?:[*+-]|\d+[.])[ \t]+)))/gm,function(e,t,r,n){return i(r,n.search(/[*+-]/g)>-1?"ul":"ol",!1)})).replace(/¨0/,""),e=r.converter._dispatch("lists.after",e,t,r)}),a.subParser("metadata",function(e,t,r){"use strict";if(!t.metadata)return e;function n(e){r.metadata.raw=e,(e=(e=e.replace(/&/g,"&").replace(/"/g,""")).replace(/\n {4}/g," ")).replace(/^([\S ]+): +([\s\S]+?)$/gm,function(e,t,n){return r.metadata.parsed[t]=n,""})}return e=(e=(e=(e=r.converter._dispatch("metadata.before",e,t,r)).replace(/^\s*«««+(\S*?)\n([\s\S]+?)\n»»»+\n/,function(e,t,r){return n(r),"¨M"})).replace(/^\s*---+(\S*?)\n([\s\S]+?)\n---+\n/,function(e,t,_){return t&&(r.metadata.format=t),n(_),"¨M"})).replace(/¨M/g,""),e=r.converter._dispatch("metadata.after",e,t,r)}),a.subParser("outdent",function(e,t,r){"use strict";return e=(e=(e=r.converter._dispatch("outdent.before",e,t,r)).replace(/^(\t|[ ]{1,4})/gm,"¨0")).replace(/¨0/g,""),e=r.converter._dispatch("outdent.after",e,t,r)}),a.subParser("paragraphs",function(e,t,r){"use strict";for(var n=(e=(e=(e=r.converter._dispatch("paragraphs.before",e,t,r)).replace(/^\n+/g,"")).replace(/\n+$/g,"")).split(/\n{2,}/g),_=[],i=n.length,o=0;o=0?_.push(s):s.search(/\S/)>=0&&(s=(s=a.subParser("spanGamut")(s,t,r)).replace(/^([ \t]*)/g,"

"),s+="

",_.push(s))}for(i=_.length,o=0;o]*>\s*]*>/.test(u)&&(c=!0)}_[o]=u}return e=(e=(e=_.join("\n")).replace(/^\n+/g,"")).replace(/\n+$/g,""),r.converter._dispatch("paragraphs.after",e,t,r)}),a.subParser("runExtension",function(e,t,r,n){"use strict";if(e.filter)t=e.filter(t,n.converter,r);else if(e.regex){var _=e.regex;_ instanceof RegExp||(_=new RegExp(_,"g")),t=t.replace(_,e.replace)}return t}),a.subParser("spanGamut",function(e,t,r){"use strict";return e=r.converter._dispatch("spanGamut.before",e,t,r),e=a.subParser("codeSpans")(e,t,r),e=a.subParser("escapeSpecialCharsWithinTagAttributes")(e,t,r),e=a.subParser("encodeBackslashEscapes")(e,t,r),e=a.subParser("images")(e,t,r),e=a.subParser("anchors")(e,t,r),e=a.subParser("autoLinks")(e,t,r),e=a.subParser("simplifiedAutoLinks")(e,t,r),e=a.subParser("emoji")(e,t,r),e=a.subParser("underline")(e,t,r),e=a.subParser("italicsAndBold")(e,t,r),e=a.subParser("strikethrough")(e,t,r),e=a.subParser("ellipsis")(e,t,r),e=a.subParser("hashHTMLSpans")(e,t,r),e=a.subParser("encodeAmpsAndAngles")(e,t,r),t.simpleLineBreaks?/\n\n¨K/.test(e)||(e=e.replace(/\n+/g,"
\n")):e=e.replace(/ +\n/g,"
\n"),e=r.converter._dispatch("spanGamut.after",e,t,r)}),a.subParser("strikethrough",function(e,t,r){"use strict";return t.strikethrough&&(e=(e=r.converter._dispatch("strikethrough.before",e,t,r)).replace(/(?:~){2}([\s\S]+?)(?:~){2}/g,function(e,n){return function(e){return t.simplifiedAutoLink&&(e=a.subParser("simplifiedAutoLinks")(e,t,r)),""+e+""}(n)}),e=r.converter._dispatch("strikethrough.after",e,t,r)),e}),a.subParser("stripLinkDefinitions",function(e,t,r){"use strict";var n=function(e,n,_,i,o,s,l){return n=n.toLowerCase(),_.match(/^data:.+?\/.+?;base64,/)?r.gUrls[n]=_.replace(/\s/g,""):r.gUrls[n]=a.subParser("encodeAmpsAndAngles")(_,t,r),s?s+l:(l&&(r.gTitles[n]=l.replace(/"|'/g,""")),t.parseImgDimensions&&i&&o&&(r.gDimensions[n]={width:i,height:o}),"")};return e=(e=(e=(e+="¨0").replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n\n|(?=¨0)|(?=\n\[))/gm,n)).replace(/^ {0,3}\[(.+)]:[ \t]*\n?[ \t]*\s]+)>?(?: =([*\d]+[A-Za-z%]{0,4})x([*\d]+[A-Za-z%]{0,4}))?[ \t]*\n?[ \t]*(?:(\n*)["|'(](.+?)["|')][ \t]*)?(?:\n+|(?=¨0))/gm,n)).replace(/¨0/,"")}),a.subParser("tables",function(e,t,r){"use strict";if(!t.tables)return e;function n(e){return/^:[ \t]*--*$/.test(e)?' style="text-align:left;"':/^--*[ \t]*:[ \t]*$/.test(e)?' style="text-align:right;"':/^:[ \t]*--*[ \t]*:$/.test(e)?' style="text-align:center;"':""}function _(e,n){var _="";return e=e.trim(),(t.tablesHeaderId||t.tableHeaderId)&&(_=' id="'+e.replace(/ /g,"_").toLowerCase()+'"'),""+(e=a.subParser("spanGamut")(e,t,r))+"\n"}function i(e,n){return""+a.subParser("spanGamut")(e,t,r)+"\n"}function o(e){var o,s=e.split("\n");for(o=0;o\n\n\n",_=0;_\n";for(var a=0;a\n"}return r+="\n\n"}(d,p)}return e=(e=(e=(e=r.converter._dispatch("tables.before",e,t,r)).replace(/\\(\|)/g,a.helper.escapeCharactersCallback)).replace(/^ {0,3}\|?.+\|.+\n {0,3}\|?[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*:?[ \t]*(?:[-=]){2,}[\s\S]+?(?:\n\n|¨0)/gm,o)).replace(/^ {0,3}\|.+\|[ \t]*\n {0,3}\|[ \t]*:?[ \t]*(?:[-=]){2,}[ \t]*:?[ \t]*\|[ \t]*\n( {0,3}\|.+\|[ \t]*\n)*(?:\n|¨0)/gm,o),e=r.converter._dispatch("tables.after",e,t,r)}),a.subParser("underline",function(e,t,r){"use strict";return t.underline?(e=r.converter._dispatch("underline.before",e,t,r),e=(e=t.literalMidWordUnderscores?e.replace(/\b_?__(\S[\s\S]*)___?\b/g,function(e,t){return""+t+""}):e.replace(/_?__(\S[\s\S]*?)___?/g,function(e,t){return/\S$/.test(t)?""+t+"":e})).replace(/(_)/g,a.helper.escapeCharactersCallback),e=r.converter._dispatch("underline.after",e,t,r)):e}),a.subParser("unescapeSpecialChars",function(e,t,r){"use strict";return e=(e=r.converter._dispatch("unescapeSpecialChars.before",e,t,r)).replace(/¨E(\d+)E/g,function(e,t){var r=parseInt(t);return String.fromCharCode(r)}),e=r.converter._dispatch("unescapeSpecialChars.after",e,t,r)});void 0===(n=function(){"use strict";return a}.call(t,r,t,e))||(e.exports=n)}).call(this)},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ReferenceModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(791),_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ReferenceModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_ReferenceModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ReferenceModal(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,ReferenceModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(ReferenceModal).call(this,e))).state={selectedItems:[],searchText:""},t.isMult=!1,t.callback=null,t.items=[],t.focusElm=null,t.active=!1,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode&&setTimeout(t.onChoose,1)},t.onSearch=function(e){var r=e.target.value;t.setState({searchText:r,selectedItems:[]})},t.onSelect=function(e){if(t.isMult){var r=t.state.selectedItems,n=r.indexOf(e);-1==n?r.push(e):r.splice(n,1),t.setState({selectedItems:r})}else t.setState({selectedItems:[e]})},t.onSearchKeyDown=function(e){e.stopPropagation(),27==e.keyCode&&t.setState({searchText:""})},t.onChoose=function(){t.state.selectedItems.length&&t.active&&(t.callback(t.isMult?t.state.selectedItems:t.state.selectedItems[0]),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.isMult=e.params.isMult,t.callback=e.params.callback;var r=e.params,n=r.currentItem,_=r.existingItems,a=r.validModels,i=e.contentItems,o=e.currentSite;return t.items=i.filter(function(e){return(!e.model.site||e.model.site==o)&&-1==_.indexOf(e)&&e!=n}),a&&(t.items=t.items.filter(function(e){return-1!=a.indexOf(e.model.nameId)})),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ReferenceModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ReferenceModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"searchMatch",value:function(e){if(!this.state.searchText)return!0;var t=this.state.searchText.toLowerCase();return-1!=e.toLowerCase().indexOf(t)}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__.a,{type:"big",label:"search entries",value:this.state.searchText,DOMRef:function(t){return e.focusElm=t},onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"reference"},this.items.filter(function(t){return e.searchMatch(t.title)}).map(function(t){var r="reference-item";-1!=e.state.selectedItems.indexOf(t)&&(r+=" reference-chosen");var n=t.title;return n||(n=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("span",{styleName:"untitled"},"Untitled")),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id,onClick:function(){return e.onSelect(t)}},"[",t.model.name,"] ",n)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedItems.length,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ReferenceModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ReferenceModal,"ReferenceModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/ReferenceModal/ReferenceModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ModelChooseModal});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(166),core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_array_filter__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8__),react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(793),_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelChooseModal=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_ModelChooseModal_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ModelChooseModal(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_4___default()(this,ModelChooseModal),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_6___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_7___default()(ModelChooseModal).call(this,e))).state={selectedModel:null},t.isMult=!1,t.callback=null,t.models=[],t.focusElm=null,t.active=!1,t.onKeyDown=function(e){e||(e=window.event),e.stopPropagation(),13==e.keyCode?setTimeout(t.onChoose,1):27==e.keyCode&&setTimeout(t.close,1)},t.onSelect=function(e){t.setState({selectedModel:e})},t.onChoose=function(){t.state.selectedModel&&t.active&&(t.callback(t.state.selectedModel),t.close())},t.close=function(){t.active=!1,t.props.onClose()},t.callback=e.params.callback;var r=e.params.validModels;return t.models=r?e.models.filter(function(e){return-1!=r.indexOf(e.nameId)}):e.models,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ModelChooseModal,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ModelChooseModal,[{key:"componentDidMount",value:function(){var e=this;this.active=!0,document.addEventListener("keydown",this.onKeyDown),this.focusElm&&setTimeout(function(){return e.focusElm.focus()},2)}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.onKeyDown)}},{key:"render",value:function(){var e=this;return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal",onClick:this.close},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-inner",onClick:function(e){return e.stopPropagation()}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"modal-header"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"title"},"Select model for new item")),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"model"},this.models.map(function(t){var r="model-item";return e.state.selectedModel==t&&(r+=" model-chosen"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:r,key:t.origin.id,onClick:function(){return e.onSelect(t)}},t.name)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"green",value:"Choose",disabled:!this.state.selectedModel,onClick:this.onChoose})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"buttons-inner"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__.a,{color:"gray",value:"Cancel",onClick:this.close}))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelChooseModal}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelChooseModal,"ModelChooseModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/modals/ModelChooseModal/ModelChooseModal.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return l});var n=r(22),_=r(355),a=r(356),i=r(357),o=r(358),s=r(359);function l(e){var t=Object(_.createLogger)();return Object(n.d)(i.a,e,Object(n.a)(o.a,s.a,a.a,t))}!function(){var t=r(1).enterModule;t&&t(e)}(),function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(l,"configureStore","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/store/configureStore.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){(function(e){!function(t){"use strict";function r(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function n(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function _(e,t,r){_.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:r,enumerable:!0})}function a(e,t){a.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function i(e,t){i.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function o(e,t,r){o.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:r,enumerable:!0})}function s(e,t,r){var n=e.slice((r||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,n),e}function l(e){var t=void 0===e?"undefined":M(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e,t,r,n,c,d,f){c=c||[],f=f||[];var p=c.slice(0);if(void 0!==d){if(n){if("function"==typeof n&&n(p,d))return;if("object"===(void 0===n?"undefined":M(n))){if(n.prefilter&&n.prefilter(p,d))return;if(n.normalize){var h=n.normalize(p,d,e,t);h&&(e=h[0],t=h[1])}}}p.push(d)}"regexp"===l(e)&&"regexp"===l(t)&&(e=e.toString(),t=t.toString());var E=void 0===e?"undefined":M(e),m=void 0===t?"undefined":M(t),g="undefined"!==E||f&&f[f.length-1].lhs&&f[f.length-1].lhs.hasOwnProperty(d),b="undefined"!==m||f&&f[f.length-1].rhs&&f[f.length-1].rhs.hasOwnProperty(d);if(!g&&b)r(new a(p,t));else if(!b&&g)r(new i(p,e));else if(l(e)!==l(t))r(new _(p,e,t));else if("date"===l(e)&&e-t!=0)r(new _(p,e,t));else if("object"===E&&null!==e&&null!==t)if(f.filter(function(t){return t.lhs===e}).length)e!==t&&r(new _(p,e,t));else{if(f.push({lhs:e,rhs:t}),Array.isArray(e)){var v;for(e.length,v=0;v=t.length?r(new o(p,v,new i(void 0,e[v]))):u(e[v],t[v],r,n,p,v,f);for(;v=0?(u(e[_],t[_],r,n,p,_,f),C=s(C,i)):u(e[_],void 0,r,n,p,_,f)}),C.forEach(function(e){u(void 0,t[e],r,n,p,e,f)})}f.length=f.length-1}else e!==t&&("number"===E&&isNaN(e)&&isNaN(t)||r(new _(p,e,t)))}function c(e,t,r,n){return n=n||[],u(e,t,function(e){e&&n.push(e)},r),n.length?n:void 0}function d(e,t,r){if(e&&t&&r&&r.kind){for(var n=e,_=-1,a=r.path?r.path.length-1:0;++_0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},y,e),r=t.logger,n=t.stateTransformer,_=t.errorTransformer,a=t.predicate,i=t.logErrors,o=t.diffPredicate;if(void 0===r)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n // ...options\n});\nconst store = createStore(\n reducer,\n applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var s=[];return function(e){var r=e.getState;return function(e){return function(l){if("function"==typeof a&&!a(r,l))return e(l);var u={};s.push(u),u.started=O.now(),u.startedTime=new Date,u.prevState=n(r()),u.action=l;var c=void 0;if(i)try{c=e(l)}catch(e){u.error=_(e)}else c=e(l);u.took=O.now()-u.started,u.nextState=n(r());var d=t.diff&&"function"==typeof o?o(r,l):t.diff;if(h(s,Object.assign({},t,{diff:d})),s.length=0,u.error)throw u.error;return c}}}}var m,g,b=function(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e},v=function(e){return b(e.getHours(),2)+":"+b(e.getMinutes(),2)+":"+b(e.getSeconds(),2)+"."+b(e.getMilliseconds(),3)},O="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,M="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},C=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t0&&void 0!==arguments[0]?arguments[0]:{},t=e.dispatch,r=e.getState;return"function"==typeof t||"function"==typeof r?E()({dispatch:t,getState:r}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};t.defaults=y,t.createLogger=E,t.logger=w,t.default=w,Object.defineProperty(t,"__esModule",{value:!0})}(t)}).call(this,r(49))},function(e,t,r){"use strict";function n(e){return function(t){var r=t.dispatch,n=t.getState;return function(t){return function(_){return"function"==typeof _?_(r,n,e):t(_)}}}}var _=n();_.withExtraArgument=n,t.a=_},function(e,t,r){"use strict";(function(e){var n=r(22),_=r(111),a=r(25),i=r(40),o=r(7),s=r(24),l=r(82),u=r(90);!function(){var t=r(1).enterModule;t&&t(e)}();var c=Object(n.c)({models:a.l,content:i.d,nav:o.D,user:s.i,media:l.c,serverStatus:u.a,routing:_.routerReducer});t.a=c,function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(c,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/index.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return s});var n=r(24),_=r(25),a=r(82),i=r(40),o=r(7);!function(){var t=r(1).enterModule;t&&t(e)}();var s=function(e){return function(e){return function(t){e(t),t.type!=n.h&&t.type!=n.e||!t.authorized||e(Object(_.r)()),t.type==_.d&&e(Object(a.d)()),t.type==a.a&&e(Object(i.i)()),t.type==i.a&&e(Object(o.E)())}}};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(s,"initialization","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/initialization.js"),n(e))}()}).call(this,r(12)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"a",function(){return f});r(106),r(52),r(53),r(43),r(45);var n=r(16),_=r(111),a=r(24),i=r(25),o=r(15),s=r(7);!function(){var t=r(1).enterModule;t&&t(e)}();var l="/",u=null,c=function(e,t){var r=e.indexOf(t);if(-1==r)return null;var n=e.slice(r).slice(t.length),_=n.indexOf("/");return _>0&&(n=n.slice(0,_)),n},d=function(e){var t=!0,r=!1,n=void 0;try{for(var _,a=s.p[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){var i=_.value;if(-1!=e.indexOf(i))return!0}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return!1},f=function(e){return function(t){return function(r){r.type!=a.h&&r.type!=a.e||r.authorized||d(l)||-1!=l.indexOf(s.y)||n.f.push("/".concat(s.y)),t(r);var f=function(){var r=l;if(l="/",-1!=r.indexOf(s.A)){var _=e.getState().models.currentSite,a=function(){if(_)n.f.replace("/".concat(s.A,"/").concat(s.z).concat(_.nameId));else{var t=e.getState().models.sites;t.length?n.f.replace("/".concat(s.A,"/").concat(s.z).concat(t[0].nameId)):r!="/".concat(s.A)&&n.f.replace("/".concat(s.A))}},u=c(r,s.z);if(u){if(!_||u!=_.nameId){var d=Object(o.z)(u);d?t(Object(i.t)(d)):a()}}else-1==r.indexOf(s.v)&&a()}};r.type==_.LOCATION_CHANGE&&(-1==(l=r.payload.pathname).indexOf(s.A)||u||(u=l),e.getState().nav.initEnded&&f()),r.type==s.a&&(u?(l=u,u=null,n.f.replace(l)):-1!=l.indexOf(s.A)||d(l)||n.f.replace("/".concat(s.A)),f()),r.type==a.f&&n.f.push("/".concat(s.y))}}};!function(){var t=r(1).default,n=r(1).leaveModule;t&&(t.register(l,"URL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(u,"returnURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(c,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(d,"isEmailURL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),t.register(f,"routing","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/middleware/routing.js"),n(e))}()}).call(this,r(12)(e))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),svg_inline_react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_7__),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),models_UserData__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(20),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(113);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var APIPage=function(_Component){function APIPage(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,APIPage),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(APIPage).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(APIPage,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(APIPage,[{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"start-working"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_7___default.a,{className:"hammer",src:__webpack_require__(86)}),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"docs"},"Parse Server has extensive ",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("a",{className:"docs-link",href:"http://parseplatform.github.io/docs/",target:"_blank"},"Documentation"),". Take a look!",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"hint"},"Our Interactive API Docs will be coming soon...")))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),APIPage}(react__WEBPACK_IMPORTED_MODULE_6__.Component),APIPageContainer=function(_Component2){function APIPageContainer(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,APIPageContainer),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(APIPageContainer).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(APIPageContainer,_Component2),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(APIPageContainer,[{key:"render",value:function(){var e=this.props.models,t="Chisel",r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_11__.a,null),n=e.currentSite;n&&(t="API - Site: ".concat(n.name," - Chisel"),e.role!=models_UserData__WEBPACK_IMPORTED_MODULE_10__.d&&(r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(APIPage,null)));return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,t)),r)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),APIPageContainer}(react__WEBPACK_IMPORTED_MODULE_6__.Component);function mapStateToProps(e){return{models:e.models}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps)(APIPageContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(APIPage,"APIPage","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(APIPageContainer,"APIPageContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/API/APIPage.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),redux__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(23),ducks_user__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(24),utils_common__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(19),_Sign_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(799),_Sign_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_Sign_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MODE_LOGIN="login",MODE_REG="register",MODE_REG_MAIL="register_mail",MODE_UNVERIF="unverified",MODE_FORGOT="forgot",MODE_FORGOT_MAIL="forgot_mail",MODE_SERVER_DOWN="server_down",Sign=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Sign_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Sign(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Sign),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Sign).call(this,e))).state={mode:MODE_LOGIN,email:"",password:"",passwordConfirm:"",error:null,lock:!1},t.elmEmail=void 0,t.elmPassword=void 0,t.elmPasswordConfirm=void 0,t.onEmailChange=function(e){t.setState({email:e.target.value,error:null})},t.onPasswordChange=function(e){t.setState({password:e.target.value,error:null})},t.onPasswordConfirmChange=function(e){t.setState({passwordConfirm:e.target.value,error:null})},t.onLogin=function(e){return e.preventDefault(),!!t.getLoginAvail()&&((0,t.props.userActions.login)(t.state.email,t.state.password),t.setState({lock:!0}),!1)},t.onReg=function(e){return e.preventDefault(),!!t.getRegAvail()&&((0,t.props.userActions.register)(t.state.email,t.state.password),t.setState({lock:!0}),!1)},t.onRestore=function(e){return e.preventDefault(),!!t.getForgotAvail()&&((0,t.props.userActions.restorePassword)(t.state.email),t.setState({lock:!0}),!1)},t.onResend=function(){(0,t.props.userActions.resendVerEmail)(t.state.email),t.setState({mode:MODE_REG_MAIL})};var r=Object(utils_common__WEBPACK_IMPORTED_MODULE_12__.h)();return r.mode&&(t.state.mode=r.mode),r.email&&(t.state.email=r.email),e.userActions.resetStatus(),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(Sign,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(Sign,[{key:"componentWillReceiveProps",value:function(e){var t=e.user;if(e.serverStatus.problemB)this.setState({error:null,lock:!1,mode:MODE_SERVER_DOWN});else{var r=t.status;if(r){var n=this.state.mode;n==MODE_REG&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.g?n=MODE_REG_MAIL:n==MODE_FORGOT&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.g?n=MODE_FORGOT_MAIL:n==MODE_LOGIN&&r==ducks_user__WEBPACK_IMPORTED_MODULE_11__.b&&(n=MODE_UNVERIF),this.props.userActions.resetStatus(),this.setState({error:r,lock:!r,mode:n})}}}},{key:"getLoginAvail",value:function(){return!this.state.lock&&this.state.email&&this.state.password}},{key:"getRegAvail",value:function(){return!this.state.lock&&this.state.email&&this.state.password&&this.state.password==this.state.passwordConfirm}},{key:"getForgotAvail",value:function(){return!this.state.lock&&this.state.email}},{key:"setMode",value:function(e){this.setState({mode:e,error:null,password:"",passwordConfirm:""})}},{key:"render",value:function(){var e,t=this;switch(this.elmEmail=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"text",autoFocus:!0,value:this.state.email,placeholder:"Enter email",onChange:this.onEmailChange}),this.elmPassword=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.password,placeholder:"Enter password",onChange:this.onPasswordChange}),this.elmPasswordConfirm=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"input",type:"password",value:this.state.passwordConfirm,placeholder:"Confirm password",onChange:this.onPasswordConfirmChange}),this.state.mode){case MODE_LOGIN:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onLogin},this.elmEmail,this.elmPassword,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getLoginAvail(),value:"Log in"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.d&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"Wrong email or password!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_FORGOT)}},"Forgot password?"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_REG)}},"Registration"));break;case MODE_REG:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onReg},this.elmEmail,this.elmPassword,this.elmPasswordConfirm,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getRegAvail(),value:"Register"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.c&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"This email is already in use!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Log in"));break;case MODE_REG_MAIL:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"We send to your email a link to confirm your registration. Please, open it."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_UNVERIF:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",null,"It looks like your email is not verified yet."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("p",null,"Please check your inbox for an email from us.")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:this.onResend},"Resend verification email"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_FORGOT:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("form",{styleName:"form",onSubmit:this.onRestore},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"Please, type your email, and we will send you a link to reset your password."),this.elmEmail,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.getForgotAvail(),value:"Restore password"})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"errors"},this.state.error==ducks_user__WEBPACK_IMPORTED_MODULE_11__.a&&react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"error"},"Wrong email!")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_FORGOT_MAIL:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"The mail have sended. Please, check your inbox."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"));break;case MODE_SERVER_DOWN:e=react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"form"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"description"},"We are sorry, but we have some problems with our service. Please, come back later."),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"forgot",onClick:function(){return t.setMode(MODE_LOGIN)}},"Return to log in"))}return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{className:"container"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("title",null,"Sign in / Sign up - Chisel")),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"Sign"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"logo"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("img",{src:__webpack_require__(139)})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"title"},"Welcome to Chisel"),e))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Sign}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);function mapStateToProps(e){return{user:e.user,serverStatus:e.serverStatus}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_6__.b)({login:ducks_user__WEBPACK_IMPORTED_MODULE_11__.k,register:ducks_user__WEBPACK_IMPORTED_MODULE_11__.m,restorePassword:ducks_user__WEBPACK_IMPORTED_MODULE_11__.p,resendVerEmail:ducks_user__WEBPACK_IMPORTED_MODULE_11__.n,resetStatus:ducks_user__WEBPACK_IMPORTED_MODULE_11__.o},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_7__.b)(mapStateToProps,mapDispatchToProps)(Sign);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MODE_LOGIN,"MODE_LOGIN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_REG,"MODE_REG","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_REG_MAIL,"MODE_REG_MAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_UNVERIF,"MODE_UNVERIF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_FORGOT,"MODE_FORGOT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_FORGOT_MAIL,"MODE_FORGOT_MAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(MODE_SERVER_DOWN,"MODE_SERVER_DOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(Sign,"Sign","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/Sign/Sign.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_helmet__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_10__),containers_Header_Header__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(363),containers_Sidebar_Sidebar__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(365),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7),_MainArea_sss__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(811),_MainArea_sss__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(_MainArea_sss__WEBPACK_IMPORTED_MODULE_14__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MainArea=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_MainArea_sss__WEBPACK_IMPORTED_MODULE_14___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MainArea(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,MainArea);for(var r=arguments.length,n=new Array(r),_=0;_1048576){t.setState({error:"Your file's size exceeds a limit of 1 MB."})}else{var n=new parse__WEBPACK_IMPORTED_MODULE_8__.Parse.File(Object(utils_common__WEBPACK_IMPORTED_MODULE_14__.d)(r.name),r,r.type);n.save().then(function(){t.setState({dirty:!0,icon:n})})}else{t.setState({error:"You should upload an image"})}},t.onSave=function(e){e.preventDefault(),t.state.dirty&&!t.state.error&&t.validate()&&(t.setState({dirty:!1}),t.site.name=t.state.name,t.site.domain=t.state.domain,t.site.webhook=t.state.webhook,t.site.icon=t.state.icon,t.props.updateSite(t.site))},t.onDelete=function(){var e=t.props,r=e.showAlert,n=e.deleteSite;r({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_13__.b,title:"Deleting ".concat(t.state.name),description:"You are trying to remove the site with all content. This action cannot be undone. Are you sure?

Please, type site name to confirm:",confirmString:t.site.name,onConfirm:function(){return n(t.site)}})},t.site=e.site,t.state.name=t.site.name,t.state.domain=t.site.domain,t.state.webhook=t.site.webhook,t.state.icon=t.site.icon,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(Settings,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(Settings,[{key:"componentWillReceiveProps",value:function(e){this.site=e.site,this.setState({name:this.site.name,domain:this.site.domain,webhook:this.site.webhook})}},{key:"validate",value:function(){if(!this.state.name)return this.setState({error:ERROR_BLANK_NAME}),!1;var e=Object(utils_data__WEBPACK_IMPORTED_MODULE_12__.m)(this.state.domain,this.site);return e==utils_data__WEBPACK_IMPORTED_MODULE_12__.e?(this.setState({error:ERROR_URL_SYNTAX}),!1):e==utils_data__WEBPACK_IMPORTED_MODULE_12__.d?(this.setState({error:ERROR_URL_EXIST}),!1):this.state.webhook&&!Object(utils_common__WEBPACK_IMPORTED_MODULE_14__.c)(this.state.webhook)?(this.setState({error:ERROR_WEBHOOK_SYNTAX}),!1):Object(utils_data__WEBPACK_IMPORTED_MODULE_12__.n)(this.state.name,this.site)?(this.setState({error:ERROR_NAME_EXIST}),!1):(this.setState({error:null}),!0)}},{key:"getIcon",value:function(){var e=this.props.isEditable,t="icon-button";e||(t+=" icon-button-disabled");var r=null;return this.state.icon&&(r=react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("img",{styleName:"icon-img",src:this.state.icon.url()})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field icon"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site icon"),r,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{type:"file",styleName:t+" icon-upload"},"Upload",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("input",{styleName:"icon-hidden",type:"file",disabled:!e,onChange:this.onChangeIcon})))}},{key:"render",value:function(){var e=this.props.isEditable;return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_11__.a,{title:"Site settings"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"content",onSubmit:this.onSave},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.name,readOnly:!e,onChange:this.onChangeName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site domain URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.domain,readOnly:!e,onChange:this.onChangeDomain}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Webhook URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.state.webhook,readOnly:!e,onChange:this.onChangeWebhook}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Site ID"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_9__.a,{type:"big",value:this.site.origin.id,readOnly:!0}))),this.getIcon(),e&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"green",type:"submit",disabled:!this.state.dirty||this.state.error,value:"Save changes"})),e&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_10__.a,{color:"red",value:"Delete site",onClick:this.onDelete})),this.state.error&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.error)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Settings}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ERROR_BLANK_NAME,"ERROR_BLANK_NAME","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_URL_SYNTAX,"ERROR_URL_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_WEBHOOK_SYNTAX,"ERROR_WEBHOOK_SYNTAX","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_NAME_EXIST,"ERROR_NAME_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(ERROR_URL_EXIST,"ERROR_URL_EXIST","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),e.register(Settings,"Settings","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/settings/Settings.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),components_mainArea_sharing_Sharing__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(371),models_UserData__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(20),ducks_models__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SharingContainer=function(_Component){function SharingContainer(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,SharingContainer),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(SharingContainer).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(SharingContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(SharingContainer,[{key:"render",value:function(){var e=this.props,t=e.models,r=e.nav,n=e.user,_=this.props.modelsActions,a=_.addCollaboration,i=_.addInviteCollaboration,o=_.updateCollaboration,s=_.deleteCollaboration,l=_.deleteSelfCollaboration,u=this.props.navActions.showAlert,c=t.currentSite;if(!c)return null;var d="Sharing - Site: ".concat(c.name," - Chisel");return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,d)),",",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_mainArea_sharing_Sharing__WEBPACK_IMPORTED_MODULE_10__.a,{collaborations:c.collaborations,owner:c.owner,user:n.userData,addCollaboration:a,addInviteCollaboration:i,updateCollaboration:o,deleteCollaboration:s,deleteSelfCollaboration:l,showAlert:u,alertShowing:r.alertShowing,isEditable:t.role==models_UserData__WEBPACK_IMPORTED_MODULE_11__.e||t.role==models_UserData__WEBPACK_IMPORTED_MODULE_11__.b}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SharingContainer}(react__WEBPACK_IMPORTED_MODULE_6__.Component);function mapStateToProps(e){return{models:e.models,nav:e.nav,user:e.user}}function mapDispatchToProps(e){return{modelsActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({addCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.g,addInviteCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.i,updateCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.u,deleteCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.m,deleteSelfCollaboration:ducks_models__WEBPACK_IMPORTED_MODULE_12__.p},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({showAlert:ducks_nav__WEBPACK_IMPORTED_MODULE_13__.G},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps,mapDispatchToProps)(SharingContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SharingContainer,"SharingContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Sharing/SharingContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return Sharing});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_gravatar__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(145),react_gravatar__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_gravatar__WEBPACK_IMPORTED_MODULE_10__),parse__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_11__),react_flip_move__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(114),models_UserData__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(20),utils_data__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(15),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(56),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(17),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(38),_Sharing_sss__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(817),_Sharing_sss__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_Sharing_sss__WEBPACK_IMPORTED_MODULE_18__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var Sharing=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Sharing_sss__WEBPACK_IMPORTED_MODULE_18___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Sharing(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,Sharing),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(Sharing).call(this,e))).state={collaborations:[],input:""},t.activeInput=null,t.returnFocus=!1,t.onInputChange=function(e){var r=e.target.value;t.setState({input:r})},t.onKeyDown=function(e){t.props.alertShowing||(13==e.keyCode?t.onAddCollaboration():27==e.keyCode&&t.setState({input:""}))},t.onAddCollaboration=function(e){var r=t.state.input;r&&Object(utils_data__WEBPACK_IMPORTED_MODULE_14__.A)(r).then(function(e){switch(Object(utils_data__WEBPACK_IMPORTED_MODULE_14__.h)(e)){case utils_data__WEBPACK_IMPORTED_MODULE_14__.a:t.props.addCollaboration(e,r),t.setState({input:""});break;case utils_data__WEBPACK_IMPORTED_MODULE_14__.c:t.props.showAlert({title:"Error",description:"You are trying to add yourself!",buttonText:"OK"}),t.returnFocus=!0;break;case utils_data__WEBPACK_IMPORTED_MODULE_14__.b:t.props.showAlert({title:"Error",description:"This user is also exist",buttonText:"OK"}),t.returnFocus=!0}}).catch(function(e){t.props.showAlert({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__.b,title:"Not registered user",description:"The user ".concat(r," is not registered at Chisel. Would you like to send an invitation to them?"),onConfirm:function(){return t.props.addInviteCollaboration(r)}}),t.returnFocus=!0,t.setState({input:""})})},t.state.collaborations=e.collaborations,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(Sharing,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(Sharing,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.activeInput&&this.returnFocus&&(this.returnFocus=!1,setTimeout(function(){return t.activeInput.focus()},1)),e.collaborations!=this.state.collaborations&&this.setState({collaborations:e.collaborations,input:""})}},{key:"onRoleClick",value:function(e,t){e.stopPropagation();var r=this.state.collaborations,n=r[t];n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.b?n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.d:n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.d?n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.c:n.role==models_UserData__WEBPACK_IMPORTED_MODULE_13__.c&&(n.role=models_UserData__WEBPACK_IMPORTED_MODULE_13__.b),this.setState({collaborations:r}),this.props.updateCollaboration(n)}},{key:"onDeleteClick",value:function(e,t){e.stopPropagation();var r="This action cannot be undone. Are you sure?",n=this.props.deleteCollaboration,_="",a=t.email;t.user&&t.user.origin.id==parse__WEBPACK_IMPORTED_MODULE_11__.Parse.User.current().id&&(r="You are trying to stop managing this site. ".concat(r,"

Please, type site name to confirm:"),n=this.props.deleteSelfCollaboration,_=t.site.name,a="self"),this.props.showAlert({type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_17__.b,title:"Deleting ".concat(a," from collaborators"),description:r,confirmString:_,onConfirm:function(){return n(t)}}),this.returnFocus=!0}},{key:"render",value:function(){var e=this,t=this.props,r=t.owner,n=t.isEditable,_=this.props.user;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"wrapper"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__.a,{title:"Collaborators"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"sharing-wrapper"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"avatar"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_gravatar__WEBPACK_IMPORTED_MODULE_10___default.a,{email:r.email,styleName:"gravatar"})),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},r.firstName," ",r.lastName),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},r.email)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role"},"OWNER")),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_12__.a,{duration:500,enterAnimation:"fade",leaveAnimation:"fade",maintainContainerHeight:!0,easing:"ease-out"},this.state.collaborations.map(function(t,r){var a,i=t.user,o=n,s=n,l=null;return i?(a="list-item",i.origin.id==_.origin.id&&(o=!0,s=!1),l=i.firstName||i.lastName?react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},i.firstName," ",i.lastName," "),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},i.email)):react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type-one-str"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},t.email))):(a="list-item list-item-pending",l=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type-one-str"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"email"},t.email," (pending)"))),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:a,key:t.email},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"avatar"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_gravatar__WEBPACK_IMPORTED_MODULE_10___default.a,{email:t.email,styleName:"gravatar"})),l,s?react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role editable",onClick:function(t){return e.onRoleClick(t,r)}},t.role):react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"role"},t.role),o&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(r){return e.onDeleteClick(r,t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),n&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{placeholder:"Enter one or more emails",value:this.state.input,autoFocus:!0,onChange:this.onInputChange,onKeyDown:this.onKeyDown,icon:"users",onIconClick:this.onAddCollaboration,DOMRef:function(t){return e.activeInput=t}}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"footer"},"If the recipient doesn’t yet have a Chisel account, they will be sent an invitation to join.")))))),!1)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),Sharing}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(Sharing,"Sharing","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/sharing/Sharing.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_10__),components_mainArea_models_ModelsList_ModelsList__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(373),ducks_models__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(7),models_UserData__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(20),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(113);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelsListContainer=function(_Component){function ModelsListContainer(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,ModelsListContainer);for(var r=arguments.length,n=new Array(r),_=0;_".concat(r.name,"
model"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_15__.a,description:"There are ".concat(_," content items using the model. You should delete them first.")}:{title:"Deleting ".concat(r.name," model"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_15__.b,description:"Are you sure?",onConfirm:function(){return t.props.deleteModel(r)}},t.props.showAlert(n),t.returnFocus=!0},t.site=e.site,t.state.models=t.site.models.slice(),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ModelsList,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ModelsList,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.returnFocus&&this.activeInput&&(this.returnFocus=!1,setTimeout(function(){t.activeInput.focus(),t.props.keepScroll()},1)),e.site!=this.site&&(this.site=e.site,this.animate=!1,this.setState({modelName:""})),this.setState({models:this.site.models.slice()})}},{key:"componentDidUpdate",value:function(){this.animate=!0}},{key:"render",value:function(){var e=this,t=this.props.isEditable;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__.a,{title:"Models",backgroundOffset:110},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_10__.a,{duration:250,enterAnimation:"accordionVertical",leaveAnimation:"accordionVertical",maintainContainerHeight:!0,disableAllAnimations:!this.animate,easing:"ease-out"},this.state.models.length>0&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item list-header",key:"header!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"colorLabel"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"fields"},"FIELDS"),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"updated"},"UPDATED")),this.state.models.map(function(r){var n=r.origin.updatedAt;n||(n=new Date);var _=Object(utils_common__WEBPACK_IMPORTED_MODULE_12__.g)(n),a={background:r.color};return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"list-item",key:r.nameId,onClick:function(){return e.onModelClick(r)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"colorLabel",style:a}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"type"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"name"},r.name),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"description"},r.description)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"fields"},r.fields.length),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"updated"},_),t&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(t){return e.onRemoveClick(t,r)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),t&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input-wrapper-back"}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{styleName:"input"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_14__.a,{value:this.state.modelName,placeholder:"Create a new Content Type",onChange:this.onModelNameChange,onKeyDown:this.onKeyDown,DOMRef:function(t){return e.activeInput=t},icon:"plus",autoFocus:!0,onIconClick:this.onAddModel})))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelsList}(react__WEBPACK_IMPORTED_MODULE_7__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelsList,"ModelsList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/models/ModelsList/ModelsList.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_11__),components_mainArea_models_Model_Model__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(375),ducks_models__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(25),ducks_nav__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(15),models_UserData__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(20),components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(113);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ModelContainer=function(_Component){function ModelContainer(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ModelContainer),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ModelContainer).call(this,e))).model=null,t.mainArea=void 0,t.lastScroll=0,t.onScroll=function(){t.lastScroll=t.mainArea.scrollTop},t.keepScroll=function(){t.mainArea.scrollTop=t.lastScroll};var r=e.params.model;if(0!=r.indexOf(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.t))return _babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(t);r=r.slice(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.t.length);var n=e.modelsActions.setCurrentModel,_=e.models;if(t.model=_.currentModel,!t.model||r!=t.model.nameId){var a=Object(utils_data__WEBPACK_IMPORTED_MODULE_15__.v)(r);a&&(t.model=a,n(a))}return t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ModelContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ModelContainer,[{key:"componentDidMount",value:function(){this.mainArea.scrollTop=0,this.mainArea.addEventListener("scroll",this.onScroll)}},{key:"componentWillUnmount",value:function(){this.mainArea.removeEventListener("scroll",this.onScroll)}},{key:"render",value:function(){var e=this,t=this.props,r=t.models,n=t.nav,_=this.props.modelsActions,a=_.updateModel,i=_.updateField,o=_.deleteField,s=this.props.navActions,l=s.showAlert,u=s.showModal,c="Chisel",d=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_common_NoRights__WEBPACK_IMPORTED_MODULE_17__.a,null),f=r.currentSite,p=this.model;if(f&&p&&(r.role==models_UserData__WEBPACK_IMPORTED_MODULE_16__.b||r.role==models_UserData__WEBPACK_IMPORTED_MODULE_16__.e)){c="Model: ".concat(p.name," - Site: ").concat(f.name," - Chisel");d=react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_models_Model_Model__WEBPACK_IMPORTED_MODULE_12__.a,{model:p,onClose:function(){return react_router__WEBPACK_IMPORTED_MODULE_10__.f.push("/".concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.A,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.z).concat(f.nameId,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_14__.u))},keepScroll:this.keepScroll,updateModel:a,updateField:i,deleteField:o,showAlert:l,showModal:u,modalShowing:n.modalShowing,alertShowing:n.alertShowing,isEditable:!0})}return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:"mainArea",ref:function(t){return e.mainArea=t}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_11__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("title",null,c)),d)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ModelContainer}(react__WEBPACK_IMPORTED_MODULE_7__.Component);function mapStateToProps(e){return{models:e.models,nav:e.nav}}function mapDispatchToProps(e){return{modelsActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({setCurrentModel:ducks_models__WEBPACK_IMPORTED_MODULE_13__.s,updateModel:ducks_models__WEBPACK_IMPORTED_MODULE_13__.w,updateField:ducks_models__WEBPACK_IMPORTED_MODULE_13__.v,deleteField:ducks_models__WEBPACK_IMPORTED_MODULE_13__.n},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({showAlert:ducks_nav__WEBPACK_IMPORTED_MODULE_14__.G,showModal:ducks_nav__WEBPACK_IMPORTED_MODULE_14__.H},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_9__.b)(mapStateToProps,mapDispatchToProps)(ModelContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ModelContainer,"ModelContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Models/Model/ModelContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return Model});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),svg_inline_react__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_9__),react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(146),react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(56),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(17),components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(116),components_elements_JSONView_JSONView__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(376),utils_common__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(19),utils_data__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(15),ducks_nav__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(7),components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(38),models_ModelData__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(8),_Model_sss__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(825),_Model_sss__WEBPACK_IMPORTED_MODULE_20___default=__webpack_require__.n(_Model_sss__WEBPACK_IMPORTED_MODULE_20__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var DragHandle=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableHandle)(function(e){var t=e.color;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemColor,style:{background:t}})}),SortableItem=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableElement)(function(e){var t=e.field,r=e.isEditable,n=e.onFieldClick,_=e.onRemoveClick,a=[_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItem];return r&&a.push(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemPointer),t.isDisabled&&a.push(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemDisabled),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:a.join(" "),onClick:function(){return n(t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(DragHandle,{color:t.color}),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemText},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemName},t.name),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.listItemType},t.type," — ",t.appearance)),t.isTitle&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.titleButton},"TITLE"),r&&react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.hiddenControls},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.hiddenRemove,onClick:function(e){return _(e,t)}},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_9___default.a,{className:_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a.cross,src:__webpack_require__(77)}))))}),SortableList=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.SortableContainer)(function(e){var t=e.fields,r=e.isEditable,n=e.onFieldClick,_=e.onRemoveClick;return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",null,t.map(function(e,t){return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(SortableItem,{key:"item-".concat(t),index:t,field:e,isEditable:r,onFieldClick:n,onRemoveClick:_})}))}),Model=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_Model_sss__WEBPACK_IMPORTED_MODULE_20___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function Model(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,Model),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(Model).call(this,e))).state={fields:[],fieldName:"",jsonVisibility:!1},t.model=null,t.activeInput=null,t.returnFocus=!1,t.titleActive=!1,t.onFieldNameChange=function(e){var r=e.target.value;t.setState({fieldName:r})},t.onAddKeyDown=function(e){t.props.modalShowing||t.props.alertShowing||(13==e.keyCode?t.onAddField():27==e.keyCode&&t.setState({fieldName:""}))},t.onAddField=function(e){if(e&&e.preventDefault(),t.state.fieldName){t.returnFocus=!0;var r=Object(utils_common__WEBPACK_IMPORTED_MODULE_15__.i)(t.state.fieldName),n=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.j)(r);if(n){(0,t.props.showAlert)(Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.o)(n))}else{var _=new models_ModelData__WEBPACK_IMPORTED_MODULE_19__.A;_.model=t.model,_.name=r,_.nameId=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.w)(r,t.model.fields),t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_17__.b,_),t.setState({fieldName:""})}}},t.onRemoveClick=function(e,r){var n;e.stopPropagation();var _=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.r)(t.model).length;n=r.isDisabled||!_?{title:"Deleting ".concat(r.name," field"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__.b,description:"Are you sure?",onConfirm:function(){return t.props.deleteField(r)}}:{title:"Deleting ".concat(r.name," field"),type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_18__.a,description:"There are ".concat(_," content items using the model. You should disable this field first.")},t.props.showAlert(n),t.returnFocus=!0},t.onFieldClick=function(e){t.props.isEditable&&(t.returnFocus=!0,t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_17__.b,e))},t.onJSONClick=function(){t.setState({jsonVisibility:!t.state.jsonVisibility})},t.updateModelName=function(e,r,n){if(e!=t.model.name){var _=Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.k)(e);_?_!=utils_data__WEBPACK_IMPORTED_MODULE_16__.g&&(n?void 0!=r&&r(t.model.name):(t.returnFocus=!0,t.props.showAlert(Object(utils_data__WEBPACK_IMPORTED_MODULE_16__.o)(_)),t.titleActive=!0)):(t.model.name=e,t.props.updateModel(t.model))}},t.updateModelDescription=function(e){e!=t.model.description&&(t.model.description=e,t.props.updateModel(t.model))},t.onSortEnd=function(e){for(var r=e.oldIndex,n=e.newIndex,_=t.props.updateField,a=Object(react_sortable_hoc__WEBPACK_IMPORTED_MODULE_10__.arrayMove)(t.state.fields,r,n),i=0;i".concat(i,""),description:"Are you sure?",onConfirm:function(){return a(r)}}:{type:components_modals_AlertModal_AlertModal__WEBPACK_IMPORTED_MODULE_19__.a,title:"Deleting ".concat(i,""),description:"Please, archive item before delete it."}),t.returnFocus=!0},t.state.items=e.items,t.state.currentModel=e.models[0],t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ContentList,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(ContentList,[{key:"componentWillReceiveProps",value:function(e){var t=this;!e.alertShowing&&this.returnFocus&&this.activeInput&&(this.returnFocus=!1,setTimeout(function(){t.activeInput.focus(),t.props.keepScroll()},1)),this.setState({items:e.items})}},{key:"render",value:function(){var e=this,t=this.props,r=t.isEditable,n=t.models,_=t.filteredModels,a=t.filteredStatuses,i=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("img",{styleName:"eye",src:__webpack_require__(741)}),o=react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("img",{styleName:"eye eye-active",src:__webpack_require__(742)}),s=this.state.items.filter(function(e){return!_.size||_.has(e.model)}).filter(function(e){return!a.size||a.has(e.status)}).filter(function(t){var r=e.state.searchText;if(!r.length)return!0;var n=t.draft?t.draft.title:t.title;return n&&-1!=n.toLowerCase().indexOf(r.toLowerCase())});return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_15__.a,{title:"Content"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"content-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-item"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-title"},"Content Types"),n.map(function(t){var r=t.origin&&t.origin.id?t.origin.id:Math.random(),n=i,a="filters-type filters-typeHidden";return _.has(t)&&(n=o,a="filters-type"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:a,key:r,onClick:function(){return e.onModelClick(t)}},t.name,n)})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-item"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"filters-title filters-status"},"Status"),allStatuses.map(function(t){var r=i,n="filters-type filters-typeHidden";return a.has(t)&&(r=o,n="filters-type"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:n,key:t,onClick:function(){return e.onStatusClick(t)}},t,r)}))),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"inputs-wrapper search"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{icon:"search",autoFocus:!0,value:this.state.searchText,onKeyDown:this.onSearchKeyDown,onChange:this.onSearch})),s.length<=0&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-no-items"},"There are no items here."),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(react_flip_move__WEBPACK_IMPORTED_MODULE_12__.a,{duration:250,enterAnimation:"accordionVertical",leaveAnimation:"accordionVertical",maintainContainerHeight:!0,easing:"ease-out"},s.length>0&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:"header!"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"colorLabel"}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"type"}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"updated"},"UPDATED")),s.map(function(t){var n=t.draft?t.draft.title:t.title,_=t.draft?t.draft.origin.updatedAt:t.origin.updatedAt;_||(_=new Date);var a=Object(utils_common__WEBPACK_IMPORTED_MODULE_18__.g)(_),i={background:t.color},o=t.origin&&t.origin.id?t.origin.id:Math.random();return react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:o,onClick:function(){return e.onItemClick(t)}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"colorLabel",style:i}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"type"},n?react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"name"},n):react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"name untitled"},"Untitled"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"description"},t.model.name)),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"updated"},a),r&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"hidden-controls"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"hidden-remove",onClick:function(r){return e.onRemoveClick(r,t)}},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_11___default.a,{styleName:"cross",src:__webpack_require__(77)}))))}),r&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"inputs-wrapper",key:"input!"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"dropdown-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_DropdownControl_DropdownControl__WEBPACK_IMPORTED_MODULE_14__.a,{suggestionsList:n.map(function(e){return e.name}),suggest:this.onChangeModel,current:this.state.currentModel.name})),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_16__.a,{placeholder:"Create a new Content Record",value:this.state.itemTitle,icon:"plus",onIconClick:this.onAddItem,onChange:this.onItemTitleChange,onKeyDown:this.onNewKeyDown}))))))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentList}(react__WEBPACK_IMPORTED_MODULE_9__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(allStatuses,"allStatuses","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentList/ContentList.js"),e.register(ContentList,"ContentList","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentList/ContentList.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6__),react__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_7__),redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(28),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),react_helmet__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_11__),components_mainArea_content_ContentEdit_ContentEdit__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(380),models_UserData__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(20),ducks_content__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(40),ducks_media__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(82),ducks_nav__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentEditContainer=function(_Component){function ContentEditContainer(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,ContentEditContainer),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_4___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_5___default()(ContentEditContainer).call(this,e))).item=null,t.setItem(e.params.item),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_6___default()(ContentEditContainer,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(ContentEditContainer,[{key:"componentWillReceiveProps",value:function(e){e.params.item!=this.props.params.item&&this.setItem(e.params.item)}},{key:"setItem",value:function(e){if(0==e.indexOf(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s)){var t=(e=e.slice(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s.length)).slice(0,e.indexOf("~")),r=e.slice(e.indexOf("~")+1);if(t&&r){var n=this.props.contentActions.setCurrentItem,_=this.props.content;if(this.item=_.currentItem,!this.item||t!=this.item.model.nameId||r!=this.item.origin.id){var a=Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.p)(t,r);a&&(this.item=a,n(a))}}}}},{key:"render",value:function(){var e=this.props,t=e.models,r=e.content,n=this.props.contentActions,_=n.addItem,a=n.updateItem,i=n.publishItem,o=n.discardItem,s=n.archiveItem,l=n.restoreItem,u=this.props.navActions.showModal,c=this.props.mediaActions,d=c.addMediaItem,f=c.updateMediaItem,p=c.removeMediaItem,h=t.currentSite,E=this.item;if(!h||!E)return null;var m="/".concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.A,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.z).concat(h.nameId,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.r),g=r.items[r.items.length-1],b=E.title?E.title:"Untitled",v="Item: ".concat(b," - Site: ").concat(h.name," - Chisel");return react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_11__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement("title",null,v)),react__WEBPACK_IMPORTED_MODULE_7___default.a.createElement(components_mainArea_content_ContentEdit_ContentEdit__WEBPACK_IMPORTED_MODULE_12__.a,{item:E,onClose:function(){return react_router__WEBPACK_IMPORTED_MODULE_10__.f.push(m)},gotoItem:function(e){var t=e.model.nameId,r=e.origin.id;react_router__WEBPACK_IMPORTED_MODULE_10__.f.push("".concat(m,"/").concat(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.s).concat(t,"~").concat(r))},addItem:_,updateItem:a,publishItem:i,archiveItem:s,restoreItem:l,discardItem:o,addMediaItem:d,updateMediaItem:f,removeMediaItem:p,lastItem:g,showModal:u,isEditable:t.role!=models_UserData__WEBPACK_IMPORTED_MODULE_13__.c}))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentEditContainer}(react__WEBPACK_IMPORTED_MODULE_7__.Component);function mapStateToProps(e){return{models:e.models,content:e.content}}function mapDispatchToProps(e){return{contentActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({setCurrentItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.l,addItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.b,updateItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.m,publishItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.j,discardItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.f,archiveItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.c,restoreItem:ducks_content__WEBPACK_IMPORTED_MODULE_14__.k},e),mediaActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({addMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.b,updateMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.f,removeMediaItem:ducks_media__WEBPACK_IMPORTED_MODULE_15__.e},e),navActions:Object(redux__WEBPACK_IMPORTED_MODULE_8__.b)({showModal:ducks_nav__WEBPACK_IMPORTED_MODULE_16__.H},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_9__.b)(mapStateToProps,mapDispatchToProps)(ContentEditContainer);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentEditContainer,"ContentEditContainer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/Content/ContentEdit/ContentEditContainer.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentEdit});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(143),_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(76),core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_iterator__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(97),core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_string_iterator__WEBPACK_IMPORTED_MODULE_6__),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(162),core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(core_js_modules_es6_map__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),react_css_modules__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_14__),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(23),components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(116),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(56),models_ContentData__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31),models_ModelData__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(8),_elements_ContentString__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(381),_elements_ContentNumber__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(382),_elements_ContentBoolean__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(384),_elements_ContentDate__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(385),_elements_ContentReference__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(386),_elements_ContentMedia__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(387),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26__=__webpack_require__(829),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var AUTOSAVE_TIMEOUT=2e3,ContentEdit=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_14___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_26___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function ContentEdit(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_8___default()(this,ContentEdit),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_10___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_11___default()(ContentEdit).call(this,e))).state={title:"",color:"rgba(0, 0, 0, 1)",fields:new Map,dirty:!1,errors:!1},t.item=null,t.fieldsArchive=new Map,t.addingItem=null,t.wait=!1,t.waitSave=!1,t.fieldElements=[],t.fieldElementRefs=[],t.onClose=function(){t.props.onClose()},t.onDiscard=function(){t.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.c&&t.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b||(t.item.fields=new Map(t.fieldsArchive)),t.props.discardItem(t.item),t.updateItem()},t.onPublish=function(){t.setState({dirty:!1}),t.validate()&&(t.props.publishItem(t.item),t.updateItem())},t.onArchive=function(){t.props.archiveItem(t.item),t.updateItem()},t.onRestore=function(){t.props.restoreItem(t.item),t.updateItem()},t.setFieldValue=function(e,r){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],_=t.state.fields;t.setState({fields:_.set(e,r),dirty:!0}),n||!t.wait?(t.saveItem(),t.wait=!0,setTimeout(function(){t.waitSave&&t.saveItem(),t.waitSave=!1,t.wait=!1},AUTOSAVE_TIMEOUT)):t.waitSave=!0},t.updateItemTitle=function(e){t.setState({title:e}),(t.item.draft?t.item.draft:t.item).title=e},t.addItem=function(e){t.addingItem=e,t.props.addItem(e)},t.onReferenceClick=function(e){t.saveItem(),t.props.gotoItem(e)},t.item=e.item;var r=t.item.draft?t.item.draft:t.item;return t.state={title:r.title,color:r.color,fields:r.fields,dirty:!1,errors:!1},t.fieldsArchive=new Map(t.item.fields),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default()(ContentEdit,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_9___default()(ContentEdit,[{key:"componentWillUnmount",value:function(){this.state.dirty&&this.saveItem()}},{key:"componentWillReceiveProps",value:function(e){this.checkAddingItem(e.lastItem),e.item.origin.id!=this.item.origin.id&&this.updateItem(e.item)}},{key:"updateItem",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.item;this.item=e;var t=e.draft?e.draft:e;this.setState({title:t.title,color:t.color,fields:t.fields,dirty:!1,errors:!1}),this.waitSave=!1}},{key:"saveItem",value:function(){this.props.updateItem(this.item)}},{key:"validate",value:function(){var e=!1,t=!0,r=!1,n=void 0;try{for(var _,a=this.fieldElementRefs[Symbol.iterator]();!(t=(_=a.next()).done);t=!0){_.value.validate()||(e=!0)}}catch(e){r=!0,n=e}finally{try{t||null==a.return||a.return()}finally{if(r)throw n}}return this.setState({errors:e}),!e}},{key:"checkAddingItem",value:function(e){this.addingItem&&e==this.addingItem&&(this.props.gotoItem(this.addingItem),this.addingItem=null)}},{key:"generateElement",value:function(e,t,r){var n=this.props.isEditable;switch(this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b&&(n=!1),e.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.y:case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.v:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentString__WEBPACK_IMPORTED_MODULE_20__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue,showModal:this.props.showModal,updateItemTitle:this.updateItemTitle});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.t:case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.u:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentNumber__WEBPACK_IMPORTED_MODULE_21__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.r:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentBoolean__WEBPACK_IMPORTED_MODULE_22__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.s:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentDate__WEBPACK_IMPORTED_MODULE_23__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.w:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentMedia__WEBPACK_IMPORTED_MODULE_25__.a,{ref:r,field:e,key:e.nameId,value:t,isEditable:n,setFieldValue:this.setFieldValue,site:this.item.model.site,addMediaItem:this.props.addMediaItem,updateMediaItem:this.props.updateMediaItem,removeMediaItem:this.props.removeMediaItem,showModal:this.props.showModal});case models_ModelData__WEBPACK_IMPORTED_MODULE_19__.x:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(_elements_ContentReference__WEBPACK_IMPORTED_MODULE_24__.a,{ref:r,field:e,key:e.nameId,value:t,item:this.item,isEditable:n,setFieldValue:this.setFieldValue,showModal:this.props.showModal,addItem:this.addItem,onReferenceClick:this.onReferenceClick})}}},{key:"generateContent",value:function(){var e=this,t=this.props.isEditable;this.fieldElements=[],this.fieldElementRefs=[];var r=!0,n=!1,_=void 0;try{for(var a,i=this.state.fields[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=_babel_runtime_helpers_slicedToArray__WEBPACK_IMPORTED_MODULE_1___default()(a.value,2),s=o[0],l=o[1];if(!s.isDisabled){var u=this.generateElement(s,l,function(t){t&&e.fieldElementRefs.push(t)});this.fieldElements.push(u)}}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title status"},"Status:",react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("span",{styleName:this.item.status}," ",this.item.status)),this.fieldElements,t&&react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"green",value:"Publish",disabled:this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.d||this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b||this.state.errors&&!this.state.dirty,onClick:this.onPublish})),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Discard changes",disabled:this.item.status!=models_ContentData__WEBPACK_IMPORTED_MODULE_18__.e&&!this.state.dirty,onClick:this.onDiscard})),this.item.status==models_ContentData__WEBPACK_IMPORTED_MODULE_18__.b?react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Restore from archive",onClick:this.onRestore})):react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"button-publish"},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_15__.a,{color:"gray",value:"Archive",onClick:this.onArchive}))))}},{key:"render",value:function(){var e=this.props.isEditable,t=this.generateContent(),r=react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",null,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__.a,{text:this.state.title,placeholder:"Item title",update:e?this.updateItemTitle:null,disabled:!this.item.model.hasTitle()}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_EditableTitleControl_EditableTitleControl__WEBPACK_IMPORTED_MODULE_16__.a,{text:this.item.model.name,isSmall:!0}));return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_17__.a,{hasTitle2:!0,titles:r,onClickBack:this.onClose},t)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentEdit}(react__WEBPACK_IMPORTED_MODULE_13__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(AUTOSAVE_TIMEOUT,"AUTOSAVE_TIMEOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/ContentEdit.js"),e.register(ContentEdit,"ContentEdit","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/ContentEdit.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentString});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(743),core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_regexp_match__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(199),core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_regexp_flags__WEBPACK_IMPORTED_MODULE_5__),core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(299),core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(core_js_modules_es6_regexp_constructor__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(69),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12__),react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_13__),react_css_modules__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_14__),svg_inline_react__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_15__),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(779),medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16___default=__webpack_require__.n(medium_editor_dist_css_medium_editor_css__WEBPACK_IMPORTED_MODULE_16__),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(781),medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17___default=__webpack_require__.n(medium_editor_dist_css_themes_default_css__WEBPACK_IMPORTED_MODULE_17__),react_medium_editor__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(174),react_medium_editor__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(react_medium_editor__WEBPACK_IMPORTED_MODULE_18__),_ContentBase__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(66),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(17),components_elements_MarkdownEditor_MarkdownEditor__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(142),ducks_nav__WEBPACK_IMPORTED_MODULE_22__=__webpack_require__(7),utils_common__WEBPACK_IMPORTED_MODULE_23__=__webpack_require__(19),models_ModelData__WEBPACK_IMPORTED_MODULE_24__=__webpack_require__(8),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25__=__webpack_require__(829),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentString=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_14___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_25___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentString(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_7___default()(this,ContentString),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_9___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default()(ContentString).call(this,e))).onChange=function(e,r){var n=e.target.value;if(t.field.isList){var _=t.state.value.slice();_[r]=n,t.setValue(_)}else t.setValue(n),t.field.isTitle&&t.props.updateItemTitle(n)},t.onChangeWysiwyg=function(e){t.setValue(e)},t.onChangeMarkdown=function(e){t.setValue(e)},t.onKeyDown=function(e,r,n){if(e.stopPropagation(),t.field.isList){var _=e.keyCode;13==_||40==_?n[r+1]&&n[r+1].focus():38==_&&r&&n[--r].focus()}},t.onShowWysiwygModal=function(){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_22__.g,{text:t.state.value,callback:function(e){return t.setValue(e,!0)}})},t.onShowMarkdownModal=function(){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_22__.c,{text:t.state.value,callback:function(e){return t.setValue(e,!0)}})},t.onPlus=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,r=t.state.value?t.state.value:[],n=r.slice(0,e+1),_=r.slice(e+1);r=n.concat("",_),t.setValue(r)},t.onMinus=function(e){var r=t.state.value.slice();r.splice(e,1),t.setValue(r)},!t.state.value&&t.field.isList&&(t.state.value=[]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_12___default()(ContentString,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_8___default()(ContentString,[{key:"getError",value:function(){var e=this,t=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_11___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_10___default()(ContentString.prototype),"getError",this).call(this);if(t)return t;if(this.field.isRequired&&!this.state.value)return"This field is required!";var r=function(t){return e.field.validations?e.field.validations.range&&e.field.validations.range.active&&(r=function(t){var r=e.field.validations.range;if(r.minActive&&t.lengthr.max){var n=r.errorMsg;return n||(n="The length is out of permissible range!"),n}}(t))?r:e.field.validations.pattern&&e.field.validations.pattern.active&&(r=function(t){var r=e.field.validations.pattern,n=new RegExp("^"+r.pattern+"$",r.flags);if(!t.match(n)){var _=r.errorMsg;return _||(_="The string is not match the pattern!"),_}}(t))?r:void 0:null;var r},n=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.y:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.m:if(!this.field.validations)break;if(this.field.isList){var _=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(_=(o=s.next()).done);_=!0){var l=r(o.value);if(l)return l}}catch(e){a=!0,i=e}finally{try{_||null==s.return||s.return()}finally{if(a)throw i}}}else{var u=r(n);if(u)return u}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.n:if(!n)break;if(Object(utils_common__WEBPACK_IMPORTED_MODULE_23__.e)(n,"-")!==n)return"Slug must not contain special symbols and capital letters!";var c=r(n);if(c)return c;break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.o:if(!n)break;if(!Object(utils_common__WEBPACK_IMPORTED_MODULE_23__.c)(n))return"You must type a valid URL!"}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.v:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.k:case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.j:var d=r(n);if(d)return d}}return null}},{key:"getTitle",value:function(){switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.l:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"link",onClick:this.onShowWysiwygModal},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default.a,{styleName:"link-icon",src:__webpack_require__(160)})));case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.i:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name,react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"link",onClick:this.onShowMarkdownModal},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_15___default.a,{styleName:"link-icon",src:__webpack_require__(160)})));default:return react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"field-title"},this.field.name)}}},{key:"getInput",value:function(){var e=this,t=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.y:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_24__.m:var r;return this.field.isList?t&&t.length?function(){r=[];for(var n=[],_=function(_){r.push(react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item",key:_},react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_20__.a,{type:"big",value:t[_],readOnly:!e.state.isEditable,DOMRef:function(e){return n[_]=e},onChange:function(t){return e.onChange(t,_)},onKeyDown:function(t){return e.onKeyDown(t,_,n)}}),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item-plus",onClick:function(){return e.onPlus(_)}},"+"),react__WEBPACK_IMPORTED_MODULE_13___default.a.createElement("div",{styleName:"list-item-minus",onClick:function(){return e.onMinus(_)}},"–")))},a=0;a0&&void 0!==arguments[0]?arguments[0]:0,r=t.state.value?t.state.value:[],n=r.slice(0,e+1),_=r.slice(e+1);r=n.concat(0,_),t.setValue(r)},t.onMinus=function(e){var r=t.state.value.slice();r.splice(e,1),t.setValue(r)},t.onChangeRating=function(e){e*=2,t.setValue(e)},!t.state.value&&t.field.isList&&(t.state.value=[]),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(ContentNumber,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_4___default()(ContentNumber,[{key:"getError",value:function(){var e=this,t=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_7___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_6___default()(ContentNumber.prototype),"getError",this).call(this);if(t)return t;var r=this.state.value,n=function(){if(!e.field.validations)return null;if(!e.field.validations.range||!e.field.validations.range.active)return null;var t=e.field.validations.range,n=function(e){if(t.minActive&&et.max){var r=t.errorMsg;return r||(r="The value is out of permissible range!"),r}};if(!e.field.isList)return r||(r=0),n(r);var _=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(_=(o=s.next()).done);_=!0){var l=n(o.value);if(l)return l}}catch(e){a=!0,i=e}finally{try{_||null==s.return||s.return()}finally{if(a)throw i}}};switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.t:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.f:var _=n();if(_)return _}break;case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.g:var a=n();if(a)return a;break;case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.h:}}return null}},{key:"getInput",value:function(){var e=this,t=this.state.value;switch(this.field.type){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.t:case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u:switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.g:case models_ModelData__WEBPACK_IMPORTED_MODULE_14__.f:var r;return this.field.isList?t&&t.length?function(){r=[];for(var n=[],_=function(_){r.push(react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item",key:_},react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_13__.a,{styleName:"list-item-input",type:"big",isInt:e.field.type==models_ModelData__WEBPACK_IMPORTED_MODULE_14__.u,value:t[_],readOnly:!e.state.isEditable,onChange:function(t){return e.onChange(t,_)},DOMRef:function(e){return n[_]=e},onKeyDown:function(t){return e.onKeyDown(t,_,n)}}),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item-plus",onClick:function(){return e.onPlus(_)}},"+"),react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"list-item-minus",onClick:function(){return e.onMinus(_)}},"–")))},a=0;at/2}},{key:"mouseLeave",value:function(){var e=this.state,t=e.value,r=e.halfStar,n=e.config;n.edit&&(n.half&&(r.hidden=!this.isDecimal(t),r.at=Math.floor(this.state.value)),this.setState({stars:this.getStars()}))}},{key:"clicked",value:function(e){var t=this.state,r=t.config,n=t.halfStar;if(r.edit){var _=Number(e.target.getAttribute("data-index")),a=void 0;if(r.half){var i=this.moreThanHalf(e,r.size);n.hidden=i,i&&(_+=1),a=i?_:_+.5,n.at=_}else a=_+=1;this.setState({value:a,stars:this.getStars(_)}),this.props.onChange(a)}}},{key:"renderHalfStarStyleElement",value:function(){var e=this.state,t=e.config,r=e.uniqueness;return i.default.createElement("style",{dangerouslySetInnerHTML:{__html:function(e,t){return"\n .react-stars-"+t+":before {\n position: absolute;\n overflow: hidden;\n display: block;\n z-index: 1;\n top: 0; left: 0;\n width: 50%;\n content: attr(data-forhalf);\n color: "+e+";\n }"}(t.color2,r)}})}},{key:"renderStars",value:function(){var e=this,t=this.state,r=t.halfStar,_=t.stars,a=t.uniqueness,o=t.config,s=o.color1,l=o.color2,c=o.size,d=o.char,f=o.half,p=o.edit;return _.map(function(t,_){var o="";f&&!r.hidden&&r.at===_&&(o="react-stars-"+a);var h=n({},u,{color:t.active?l:s,cursor:p?"pointer":"default",fontSize:c+"px"});return i.default.createElement("span",{className:o,style:h,key:_,"data-index":_,"data-forhalf":d,onMouseOver:e.mouseOver.bind(e),onMouseMove:e.mouseOver.bind(e),onMouseLeave:e.mouseLeave.bind(e),onClick:e.clicked.bind(e)},d)})}},{key:"render",value:function(){var e=this.props.className;return i.default.createElement("div",{className:e,style:l},this.state.config.half?this.renderHalfStarStyleElement():"",this.renderStars())}}]),t}();c.propTypes={className:o.default.string,edit:o.default.bool,half:o.default.bool,value:o.default.number,count:o.default.number,char:o.default.string,size:o.default.number,color1:o.default.string,color2:o.default.string},c.defaultProps={edit:!0,half:!0,value:0,count:5,char:"★",size:15,color1:"gray",color2:"#ffd700",onChange:function(){}},t.default=c},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentBoolean});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),_ContentBase__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(66),components_elements_SwitchControl_SwitchControl__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(115),components_elements_RadioControl_RadioControl__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(233),models_ModelData__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(8),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(829),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentBoolean=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_11___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentBoolean(){return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContentBoolean),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ContentBoolean).apply(this,arguments))}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(ContentBoolean,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContentBoolean,[{key:"getInput",value:function(){var e=this,t=this.state.value;switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_10__.a:var r=this.field.boolTextYes?this.field.boolTextYes:"Yes",n=this.field.boolTextNo?this.field.boolTextNo:"No";return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"radio"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_RadioControl_RadioControl__WEBPACK_IMPORTED_MODULE_9__.a,{name:this.field.nameId,data:!0,value:t,disabled:!this.state.isEditable,label:r,onChange:this.setValue}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_RadioControl_RadioControl__WEBPACK_IMPORTED_MODULE_9__.a,{name:this.field.nameId,data:!1,value:t,disabled:!this.state.isEditable,label:n,onChange:this.setValue}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"clear",onClick:function(){return e.setValue(void 0)}},"Reset"));case models_ModelData__WEBPACK_IMPORTED_MODULE_10__.b:return react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"switch"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"switch-wrapper"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement(components_elements_SwitchControl_SwitchControl__WEBPACK_IMPORTED_MODULE_8__.a,{checked:t,disabled:!this.state.isEditable,onChange:this.setValue})),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"clear",onClick:function(){return e.setValue(void 0)}},"Reset"))}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentBoolean}(_ContentBase__WEBPACK_IMPORTED_MODULE_7__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentBoolean,"ContentBoolean","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentBoolean.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentDate});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(69),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),flatpickr_dist_flatpickr_min_css__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(773),flatpickr_dist_flatpickr_min_css__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(flatpickr_dist_flatpickr_min_css__WEBPACK_IMPORTED_MODULE_8__),react_flatpickr__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(73),react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_flatpickr__WEBPACK_IMPORTED_MODULE_9__),_ContentBase__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(66),models_ModelData__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(8),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(829),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_12__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentDate=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_12___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentDate(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,ContentDate),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ContentDate).call(this,e))).validations=null,t.minDateFull=void 0,t.maxDateFull=void 0,t.minDate=void 0,t.maxDate=void 0,t.minTime=new Date(0),t.maxTime=new Date(0),t.onChangeDate=function(e){var r=e[0],n=t.state.value?t.state.value:new Date;r.setHours(n.getHours(),n.getMinutes()),t.setValue(r)},t.onChangeTime=function(e){var r=e[0],n=t.state.value?t.state.value:new Date(0);n.setHours(r.getHours(),r.getMinutes()),t.setValue(n)},t.onClickTime=function(){var e=new Date(0);e.setHours(0),t.onChangeTime([e])},t.minTime.setHours(0,0,0,0),t.maxTime.setHours(23,59,59,999),t.field.validations&&t.field.validations.rangeDate&&t.field.validations.rangeDate.active&&(t.validations=t.field.validations.rangeDate,t.validations.minActive&&(t.minDateFull=new Date(t.validations.min),t.field.appearance==models_ModelData__WEBPACK_IMPORTED_MODULE_11__.e?t.minTime.setHours(t.minDateFull.getHours(),t.minDateFull.getMinutes()):(t.minDate=new Date(t.minDateFull),t.minDate.setHours(0,0,0,0))),t.validations.maxActive&&(t.maxDateFull=new Date(t.validations.max),t.field.appearance==models_ModelData__WEBPACK_IMPORTED_MODULE_11__.e?t.maxTime.setHours(t.maxDateFull.getHours(),t.maxDateFull.getMinutes()):(t.maxDate=new Date(t.maxDateFull),t.maxDate.setHours(23,59,59,999)))),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(ContentDate,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(ContentDate,[{key:"getError",value:function(){var e=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_4___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(ContentDate.prototype),"getError",this).call(this);if(e)return e;var t=this.state.value;if(t&&this.validations)switch(this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.e:if(tthis.maxTime)return this.validations.errorMsg?this.validations.errorMsg:"The time is out of range!";break;default:if(this.validations.minActive&&tthis.maxDateFull)return this.validations.errorMsg?this.validations.errorMsg:"The date/time is out of range!"}}},{key:"getInput",value:function(){var e=this.state.value,t="input-wrapper data-time-wrapper";switch(this.state.isEditable||(t+=" data-time-disabled"),this.field.appearance){case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.c:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"date"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,minDate:this.minDate,maxDate:this.maxDate},onChange:this.onChangeDate})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"time"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,noCalendar:!0,enableTime:!0,altFormat:"h:i K",minDate:this.minDateFull,maxDate:this.maxDateFull},onChange:this.onChangeTime})));case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.d:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"date"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,minDate:this.minDate,maxDate:this.maxDate},onChange:this.onChangeDate})));case models_ModelData__WEBPACK_IMPORTED_MODULE_11__.e:return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:t},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"time",onClick:this.onClickTime},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_flatpickr__WEBPACK_IMPORTED_MODULE_9___default.a,{value:e,options:{clickOpens:this.state.isEditable,altInput:!0,noCalendar:!0,enableTime:!0,altFormat:"h:i K",minDate:this.minTime,maxDate:this.maxTime},onChange:this.onChangeTime})))}}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentDate}(_ContentBase__WEBPACK_IMPORTED_MODULE_10__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentDate,"ContentDate","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentDate.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentReference});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(69),_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11__),react__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_12__),react_css_modules__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_13__),svg_inline_react__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_14__),_ContentBase__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(66),ducks_nav__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(7),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15),models_ContentData__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(31),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(829),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var ContentReference=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_13___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_19___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentReference(e){var t;if(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default()(this,ContentReference),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference).call(this,e))).item=null,t.addingItem=null,t.validModels=null,t.onReferenceNew=function(){if(t.state.isEditable){t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.e,{callback:function(e){t.addingItem=new models_ContentData__WEBPACK_IMPORTED_MODULE_18__.a,t.addingItem.model=e,t.props.addItem(t.addingItem);var r=t.state.value;r||(r=[]),t.setValue(r.concat(t.addingItem),!0)},validModels:t.validModels})}},t.onReferencesChoose=function(){if(t.state.isEditable){var e=t.state.value;e||(e=[]),t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_16__.f,{currentItem:t.item,isMult:t.field.isList,existingItems:e,validModels:t.validModels,callback:function(r){return t.setValue(e.concat(r),!0)}})}},t.onReferenceClear=function(e,r){if(e.stopPropagation(),t.state.isEditable){var n=t.state.value;r?n.splice(n.indexOf(r),1):n.splice(0,n.length),t.setValue(n,!0)}},t.item=t.props.item,t.field.validations&&t.field.validations.models&&t.field.validations.models.active){var r=t.field.validations.models.modelsList;r&&r.length&&(t.validModels=r)}return t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_11___default()(ContentReference,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default()(ContentReference,[{key:"componentWillReceiveProps",value:function(e){this.item=e.item,_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference.prototype),"componentWillReceiveProps",this).call(this,e)}},{key:"getError",value:function(){var e=_babel_runtime_helpers_get__WEBPACK_IMPORTED_MODULE_10___default()(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentReference.prototype),"getError",this).call(this);if(e)return e;var t=this.state.value;if(t&&t.length){var r=!0,n=!1,_=void 0;try{for(var a,i=t[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(!Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.i)(o))return"The referred content item is not exists!";var s=o.model.nameId;if(this.validModels&&-1==this.validModels.indexOf(s))return this.field.validations.models.errorMsg?this.field.validations.models.errorMsg:"The referred content item has an illegal model!"}}catch(e){n=!0,_=e}finally{try{r||null==i.return||i.return()}finally{if(n)throw _}}}}},{key:"getInput",value:function(){var e=this,t=this.state.value,r=function(t){var r=Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.i)(t);e.addingItem==t&&(r=!0);var n=t.origin&&t.origin.id?t.origin.id:Math.random();if(r){var _=t.title?t.title:"Untitled",a=t.title?"":"untitled";return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-item",key:n,onClick:function(){return e.props.onReferenceClick(t)}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span",{styleName:"reference-title"},"[",t.model.name,"]",react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("span",{styleName:a}," ",_)),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_14___default.a,{styleName:"reference-cross",src:__webpack_require__(77),onClick:function(r){return e.onReferenceClear(r,t)}}))}return react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-item",key:n,onClick:function(r){return e.onReferenceClear(r,t)}},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("input",{type:"text",value:"Error: item was deleted. Click to reset.",readOnly:!0}))},n="reference-button";this.state.isEditable||(n+=" reference-button-disabled");var _=react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference-buttons"},react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:n+" reference-new",onClick:this.onReferenceNew},"Create new entry"),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:n+" reference-insert",onClick:this.onReferencesChoose},"Insert Existing Entry")),a=_;return this.field.isList?t&&t.length&&(a=react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",null,t.map(r),_)):t&&t.length&&(a=r(t[0])),react__WEBPACK_IMPORTED_MODULE_12___default.a.createElement("div",{styleName:"reference"},a)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentReference}(_ContentBase__WEBPACK_IMPORTED_MODULE_15__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(ContentReference,"ContentReference","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentReference.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return ContentMedia});var core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(58),core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_array_map__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(45),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(32),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_2__),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(52),core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(core_js_modules_es7_symbol_async_iterator__WEBPACK_IMPORTED_MODULE_3__),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(53),core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(core_js_modules_es6_symbol__WEBPACK_IMPORTED_MODULE_4__),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(43),core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(core_js_modules_web_dom_iterable__WEBPACK_IMPORTED_MODULE_5__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10__),react__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_11__),react_css_modules__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_12___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_12__),svg_inline_react__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(18),svg_inline_react__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(svg_inline_react__WEBPACK_IMPORTED_MODULE_13__),parse__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_14___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_14__),_ContentBase__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(66),models_MediaItemData__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(144),ConnectConstants__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(101),ducks_nav__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(7),utils_common__WEBPACK_IMPORTED_MODULE_19__=__webpack_require__(19),components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_20__=__webpack_require__(173),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21__=__webpack_require__(829),_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21___default=__webpack_require__.n(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var AUTOSAVE_TIMEOUT=2e3,ContentMedia=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_12___default()(_ContentEdit_sss__WEBPACK_IMPORTED_MODULE_21___default.a,{allowMultiple:!0}),_dec(_class=function(_ContentBase){function ContentMedia(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_6___default()(this,ContentMedia),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_8___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_9___default()(ContentMedia).call(this,e))).site=null,t.mediaTimeouts=[],t.onMediaChoose=function(){t.state.isEditable&&t.props.showModal(ducks_nav__WEBPACK_IMPORTED_MODULE_18__.d,{isMult:t.field.isList,callback:function(e){var r=[],n=!0,_=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value.clone();t.props.addMediaItem(s),r.push(s)}}catch(e){_=!0,a=e}finally{try{n||null==o.return||o.return()}finally{if(_)throw a}}if(t.field.isList){var l=t.state.value;l||(l=[]),t.setValue(l.concat(r),!0)}else t.setValue(r[0],!0)}})},t.onMediaNew=function(e){var r=e.target.files[0];if(r)if(r.size>ConnectConstants__WEBPACK_IMPORTED_MODULE_17__.a){t.setState({error:"Your file's size exceeds a limit of 10 MB."})}else{var n=new parse__WEBPACK_IMPORTED_MODULE_14__.Parse.File(Object(utils_common__WEBPACK_IMPORTED_MODULE_19__.d)(r.name),r,r.type);n.save().then(function(){var e=t.props.addMediaItem,_=new models_MediaItemData__WEBPACK_IMPORTED_MODULE_16__.a;if(_.file=n,_.name=Object(utils_common__WEBPACK_IMPORTED_MODULE_19__.j)(r.name),_.type=r.type,_.site=t.site,e(_),(_=_.clone()).assigned=!0,e(_),t.field.isList){var a=t.state.value;a||(a=[]),t.setValue(a.concat(_),!0)}else t.setValue(_,!0)})}},t.site=e.site,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_10___default()(ContentMedia,_ContentBase),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_7___default()(ContentMedia,[{key:"onMediaClear",value:function(e){if(this.props.removeMediaItem(e),this.field.isList){var t=this.state.value;t.splice(t.indexOf(e),1),this.setValue(t,!0)}else this.setValue(null,!0)}},{key:"onMediaNameChange",value:function(e,t){var r=this,n=e.target.value;t.name=n,this.mediaTimeouts[t.key]||(this.mediaTimeouts[t.key]=setTimeout(function(){r.props.updateMediaItem(t),r.mediaTimeouts[t.key]=0},AUTOSAVE_TIMEOUT)),this.setValue(this.state.value)}},{key:"getInput",value:function(){var e=this,t=this.state.value,r=function(t){return react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-item",key:t.key},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-header"},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("input",{type:"text",placeholder:"File name",readOnly:!e.state.isEditable,onChange:function(r){return e.onMediaNameChange(r,t)},value:t.name}),e.state.isEditable&&react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(svg_inline_react__WEBPACK_IMPORTED_MODULE_13___default.a,{styleName:"media-cross",src:__webpack_require__(77),onClick:function(){return e.onMediaClear(t)}})),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement(components_elements_MediaView_MediaView__WEBPACK_IMPORTED_MODULE_20__.a,{item:t}))},n="media-button";this.state.isEditable||(n+=" media-button-disabled");var _=react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media-buttons"},react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{type:"file",styleName:n+" media-upload"},"Upload New",react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("input",{styleName:"media-hidden",type:"file",disabled:!this.state.isEditable,onChange:this.onMediaNew})),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:n+" media-insert",onClick:this.onMediaChoose},"Insert Existing")),a=_;return this.field.isList?t&&t.length&&(a=react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",null,t.map(r),_)):t&&t.file&&(a=r(t)),react__WEBPACK_IMPORTED_MODULE_11___default.a.createElement("div",{styleName:"media"},a)}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),ContentMedia}(_ContentBase__WEBPACK_IMPORTED_MODULE_15__.a))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(AUTOSAVE_TIMEOUT,"AUTOSAVE_TIMEOUT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentMedia.js"),e.register(ContentMedia,"ContentMedia","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/mainArea/content/ContentEdit/elements/ContentMedia.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(134),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(22),react_redux__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(28),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),react_css_modules__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_10__),components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(17),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(23),components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(56),ducks_user__WEBPACK_IMPORTED_MODULE_14__=__webpack_require__(24),utils_initialize__WEBPACK_IMPORTED_MODULE_15__=__webpack_require__(70),utils_common__WEBPACK_IMPORTED_MODULE_16__=__webpack_require__(19),utils_data__WEBPACK_IMPORTED_MODULE_17__=__webpack_require__(15),_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18__=__webpack_require__(833),_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18___default=__webpack_require__.n(_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var CHG_DATA="CHG_DATA",CHG_EMAIL="CHG_EMAIL",CHG_PASSWORD="CHG_PASSWORD",CHG_SERVER="CHG_SERVER",UserProfile=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_10___default()(_UserProfile_sss__WEBPACK_IMPORTED_MODULE_18___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function UserProfile(e){var t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,UserProfile),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(UserProfile).call(this,e))).state={firstName:"",lastName:"",dirtyData:!1,errorData:null,successData:"",email:"",emailNew:"",dirtyEmail:!1,errorEmail:null,successEmailState:!1,passwordOld:"",password:"",passwordConfirm:"",dirtyPassword:!1,errorPassword:null,successPassword:"",serverURL:"",dirtyServer:!1,errorServer:null,successServer:""},t.userData=null,t.lastChange=null,t.onSaveData=function(e){(e.preventDefault(),t.state.dirtyData&&!t.state.errorData)&&(t.validateData()&&(t.setState({dirtyData:!1}),t.lastChange=CHG_DATA,t.userData.firstName=t.state.firstName,t.userData.lastName=t.state.lastName,(0,t.props.userActions.update)(t.userData)))},t.onSaveEmail=function(e){(e.preventDefault(),t.state.dirtyEmail&&!t.state.errorEmail)&&(t.validateEmail()&&(t.setState({dirtyEmail:!1}),t.lastChange=CHG_EMAIL,(0,t.props.userActions.updateEmail)(t.state.emailNew)))},t.onSavePassword=function(e){e.preventDefault(),t.state.dirtyPassword&&!t.state.errorPassword&&t.validatePassword().then(function(){(0,t.props.userActions.updatePassword)(t.state.password),t.lastChange=CHG_PASSWORD,t.setState({passwordOld:"",password:"",passwordConfirm:"",dirtyPassword:!1})}).catch(function(){})},t.onSaveServer=function(e){e.preventDefault(),t.state.dirtyServer&&!t.state.errorServer&&t.validateServer()&&(t.setState({dirtyServer:!1}),t.lastChange=CHG_SERVER,Object(utils_initialize__WEBPACK_IMPORTED_MODULE_15__.a)(t.state.serverURL),t.setState({successServer:"Server was successfully changed!"}),setTimeout(function(){return t.setState({successServer:""})},2500))},t.onChangeFirstName=function(e){var r=e.target.value;t.setState({firstName:r,dirtyData:!0,errorData:null})},t.onChangeLastName=function(e){var r=e.target.value;t.setState({lastName:r,dirtyData:!0,errorData:null})},t.onChangeEmail=function(e){var r=e.target.value;t.setState({emailNew:r,dirtyEmail:r!=t.userData.emailNew,errorEmail:null})},t.onChangePasswordOld=function(e){var r=e.target.value,n=!!r||!!t.state.password||!!t.state.passwordConfirm;t.setState({passwordOld:r,dirtyPassword:n,errorPassword:null})},t.onChangePassword=function(e){var r=e.target.value,n=!!r||!!t.state.passwordOld||!!t.state.passwordConfirm;t.setState({password:r,dirtyPassword:n,errorPassword:null})},t.onChangePasswordConfirm=function(e){var r=e.target.value,n=!!r||!!t.state.passwordOld||!!t.state.password;t.setState({passwordConfirm:r,dirtyPassword:n,errorPassword:null})},t.onChangeServerURL=function(e){var r=e.target.value;t.setState({serverURL:r,dirtyServer:!0,errorServer:null})},t.resendVerification=function(e){(0,t.props.userActions.resendVerEmail)()};var r=e.user;return t.userData=r.userData,t.state.firstName=t.userData.firstName,t.state.lastName=t.userData.lastName,t.state.email=t.userData.email,t.userData.emailNew?(t.state.emailNew=t.userData.emailNew,t.state.successEmailState=!0):t.state.emailNew=t.userData.email,t.state.serverURL=utils_initialize__WEBPACK_IMPORTED_MODULE_15__.b.serverURL,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(UserProfile,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(UserProfile,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=e.user;switch(this.lastChange){case CHG_DATA:this.setState({successData:"Data was successfully changed!"}),setTimeout(function(){return t.setState({successData:""})},2500);break;case CHG_EMAIL:var n=null;switch(r.error){case ducks_user__WEBPACK_IMPORTED_MODULE_14__.c:n="The user with this email also exists!";break;case ducks_user__WEBPACK_IMPORTED_MODULE_14__.a:n="Unknown error!"}n?this.setState({emailNew:this.userData.emailNew?this.userData.emailNew:this.userData.email,errorEmail:n}):this.setState({successEmailState:!0});break;case CHG_PASSWORD:this.setState({successPassword:"Password was successfully changed!"}),setTimeout(function(){return t.setState({successPassword:""})},2500)}}},{key:"validateData",value:function(){return!0}},{key:"validateEmail",value:function(){return!!Object(utils_common__WEBPACK_IMPORTED_MODULE_16__.b)(this.state.emailNew)||(this.setState({errorEmail:"Invalid email!"}),!1)}},{key:"validatePassword",value:function(){var e=this;return this.state.password!=this.state.passwordConfirm?(this.setState({errorPassword:"Passwords don't match!"}),Promise.reject()):Object(utils_data__WEBPACK_IMPORTED_MODULE_17__.l)(this.state.passwordOld).catch(function(t){return e.setState({errorPassword:"Wrong old password!"}),Promise.reject()})}},{key:"validateServer",value:function(){return!!Object(utils_common__WEBPACK_IMPORTED_MODULE_16__.c)(this.state.serverURL)||(this.setState({errorServer:"Invalid URL!"}),!1)}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{className:"mainArea"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_helmet__WEBPACK_IMPORTED_MODULE_9__.Helmet,null,react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("title",null,"User profile - Chisel")),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ContainerComponent_ContainerComponent__WEBPACK_IMPORTED_MODULE_13__.a,{title:"User profile"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"content"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveData},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Your personal data"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"First name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.firstName,onChange:this.onChangeFirstName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Last name"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.lastName,onChange:this.onChangeLastName}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyData||this.state.errorData,value:"Update personal data"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successData),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorData)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveEmail},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Your email"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Email"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.emailNew,onChange:this.onChangeEmail}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyEmail||this.state.errorEmail,value:"Change email"})),this.state.successEmailState&&react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",null,"Your email was changed. We've sent to your new email a link to confirm it. You can use your old email ",react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("b",null,this.state.email)," before confirmation."),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success-resend",onClick:this.resendVerification},"Resend confirmation email")),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorEmail)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSavePassword},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Changing password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Enter old password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.passwordOld,onChange:this.onChangePasswordOld}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Enter new password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.password,onChange:this.onChangePassword}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Confirm new password"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",inputType:"password",value:this.state.passwordConfirm,onChange:this.onChangePasswordConfirm}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyPassword||this.state.errorPassword,value:"Set new password"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successPassword),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorPassword)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("form",{styleName:"section",onSubmit:this.onSaveServer},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section-header"},"Parse server data"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"Server URL"),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"input-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:this.state.serverURL,onChange:this.onChangeServerURL}))),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"buttons-wrapper"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_12__.a,{color:"green",type:"submit",disabled:!this.state.dirtyServer||this.state.errorServer,value:"Update server data"})),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-success"},this.state.successServer),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-error"},this.state.errorServer)),react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"section"},react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement("div",{styleName:"field-title"},"User session token: ",this.userData.origin.id)))))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),UserProfile}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);function mapStateToProps(e){return{user:e.user}}function mapDispatchToProps(e){return{userActions:Object(redux__WEBPACK_IMPORTED_MODULE_7__.b)({update:ducks_user__WEBPACK_IMPORTED_MODULE_14__.q,updateEmail:ducks_user__WEBPACK_IMPORTED_MODULE_14__.r,updatePassword:ducks_user__WEBPACK_IMPORTED_MODULE_14__.s,resendVerEmail:ducks_user__WEBPACK_IMPORTED_MODULE_14__.n},e)}}var _default=Object(react_redux__WEBPACK_IMPORTED_MODULE_8__.b)(mapStateToProps,mapDispatchToProps)(UserProfile);__webpack_exports__.a=_default,function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(CHG_DATA,"CHG_DATA","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_EMAIL,"CHG_EMAIL","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_PASSWORD,"CHG_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(CHG_SERVER,"CHG_SERVER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(UserProfile,"UserProfile","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(mapStateToProps,"mapStateToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(mapDispatchToProps,"mapDispatchToProps","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),e.register(_default,"default","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/containers/MainArea/UserProfile/UserProfile.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){var core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(106),core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_regexp_replace__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_redux__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(28),react_css_modules__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(10),react_css_modules__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_8__),react_helmet__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(34),react_helmet__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_helmet__WEBPACK_IMPORTED_MODULE_9__),react_router__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(16),components_elements_ButtonControl_ButtonControl__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(23),ducks_nav__WEBPACK_IMPORTED_MODULE_12__=__webpack_require__(7),_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13__=__webpack_require__(835),_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13___default=__webpack_require__.n(_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var EmailVerify=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_8___default()(_EmailVerify_sss__WEBPACK_IMPORTED_MODULE_13___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function EmailVerify(){var e,t;_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,EmailVerify);for(var r=arguments.length,n=new Array(r),_=0;_"']/g,y=RegExp(D.source),w=/^(?:0|[1-9]\d*)$/,T="object"==typeof e&&e&&e.Object===Object&&e,A="object"==typeof self&&self&&self.Object===Object&&self,I=T||A||Function("return this")();t&&!t.nodeType&&t&&"object"==typeof n&&n&&n.nodeType;function k(e,t){return e.push.apply(e,t),e}function R(e){return function(t){return null==t?a:t[e]}}var L=function(e){return function(t){return null==e?a:e[t]}}({"&":"&","<":"<",">":">",'"':""","'":"'"});var B=Array.prototype,U=Object.prototype,S=U.hasOwnProperty,K=0,W=U.toString,x=I._,j=Object.create,N=U.propertyIsEnumerable,q=I.isFinite,F=function(e,t){return function(r){return e(t(r))}}(Object.keys,Object),V=Math.max;function H(e){return e instanceof G?e:new G(e)}var z=function(){function e(){}return function(t){if(!Ne(t))return{};if(j)return j(t);e.prototype=t;var r=new e;return e.prototype=a,r}}();function G(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t}function Y(e,t,r){var n=e[t];S.call(e,t)&&Ue(n,r)&&(r!==a||t in e)||J(e,t,r)}function J(e,t,r){e[t]=r}function X(e,t,r){if("function"!=typeof e)throw new TypeError(i);return setTimeout(function(){e.apply(a,r)},t)}G.prototype=z(H.prototype),G.prototype.constructor=G;var Q=function(e,t){return function(r,n){if(null==r)return r;if(!We(r))return e(r,n);for(var _=r.length,a=t?_:-1,i=Object(r);(t?a--:++a<_)&&!1!==n(i[a],a,i););return r}}(re);function $(e,t,r){for(var n=-1,_=e.length;++n<_;){var i=e[n],o=t(i);if(null!=o&&(s===a?o==o:r(o,s)))var s=o,l=i}return l}function Z(e,t){var r=[];return Q(e,function(e,n,_){t(e,n,_)&&r.push(e)}),r}function ee(e,t,r,n,_){var a=-1,i=e.length;for(r||(r=be),_||(_=[]);++a0&&r(o)?t>1?ee(o,t-1,r,n,_):k(_,o):n||(_[_.length]=o)}return _}var te=function(e){return function(t,r,n){for(var _=-1,a=Object(t),i=n(t),o=i.length;o--;){var s=i[e?o:++_];if(!1===r(a[s],s,a))break}return t}}();function re(e,t){return e&&te(e,t,$e)}function ne(e,t){return Z(t,function(t){return je(e[t])})}function _e(e){return function(e){return W.call(e)}(e)}function ae(e,t){return e>t}var ie=at;function oe(e,t,r,n,_){return e===t||(null==e||null==t||!qe(e)&&!qe(t)?e!=e&&t!=t:function(e,t,r,n,_,i){var l=Ke(e),u=Ke(t),c=l?f:_e(e),p=u?f:_e(t),g=(c=c==d?O:c)==O,b=(p=p==d?O:p)==O,M=c==p;i||(i=[]);var D=Te(i,function(t){return t[0]==e}),y=Te(i,function(e){return e[0]==t});if(D&&y)return D[1]==t;if(i.push([e,t]),i.push([t,e]),M&&!g){var w=l?function(e,t,r,n,_,i){var l=r&o,u=e.length,c=t.length;if(u!=c&&!(l&&c>u))return!1;var d=-1,f=!0,p=r&s?[]:a;for(;++d_?0:_+t),(r=r>_?_:r)<0&&(r+=_),_=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(_);++n<_;)a[n]=e[n+t];return a}function pe(e){return fe(e,0,e.length)}function he(e,t){var r;return Q(e,function(e,n,_){return!(r=t(e,n,_))}),!!r}function Ee(e,t,r,n){var _=!r;r||(r={});for(var i=-1,o=t.length;++i1?r[_-1]:a;for(i=e.length>3&&"function"==typeof i?(_--,i):a,t=Object(t);++n<_;){var o=r[n];o&&e(t,o,n,i)}return t})}function ge(e,t,r,n){if("function"!=typeof e)throw new TypeError(i);var _=t&l,a=function(e){return function(){var t=arguments,r=z(e.prototype),n=e.apply(r,t);return Ne(n)?n:r}}(e);return function t(){for(var i=-1,o=arguments.length,s=-1,l=n.length,u=Array(l+o),c=this&&this!==I&&this instanceof t?a:e;++s-1&&e%1==0&&e-1?_[i?t[o]:o]:a}}(function(e,t,r){var n=null==e?0:e.length;if(!n)return-1;var _=null==r?0:ze(r);return _<0&&(_=V(n+_,0)),function(e,t,r,n){for(var _=e.length,a=r+(n?1:-1);n?a--:++a<_;)if(t(e[a],a,e))return a;return-1}(e,se(t),_)});function Ae(e,t){return Q(e,se(t))}function Ie(e,t,r){return function(e,t,r,n,_){return _(e,function(e,_,a){r=n?(n=!1,e):t(r,e,_,a)}),r}(e,se(t),r,arguments.length<3,Q)}function ke(e,t){var r;if("function"!=typeof t)throw new TypeError(i);return e=ze(e),function(){return--e>0&&(r=t.apply(this,arguments)),e<=1&&(t=a),r}}var Re=de(function(e,t,r){return ge(e,32|l,t,r)}),Le=de(function(e,t){return X(e,1,t)}),Be=de(function(e,t,r){return X(e,Ge(t)||0,r)});function Ue(e,t){return e===t||e!=e&&t!=t}var Se=ie(function(){return arguments}())?ie:function(e){return qe(e)&&S.call(e,"callee")&&!N.call(e,"callee")},Ke=Array.isArray;function We(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}(e.length)&&!je(e)}var xe=function(e){return qe(e)&&_e(e)==E};function je(e){if(!Ne(e))return!1;var t=_e(e);return t==g||t==b||t==p||t==M}function Ne(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function qe(e){return null!=e&&"object"==typeof e}function Fe(e){return"number"==typeof e||qe(e)&&_e(e)==v}var Ve=function(e){return qe(e)&&_e(e)==C};function He(e){return"string"==typeof e||!Ke(e)&&qe(e)&&_e(e)==P}var ze=Number,Ge=Number;function Ye(e){return"string"==typeof e?e:null==e?"":e+""}var Je=me(function(e,t){Ee(t,F(t),e)}),Xe=me(function(e,t){Ee(t,Oe(t),e)});var Qe=de(function(e,t){e=Object(e);var r=-1,n=t.length,_=n>2?t[2]:a;for(_&&ve(t[0],t[1],_)&&(n=1);++rt||n&&i&&s||!r&&s||!_)return 1;if(!n&&e0&&void 0!==arguments[0]?arguments[0]:0;if(!t.props.readOnly){var r=t.state.values?t.state.values:[""],n=r.slice(0,e+1),_=r.slice(e+1);r=n.concat("",_),t.setState({values:r},function(){return t.inputs[e+1].focus()}),t.props.onChange(r)}},t.onMinus=function(e){if(!t.props.readOnly){var r=t.state.values.slice();r.splice(e,1),t.setState({values:r}),t.props.onChange(r)}},t.onChange=function(e,r){var n=t.state.values.slice();n[r]=e,t.setState({values:n}),t.props.onChange(n)},e.values&&(t.state.values=e.values),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_8___default()(DynamicListComponent,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_5___default()(DynamicListComponent,[{key:"componentWillReceiveProps",value:function(e){var t=e.values;t||(t=[]),this.setState({values:t})}},{key:"isFocused",value:function(){var e=!0,t=!1,r=void 0;try{for(var n,_=this.inputs[Symbol.iterator]();!(e=(n=_.next()).done);e=!0){if(n.value===document.activeElement)return!0}}catch(e){t=!0,r=e}finally{try{e||null==_.return||_.return()}finally{if(t)throw r}}return!1}},{key:"render",value:function(){var e=this,t=this.props,r=t.disableEmpty,n=t.readOnly,_=t.numeric,a=t.numericInt,i=r?[""]:[];if(this.state.values.length&&(i=this.state.values),this.inputs=[],i.length){for(var o=[],s=function(t){var s=void 0;s=_?react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputNumberControl_InputNumberControl__WEBPACK_IMPORTED_MODULE_12__.a,{type:"big",isInt:a,value:i[t],readOnly:n,onChange:function(r){return e.onChange(r,t)},DOMRef:function(r){return e.inputs[t]=r},onKeyDown:function(r){return e.onKeyDown(r,t)}}):react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_11__.a,{type:"big",value:i[t],readOnly:n,DOMRef:function(r){return e.inputs[t]=r},onChange:function(r){return e.onChange(r.target.value,t)},onKeyDown:function(r){return e.onKeyDown(r,t)}}),o.push(react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"item",key:t},s,!n&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"item-plus",onClick:function(){return e.onPlus(t)}},"+"),!n&&(t>0||!r)&&react__WEBPACK_IMPORTED_MODULE_9___default.a.createElement("div",{styleName:"item-minus",onClick:function(){return e.onMinus(t)}},"–")))},l=0;l> Error, via react-flip-move <<\n\nYou provided a stateless functional component as a child to . Unfortunately, SFCs aren't supported, because Flip Move needs access to the backing instances via refs, and SFCs don't have a public instance that holds that info.\n\nPlease wrap your components in a native element (eg.
), or a non-functional component.\n"),o("\n>> Error, via react-flip-move <<\n\nYou provided a primitive (text or number) node as a child to . Flip Move needs containers with unique keys to move children around.\n\nPlease wrap your value in a native element (eg. ), or a component.\n");var s=o("\n>> Warning, via react-flip-move <<\n\nWhen using \"wrapperless\" mode (by supplying 'typeName' of 'null'), strange things happen when the direct parent has the default \"static\" position.\n\nFlipMove has added 'position: relative' to this node, to ensure Flip Move animates correctly.\n\nTo avoid seeing this warning, simply apply a non-static position to that parent node.\n"),l=o("\n>> Warning, via react-flip-move <<\n\nOne or more of Flip Move's child elements have the html attribute 'disabled' set to true.\n\nPlease note that this will cause animations to break in Internet Explorer 11 and below. Either remove the disabled attribute or set 'animation' to false.\n"),u={elevator:{from:{transform:"scale(0)",opacity:"0"},to:{transform:"",opacity:""}},fade:{from:{opacity:"0"},to:{opacity:""}},accordionVertical:{from:{transform:"scaleY(0)",transformOrigin:"center top"},to:{transform:"",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(0)",transformOrigin:"left center"},to:{transform:"",transformOrigin:"left center"}},none:null},c={elevator:{from:{transform:"scale(1)",opacity:"1"},to:{transform:"scale(0)",opacity:"0"}},fade:{from:{opacity:"1"},to:{opacity:"0"}},accordionVertical:{from:{transform:"scaleY(1)",transformOrigin:"center top"},to:{transform:"scaleY(0)",transformOrigin:"center top"}},accordionHorizontal:{from:{transform:"scaleX(1)",transformOrigin:"left center"},to:{transform:"scaleX(0)",transformOrigin:"left center"}},none:null},d=u,f="elevator",p="none",h=function(e,t){for(var r=0;r1&&void 0!==arguments[1]?arguments[1]:[],r={};return Object.keys(e).forEach(function(n){-1===t.indexOf(n)&&(r[n]=e[n])}),r}(this.props,r);return n.style=O({position:"relative"},n.style),t.delegated=n,t},r.prototype.convertTimingProp=function(e){var t=this.props[e],n="number"==typeof t?t:parseInt(t,10);return isNaN(n)?r.defaultProps[e]:n},r.prototype.convertAnimationProp=function(e,t){switch(void 0===e?"undefined":b(e)){case"boolean":return t[e?f:p];case"string":return-1===Object.keys(t).indexOf(e)?t[f]:t[e];default:return e}},r.prototype.render=function(){return _.a.createElement(e,this.convertProps(this.props))},r}(n.Component),t.defaultProps={easing:"ease-in-out",duration:350,delay:0,staggerDurationBy:0,staggerDelayBy:0,typeName:"div",enterAnimation:f,leaveAnimation:f,disableAllAnimations:!1,getPosition:function(e){return e.getBoundingClientRect()},maintainContainerHeight:!1,verticalAlignment:"top"},r}(function(e){function t(){var r,n;v(this,t);for(var _=arguments.length,a=Array(_),o=0;o<_;o++)a[o]=arguments[o];return r=n=C(this,e.call.apply(e,[this].concat(a))),n.state={children:A(n.props?n.props.children:[]).map(function(e){return O({},e,{element:e,appearing:!0})})},n.childrenData={},n.parentData={domNode:null,boundingBox:null},n.heightPlaceholderData={domNode:null},n.remainingAnimations=0,n.childrenToAnimate=[],n.findDOMContainer=function(){var e=i.a.findDOMNode(n),t=e&&e.parentNode;t&&t instanceof HTMLElement&&("static"===window.getComputedStyle(t).position&&(t.style.position="relative",s()),n.parentData.domNode=t)},n.runAnimation=function(){var e=n.state.children.filter(n.doesChildNeedToBeAnimated),t=e.map(function(e){return n.computeInitialStyles(e)});e.forEach(function(e,r){n.remainingAnimations+=1,n.childrenToAnimate.push(T(e)),n.animateChild(e,r,t[r])}),"function"==typeof n.props.onStartAll&&n.callChildrenHook(n.props.onStartAll)},n.doesChildNeedToBeAnimated=function(e){if(!T(e))return!1;var t=n.getChildData(T(e)),r=t.domNode,_=t.boundingBox,a=n.parentData.boundingBox;if(!r)return!1;var i=n.props,o=i.appearAnimation,s=i.enterAnimation,l=i.leaveAnimation,u=i.getPosition,c=e.appearing&&o,d=e.entering&&s,f=e.leaving&&l;if(c||d||f)return!0;var p=D({childDomNode:r,childBoundingBox:_,parentBoundingBox:a,getPosition:u}),h=p[0],E=p[1];return 0!==h||0!==E},C(n,r)}return M(t,e),t.prototype.componentDidMount=function(){null===this.props.typeName&&this.findDOMContainer(),this.props.appearAnimation&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.componentWillReceiveProps=function(e){this.updateBoundingBoxCaches();var t=A(e.children);this.setState({children:this.isAnimationDisabled(e)?t.map(function(e){return O({},e,{element:e})}):this.calculateNextSetOfChildren(t)})},t.prototype.componentDidUpdate=function(e){null===this.props.typeName&&this.findDOMContainer(),!function(e,t){if(e===t)return!0;var r=!m(e)||!m(t),n=e.length!==t.length;return!r&&!n&&E(function(e,r){return e===t[r]},e)}(A(this.props.children).map(function(e){return e.key}),A(e.children).map(function(e){return e.key}))&&!this.isAnimationDisabled(this.props)&&(this.prepForAnimation(),this.runAnimation())},t.prototype.calculateNextSetOfChildren=function(e){var t=this,r=e.map(function(e){var r=t.findChildByKey(e.key),n=!r||r.leaving;return O({},e,{element:e,entering:n})}),n=0;return this.state.children.forEach(function(_,a){if(!h(function(e){return e.key===T(_)},e)&&t.props.leaveAnimation){var i=O({},_,{leaving:!0}),o=a+n;r.splice(o,0,i),n+=1}}),r},t.prototype.prepForAnimation=function(){var e=this,t=this.props,r=t.leaveAnimation,n=t.maintainContainerHeight,_=t.getPosition;r&&(this.state.children.filter(function(e){return e.leaving}).forEach(function(t){var r=e.getChildData(T(t));!e.isAnimationDisabled(e.props)&&r.domNode&&r.domNode.disabled&&l(),r.boundingBox&&function(e,t){var r=e.domNode,n=e.boundingBox;if(r&&n){var _=window.getComputedStyle(r),a=["margin-top","margin-left","margin-right"].reduce(function(e,t){var r,n=_.getPropertyValue(t);return O({},e,((r={})[t]=Number(n.replace("px","")),r))},{});P({domNode:r,styles:{position:"absolute",top:("bottom"===t?n.top-n.height:n.top)-a["margin-top"]+"px",left:n.left-a["margin-left"]+"px",right:n.right-a["margin-right"]+"px"}})}}(r,e.props.verticalAlignment)}),n&&this.heightPlaceholderData.domNode&&function(e){var t=e.domNode,r=e.parentData,n=e.getPosition,_=r.domNode,a=r.boundingBox;if(_&&a){P({domNode:t,styles:{height:"0"}});var i=a.height-n(_).height;P({domNode:t,styles:{height:i>0?i+"px":"0"}})}}({domNode:this.heightPlaceholderData.domNode,parentData:this.parentData,getPosition:_}));this.state.children.forEach(function(t){var r=e.getChildData(T(t)).domNode;r&&(t.entering||t.leaving||P({domNode:r,styles:{transition:""}}))})},t.prototype.animateChild=function(e,t,r){var n=this,_=this.getChildData(T(e)).domNode;_&&(P({domNode:_,styles:r}),this.props.onStart&&this.props.onStart(e,_),requestAnimationFrame(function(){requestAnimationFrame(function(){var r={transition:function(e,t){var r=t.delay,n=t.duration,_=t.staggerDurationBy,a=t.staggerDelayBy,i=t.easing;r+=e*a,n+=e*_;return["transform","opacity"].map(function(e){return e+" "+n+"ms "+i+" "+r+"ms"}).join(", ")}(t,n.props),transform:"",opacity:""};e.appearing&&n.props.appearAnimation?r=O({},r,n.props.appearAnimation.to):e.entering&&n.props.enterAnimation?r=O({},r,n.props.enterAnimation.to):e.leaving&&n.props.leaveAnimation&&(r=O({},r,n.props.leaveAnimation.to)),P({domNode:_,styles:r})})}),this.bindTransitionEndHandler(e))},t.prototype.bindTransitionEndHandler=function(e){var t=this,r=this.getChildData(T(e)).domNode;if(r){r.addEventListener(y,function n(_){_.target===r&&(r.style.transition="",t.triggerFinishHooks(e,r),r.removeEventListener(y,n),e.leaving&&t.removeChildData(T(e)))})}},t.prototype.triggerFinishHooks=function(e,t){var r=this;if(this.props.onFinish&&this.props.onFinish(e,t),this.remainingAnimations-=1,0===this.remainingAnimations){var n=this.state.children.filter(function(e){return!e.leaving}).map(function(e){return O({},e,{element:e.element,appearing:!1,entering:!1})});this.setState({children:n},function(){"function"==typeof r.props.onFinishAll&&r.callChildrenHook(r.props.onFinishAll),r.childrenToAnimate=[]}),this.heightPlaceholderData.domNode&&(this.heightPlaceholderData.domNode.style.height="0")}},t.prototype.callChildrenHook=function(e){var t=this,r=[],n=[];this.childrenToAnimate.forEach(function(e){var _=t.findChildByKey(e);_&&(r.push(_),t.hasChildData(e)&&n.push(t.getChildData(e).domNode))}),e(r,n)},t.prototype.updateBoundingBoxCaches=function(){var e=this,t=this.parentData.domNode;if(t){this.parentData.boundingBox=this.props.getPosition(t);var r=[];this.state.children.forEach(function(n){var _=T(n);if(_)if(e.hasChildData(_)){var a=e.getChildData(_);a.domNode&&n?r.push(function(e){var t=e.childDomNode,r=e.parentDomNode,n=e.getPosition,_=n(r),a=n(t),i=a.top,o=a.left,s=a.right,l=a.bottom,u=a.width,c=a.height;return{top:i-_.top,left:o-_.left,right:_.right-s,bottom:_.bottom-l,width:u,height:c}}({childDomNode:a.domNode,parentDomNode:t,getPosition:e.props.getPosition})):r.push(null)}else r.push(null);else r.push(null)}),this.state.children.forEach(function(t,n){var _=T(t),a=r[n];_&&e.setChildData(_,{boundingBox:a})})}},t.prototype.computeInitialStyles=function(e){if(e.appearing)return this.props.appearAnimation?this.props.appearAnimation.from:{};if(e.entering)return this.props.enterAnimation?O({position:"",top:"",left:"",right:"",bottom:""},this.props.enterAnimation.from):{};if(e.leaving)return this.props.leaveAnimation?this.props.leaveAnimation.from:{};var t=this.getChildData(T(e)),r=t.domNode,n=t.boundingBox,_=this.parentData.boundingBox;if(!r)return{};var a=D({childDomNode:r,childBoundingBox:n,parentBoundingBox:_,getPosition:this.props.getPosition});return{transform:"translate("+a[0]+"px, "+a[1]+"px)"}},t.prototype.isAnimationDisabled=function(e){return w||e.disableAllAnimations||0===e.duration&&0===e.delay&&0===e.staggerDurationBy&&0===e.staggerDelayBy},t.prototype.findChildByKey=function(e){return h(function(t){return T(t)===e},this.state.children)},t.prototype.hasChildData=function(e){return Object.prototype.hasOwnProperty.call(this.childrenData,e)},t.prototype.getChildData=function(e){return this.hasChildData(e)?this.childrenData[e]:{}},t.prototype.setChildData=function(e,t){this.childrenData[e]=O({},this.getChildData(e),t)},t.prototype.removeChildData=function(e){delete this.childrenData[e],this.setState(function(t){return O({},t,{children:t.children.filter(function(t){return t.element.key!==e})})})},t.prototype.createHeightPlaceholder=function(){var e=this,t=this.props.typeName,r="ul"===t||"ol"===t?"li":"div";return Object(n.createElement)(r,{key:"height-placeholder",ref:function(t){e.heightPlaceholderData.domNode=t},style:{visibility:"hidden",height:0}})},t.prototype.childrenWithRefs=function(){var e=this;return this.state.children.map(function(t){return Object(n.cloneElement)(t.element,{ref:function(r){if(r){var n=function(e){if("undefined"==typeof HTMLElement)return null;if(e instanceof HTMLElement)return e;var t=Object(a.findDOMNode)(e);return t&&t.nodeType===Node.TEXT_NODE?null:t}(r);e.setChildData(T(t),{domNode:n})}}})})},t.prototype.render=function(){var e=this,t=this.props,r=t.typeName,_=t.delegated,a=t.leaveAnimation,i=t.maintainContainerHeight,o=this.childrenWithRefs();if(a&&i&&o.push(this.createHeightPlaceholder()),!r)return o;var s=O({},_,{children:o,ref:function(t){e.parentData.domNode=t}});return Object(n.createElement)(r,s)},t}(n.Component));t.a=I},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return SwitchControl});var _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4__),react__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_5__),react_css_modules__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(9),react_css_modules__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_6__),lodash_core__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(113),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(769),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var SwitchControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function SwitchControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,SwitchControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(SwitchControl).call(this,e))).state={checked:!1},t.id="0",t.onChange=function(e){var r=t.props,n=r.onChange,_=r.disabled;n&&!_&&n(e.target.checked)},t.state.checked=e.checked,t.id=lodash_core__WEBPACK_IMPORTED_MODULE_7___default.a.uniqueId("switch_"),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(SwitchControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(SwitchControl,[{key:"componentWillReceiveProps",value:function(e){this.setState({checked:e.checked})}},{key:"render",value:function(){var e=this.props,t=e.label,r=e.disabled,n="SwitchControl";return void 0===this.state.checked&&(n+=" undefined"),r&&(n+=" disabled"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:n},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{type:"checkbox",styleName:"checkbox",id:this.id,disabled:r,checked:!!this.state.checked,onChange:this.onChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"label",htmlFor:this.id},t))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),SwitchControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(SwitchControl,"SwitchControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/SwitchControl/SwitchControl.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return EditableTitleControl});var core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(136),core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_object_assign__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_css_modules__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(9),react_css_modules__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_7__),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(828),_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MIN_TEXT="WWWW",EditableTitleControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_7___default()(_EditableTitleControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function EditableTitleControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,EditableTitleControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(EditableTitleControl).call(this,e))).state={text:"",editing:!1,width:0},t.input=null,t.testTextElm=null,t.minTextWidth=0,t.editable=!1,t.startText=void 0,t.onEditClick=function(){t.editable&&!t.state.editing&&t.setState({editing:!0},function(){return t.input.focus()})},t.onChange=function(e){t.setText(e.target.value)},t.onBlur=function(){t.editable&&!t.props.alertShowing&&(!t.props.required||t.state.text?(t.setState({editing:!1}),t.props.update(t.state.text,function(e){return t.setText(e)},!0)):t.props.required&&t.setText(t.startText))},t.onKeyDown=function(e){e.stopPropagation(),!t.props.alertShowing&&t.editable&&(13==e.keyCode?t.props.required&&!t.state.text||(t.setState({editing:!1}),t.props.update(t.state.text)):27==e.keyCode&&(t.setState({editing:!1}),t.setText(t.startText)))},t.startText=e.text,t.editable=!e.disabled&&!!e.update,t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(EditableTitleControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(EditableTitleControl,[{key:"setText",value:function(e){var t=e=e||"";t||(t=this.props.placeholder),t||(t=MIN_TEXT),this.testTextElm.innerText=t;var r=this.testTextElm.clientWidth+15;r0?_(n(e),9007199254740991):0}},function(e,t){e.exports=!1},function(e,t,r){"use strict";var n=r(54);e.exports=function(e,t){return!!e&&n(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t){e.exports={}},function(e,t,r){var n=r(63).f,_=r(94),a=r(36)("toStringTag");e.exports=function(e,t,r){e&&!_(e=r?e:e.prototype,a)&&n(e,a,{configurable:!0,value:t})}},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){if(null===t||"object"!==(0,_.default)(t))return t;if(Array.isArray(t)){var r=[];return t.forEach(function(t,n){r[n]=e(t)}),r}if("string"==typeof t.__op)return(0,l.opFromJSON)(t);if("Pointer"===t.__type&&t.className)return s.default.fromJSON(t);if("Object"===t.__type&&t.className)return s.default.fromJSON(t);if("Relation"===t.__type){var n=new u.default(null,null);return n.targetClassName=t.className,n}if("Date"===t.__type)return new Date(t.iso);if("File"===t.__type)return a.default.fromJSON(t);if("GeoPoint"===t.__type)return new i.default({latitude:t.latitude,longitude:t.longitude});if("Polygon"===t.__type)return new o.default(t.coordinates);var c={};for(var d in t)c[d]=e(t[d]);return c};var _=n(r(41)),a=(n(r(131)),n(r(97))),i=n(r(133)),o=n(r(206)),s=n(r(46)),l=r(107),u=n(r(88))},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(290)),l=n(r(165)),u=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"permissionsById",void 0),this.permissionsById={},t&&"object"===(0,_.default)(t))if(t instanceof l.default)this.setReadAccess(t,!0),this.setWriteAccess(t,!0);else for(var r in t){var n=t[r];if("string"!=typeof r)throw new TypeError("Tried to create an ACL with an invalid user id.");for(var i in this.permissionsById[r]={},n){var s=n[i];if("read"!==i&&"write"!==i)throw new TypeError("Tried to create an ACL with an invalid permission type.");if("boolean"!=typeof s)throw new TypeError("Tried to create an ACL with an invalid permission value.");this.permissionsById[r][i]=s}}else if("function"==typeof t)throw new TypeError("ParseACL constructed with a function. Did you forget ()?")}return(0,i.default)(e,[{key:"toJSON",value:function(){var e={};for(var t in this.permissionsById)e[t]=this.permissionsById[t];return e}},{key:"equals",value:function(t){if(!(t instanceof e))return!1;var r=Object.keys(this.permissionsById),n=Object.keys(t.permissionsById);if(r.length!==n.length)return!1;for(var _ in this.permissionsById){if(!t.permissionsById[_])return!1;if(this.permissionsById[_].read!==t.permissionsById[_].read)return!1;if(this.permissionsById[_].write!==t.permissionsById[_].write)return!1}return!0}},{key:"_setAccess",value:function(e,t,r){if(t instanceof l.default)t=t.id;else if(t instanceof s.default){var n=t.getName();if(!n)throw new TypeError("Role must have a name");t="role:"+n}if("string"!=typeof t)throw new TypeError("userId must be a string.");if("boolean"!=typeof r)throw new TypeError("allowed must be either true or false.");var _=this.permissionsById[t];if(!_){if(!r)return;_={},this.permissionsById[t]=_}r?this.permissionsById[t][e]=!0:(delete _[e],0===Object.keys(_).length&&delete this.permissionsById[t])}},{key:"_getAccess",value:function(e,t){if(t instanceof l.default){if(!(t=t.id))throw new Error("Cannot get access for a ParseUser without an ID")}else if(t instanceof s.default){var r=t.getName();if(!r)throw new TypeError("Role must have a name");t="role:"+r}var n=this.permissionsById[t];return!!n&&!!n[e]}},{key:"setReadAccess",value:function(e,t){this._setAccess("read",e,t)}},{key:"getReadAccess",value:function(e){return this._getAccess("read",e)}},{key:"setWriteAccess",value:function(e,t){this._setAccess("write",e,t)}},{key:"getWriteAccess",value:function(e){return this._getAccess("write",e)}},{key:"setPublicReadAccess",value:function(e){this.setReadAccess("*",e)}},{key:"getPublicReadAccess",value:function(){return this.getReadAccess("*")}},{key:"setPublicWriteAccess",value:function(e){this.setWriteAccess("*",e)}},{key:"getPublicWriteAccess",value:function(){return this.getWriteAccess("*")}},{key:"getRoleReadAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getReadAccess("role:"+e)}},{key:"getRoleWriteAccess",value:function(e){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");return this.getWriteAccess("role:"+e)}},{key:"setRoleReadAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setReadAccess("role:"+e,t)}},{key:"setRoleWriteAccess",value:function(e,t){if(e instanceof s.default&&(e=e.getName()),"string"!=typeof e)throw new TypeError("role must be a ParseRole or a String");this.setWriteAccess("role:"+e,t)}}]),e}();t.default=u},function(e,t){var r,n,_=e.exports={};function a(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(e){r=a}try{n="function"==typeof clearTimeout?clearTimeout:i}catch(e){n=i}}();var s,l=[],u=!1,c=-1;function d(){u&&s&&(u=!1,s.length?l=s.concat(l):c=-1,l.length&&f())}function f(){if(!u){var e=o(d);u=!0;for(var t=l.length;t;){for(s=l,l=[];++c1)for(var r=1;r90)throw new TypeError("GeoPoint latitude out of bounds: "+e+" > 90.0.");if(t<-180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" < -180.0.");if(t>180)throw new TypeError("GeoPoint longitude out of bounds: "+t+" > 180.0.")}},{key:"current",value:function(){return navigator.geolocation.getCurrentPosition(function(t){return new e(t.coords.latitude,t.coords.longitude)})}}]),e}();t.default=s},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(59)),s=n(r(47)),l=n(r(108)),u=r(207),c=n(r(87)),d=n(r(133)),f=n(r(46));function p(e){return"\\Q"+e.replace("\\E","\\E\\\\E\\Q")+"\\E"}function h(e){var t=null;return e.forEach(function(e){if(t||(t=e.className),t!==e.className)throw new Error("All queries must be for the same class.")}),t}function E(e,t){var r={};(t.forEach(function(t){var n=-1!==t.indexOf(".");if(n||e.hasOwnProperty(t)){if(n){var _=t.split("."),a=e,i=r;_.forEach(function(e,t,r){a&&!a.hasOwnProperty(e)&&(a[e]=void 0),void 0!==a&&(a=a[e]),t0)&&function e(t,r,n,_){if(_)for(var a in t)t.hasOwnProperty(a)&&!r.hasOwnProperty(a)&&(r[a]=t[a]);for(var i in n)void 0!==r[i]&&null!==r[i]&&void 0!==t&&null!==t&&e(t[i],r[i],n[i],!0)}(s.default.getObjectStateController().getServerData({id:e.objectId,className:e.className}),e,r,!1)}var m=function(){function e(t){if((0,a.default)(this,e),(0,o.default)(this,"className",void 0),(0,o.default)(this,"_where",void 0),(0,o.default)(this,"_include",void 0),(0,o.default)(this,"_select",void 0),(0,o.default)(this,"_limit",void 0),(0,o.default)(this,"_skip",void 0),(0,o.default)(this,"_order",void 0),(0,o.default)(this,"_extraOptions",void 0),"string"==typeof t)"User"===t&&s.default.get("PERFORM_USER_REWRITE")?this.className="_User":this.className=t;else if(t instanceof f.default)this.className=t.className;else{if("function"!=typeof t)throw new TypeError("A ParseQuery must be constructed with a ParseObject or class name.");if("string"==typeof t.className)this.className=t.className;else{var r=new t;this.className=r.className}}this._where={},this._include=[],this._limit=-1,this._skip=0,this._extraOptions={}}return(0,i.default)(e,[{key:"_orQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$or=t,this}},{key:"_andQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$and=t,this}},{key:"_norQuery",value:function(e){var t=e.map(function(e){return e.toJSON().where});return this._where.$nor=t,this}},{key:"_addCondition",value:function(e,t,r){return this._where[e]&&"string"!=typeof this._where[e]||(this._where[e]={}),this._where[e][t]=(0,l.default)(r,!1,!0),this}},{key:"_regexStartWith",value:function(e){return"^"+p(e)}},{key:"toJSON",value:function(){var e={where:this._where};for(var t in this._include.length&&(e.include=this._include.join(",")),this._select&&(e.keys=this._select.join(",")),this._limit>=0&&(e.limit=this._limit),this._skip>0&&(e.skip=this._skip),this._order&&(e.order=this._order.join(",")),this._extraOptions)e[t]=this._extraOptions[t];return e}},{key:"withJSON",value:function(e){for(var t in e.where&&(this._where=e.where),e.include&&(this._include=e.include.split(",")),e.keys&&(this._select=e.keys.split(",")),e.limit&&(this._limit=e.limit),e.skip&&(this._skip=e.skip),e.order&&(this._order=e.order.split(",")),e)e.hasOwnProperty(t)&&-1===["where","include","keys","limit","skip","order"].indexOf(t)&&(this._extraOptions[t]=e[t]);return this}},{key:"get",value:function(e,t){this.equalTo("objectId",e);var r={};return t&&t.hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t&&t.hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken),this.first(r).then(function(e){if(e)return e;var t=new c.default(c.default.OBJECT_NOT_FOUND,"Object not found.");return Promise.reject(t)})}},{key:"find",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this._select;return n.find(this.className,this.toJSON(),r).then(function(e){return e.results.map(function(r){var n=e.className||t.className;return r.className||(r.className=n),_&&E(r,_),f.default.fromJSON(r,!_)})})}},{key:"count",value:function(e){var t={};(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(t.sessionToken=e.sessionToken);var r=s.default.getQueryController(),n=this.toJSON();return n.limit=0,n.count=1,r.find(this.className,n,t).then(function(e){return e.count})}},{key:"distinct",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController(),_={distinct:e,where:this._where};return n.aggregate(this.className,_,r).then(function(e){return e.results})}},{key:"aggregate",value:function(e,t){var r={useMasterKey:!0};(t=t||{}).hasOwnProperty("sessionToken")&&(r.sessionToken=t.sessionToken);var n=s.default.getQueryController();if(!Array.isArray(e)&&"object"!==(0,_.default)(e))throw new Error("Invalid pipeline must be Array or Object");return n.aggregate(this.className,{pipeline:e},r).then(function(e){return e.results})}},{key:"first",value:function(e){var t=this,r={};(e=e||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=e.useMasterKey),e.hasOwnProperty("sessionToken")&&(r.sessionToken=e.sessionToken);var n=s.default.getQueryController(),_=this.toJSON();_.limit=1;var a=this._select;return n.find(this.className,_,r).then(function(e){var r=e.results;if(r[0])return r[0].className||(r[0].className=t.className),a&&E(r[0],a),f.default.fromJSON(r[0],!a)})}},{key:"each",value:function(t,r){if(r=r||{},this._order||this._skip||this._limit>=0)return Promise.reject("Cannot iterate on a query with sort, skip, or limit.");var n=new e(this.className);for(var a in n._limit=r.batchSize||100,n._include=this._include.map(function(e){return e}),this._select&&(n._select=this._select.map(function(e){return e})),n._where={},this._where){var i=this._where[a];if(Array.isArray(i))n._where[a]=i.map(function(e){return e});else if(i&&"object"===(0,_.default)(i)){var o={};for(var s in n._where[a]=o,i)o[s]=i[s]}else n._where[a]=i}n.ascending("objectId");var l={};r.hasOwnProperty("useMasterKey")&&(l.useMasterKey=r.useMasterKey),r.hasOwnProperty("sessionToken")&&(l.sessionToken=r.sessionToken);var c=!1;return(0,u.continueWhile)(function(){return!c},function(){return n.find(l).then(function(e){var r=Promise.resolve();return e.forEach(function(e){r=r.then(function(){return t(e)})}),r.then(function(){e.length>=n._limit?n.greaterThan("objectId",e[e.length-1].id):c=!0})})})}},{key:"equalTo",value:function(e,t){return void 0===t?this.doesNotExist(e):(this._where[e]=(0,l.default)(t,!1,!0),this)}},{key:"notEqualTo",value:function(e,t){return this._addCondition(e,"$ne",t)}},{key:"lessThan",value:function(e,t){return this._addCondition(e,"$lt",t)}},{key:"greaterThan",value:function(e,t){return this._addCondition(e,"$gt",t)}},{key:"lessThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$lte",t)}},{key:"greaterThanOrEqualTo",value:function(e,t){return this._addCondition(e,"$gte",t)}},{key:"containedIn",value:function(e,t){return this._addCondition(e,"$in",t)}},{key:"notContainedIn",value:function(e,t){return this._addCondition(e,"$nin",t)}},{key:"containedBy",value:function(e,t){return this._addCondition(e,"$containedBy",t)}},{key:"containsAll",value:function(e,t){return this._addCondition(e,"$all",t)}},{key:"containsAllStartingWith",value:function(e,t){var r=this;return Array.isArray(t)||(t=[t]),t=t.map(function(e){return{$regex:r._regexStartWith(e)}}),this.containsAll(e,t)}},{key:"exists",value:function(e){return this._addCondition(e,"$exists",!0)}},{key:"doesNotExist",value:function(e){return this._addCondition(e,"$exists",!1)}},{key:"matches",value:function(e,t,r){return this._addCondition(e,"$regex",t),r||(r=""),t.ignoreCase&&(r+="i"),t.multiline&&(r+="m"),r.length&&this._addCondition(e,"$options",r),this}},{key:"matchesQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$inQuery",r)}},{key:"doesNotMatchQuery",value:function(e,t){var r=t.toJSON();return r.className=t.className,this._addCondition(e,"$notInQuery",r)}},{key:"matchesKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$select",{key:t,query:n})}},{key:"doesNotMatchKeyInQuery",value:function(e,t,r){var n=r.toJSON();return n.className=r.className,this._addCondition(e,"$dontSelect",{key:t,query:n})}},{key:"contains",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t))}},{key:"fullText",value:function(e,t,r){if(r=r||{},!e)throw new Error("A key is required.");if(!t)throw new Error("A search term is required");if("string"!=typeof t)throw new Error("The value being searched for must be a string.");var n={$term:t};for(var _ in r)switch(_){case"language":n.$language=r[_];break;case"caseSensitive":n.$caseSensitive=r[_];break;case"diacriticSensitive":n.$diacriticSensitive=r[_];break;default:throw new Error("Unknown option: ".concat(_))}return this._addCondition(e,"$text",{$search:n})}},{key:"sortByTextScore",value:function(){return this.ascending("$score"),this.select(["$score"]),this}},{key:"startsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",this._regexStartWith(t))}},{key:"endsWith",value:function(e,t){if("string"!=typeof t)throw new Error("The value being searched for must be a string.");return this._addCondition(e,"$regex",p(t)+"$")}},{key:"near",value:function(e,t){return t instanceof d.default||(t=new d.default(t)),this._addCondition(e,"$nearSphere",t)}},{key:"withinRadians",value:function(e,t,r,n){return n||void 0===n?(this.near(e,t),this._addCondition(e,"$maxDistance",r)):this._addCondition(e,"$geoWithin",{$centerSphere:[[t.longitude,t.latitude],r]})}},{key:"withinMiles",value:function(e,t,r,n){return this.withinRadians(e,t,r/3958.8,n)}},{key:"withinKilometers",value:function(e,t,r,n){return this.withinRadians(e,t,r/6371,n)}},{key:"withinGeoBox",value:function(e,t,r){return t instanceof d.default||(t=new d.default(t)),r instanceof d.default||(r=new d.default(r)),this._addCondition(e,"$within",{$box:[t,r]}),this}},{key:"withinPolygon",value:function(e,t){return this._addCondition(e,"$geoWithin",{$polygon:t})}},{key:"polygonContains",value:function(e,t){return this._addCondition(e,"$geoIntersects",{$point:t})}},{key:"ascending",value:function(){this._order=[];for(var e=arguments.length,t=new Array(e),r=0;ra;)i(r[a++]);e._c=[],e._n=!1,t&&!e._h&&B(e)})}},B=function(e){m.call(s,function(){var t,r,n,_=e._v,a=U(e);if(a&&(t=v(function(){T?P.emit("unhandledRejection",_,e):(r=s.onunhandledrejection)?r({promise:e,reason:_}):(n=s.console)&&n.error&&n.error("Unhandled promise rejection",_)}),e._h=T||U(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},U=function(e){return 1!==e._h&&0===(e._a||e._c).length},S=function(e){m.call(s,function(){var t;T?P.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},K=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),L(t,!0))},W=function(e){var t,r=this;if(!r._d){r._d=!0,r=r._w||r;try{if(r===e)throw C("Promise can't be resolved itself");(t=R(e))?g(function(){var n={_w:r,_d:!1};try{t.call(e,l(W,n,1),l(K,n,1))}catch(e){K.call(n,e)}}):(r._v=e,r._s=1,L(r,!1))}catch(e){K.call({_w:r,_d:!1},e)}}};k||(w=function(e){p(this,w,"Promise","_h"),f(e),n.call(this);try{e(l(W,this,1),l(K,this,1))}catch(e){K.call(this,e)}},(n=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=r(197)(w.prototype,{then:function(e,t){var r=I(E(this,w));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=T?P.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&L(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new n;this.promise=e,this.resolve=l(W,e,1),this.reject=l(K,e,1)},b.f=I=function(e){return e===w||e===i?new a(e):_(e)}),c(c.G+c.W+c.F*!k,{Promise:w}),r(129)(w,"Promise"),r(200)("Promise"),i=r(93).Promise,c(c.S+c.F*!k,"Promise",{reject:function(e){var t=I(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(o||!k),"Promise",{resolve:function(e){return M(o&&this===i?w:this,e)}}),c(c.S+c.F*!(k&&r(203)(function(e){w.all(e).catch(A)})),"Promise",{all:function(e){var t=this,r=I(t),n=r.resolve,_=r.reject,a=v(function(){var r=[],a=0,i=1;h(e,!1,function(e){var o=a++,s=!1;r.push(void 0),i++,t.resolve(e).then(function(e){s||(s=!0,r[o]=e,--i||n(r))},_)}),--i||n(r)});return a.e&&_(a.v),r.promise},race:function(e){var t=this,r=I(t),n=r.reject,_=v(function(){h(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return _.e&&n(_.v),r.promise}})},function(e,t,r){var n=r(44);n(n.S+n.F,"Object",{assign:r(603)})},function(e,t,r){"use strict";var n=r(31).OrderedMap,_={createFromArray:function(e){return n(e.map(function(e){return[e.getKey(),e]}))}};e.exports=_},function(e,t,r){"use strict";e.exports=function(e,t,r,n){if(e.size){var _=0;e.reduce(function(e,a,i){return t(e,a)||(r(e)&&n(_,i),_=i),a}),r(e.last())&&n(_,e.count())}}},function(e,t,r){"use strict";e.exports=function(e){return"handled"===e||!0===e}},function(e,t,r){"use strict";var n=r(56);e.exports=function(e,t,r){var _=e.getSelection(),a=e.getCurrentContent(),i=_;if(_.isCollapsed()){if("forward"===r){if(e.isSelectionAtEndOfContent())return a}else if(e.isSelectionAtStartOfContent())return a;if((i=t(e))===_)return a}return n.removeRange(a,i,r)}},function(e,t,r){e.exports=r.p+"assets/images/chisel-logo.png"},function(e,t,r){"use strict";t.__esModule=!0;t.PUSH="PUSH",t.REPLACE="REPLACE",t.POP="POP"},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return LAYOUT_SPLIT}),__webpack_require__.d(__webpack_exports__,"b",function(){return MarkdownEditor});var core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(135),core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_promise__WEBPACK_IMPORTED_MODULE_0__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5),_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3__),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(4),_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4__),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(6),_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default=__webpack_require__.n(_babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5__),react__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(0),react__WEBPACK_IMPORTED_MODULE_6___default=__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_6__),react_mde__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(234),react_mde__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_mde__WEBPACK_IMPORTED_MODULE_7__),showdown__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(353),showdown__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(showdown__WEBPACK_IMPORTED_MODULE_8__),react_css_modules__WEBPACK_IMPORTED_MODULE_9__=__webpack_require__(9),react_css_modules__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(react_css_modules__WEBPACK_IMPORTED_MODULE_9__),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(792),_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default=__webpack_require__.n(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10__),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__=__webpack_require__(794),react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11___default=__webpack_require__.n(react_mde_lib_styles_css_react_mde_all_css__WEBPACK_IMPORTED_MODULE_11__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var LAYOUT_TABS="tabbed",LAYOUT_SPLIT="horizontal",MarkdownEditor=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_9___default()(_MarkdownEditor_sss__WEBPACK_IMPORTED_MODULE_10___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function MarkdownEditor(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_1___default()(this,MarkdownEditor),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_3___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_4___default()(MarkdownEditor).call(this,e))).state={mdeState:{markdown:""}},t.onChange=void 0,t.layout=LAYOUT_TABS,t.converter=null,t.onChangeMde=function(e){var r=t.state.mdeState.markdown;t.setState({mdeState:e}),e.markdown!=r&&t.onChange(e.markdown)},t.genPreview=function(e){return Promise.resolve(t.converter.makeHtml(e))},t.state.mdeState.markdown=e.value,t.onChange=e.onChange,e.layout&&(t.layout=e.layout),t.converter=new showdown__WEBPACK_IMPORTED_MODULE_8__.Converter({tables:!0,simplifiedAutoLink:!0,simpleLineBreaks:!0,tasklists:!0,strikethrough:!0}),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_5___default()(MarkdownEditor,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_2___default()(MarkdownEditor,[{key:"componentWillReceiveProps",value:function(e){var t=this,r=this.state.mdeState;e.value!=r.markdown&&react_mde__WEBPACK_IMPORTED_MODULE_7__.DraftUtil.buildNewMdeState(r,this.genPreview,e.value).then(function(e){return t.setState({mdeState:e})})}},{key:"render",value:function(){return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(react_mde__WEBPACK_IMPORTED_MODULE_7___default.a,{className:this.props.className,onChange:this.onChangeMde,editorState:this.state.mdeState,generateMarkdownPreview:this.genPreview,layout:this.layout})}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MarkdownEditor}(react__WEBPACK_IMPORTED_MODULE_6__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(LAYOUT_TABS,"LAYOUT_TABS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(LAYOUT_SPLIT,"LAYOUT_SPLIT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),e.register(MarkdownEditor,"MarkdownEditor","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/MarkdownEditor/MarkdownEditor.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){var n=r(723),_=r(724),a=r(725);e.exports=function(e,t){return n(e)||_(e,t)||a()}},function(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return MediaItemData});var core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(30),core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es6_function_name__WEBPACK_IMPORTED_MODULE_0__),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(43),core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(core_js_modules_es6_array_index_of__WEBPACK_IMPORTED_MODULE_1__),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(2),_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default=__webpack_require__.n(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2__),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(3),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default=__webpack_require__.n(_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3__),parse__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(14),parse__WEBPACK_IMPORTED_MODULE_4___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_4__);!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var MEDIA_TYPE__IMAGE="MEDIA_TYPE__IMAGE",keys=[],MediaItemData=function(){function MediaItemData(){for(_babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_2___default()(this,MediaItemData),this.origin=null,this.name="",this.type=MEDIA_TYPE__IMAGE,this.file=null,this.assigned=!1,this.key=0,this.site=null;-1!=keys.indexOf(this.key);)this.key++;keys.push(this.key)}return _babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,null,[{key:"OriginClass",get:function(){return parse__WEBPACK_IMPORTED_MODULE_4__.Parse.Object.extend("MediaItem")}}]),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_3___default()(MediaItemData,[{key:"setOrigin",value:function(e){return this.origin=e,e.get("name")&&(this.name=e.get("name")),e.get("type")&&(this.type=e.get("type")),e.get("file")&&(this.file=e.get("file")),e.get("assigned")&&(this.assigned=e.get("assigned")),this}},{key:"updateOrigin",value:function(){this.origin||(this.origin=new MediaItemData.OriginClass),this.origin.set("name",this.name),this.origin.set("type",this.type),this.origin.set("file",this.file),this.origin.set("assigned",this.assigned),this.origin.set("site",this.site.origin)}},{key:"clone",value:function(){var e=new MediaItemData;return e.file=this.file,e.name=this.name,e.type=this.type,e.site=this.site,e.assigned=this.assigned,e}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),MediaItemData}();!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(MEDIA_TYPE__IMAGE,"MEDIA_TYPE__IMAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(keys,"keys","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),e.register(MediaItemData,"MediaItemData","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/models/MediaItemData.js"),t(module))}()}).call(this,__webpack_require__(12)(module))},function(e,t,r){"use strict";var n=Object.assign||function(e){for(var t=1;t=0||Object.prototype.hasOwnProperty.call(e,n)&&(r[n]=e[n]);return r}(this.props,[]);return delete p.md5,delete p.email,delete p.protocol,delete p.rating,delete p.size,delete p.style,delete p.className,delete p.default,!d&&(0,s.default)()?a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:c,height:this.props.size,width:this.props.size},p,{className:f})):a.default.createElement("img",n({alt:"Gravatar for "+_,style:this.props.style,src:u,srcSet:c+" 2x",height:this.props.size,width:this.props.size},p,{className:f}))}}]),t}();c.displayName="Gravatar",c.propTypes={email:l.default.string,md5:l.default.string,size:l.default.number,rating:l.default.string,default:l.default.string,className:l.default.string,protocol:l.default.string,style:l.default.object},c.defaultProps={size:50,rating:"g",default:"retro",protocol:"//"},e.exports=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.arrayMove=t.sortableHandle=t.sortableElement=t.sortableContainer=t.SortableHandle=t.SortableElement=t.SortableContainer=void 0;var n=r(171);Object.defineProperty(t,"arrayMove",{enumerable:!0,get:function(){return n.arrayMove}});var _=o(r(740)),a=o(r(742)),i=o(r(743));function o(e){return e&&e.__esModule?e:{default:e}}t.SortableContainer=_.default,t.SortableElement=a.default,t.SortableHandle=i.default,t.sortableContainer=_.default,t.sortableElement=a.default,t.sortableHandle=i.default},function(e,t,r){"use strict";t.__esModule=!0;t.addEventListener=function(e,t,r){return e.addEventListener?e.addEventListener(t,r,!1):e.attachEvent("on"+t,r)},t.removeEventListener=function(e,t,r){return e.removeEventListener?e.removeEventListener(t,r,!1):e.detachEvent("on"+t,r)},t.supportsHistory=function(){var e=window.navigator.userAgent;return(-1===e.indexOf("Android 2.")&&-1===e.indexOf("Android 4.0")||-1===e.indexOf("Mobile Safari")||-1!==e.indexOf("Chrome")||-1!==e.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},t.supportsGoWithoutReloadUsingHash=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},t.supportsPopstateOnHashchange=function(){return-1===window.navigator.userAgent.indexOf("Trident")},t.isExtraneousPopstateEvent=function(e){return void 0===e.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(e,t){e.exports=function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}},function(e,t,r){var n=r(90),_=r(78),a="[object AsyncFunction]",i="[object Function]",o="[object GeneratorFunction]",s="[object Proxy]";e.exports=function(e){if(!_(e))return!1;var t=n(e);return t==i||t==o||t==a||t==s}},function(e,t,r){var n=r(77).Symbol;e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(438),_=r(439),a=r(440),i=r(441),o=r(442);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t0?n:r)(e)}},function(e,t){e.exports='icon-PopupCreated with Sketch.'},function(e,t,r){"use strict";var n=r(280),_=r(202);e.exports=r(285)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=n.getEntry(_(this,"Map"),e);return t&&t.v},set:function(e,t){return n.def(_(this,"Map"),0===e?0:e,t)}},n,!0)},function(e,t){t.f={}.propertyIsEnumerable},function(e,t){e.exports=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){var n=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,r):{};n.get||n.set?Object.defineProperty(t,r,n):t[r]=e[r]}return t.default=e,t}},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(41)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(69)),u=n(r(6)),c=n(r(47)),d=n(r(297)),f=n(r(87)),p=n(r(46)),h=n(r(298)),E=n(r(166)),m=!c.default.get("IS_NODE"),g=!1,b=null,v={},O=function(e){function t(e){var r;if((0,a.default)(this,t),r=(0,o.default)(this,(0,s.default)(t).call(this,"_User")),e&&"object"===(0,_.default)(e)&&!r.set(e||{}))throw new Error("Can't create an invalid Parse User");return r}return(0,u.default)(t,e),(0,i.default)(t,[{key:"_upgradeToRevocableSession",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),c.default.getUserController().upgradeToRevocableSession(this,t)}},{key:"_linkWith",value:function(e,t){var r,n=this;if("string"==typeof e?(r=e,e=v[e]):r=e.getAuthType(),t&&t.hasOwnProperty("authData")){var a=this.get("authData")||{};if("object"!==(0,_.default)(a))throw new Error("Invalid type: authData field should be an object");return a[r]=t.authData,c.default.getUserController().linkWith(this,a)}return new Promise(function(t,r){e.authenticate({success:function(e,_){var a={};a.authData=_,n._linkWith(e,a).then(function(){t(n)},function(e){r(e)})},error:function(e,t){r(t)}})})}},{key:"_synchronizeAuthData",value:function(e){if(this.isCurrent()&&e){var t;"string"==typeof e?e=v[t=e]:t=e.getAuthType();var r=this.get("authData");if(e&&r&&"object"===(0,_.default)(r))e.restoreAuthentication(r[t])||this._unlinkFrom(e)}}},{key:"_synchronizeAllAuthData",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._synchronizeAuthData(t)}},{key:"_cleanupAuthData",value:function(){if(this.isCurrent()){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)e[t]||delete e[t]}}},{key:"_unlinkFrom",value:function(e){var t=this;return"string"==typeof e&&(e=v[e]),this._linkWith(e,{authData:null}).then(function(){return t._synchronizeAuthData(e),Promise.resolve(t)})}},{key:"_isLinked",value:function(e){var t;t="string"==typeof e?e:e.getAuthType();var r=this.get("authData")||{};return"object"===(0,_.default)(r)&&!!r[t]}},{key:"_logOutWithAll",value:function(){var e=this.get("authData");if("object"===(0,_.default)(e))for(var t in e)this._logOutWith(t)}},{key:"_logOutWith",value:function(e){this.isCurrent()&&("string"==typeof e&&(e=v[e]),e&&e.deauthenticate&&e.deauthenticate())}},{key:"_preserveFieldsOnFetch",value:function(){return{sessionToken:this.get("sessionToken")}}},{key:"isCurrent",value:function(){var e=t.current();return!!e&&e.id===this.id}},{key:"getUsername",value:function(){var e=this.get("username");return null==e||"string"==typeof e?e:""}},{key:"setUsername",value:function(e){var t=this.get("authData");t&&"object"===(0,_.default)(t)&&t.hasOwnProperty("anonymous")&&(t.anonymous=null),this.set("username",e)}},{key:"setPassword",value:function(e){this.set("password",e)}},{key:"getEmail",value:function(){var e=this.get("email");return null==e||"string"==typeof e?e:""}},{key:"setEmail",value:function(e){return this.set("email",e)}},{key:"getSessionToken",value:function(){var e=this.get("sessionToken");return null==e||"string"==typeof e?e:""}},{key:"authenticated",value:function(){var e=t.current();return!!this.get("sessionToken")&&!!e&&e.id===this.id}},{key:"signUp",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().signUp(this,e,r)}},{key:"logIn",value:function(e){var t={};return(e=e||{}).hasOwnProperty("useMasterKey")&&(t.useMasterKey=e.useMasterKey),e.hasOwnProperty("installationId")&&(t.installationId=e.installationId),c.default.getUserController().logIn(this,t)}},{key:"requestEmailChange",value:function(e,t){var r={};return(t=t||{}).hasOwnProperty("useMasterKey")&&(r.useMasterKey=t.useMasterKey),t.hasOwnProperty("installationId")&&(r.installationId=t.installationId),c.default.getUserController().requestEmailChange(this,e,r)}},{key:"save",value:function(){for(var e=this,r=arguments.length,n=new Array(r),_=0;_=n.length)for(var _=r-n.length;1+_--;)n.push(void 0);return n.splice(r,0,n.splice(t,1)[0]),n},t.omit=function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;nt)return t;return r},t.getElementMargin=function(e){var t=window.getComputedStyle(e);return{top:_(t.marginTop),right:_(t.marginRight),bottom:_(t.marginBottom),left:_(t.marginLeft)}},t.provideDisplayName=function(e,t){var r=t.displayName||t.name;return r?e+"("+r+")":e},t.getPosition=function(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}},t.isTouchEvent=function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length},t.getEdgeOffset=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{top:0,left:0};if(t){var _={top:n.top+t.offsetTop,left:n.left+t.offsetLeft};return t.parentNode!==r?e(t.parentNode,r,_):_}},t.getLockPixelOffset=function(e){var t=e.lockOffset,r=e.width,_=e.height,a=t,i=t,o="px";if("string"==typeof t){var s=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);(0,n.default)(null!==s,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),a=i=parseFloat(t),o=s[1]}(0,n.default)(isFinite(a)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===o&&(a=a*r/100,i=i*_/100);return{x:a,y:i}};var n=function(e){return e&&e.__esModule?e:{default:e}}(r(26));t.events={start:["touchstart","mousedown"],move:["touchmove","mousemove"],end:["touchend","touchcancel","mouseup"]},t.vendorPrefix=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];switch(t){case"ms":return"ms";default:return t&&t.length?t[0].toUpperCase()+t.substr(1):""}}();function _(e){return"px"===e.substr(-2)?parseFloat(e):0}},function(e,t,r){"use strict";t.__esModule=!0;var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),_=t.stringifyQuery,u=t.parseQueryString;"function"!=typeof _&&(_=s),"function"!=typeof u&&(u=l);var c=function(e){return e?(null==e.query&&(e.query=u(e.search.substring(1))),e):e},d=function(e,t){if(null==t)return e;var r="string"==typeof e?(0,o.parsePath)(e):e,a=_(t);return n({},r,{search:a?"?"+a:""})};return n({},r,{getCurrentLocation:function(){return c(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,a.default)(e,c(t),r)})},listen:function(e){return r.listen(function(t){return e(c(t))})},push:function(e){return r.push(d(e,e.query))},replace:function(e){return r.replace(d(e,e.query))},createPath:function(e){return r.createPath(d(e,e.query))},createHref:function(e){return r.createHref(d(e,e.query))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},r=e(t),i=t.basename,o=function(e){return e?(i&&null==e.basename&&(0===e.pathname.toLowerCase().indexOf(i.toLowerCase())?(e.pathname=e.pathname.substring(i.length),e.basename=i,""===e.pathname&&(e.pathname="/")):e.basename=""),e):e},s=function(e){if(!i)return e;var t="string"==typeof e?(0,a.parsePath)(e):e,r=t.pathname,_="/"===i.slice(-1)?i:i+"/",o="/"===r.charAt(0)?r.slice(1):r;return n({},t,{pathname:_+o})};return n({},r,{getCurrentLocation:function(){return o(r.getCurrentLocation())},listenBefore:function(e){return r.listenBefore(function(t,r){return(0,_.default)(e,o(t),r)})},listen:function(e){return r.listen(function(t){return e(o(t))})},push:function(e){return r.push(s(e))},replace:function(e){return r.replace(s(e))},createPath:function(e){return r.createPath(s(e))},createHref:function(e){return r.createHref(s(e))},createLocation:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),_=1;_0&&void 0!==arguments[0]?arguments[0]:{},t=e.getCurrentLocation,r=e.getUserConfirmation,s=e.pushLocation,l=e.replaceLocation,u=e.go,c=e.keyLength,d=void 0,f=void 0,p=[],h=[],E=[],m=function(e){var t=f&&f.action===i.POP?E.indexOf(f.key):d?E.indexOf(d.key):-1;(d=e).action===i.PUSH?E=[].concat(E.slice(0,t+1),[d.key]):d.action===i.REPLACE&&(E[t]=d.key),h.forEach(function(e){return e(d)})},g=function(e){d&&(0,o.locationsAreEqual)(d,e)||f&&(0,o.locationsAreEqual)(f,e)||(f=e,function(e,t){(0,n.loopAsync)(p.length,function(t,r,n){(0,a.default)(p[t],e,function(e){return null!=e?n(e):r()})},function(e){r&&"string"==typeof e?r(e,function(e){return t(!1!==e)}):t(!1!==e)})}(e,function(t){if(f===e)if(f=null,t){if(e.action===i.PUSH){var r=(0,_.createPath)(d);(0,_.createPath)(e)===r&&(0,o.statesAreEqual)(d.state,e.state)&&(e.action=i.REPLACE)}e.action===i.POP?m(e):e.action===i.PUSH?!1!==s(e)&&m(e):e.action===i.REPLACE&&!1!==l(e)&&m(e)}else if(d&&e.action===i.POP){var n=E.indexOf(d.key),a=E.indexOf(e.key);-1!==n&&-1!==a&&u(n-a)}}))},b=function(){return Math.random().toString(36).substr(2,c||6)},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:b();return(0,o.createLocation)(e,t,r)};return{getCurrentLocation:t,listenBefore:function(e){return p.push(e),function(){return p=p.filter(function(t){return t!==e})}},listen:function(e){return h.push(e),function(){return h=h.filter(function(t){return t!==e})}},transitionTo:g,push:function(e){return g(v(e,i.PUSH))},replace:function(e){return g(v(e,i.REPLACE))},go:u,goBack:function(){return u(-1)},goForward:function(){return u(1)},createKey:b,createPath:_.createPath,createHref:function(e){return(0,_.createPath)(e)},createLocation:v}}},function(e,t,r){"use strict";t.__esModule=!0;t.canUseDOM=!("undefined"==typeof window||!window.document||!window.document.createElement)},function(e,t,r){"use strict";t.__esModule=!0,t.go=t.replaceLocation=t.pushLocation=t.startListener=t.getUserConfirmation=t.getCurrentLocation=void 0;var n=r(103),_=r(148),a=r(238),i=r(83),o=r(178).canUseDOM&&!(0,_.supportsPopstateOnHashchange)(),s=function(e){var t=e&&e.key;return(0,n.createLocation)({pathname:window.location.pathname,search:window.location.search,hash:window.location.hash,state:t?(0,a.readState)(t):void 0},void 0,t)},l=t.getCurrentLocation=function(){var e=void 0;try{e=window.history.state||{}}catch(t){e={}}return s(e)},u=(t.getUserConfirmation=function(e,t){return t(window.confirm(e))},t.startListener=function(e){var t=function(t){(0,_.isExtraneousPopstateEvent)(t)||e(s(t.state))};(0,_.addEventListener)(window,"popstate",t);var r=function(){return e(l())};return o&&(0,_.addEventListener)(window,"hashchange",r),function(){(0,_.removeEventListener)(window,"popstate",t),o&&(0,_.removeEventListener)(window,"hashchange",r)}},function(e,t){var r=e.state,n=e.key;void 0!==r&&(0,a.saveState)(n,r),t({key:n},(0,i.createPath)(e))});t.pushLocation=function(e){return u(e,function(e,t){return window.history.pushState(e,null,t)})},t.replaceLocation=function(e){return u(e,function(e,t){return window.history.replaceState(e,null,t)})},t.go=function(e){e&&window.history.go(e)}},function(e,t){function r(t,n){return e.exports=r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(t,n)}e.exports=r},function(e,t){e.exports=function(e){return e.webpackPolyfill||(e.deprecate=function(){},e.paths=[],e.children||(e.children=[]),Object.defineProperty(e,"loaded",{enumerable:!0,get:function(){return e.l}}),Object.defineProperty(e,"id",{enumerable:!0,get:function(){return e.i}}),e.webpackPolyfill=1),e}},function(e,t){var r=9007199254740991,n=/^(?:0|[1-9]\d*)$/;e.exports=function(e,t){var _=typeof e;return!!(t=null==t?r:t)&&("number"==_||"symbol"!=_&&n.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=r}},function(e,t,r){var n=r(92)(r(77),"Map");e.exports=n},function(e,t,r){var n=r(452),_=r(459),a=r(461),i=r(462),o=r(463);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++tO;O++)if((d||O in g)&&(E=b(h=g[O],O,m),e))if(r)M[O]=E;else if(E)switch(e){case 3:return!0;case 5:return h;case 6:return O;case 2:M.push(h)}else if(u)return!1;return c?-1:l||u?u:M}}},function(e,t,r){var n=r(104);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},function(e,t,r){var n=r(93),_=r(45),a=_["__core-js_shared__"]||(_["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:n.version,mode:r(126)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){"use strict";var n=r(126),_=r(44),a=r(71),i=r(84),o=r(128),s=r(555),l=r(129),u=r(558),c=r(36)("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};e.exports=function(e,t,r,p,h,E,m){s(r,t,p);var g,b,v,O=function(e){if(!d&&e in D)return D[e];switch(e){case"keys":case"values":return function(){return new r(this,e)}}return function(){return new r(this,e)}},M=t+" Iterator",C="values"==h,P=!1,D=e.prototype,y=D[c]||D["@@iterator"]||h&&D[h],w=y||O(h),T=h?C?O("entries"):w:void 0,A="Array"==t&&D.entries||y;if(A&&(v=u(A.call(new e)))!==Object.prototype&&v.next&&(l(v,M,!0),n||"function"==typeof v[c]||i(v,c,f)),C&&y&&"values"!==y.name&&(P=!0,w=function(){return y.call(this)}),n&&!m||!d&&!P&&D[c]||i(D,c,w),o[t]=w,o[M]=f,h)if(g={values:C?w:O("values"),keys:E?w:O("keys"),entries:T},m)for(b in g)b in D||a(D,b,g[b]);else _(_.P+_.F*(d||P),t,g);return g}},function(e,t,r){var n=r(67),_=r(556),a=r(196),i=r(195)("IE_PROTO"),o=function(){},s=function(){var e,t=r(188)("iframe"),n=a.length;for(t.style.display="none",r(279).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("