diff --git a/dist/main.js b/dist/main.js index 74783d78..418f5353 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=404)}([function(e,t,r){"use strict";e.exports=r(406)},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__(405)},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(O,"MODAL_TYPE_SITE","/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(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(K,"URL_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(S,"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(z,"closeModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(H,"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(13)(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__(71),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__(89),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__(43),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__(44),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__(36),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__(15),parse__WEBPACK_IMPORTED_MODULE_9___default=__webpack_require__.n(parse__WEBPACK_IMPORTED_MODULE_9__),utils_common__WEBPACK_IMPORTED_MODULE_10__=__webpack_require__(9);!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__.D)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.y)(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__.D)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.y)(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__.D)(e)}},{key:"nameId",get:function(){return this._nameId},set:function(e){this._nameId=Object(utils_common__WEBPACK_IMPORTED_MODULE_10__.y)(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__(13)(module))},function(e,t,r){"use strict";(function(e){r.d(t,"D",function(){return n}),r.d(t,"y",function(){return _}),r.d(t,"z",function(){return a}),r.d(t,"A",function(){return i}),r.d(t,"E",function(){return o}),r.d(t,"w",function(){return s}),r.d(t,"u",function(){return l}),r.d(t,"B",function(){return u}),r.d(t,"C",function(){return c}),r.d(t,"t",function(){return d}),r.d(t,"a",function(){return f}),r.d(t,"d",function(){return h}),r.d(t,"b",function(){return E}),r.d(t,"x",function(){return m}),r.d(t,"j",function(){return g}),r.d(t,"q",function(){return b}),r.d(t,"i",function(){return O}),r.d(t,"s",function(){return v}),r.d(t,"l",function(){return M}),r.d(t,"k",function(){return C}),r.d(t,"n",function(){return P}),r.d(t,"h",function(){return D}),r.d(t,"p",function(){return y}),r.d(t,"o",function(){return w}),r.d(t,"f",function(){return T}),r.d(t,"r",function(){return A}),r.d(t,"e",function(){return I}),r.d(t,"g",function(){return k}),r.d(t,"m",function(){return R}),r.d(t,"c",function(){return L}),r.d(t,"v",function(){return B});r(36),r(71),r(587),r(52),r(589),r(311),r(591),r(592),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)}();var f="Bytes",p="KB",h="MB",E=[f,p,h];function m(e,t,r){switch(r){case f:switch(t){case p:e*=1024;break;case h:e=1024*e*1024}break;case p:switch(t){case f:e=Math.floor(e/1024);break;case h:e*=1024}break;case h:switch(t){case f:e=Math.floor(e/1024/1024);break;case p:e=Math.floor(e/1024)}}return e}var g="Image",b="Text",O="HTML",v="XML",M="Markdown",C="JSON",P="PDF",D="Formatted text",y="Table",w="Presentation",T="Audio",A="Video",I="Archive",k="Windows program",R="Other",L=[g,b,O,v,M,C,P,D,y,w,T,A,I,k,R];function B(e){return"image/"==e.slice(0,6)?g:"text/html"==e?O:"text/xml"==e||"application/xml"==e?v:"text/markdown"==e?M:"application/json"==e?C:"text/"==e.slice(0,5)?b:"application/pdf"==e?P:"application/msword"==e||"application/vnd.openxmlformats-officedocument.wordprocessingml.document"==e||"application/vnd.oasis.opendocument.text"==e||"application/x-iwork-pages-sffpages"==e||"application/rtf"==e?D:"application/vnd.ms-excel"==e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"==e||"application/vnd.oasis.opendocument.spreadsheet"==e||"application/x-iwork-numbers-sffnumbers"==e?y:"application/vnd.ms-powerpoint"==e||"application/vnd.openxmlformats-officedocument.presentationml.presentation"==e||"application/vnd.oasis.opendocument.presentation"==e||"application/x-iwork-keynote-sffkey"==e?w:"audio/"==e.slice(0,6)?T:"video/"==e.slice(0,6)?A:"application/zip"==e||"application/gzip"==e||"application/x-7z-compressed"==e||"application/x-rar-compressed"==e||"application/x-tar"==e?I:"application/vnd.microsoft.portable-executable"==e||"application/octet-stream"==e||"application/exe"==e||"application/x-exe"==e?k:R}!function(){var t=r(1).default,U=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"),t.register(f,"BYTES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(p,"K_BYTES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(h,"M_BYTES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(E,"DATA_UNITS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(m,"convertDataUnits","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(g,"TYPE_IMAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(b,"TYPE_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(O,"TYPE_HTML","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(v,"TYPE_XML","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(M,"TYPE_MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(C,"TYPE_JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(P,"TYPE_PDF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(D,"TYPE_F_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(y,"TYPE_TABLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(w,"TYPE_PRESENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(T,"TYPE_AUDIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(A,"TYPE_VIDEO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(I,"TYPE_ARCHIVE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(k,"TYPE_EXE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(R,"TYPE_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(L,"FILE_TYPES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(B,"checkFileType","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),U(e))}()}).call(this,r(13)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(150)),_=o(r(423)),a=o(r(522)),i=o(r(534));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(60);e.exports=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return null;var n=Object(i.y)(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(O,"getSiteByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(v,"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(K,"checkPassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(S,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),n(e))}()}).call(this,r(13)(e))},function(e,t,r){"use strict";var n=r(26),_=r.n(n),a=r(0),i=r.n(a),o=r(39),s=r.n(o),l=r(12),u=r.n(l);r(83);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 O=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 v(){var e=new O,t=new O;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){K(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){S(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]),z=Object(l.oneOfType)([V,Object(l.arrayOf)(V)]);var H=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(173)),he=r.n(pe),Ee=r(174),me=r.n(Ee);r(350);Object.assign;Object.assign;var ge=r(351),be=r.n(ge),Oe=!("undefined"==typeof window||!window.document||!window.document.createElement);function ve(e){var t=void 0;return Oe&&(t=function(e){return function(t){return he()(me()(e))(t)}}(e)()),t}var Me=ve(be.a),Ce=r(352);ve(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(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__(10),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__(76),classnames__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__),_ButtonControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(766),_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__(13)(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__(601),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__(602),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__(15),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__(13)(module))},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"store",function(){return w});r(407),r(750),r(755),r(762);var n=r(0),_=r.n(n),a=r(53),i=r.n(a),o=r(27),s=r(18),l=r(113),u=r(353),c=r(367),d=r(73),f=r(7),p=r(373),h=r(374),E=r(375),m=r(381),g=r(383),b=r(385),O=r(387),v=r(390),M=r(392),C=r(401),P=r(402),D=r(237),y=r(403);!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:O.a,onEnter:function(){return A(f.m)}}),_.a.createElement(s.d,{path:"/userspace/:site/content",component:v.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(13)(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 v}),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 S});var n=r(11),_=r.n(n),a=r(22),i=r(15),o=r(21),s=r(73),l=r(14);!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",O="app/user/RESET_STATUS",v="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=v}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=v}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:O}}var K={localStorageReady:!1,authorized:!1,status:null,email:"",password:"",userData:null,pending:!1};function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K,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 O: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(O,"RESET_STATUS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(v,"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(K,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(S,"userReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),n(e))}()}).call(this,r(13)(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(231),_=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(346),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,O=_.shouldHandleStateChanges,v=void 0===O||O,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:v,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(){v&&(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(v){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 v=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 z(e,t){return e===t}var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?O:t,n=e.mapStateToPropsFactories,_=void 0===n?K: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?z: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"]),O=V(e,_,"mapStateToProps"),v=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:O,initMapDispatchToProps:v,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 H})},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 K}),r.d(t,"k",function(){return S}),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 z}),r.d(t,"w",function(){return H}),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(45);var n=r(11),_=r.n(n),a=(r(30),r(725),r(136),r(71),r(89),r(43),r(44),r(36),r(230),r(15)),i=r(22),o=r(21),s=r(8),l=r(9),u=r(17),c=r(23),d=r(14);!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",O="app/models/COLLABORATION_SELF_DELETE",v="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,O=n[Symbol.iterator]();!(E=(b=O.next()).done);E=!0){var v=b.value;if(v.origin.id==h.id){p.site=v,v.models.push(p),i.push(p);break}}}catch(e){m=!0,g=e}finally{try{E||null==O.return||O.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 K(e){if(!e)return{type:w,currentSite:null};var t=Object(u.x)(e);return{type:w,currentSite:e,role:t}}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.owner=i.store.getState().user.userData;var r=Object(l.y)(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,O=void 0;try{for(var v,M=h.fields[Symbol.iterator]();!(g=(v=M.next()).done);g=!0){var C=v.value.origin.clone(),P=(new s.B).setOrigin(C);P.model=m,m.fields.push(P)}}catch(e){b=!0,O=e}finally{try{g||null==M.return||M.return()}finally{if(b)throw O}}}}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:O,collab:e}}function z(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.A)(),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:v,model:r}}function H(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.A)(),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 O: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 v: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(O,"COLLABORATION_SELF_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(v,"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(K,"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(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(z,"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(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(13)(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(66).f,_=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in _||r(67)&&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:H(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,K="@@iterator",S=U||K;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[K]);if("function"==typeof t)return t}function z(e){return e&&"number"==typeof e.length}function H(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[S]=function(){return this},t(H,r),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return le(this,e,t,!0)},H.prototype.__iterator=function(e,t){return ue(this,e,t,!0)},t(G,H),G.prototype.toKeyedSeq=function(){return this},t(Y,H),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,H),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},H.isSeq=_e,H.Keyed=G,H.Set=J,H.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 z(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(Oe,be),t(ve,be),t(Me,be),be.Keyed=Oe,be.Indexed=ve,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=Ke[e];return void 0===t&&(t=ye(e),Ue===Be&&(Ue=0,Ke={}),Ue++,Ke[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 ze(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,O=u?p?l:l^s:l|s,v=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},ze.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=v(O);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):vt(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 Ot(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 vt(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=vt(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(O!==d>>>s&m)break;O&&(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 Kt(e){this._iter=e,this.size=e.size}function St(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 Se(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):H.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)},vr.prototype.pushAll=function(e){if(0===(e=_(e)).size)return this;Se(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)},vr.prototype.pop=function(){return this.slice(1)},vr.prototype.unshift=function(){return this.push.apply(this,arguments)},vr.prototype.unshiftAll=function(e){return this.pushAll(e)},vr.prototype.shift=function(){return this.pop.apply(this,arguments)},vr.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()},vr.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 ve.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)},vr.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)},vr.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},vr.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}})},vr.isStack=Mr;var Cr,Pr="@@__IMMUTABLE_STACK__@@",Dr=vr.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(){Se(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(){Se(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 Kt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return vr(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){Se(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 Se(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Se(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 Se(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,zt(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 St(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 Ht(this,e)},maxBy:function(e,t){return Ht(this,t,e)},min:function(e){return Ht(this,e?Br(e):Sr)},minBy:function(e,t){return Ht(this,t?Br(t):Sr,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,zt(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[S]=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 Kr(){return P(arguments)}function Sr(e,t){return et?-1:0}function Wr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Ir[d]=!0,Ir[S]=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(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return CheckboxControl});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__(114),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(774),_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var CheckboxControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function CheckboxControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,CheckboxControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(CheckboxControl).call(this,e))).id="0",t.onChange=function(e){var r=t.props,n=r.onChange,_=r.disabled;n&&!_&&n(e.target.checked)},t.id=lodash_core__WEBPACK_IMPORTED_MODULE_7___default.a.uniqueId("switch_"),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(CheckboxControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CheckboxControl,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.checked,n=e.disabled,_="CheckboxControl";return n&&(_+=" disabled"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:_},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"checkbox-button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"checkbox",type:"checkbox",id:this.id,name:"checkbox",disabled:n,checked:r,onChange:this.onChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"checkbox-label",htmlFor:this.id},t)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),CheckboxControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(CheckboxControl,"CheckboxControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/CheckboxControl/CheckboxControl.js"),t(module))}()}).call(this,__webpack_require__(13)(module))},function(e,t,r){for(var n=r(71),_=r(106),a=r(74),i=r(47),o=r(86),s=r(129),l=r(38),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;h0&&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(b,"PAGE_SHARING","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(g,"PAGE_PROFILE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(O,"MODAL_TYPE_SITE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(M,"MODAL_TYPE_FIELD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(v,"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(L,"URL_MODELS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(R,"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(K,"URL_API","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(S,"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(z,"closeModal","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/nav.js"),t.register(H,"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(13)(e))},function(e,t,r){"use strict";(function(e){r.d(t,"D",function(){return n}),r.d(t,"y",function(){return _}),r.d(t,"z",function(){return a}),r.d(t,"A",function(){return i}),r.d(t,"E",function(){return o}),r.d(t,"w",function(){return s}),r.d(t,"u",function(){return l}),r.d(t,"B",function(){return u}),r.d(t,"C",function(){return c}),r.d(t,"t",function(){return d}),r.d(t,"a",function(){return f}),r.d(t,"d",function(){return h}),r.d(t,"b",function(){return E}),r.d(t,"x",function(){return m}),r.d(t,"j",function(){return b}),r.d(t,"q",function(){return g}),r.d(t,"i",function(){return O}),r.d(t,"s",function(){return M}),r.d(t,"l",function(){return v}),r.d(t,"k",function(){return C}),r.d(t,"n",function(){return P}),r.d(t,"h",function(){return D}),r.d(t,"p",function(){return y}),r.d(t,"o",function(){return w}),r.d(t,"f",function(){return T}),r.d(t,"r",function(){return A}),r.d(t,"e",function(){return I}),r.d(t,"g",function(){return k}),r.d(t,"m",function(){return L}),r.d(t,"c",function(){return R}),r.d(t,"v",function(){return B});r(36),r(71),r(588),r(52),r(590),r(312),r(592),r(593),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)}();var f="Bytes",p="KB",h="MB",E=[f,p,h];function m(e,t,r){switch(r){case f:switch(t){case p:e*=1024;break;case h:e=1024*e*1024}break;case p:switch(t){case f:e=Math.floor(e/1024);break;case h:e*=1024}break;case h:switch(t){case f:e=Math.floor(e/1024/1024);break;case p:e=Math.floor(e/1024)}}return e}var b="Image",g="Text",O="HTML",M="XML",v="Markdown",C="JSON",P="PDF",D="Formatted text",y="Table",w="Presentation",T="Audio",A="Video",I="Archive",k="Windows program",L="Other",R=[b,g,O,M,v,C,P,D,y,w,T,A,I,k,L];function B(e){return"image/"==e.slice(0,6)?b:"text/html"==e?O:"text/xml"==e||"application/xml"==e?M:"text/markdown"==e?v:"application/json"==e?C:"text/"==e.slice(0,5)?g:"application/pdf"==e?P:"application/msword"==e||"application/vnd.openxmlformats-officedocument.wordprocessingml.document"==e||"application/vnd.oasis.opendocument.text"==e||"application/x-iwork-pages-sffpages"==e||"application/rtf"==e?D:"application/vnd.ms-excel"==e||"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"==e||"application/vnd.oasis.opendocument.spreadsheet"==e||"application/x-iwork-numbers-sffnumbers"==e?y:"application/vnd.ms-powerpoint"==e||"application/vnd.openxmlformats-officedocument.presentationml.presentation"==e||"application/vnd.oasis.opendocument.presentation"==e||"application/x-iwork-keynote-sffkey"==e?w:"audio/"==e.slice(0,6)?T:"video/"==e.slice(0,6)?A:"application/zip"==e||"application/gzip"==e||"application/x-7z-compressed"==e||"application/x-rar-compressed"==e||"application/x-tar"==e?I:"application/vnd.microsoft.portable-executable"==e||"application/octet-stream"==e||"application/exe"==e||"application/x-exe"==e?k:L}!function(){var t=r(1).default,U=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"),t.register(f,"BYTES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(p,"K_BYTES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(h,"M_BYTES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(E,"DATA_UNITS","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(m,"convertDataUnits","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(b,"TYPE_IMAGE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(g,"TYPE_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(O,"TYPE_HTML","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(M,"TYPE_XML","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(v,"TYPE_MARKDOWN","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(C,"TYPE_JSON","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(P,"TYPE_PDF","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(D,"TYPE_F_TEXT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(y,"TYPE_TABLE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(w,"TYPE_PRESENT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(T,"TYPE_AUDIO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(A,"TYPE_VIDEO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(I,"TYPE_ARCHIVE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(k,"TYPE_EXE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(L,"TYPE_OTHER","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(R,"FILE_TYPES","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),t.register(B,"checkFileType","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/common.js"),U(e))}()}).call(this,r(13)(e))},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=o(r(150)),_=o(r(424)),a=o(r(523)),i=o(r(535));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(60);e.exports=function(e){for(var t=1;t2&&void 0!==arguments[2]?arguments[2]:[];if(!e)return null;var n=Object(i.y)(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(b,"checkSiteDomain","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(g,"getSite","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(O,"getSiteByNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(M,"COLLAB_CORRECT","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(v,"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(L,"getContentByO","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(R,"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(K,"checkPassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),t.register(S,"getNameId","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/utils/data.js"),n(e))}()}).call(this,r(13)(e))},function(e,t,r){"use strict";var n=r(26),_=r.n(n),a=r(0),i=r.n(a),o=r(39),s=r.n(o),l=r(12),u=r.n(l);r(83);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 b(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 g(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 O=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 M(){var e=new O,t=new O;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=R({},t,{pathname:"/"+t.pathname})),n=t.pathname),b(e.length,function(r,i,o){K(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){S(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]),z=Object(l.oneOfType)([V,Object(l.arrayOf)(V)]);var H=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(173)),he=r.n(pe),Ee=r(174),me=r.n(Ee);r(351);Object.assign;Object.assign;var be=r(352),ge=r.n(be),Oe=!("undefined"==typeof window||!window.document||!window.document.createElement);function Me(e){var t=void 0;return Oe&&(t=function(e){return function(t){return he()(me()(e))(t)}}(e)()),t}var ve=Me(ge.a),Ce=r(353);Me(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 ve})},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(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__(6),_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__(7),_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__),classnames__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(76),classnames__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(classnames__WEBPACK_IMPORTED_MODULE_7__),_ButtonControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(769),_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__(13)(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__(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__(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__(15),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__(13)(module))},function(e,t,r){"use strict";r.r(t),function(e){r.d(t,"store",function(){return w});r(408),r(751),r(756),r(763);var n=r(0),_=r.n(n),a=r(53),i=r.n(a),o=r(27),s=r(18),l=r(113),u=r(354),c=r(368),d=r(73),f=r(8),p=r(374),h=r(375),E=r(376),m=r(382),b=r(384),g=r(386),O=r(388),M=r(391),v=r(393),C=r(402),P=r(403),D=r(238),y=r(404);!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:g.a,onEnter:function(){return A(f.l)}}),_.a.createElement(s.d,{path:"/userspace/:site/models/:model",component:O.a,onEnter:function(){return A(f.m)}}),_.a.createElement(s.d,{path:"/userspace/:site/content",component:M.a,onEnter:function(){return A(f.j)}}),_.a.createElement(s.d,{path:"/userspace/:site/content/:item",component:v.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:b.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(13)(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 M}),r.d(t,"d",function(){return v}),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 L}),r.d(t,"p",function(){return R}),r.d(t,"n",function(){return B}),r.d(t,"o",function(){return U}),r.d(t,"i",function(){return S});var n=r(11),_=r.n(n),a=r(22),i=r(15),o=r(21),s=r(73),l=r(14);!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",b="app/user/RESTORE_PASSWORD",g="app/user/RESEND_VERIF",O="app/user/RESET_STATUS",M="app/user/ERROR_USER_EXISTS",v="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=M}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=v;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=M}t({type:E,status:r})})}:null}function L(e){if(!e)return null;var t=i.Parse.User.current();return t.set("password",e),Object(l.a)(t.save()),{type:m}}function R(e){return e?function(t){Object(l.a)(i.Parse.User.requestPasswordReset(e)).then(function(e){return t({type:b,status:D,result:e})}).catch(function(e){return t({type:b,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:g,status:D})}).catch(function(e){return t({type:g,status:P})})}}function U(){return{type:O}}var K={localStorageReady:!1,authorized:!1,status:null,email:"",password:"",userData:null,pending:!1};function S(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K,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 b:return _()({},e,{status:t.status});case m:case g:return _()({},e);case O: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(b,"RESTORE_PASSWORD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(g,"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(v,"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(L,"updatePassword","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(R,"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(K,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),t.register(S,"userReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/user.js"),n(e))}()}).call(this,r(13)(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(232),_=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(347),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,O=_.shouldHandleStateChanges,M=void 0===O||O,v=_.storeKey,C=void 0===v?"store":v,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:M,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(){M&&(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=g,this.store=null,this.selector.run=g,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(M){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(b)):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 M=Object.prototype.hasOwnProperty;function v(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function C(e,t){if(v(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 z(e,t){return e===t}var H=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.connectHOC,r=void 0===t?O:t,n=e.mapStateToPropsFactories,_=void 0===n?K: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?z:c,f=a.areOwnPropsEqual,p=void 0===f?C:f,h=a.areStatePropsEqual,E=void 0===h?C:h,m=a.areMergedPropsEqual,b=void 0===m?C:m,g=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"]),O=V(e,_,"mapStateToProps"),M=V(t,i,"mapDispatchToProps"),v=V(n,s,"mergeProps");return r(u,F({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:O,initMapDispatchToProps:M,initMergeProps:v,pure:l,areStatesEqual:d,areOwnPropsEqual:p,areStatePropsEqual:E,areMergedPropsEqual:b},g))}}();r.d(t,"a",function(){return s}),r.d(t,"b",function(){return H})},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 K}),r.d(t,"k",function(){return S}),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 z}),r.d(t,"w",function(){return H}),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(45);var n=r(11),_=r.n(n),a=(r(30),r(726),r(136),r(71),r(89),r(43),r(44),r(36),r(231),r(15)),i=r(22),o=r(21),s=r(5),l=r(9),u=r(17),c=r(23),d=r(14);!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",b="app/models/COLLABORATION_UPDATE",g="app/models/COLLABORATION_DELETE",O="app/models/COLLABORATION_SELF_DELETE",M="app/models/MODEL_ADD",v="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 L(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 R(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,b=void 0;try{for(var g,O=n[Symbol.iterator]();!(E=(g=O.next()).done);E=!0){var M=g.value;if(M.origin.id==h.id){p.site=M,M.models.push(p),i.push(p);break}}}catch(e){m=!0,b=e}finally{try{E||null==O.return||O.return()}finally{if(m)throw b}}}}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 b=E.value;if(b.origin.id==d.id){c.template=b,b.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([L(n,_),R(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 K(e){if(!e)return{type:w,currentSite:null};var t=Object(u.x)(e);return{type:w,currentSite:e,role:t}}function S(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.owner=i.store.getState().user.userData;var r=Object(l.y)(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 b=!0,g=!1,O=void 0;try{for(var M,v=h.fields[Symbol.iterator]();!(b=(M=v.next()).done);b=!0){var C=M.value.origin.clone(),P=(new s.B).setOrigin(C);P.model=m,m.fields.push(P)}}catch(e){g=!0,O=e}finally{try{b||null==v.return||v.return()}finally{if(g)throw O}}}}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:b,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:g,collab:e}}function V(e){return F(e),{type:O,collab:e}}function z(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.A)(),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:M,model:r}}function H(e){return e.updateOrigin(),Object(d.a)(e.origin.save()),{type:v,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.A)(),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 g:return(n=(t=a.currentSite).collaborations).splice(n.indexOf(i.collab),1),_()({},a,{currentSite:t});case O: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 M: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 b:case v: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(b,"COLLABORATION_UPDATE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(g,"COLLABORATION_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(O,"COLLABORATION_SELF_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(M,"MODEL_ADD","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/models.js"),t.register(v,"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(L,"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(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(K,"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(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(z,"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(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(13)(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(66).f,_=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in _||r(67)&&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:H(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 L=0,R=1,B=2,U="function"==typeof Symbol&&Symbol.iterator,K="@@iterator",S=U||K;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[K]);if("function"==typeof t)return t}function z(e){return e&&"number"==typeof e.length}function H(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=L,W.VALUES=R,W.ENTRIES=B,W.prototype.inspect=W.prototype.toSource=function(){return this.toString()},W.prototype[S]=function(){return this},t(H,r),H.of=function(){return H(arguments)},H.prototype.toSeq=function(){return this},H.prototype.toString=function(){return this.__toString("Seq {","}")},H.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},H.prototype.__iterate=function(e,t){return le(this,e,t,!0)},H.prototype.__iterator=function(e,t){return ue(this,e,t,!0)},t(G,H),G.prototype.toKeyedSeq=function(){return this},t(Y,H),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,H),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},H.isSeq=_e,H.Keyed=G,H.Set=J,H.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 z(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,b)):!pe(e.get(n,b),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 be(e,t,r){if(!(this instanceof be))return new be(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:"")+" ]"},be.prototype.get=function(e,t){return this.has(e)?this._start+y(this,e)*this._step:t},be.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)})},be.prototype.equals=function(e){return e instanceof be?this._start===e._start&&this._end===e._end&&this._step===e._step:he(this,e)},t(ge,r),t(Oe,ge),t(Me,ge),t(ve,ge),ge.Keyed=Oe,ge.Indexed=Me,ge.Set=ve;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>Re?function(e){var t=Ke[e];return void 0===t&&(t=ye(e),Ue===Be&&(Ue=0,Ke={}),Ue++,Ke[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[Le]))return t;if(!Ae){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Le]))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,Le,{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[Le]=t;else{if(void 0===e.nodeType)throw new Error("Unable to set a non-enumerable property on object.");e[Le]=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 ze(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 g=e&&e===this.ownerID,O=u?p?l:l^s:l|s,M=u?p?st(d,c,p,g):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},ze.prototype.update=function(e,t,r,n,_,a,i){void 0===r&&(r=De(n));var o=(0===t?r:r>>>t)&m,s=_===b,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=M(O);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):Mt(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):vt()},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,bt,gt={};function Ot(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 gt;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!==gt)return e;o=null}if(l===u)return gt;var r=t?--u:l++;o=i(s&&s[r],_-h,a+(r<<_))}}}(e,o,s)}}function Mt(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 vt(){return mt||(mt=Mt(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:(v(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;b-=h){var g=c>>>b&m;E=E.array[g]=Pt(E.array[g],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(O!==d>>>s&m)break;O&&(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 Kt(e){this._iter=e,this.size=e.size}function St(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===R?L:R,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,b);return a===b?_: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,b);return _!==b&&!!t.call(r,_,n,e)},_.get=function(n,_){var a=e.get(n,b);return a!==b&&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===R?e:x(t,s-1,t===L?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||_===R?e:x(_,l++,_===L?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(R,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 Se(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):H.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)},Mr.prototype.pushAll=function(e){if(0===(e=_(e)).size)return this;Se(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)},Mr.prototype.pop=function(){return this.slice(1)},Mr.prototype.unshift=function(){return this.push.apply(this,arguments)},Mr.prototype.unshiftAll=function(e){return this.pushAll(e)},Mr.prototype.shift=function(){return this.pop.apply(this,arguments)},Mr.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()},Mr.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 Me.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)},Mr.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)},Mr.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},Mr.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}})},Mr.isStack=vr;var Cr,Pr="@@__IMMUTABLE_STACK__@@",Dr=Mr.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(){Se(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(){Se(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 Kt(this)},toSeq:function(){return s(this)?this.toIndexedSeq():o(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return Mr(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){Se(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 Se(this.size),this.__iterate(t?e.bind(t):e)},join:function(e){Se(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(L)},map:function(e,t){return Jt(this,xt(this,e,t))},reduce:function(e,t,r){var n,_;return Se(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(Rr(e),t)},sort:function(e){return Jt(this,zt(this,e))},values:function(){return this.__iterator(R)},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(Lr).toIndexedSeq();return t.fromEntrySeq=function(){return e.toSeq()},t},filterNot:function(e,t){return this.filter(Rr(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 St(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,b):b)===b)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,b)!==b},hasIn:function(e){return this.getIn(e,b)!==b},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 Ht(this,e)},maxBy:function(e,t){return Ht(this,t,e)},min:function(e){return Ht(this,e?Br(e):Sr)},minBy:function(e,t){return Ht(this,t?Br(t):Sr,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(Rr(e),t)},sortBy:function(e,t){return Jt(this,zt(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(Rr(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[S]=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 Lr(e,t){return[t,e]}function Rr(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 Kr(){return P(arguments)}function Sr(e,t){return et?-1:0}function Wr(e,t){return e^t+2654435769+(e<<6)+(e>>2)|0}return Ir[d]=!0,Ir[S]=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(module,__webpack_exports__,__webpack_require__){"use strict";(function(module){__webpack_require__.d(__webpack_exports__,"a",function(){return CheckboxControl});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__(6),_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__(7),_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__(114),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(777),_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8___default=__webpack_require__.n(_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8__),_dec,_class;!function(){var e=__webpack_require__(1).enterModule;e&&e(module)}();var CheckboxControl=(_dec=react_css_modules__WEBPACK_IMPORTED_MODULE_6___default()(_CheckboxControl_sss__WEBPACK_IMPORTED_MODULE_8___default.a,{allowMultiple:!0}),_dec(_class=function(_Component){function CheckboxControl(e){var t;return _babel_runtime_helpers_classCallCheck__WEBPACK_IMPORTED_MODULE_0___default()(this,CheckboxControl),(t=_babel_runtime_helpers_possibleConstructorReturn__WEBPACK_IMPORTED_MODULE_2___default()(this,_babel_runtime_helpers_getPrototypeOf__WEBPACK_IMPORTED_MODULE_3___default()(CheckboxControl).call(this,e))).id="0",t.onChange=function(e){var r=t.props,n=r.onChange,_=r.disabled;n&&!_&&n(e.target.checked)},t.id=lodash_core__WEBPACK_IMPORTED_MODULE_7___default.a.uniqueId("switch_"),t}return _babel_runtime_helpers_inherits__WEBPACK_IMPORTED_MODULE_4___default()(CheckboxControl,_Component),_babel_runtime_helpers_createClass__WEBPACK_IMPORTED_MODULE_1___default()(CheckboxControl,[{key:"render",value:function(){var e=this.props,t=e.title,r=e.checked,n=e.disabled,_="CheckboxControl";return n&&(_+=" disabled"),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:_},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("div",{styleName:"checkbox-button"},react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("input",{styleName:"checkbox",type:"checkbox",id:this.id,name:"checkbox",disabled:n,checked:r,onChange:this.onChange}),react__WEBPACK_IMPORTED_MODULE_5___default.a.createElement("label",{styleName:"checkbox-label",htmlFor:this.id},t)))}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),CheckboxControl}(react__WEBPACK_IMPORTED_MODULE_5__.Component))||_class);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(CheckboxControl,"CheckboxControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/CheckboxControl/CheckboxControl.js"),t(module))}()}).call(this,__webpack_require__(13)(module))},function(e,t,r){for(var n=r(71),_=r(106),a=r(74),i=r(47),o=r(86),s=r(129),l=r(38),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;h0&&void 0!==arguments[0]?arguments[0]:K,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,S=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==S.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 v: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 O: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 z=n.filteredModels,H=new Set(z);return z.has(a.model)?H.delete(a.model):H.add(a.model),_()({},n,{filteredModels:H});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(O,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(v,"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(K,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(S,"contentReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),n(e))}()}).call(this,r(13)(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){r(299)("asyncIterator")},function(e,t,r){"use strict";var n=r(47),_=r(97),a=r(67),i=r(46),o=r(74),s=r(202).KEY,l=r(55),u=r(193),c=r(130),d=r(123),f=r(38),p=r(300),h=r(299),E=r(563),m=r(268),g=r(70),b=r(59),O=r(98),v=r(190),M=r(122),C=r(195),P=r(564),D=r(298),y=r(66),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"),K={}.propertyIsEnumerable,S=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,z=function(e){var t=W[e]=C(k.prototype);return t._k=e,t},H=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=v(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=O(t)),_=0,a=n.length;a>_;)G(e,r=n[_++],t[r]);return e},J=function(e){var t=K.call(this,e=v(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=O(e),t=v(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(O(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:O(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}),z(e)}).prototype,"toString",function(){return this._k}),D.f=X,y.f=G,r(206).f=P.f=Q,r(163).f=J,r(205).f=$,a&&!r(127)&&o(j,"propertyIsEnumerable",J,!0),p.f=function(e){return z(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 _(S,e+="")?S[e]:S[e]=k(e)},keyFor:function(e){if(!H(e))throw TypeError(e+" is not a symbol!");for(var t in S)if(S[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)&&!H(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!H(t))return t}),n[1]=t,L.apply(R,n)}}),k.prototype[U]||r(86)(k.prototype,U,k.prototype.valueOf),c(k,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(e,t,r){"use strict";var n=r(46),_=r(289)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(i||!r(128)(a)),"Array",{indexOf:function(e){return i?a.apply(this,arguments)||0:_(this,e,arguments[1])}})},function(e,t,r){var n=r(47),_=r(96),a=r(86),i=r(74),o=r(87),s=function(e,t,r){var l,u,c,d,f=e&s.F,p=e&s.G,h=e&s.S,E=e&s.P,m=e&s.B,g=p?n:h?n[t]||(n[t]={}):(n[t]||{}).prototype,b=p?_:_[t]||(_[t]={}),O=b.prototype||(b.prototype={});for(l in p&&(r=t),r)c=((u=!f&&g&&void 0!==g[l])?g:r)[l],d=m&&u?o(c,n):E&&"function"==typeof c?o(Function.call,c):c,g&&i(g,l,c,e&s.U),b[l]!=c&&a(b,l,d),E&&O[l]!=c&&(O[l]=c)};n.core=_,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},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){"use strict";var n=r(164),_=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_(r(42)),i=_(r(2)),o=_(r(3)),s=_(r(60)),l=_(r(49)),u=_(r(570)),c=_(r(131)),d=_(r(108)),f=_(r(304)),p=_(r(132)),h=_(r(305)),E=_(r(90)),m=_(r(99)),g=r(208),b=r(107),O=_(r(135)),v=_(r(91)),M=n(r(571)),C=_(r(303)),P=n(r(572)),D=_(r(573)),y={},w=0,T=0,A=!l.default.get("IS_NODE");function I(){var e=l.default.get("SERVER_URL");"/"!==e[e.length-1]&&(e+="/");var t=e.replace(/https?:\/\//,"");return t.substr(t.indexOf("/"))}A?l.default.setObjectStateController(M):l.default.setObjectStateController(P);var k=function(){function e(t,r,n){(0,i.default)(this,e),(0,s.default)(this,"id",void 0),(0,s.default)(this,"_localId",void 0),(0,s.default)(this,"_objCount",void 0),(0,s.default)(this,"className",void 0),"function"==typeof this.initialize&&this.initialize.apply(this,arguments);var _=null;if(this._objCount=T++,"string"==typeof t)this.className=t,r&&"object"===(0,a.default)(r)&&(_=r);else if(t&&"object"===(0,a.default)(t)){for(var o in this.className=t.className,_={},t)"className"!==o&&(_[o]=t[o]);r&&"object"===(0,a.default)(r)&&(n=r)}if(_&&!this.set(_,n))throw new Error("Can't create an invalid Parse Object")}return(0,o.default)(e,[{key:"_getId",value:function(){if("string"==typeof this.id)return this.id;if("string"==typeof this._localId)return this._localId;var e="local"+String(w++);return this._localId=e,e}},{key:"_getStateIdentifier",value:function(){if(A){var e=this.id;return e||(e=this._getId()),{id:e,className:this.className}}return this}},{key:"_getServerData",value:function(){return l.default.getObjectStateController().getServerData(this._getStateIdentifier())}},{key:"_clearServerData",value:function(){var e=this._getServerData(),t={};for(var r in e)t[r]=void 0;l.default.getObjectStateController().setServerData(this._getStateIdentifier(),t)}},{key:"_getPendingOps",value:function(){return l.default.getObjectStateController().getPendingOps(this._getStateIdentifier())}},{key:"_clearPendingOps",value:function(){var e=this._getPendingOps(),t=e[e.length-1];Object.keys(t).forEach(function(e){delete t[e]})}},{key:"_getDirtyObjectAttributes",value:function(){var t=this.attributes,r=l.default.getObjectStateController().getObjectCache(this._getStateIdentifier()),n={};for(var _ in t){var i=t[_];if(i&&"object"===(0,a.default)(i)&&!(i instanceof e)&&!(i instanceof m.default)&&!(i instanceof v.default))try{var o=(0,d.default)(i,!1,!0),s=JSON.stringify(o);r[_]!==s&&(n[_]=i)}catch(e){n[_]=i}}return n}},{key:"_toFullJSON",value:function(e){var t=this.toJSON(e);return t.__type="Object",t.className=this.className,t}},{key:"_getSaveJSON",value:function(){var e=this._getPendingOps(),t=this._getDirtyObjectAttributes(),r={};for(var n in t)r[n]=new b.SetOp(t[n]).toJSON();for(n in e[0])r[n]=e[0][n].toJSON();return r}},{key:"_getSaveParams",value:function(){var e=this.id?"PUT":"POST",t=this._getSaveJSON(),r="classes/"+this.className;return this.id?r+="/"+this.id:"_User"===this.className&&(r="users"),{method:e,body:t,path:r}}},{key:"_finishFetch",value:function(e){!this.id&&e.objectId&&(this.id=e.objectId);var t=l.default.getObjectStateController();t.initializeState(this._getStateIdentifier());var r={};for(var n in e)"ACL"===n?r[n]=new p.default(e[n]):"objectId"!==n&&(r[n]=(0,c.default)(e[n]),r[n]instanceof v.default&&r[n]._ensureParentAndKey(this,n));r.createdAt&&"string"==typeof r.createdAt&&(r.createdAt=(0,h.default)(r.createdAt)),r.updatedAt&&"string"==typeof r.updatedAt&&(r.updatedAt=(0,h.default)(r.updatedAt)),!r.updatedAt&&r.createdAt&&(r.updatedAt=r.createdAt),t.commitServerChanges(this._getStateIdentifier(),r)}},{key:"_setExisted",value:function(e){var t=l.default.getObjectStateController().getState(this._getStateIdentifier());t&&(t.existed=e)}},{key:"_migrateId",value:function(e){if(this._localId&&e)if(A){var t=l.default.getObjectStateController(),r=t.removeState(this._getStateIdentifier());this.id=e,delete this._localId,r&&t.initializeState(this._getStateIdentifier(),r)}else this.id=e,delete this._localId}},{key:"_handleSaveResponse",value:function(e,t){var r={},n=l.default.getObjectStateController(),_=n.popPendingState(this._getStateIdentifier());for(var a in _)_[a]instanceof b.RelationOp?r[a]=_[a].applyTo(void 0,this,a):a in e||(r[a]=_[a].applyTo(void 0));for(a in e)"createdAt"!==a&&"updatedAt"!==a||"string"!=typeof e[a]?"ACL"===a?r[a]=new p.default(e[a]):"objectId"!==a&&(r[a]=(0,c.default)(e[a]),r[a]instanceof b.UnsetOp&&(r[a]=void 0)):r[a]=(0,h.default)(e[a]);r.createdAt&&!r.updatedAt&&(r.updatedAt=r.createdAt),this._migrateId(e.objectId),201!==t&&this._setExisted(!0),n.commitServerChanges(this._getStateIdentifier(),r)}},{key:"_handleSaveError",value:function(){l.default.getObjectStateController().mergeFirstPendingState(this._getStateIdentifier())}},{key:"initialize",value:function(){}},{key:"toJSON",value:function(e){var t=this.id?this.className+":"+this.id:this;e=e||[t];var r={},n=this.attributes;for(var _ in n)"createdAt"!==_&&"updatedAt"!==_||!n[_].toJSON?r[_]=(0,d.default)(n[_],!1,!1,e):r[_]=n[_].toJSON();var a=this._getPendingOps();for(var i in a[0])r[i]=a[0][i].toJSON();return this.id&&(r.objectId=this.id),r}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.className===t.className&&this.id===t.id&&void 0!==this.id}},{key:"dirty",value:function(e){if(!this.id)return!0;var t=this._getPendingOps(),r=this._getDirtyObjectAttributes();if(e){if(r.hasOwnProperty(e))return!0;for(var n=0;n-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 O.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(133))},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(341)),n(r(229)),n(r(342)),n(r(703)),n(r(704)),n(r(705)),n(r(706))},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";var n=r(46),_=r(191)(1);n(n.P+n.F*!r(128)([].map,!0),"Array",{map:function(e){return _(this,e,arguments[1])}})},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(408)},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(13)(e))},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(215);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(62),_=r(616),a=r(92),i=r(31),o=r(617),s=r(619),l=r(169),u=r(622),c=r(623),d=r(29),f=r(624),p=r(316),h=r(625),E=r(626),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__(823),_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__(13)(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;athis.max&&(t=this.max),t}},{key:"render",value:function(){var e=this.props,t=e.type,r=e.label,n=e.placeholder,_=e.readOnly,a=e.autoFocus,i=e.onKeyDown,o=e.DOMRef,s=e.icon;return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_7__.a,{value:this.state.value,onChange:this.onChange,onBlur:this.onBlur,type:t,label:r,icon:s,onKeyDown:i,placeholder:n,autoFocus:a,readOnly:_,DOMRef:o})}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),InputNumberControl}(react__WEBPACK_IMPORTED_MODULE_6__.Component);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(InputNumberControl,"InputNumberControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/InputNumberControl/InputNumberControl.js"),t(module))}()}).call(this,__webpack_require__(13)(module))},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(70),_=r(267),a=r(190),i=Object.defineProperty;t.f=r(67)?Object.defineProperty:function(e,t,r){if(n(e),t=a(t,!0),n(r),_)try{return i(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){e.exports=!r(55)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){"use strict";var n=r(62),_=r(31),a=r(138),i=_.List,o=_.Map,s=_.OrderedSet,l=_.Record,u=_.Repeat,c=s(),d={parent:null,characterList:i(),data:o(),depth:0,key:"",text:"",type:"unstyled",children:i(),prevSibling:null,nextSibling:null},f=function(e,t){return e.getStyle()===t.getStyle()},p=function(e,t){return e.getEntity()===t.getEntity()},h=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},E=function(e){function t(){var r=arguments.length>0&&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__(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__(839),_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__(13)(module))},function(e,t,r){var n=r(59);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";var n=r(286),_=r(287),a=r(129),i=r(98);e.exports=r(194)(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";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},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(15),a=r(22),i=r(23),o=r(54);!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(13)(e),r(133))},function(e,t,r){var n=r(47),_=r(86),a=r(97),i=r(123)("src"),o=Function.toString,s=(""+o).split("toString");r(96).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(637),_=r(640),a=r(641),i=r(642);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; +*/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]:K,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,L=void 0;try{for(var R,B=t[Symbol.iterator]();!(I=(R=B.next()).done);I=!0){var U=R.value,S=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==S.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,L=e}finally{try{I||null==B.return||B.return()}finally{if(k)throw L}}return _()({},n,{items:e,itemsDraft:t});case M:return _()({},n,{currentItem:a.currentItem});case p:return(e=n.items).push(a.item),_()({},n,{items:e});case h:case m:case b:case g:return _()({},n);case E:return a.isNewDraft?((t=n.itemsDraft).push(a.item.draft),_()({},n,{itemsDraft:t})):_()({},n);case O: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 v:var z=n.filteredModels,H=new Set(z);return z.has(a.model)?H.delete(a.model):H.add(a.model),_()({},n,{filteredModels:H});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,be=t[Symbol.iterator]();!(pe=(me=be.next()).done);pe=!0){var ge=me.value;ge.model==oe&&(ge.model=oe)}}catch(e){he=!0,Ee=e}finally{try{pe||null==be.return||be.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(b,"ITEM_ARCHIVE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(g,"ITEM_RESTORE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(O,"ITEM_DELETE","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(M,"SET_CURRENT_ITEM","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(v,"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(L,"setCurrentItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(R,"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(K,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),t.register(S,"contentReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/content.js"),n(e))}()}).call(this,r(13)(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){r(300)("asyncIterator")},function(e,t,r){"use strict";var n=r(47),_=r(97),a=r(67),i=r(46),o=r(74),s=r(203).KEY,l=r(55),u=r(194),c=r(130),d=r(123),f=r(38),p=r(301),h=r(300),E=r(564),m=r(269),b=r(70),g=r(59),O=r(98),M=r(191),v=r(122),C=r(196),P=r(565),D=r(299),y=r(66),w=r(106),T=D.f,A=y.f,I=P.f,k=n.Symbol,L=n.JSON,R=L&&L.stringify,B=f("_hidden"),U=f("toPrimitive"),K={}.propertyIsEnumerable,S=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,z=function(e){var t=W[e]=C(k.prototype);return t._k=e,t},H=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),b(e),t=M(t,!0),b(r),_(W,t)?(r.enumerable?(_(e,B)&&e[B][t]&&(e[B][t]=!1),r=C(r,{enumerable:v(0,!1)})):(_(e,B)||A(e,B,v(1,{})),e[B][t]=!0),V(e,t,r)):A(e,t,r)},Y=function(e,t){b(e);for(var r,n=E(t=O(t)),_=0,a=n.length;a>_;)G(e,r=n[_++],t[r]);return e},J=function(e){var t=K.call(this,e=M(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=O(e),t=M(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(O(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:O(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,v(1,r))};return a&&F&&V(j,e,{configurable:!0,set:t}),z(e)}).prototype,"toString",function(){return this._k}),D.f=X,y.f=G,r(207).f=P.f=Q,r(163).f=J,r(206).f=$,a&&!r(127)&&o(j,"propertyIsEnumerable",J,!0),p.f=function(e){return z(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 _(S,e+="")?S[e]:S[e]=k(e)},keyFor:function(e){if(!H(e))throw TypeError(e+" is not a symbol!");for(var t in S)if(S[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:$}),L&&i(i.S+i.F*(!N||l(function(){var e=k();return"[null]"!=R([e])||"{}"!=R({a:e})||"{}"!=R(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],_=1;arguments.length>_;)n.push(arguments[_++]);if(r=t=n[1],(g(t)||void 0!==e)&&!H(e))return m(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!H(t))return t}),n[1]=t,R.apply(L,n)}}),k.prototype[U]||r(86)(k.prototype,U,k.prototype.valueOf),c(k,"Symbol"),c(Math,"Math",!0),c(n.JSON,"JSON",!0)},function(e,t,r){"use strict";var n=r(46),_=r(290)(!1),a=[].indexOf,i=!!a&&1/[1].indexOf(1,-0)<0;n(n.P+n.F*(i||!r(128)(a)),"Array",{indexOf:function(e){return i?a.apply(this,arguments)||0:_(this,e,arguments[1])}})},function(e,t,r){var n=r(47),_=r(96),a=r(86),i=r(74),o=r(87),s=function(e,t,r){var l,u,c,d,f=e&s.F,p=e&s.G,h=e&s.S,E=e&s.P,m=e&s.B,b=p?n:h?n[t]||(n[t]={}):(n[t]||{}).prototype,g=p?_:_[t]||(_[t]={}),O=g.prototype||(g.prototype={});for(l in p&&(r=t),r)c=((u=!f&&b&&void 0!==b[l])?b:r)[l],d=m&&u?o(c,n):E&&"function"==typeof c?o(Function.call,c):c,b&&i(b,l,c,e&s.U),g[l]!=c&&a(g,l,d),E&&O[l]!=c&&(O[l]=c)};n.core=_,s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,s.U=64,s.R=128,e.exports=s},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){"use strict";var n=r(164),_=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var a=_(r(42)),i=_(r(2)),o=_(r(3)),s=_(r(60)),l=_(r(49)),u=_(r(571)),c=_(r(131)),d=_(r(108)),f=_(r(305)),p=_(r(132)),h=_(r(306)),E=_(r(90)),m=_(r(99)),b=r(209),g=r(107),O=_(r(135)),M=_(r(91)),v=n(r(572)),C=_(r(304)),P=n(r(573)),D=_(r(574)),y={},w=0,T=0,A=!l.default.get("IS_NODE");function I(){var e=l.default.get("SERVER_URL");"/"!==e[e.length-1]&&(e+="/");var t=e.replace(/https?:\/\//,"");return t.substr(t.indexOf("/"))}A?l.default.setObjectStateController(v):l.default.setObjectStateController(P);var k=function(){function e(t,r,n){(0,i.default)(this,e),(0,s.default)(this,"id",void 0),(0,s.default)(this,"_localId",void 0),(0,s.default)(this,"_objCount",void 0),(0,s.default)(this,"className",void 0),"function"==typeof this.initialize&&this.initialize.apply(this,arguments);var _=null;if(this._objCount=T++,"string"==typeof t)this.className=t,r&&"object"===(0,a.default)(r)&&(_=r);else if(t&&"object"===(0,a.default)(t)){for(var o in this.className=t.className,_={},t)"className"!==o&&(_[o]=t[o]);r&&"object"===(0,a.default)(r)&&(n=r)}if(_&&!this.set(_,n))throw new Error("Can't create an invalid Parse Object")}return(0,o.default)(e,[{key:"_getId",value:function(){if("string"==typeof this.id)return this.id;if("string"==typeof this._localId)return this._localId;var e="local"+String(w++);return this._localId=e,e}},{key:"_getStateIdentifier",value:function(){if(A){var e=this.id;return e||(e=this._getId()),{id:e,className:this.className}}return this}},{key:"_getServerData",value:function(){return l.default.getObjectStateController().getServerData(this._getStateIdentifier())}},{key:"_clearServerData",value:function(){var e=this._getServerData(),t={};for(var r in e)t[r]=void 0;l.default.getObjectStateController().setServerData(this._getStateIdentifier(),t)}},{key:"_getPendingOps",value:function(){return l.default.getObjectStateController().getPendingOps(this._getStateIdentifier())}},{key:"_clearPendingOps",value:function(){var e=this._getPendingOps(),t=e[e.length-1];Object.keys(t).forEach(function(e){delete t[e]})}},{key:"_getDirtyObjectAttributes",value:function(){var t=this.attributes,r=l.default.getObjectStateController().getObjectCache(this._getStateIdentifier()),n={};for(var _ in t){var i=t[_];if(i&&"object"===(0,a.default)(i)&&!(i instanceof e)&&!(i instanceof m.default)&&!(i instanceof M.default))try{var o=(0,d.default)(i,!1,!0),s=JSON.stringify(o);r[_]!==s&&(n[_]=i)}catch(e){n[_]=i}}return n}},{key:"_toFullJSON",value:function(e){var t=this.toJSON(e);return t.__type="Object",t.className=this.className,t}},{key:"_getSaveJSON",value:function(){var e=this._getPendingOps(),t=this._getDirtyObjectAttributes(),r={};for(var n in t)r[n]=new g.SetOp(t[n]).toJSON();for(n in e[0])r[n]=e[0][n].toJSON();return r}},{key:"_getSaveParams",value:function(){var e=this.id?"PUT":"POST",t=this._getSaveJSON(),r="classes/"+this.className;return this.id?r+="/"+this.id:"_User"===this.className&&(r="users"),{method:e,body:t,path:r}}},{key:"_finishFetch",value:function(e){!this.id&&e.objectId&&(this.id=e.objectId);var t=l.default.getObjectStateController();t.initializeState(this._getStateIdentifier());var r={};for(var n in e)"ACL"===n?r[n]=new p.default(e[n]):"objectId"!==n&&(r[n]=(0,c.default)(e[n]),r[n]instanceof M.default&&r[n]._ensureParentAndKey(this,n));r.createdAt&&"string"==typeof r.createdAt&&(r.createdAt=(0,h.default)(r.createdAt)),r.updatedAt&&"string"==typeof r.updatedAt&&(r.updatedAt=(0,h.default)(r.updatedAt)),!r.updatedAt&&r.createdAt&&(r.updatedAt=r.createdAt),t.commitServerChanges(this._getStateIdentifier(),r)}},{key:"_setExisted",value:function(e){var t=l.default.getObjectStateController().getState(this._getStateIdentifier());t&&(t.existed=e)}},{key:"_migrateId",value:function(e){if(this._localId&&e)if(A){var t=l.default.getObjectStateController(),r=t.removeState(this._getStateIdentifier());this.id=e,delete this._localId,r&&t.initializeState(this._getStateIdentifier(),r)}else this.id=e,delete this._localId}},{key:"_handleSaveResponse",value:function(e,t){var r={},n=l.default.getObjectStateController(),_=n.popPendingState(this._getStateIdentifier());for(var a in _)_[a]instanceof g.RelationOp?r[a]=_[a].applyTo(void 0,this,a):a in e||(r[a]=_[a].applyTo(void 0));for(a in e)"createdAt"!==a&&"updatedAt"!==a||"string"!=typeof e[a]?"ACL"===a?r[a]=new p.default(e[a]):"objectId"!==a&&(r[a]=(0,c.default)(e[a]),r[a]instanceof g.UnsetOp&&(r[a]=void 0)):r[a]=(0,h.default)(e[a]);r.createdAt&&!r.updatedAt&&(r.updatedAt=r.createdAt),this._migrateId(e.objectId),201!==t&&this._setExisted(!0),n.commitServerChanges(this._getStateIdentifier(),r)}},{key:"_handleSaveError",value:function(){l.default.getObjectStateController().mergeFirstPendingState(this._getStateIdentifier())}},{key:"initialize",value:function(){}},{key:"toJSON",value:function(e){var t=this.id?this.className+":"+this.id:this;e=e||[t];var r={},n=this.attributes;for(var _ in n)"createdAt"!==_&&"updatedAt"!==_||!n[_].toJSON?r[_]=(0,d.default)(n[_],!1,!1,e):r[_]=n[_].toJSON();var a=this._getPendingOps();for(var i in a[0])r[i]=a[0][i].toJSON();return this.id&&(r.objectId=this.id),r}},{key:"equals",value:function(t){return this===t||t instanceof e&&this.className===t.className&&this.id===t.id&&void 0!==this.id}},{key:"dirty",value:function(e){if(!this.id)return!0;var t=this._getPendingOps(),r=this._getDirtyObjectAttributes();if(e){if(r.hasOwnProperty(e))return!0;for(var n=0;n-1)throw new Error("Cannot modify readonly attribute: "+o);r.unset?_[o]=new g.UnsetOp:n[o]instanceof g.Op?_[o]=n[o]:n[o]&&"object"===(0,a.default)(n[o])&&"string"==typeof n[o].__op?_[o]=(0,g.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 g.SetOp(n[o]):_[o]=new g.SetOp(new p.default(n[o]))}var s=this.attributes,u={};for(var c in _)_[c]instanceof g.RelationOp?u[c]=_[c].applyTo(s[c],this,c):_[c]instanceof g.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 b=_[m].mergeWith(f[h][m]);E.setPendingOp(this._getStateIdentifier(),m,b)}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 g.IncrementOp(t))}},{key:"add",value:function(e,t){return this.set(e,new g.AddOp([t]))}},{key:"addAll",value:function(e,t){return this.set(e,new g.AddOp(t))}},{key:"addUnique",value:function(e,t){return this.set(e,new g.AddUniqueOp([t]))}},{key:"addAllUnique",value:function(e,t){return this.set(e,new g.AddUniqueOp(t))}},{key:"remove",value:function(e,t){return this.set(e,new g.RemoveOp([t]))}},{key:"removeAll",value:function(e,t){return this.set(e,new g.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(v)}},{key:"disableSingleInstance",value:function(){A=!1,l.default.setObjectStateController(P)}}]),e}(),L={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 O.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,b.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,b.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(L);var R=k;t.default=R},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(133))},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(342)),n(r(230)),n(r(343)),n(r(704)),n(r(705)),n(r(706)),n(r(707))},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";var n=r(46),_=r(192)(1);n(n.P+n.F*!r(128)([].map,!0),"Array",{map:function(e){return _(this,e,arguments[1])}})},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(409)},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(13)(e))},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(216);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(62),_=r(617),a=r(92),i=r(31),o=r(618),s=r(620),l=r(169),u=r(623),c=r(624),d=r(29),f=r(625),p=r(317),h=r(626),E=r(627),m=i.OrderedSet,b={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),b.replaceText(e,t,r,n,_)},moveText:function(e,t,r){var n=l(e,t),_=b.removeRange(e,t,"backward");return b.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=b},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__(6),_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__(7),_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__(826),_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__(13)(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;athis.max&&(t=this.max),t}},{key:"render",value:function(){var e=this.props,t=e.type,r=e.label,n=e.placeholder,_=e.readOnly,a=e.autoFocus,i=e.onKeyDown,o=e.DOMRef,s=e.icon;return react__WEBPACK_IMPORTED_MODULE_6___default.a.createElement(components_elements_InputControl_InputControl__WEBPACK_IMPORTED_MODULE_7__.a,{value:this.state.value,onChange:this.onChange,onBlur:this.onBlur,type:t,label:r,icon:s,onKeyDown:i,placeholder:n,autoFocus:a,readOnly:_,DOMRef:o})}},{key:"__reactstandin__regenerateByEval",value:function __reactstandin__regenerateByEval(key,code){this[key]=eval(code)}}]),InputNumberControl}(react__WEBPACK_IMPORTED_MODULE_6__.Component);!function(){var e=__webpack_require__(1).default,t=__webpack_require__(1).leaveModule;e&&(e.register(InputNumberControl,"InputNumberControl","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/components/elements/InputNumberControl/InputNumberControl.js"),t(module))}()}).call(this,__webpack_require__(13)(module))},function(e,t){var r=Array.isArray;e.exports=r},function(e,t,r){var n=r(70),_=r(268),a=r(191),i=Object.defineProperty;t.f=r(67)?Object.defineProperty:function(e,t,r){if(n(e),t=a(t,!0),n(r),_)try{return i(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e}},function(e,t,r){e.exports=!r(55)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,r){"use strict";var n=r(62),_=r(31),a=r(138),i=_.List,o=_.Map,s=_.OrderedSet,l=_.Record,u=_.Repeat,c=s(),d={parent:null,characterList:i(),data:o(),depth:0,key:"",text:"",type:"unstyled",children:i(),prevSibling:null,nextSibling:null},f=function(e,t){return e.getStyle()===t.getStyle()},p=function(e,t){return e.getEntity()===t.getEntity()},h=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},E=function(e){function t(){var r=arguments.length>0&&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__(6),_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__(7),_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__(842),_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__(13)(module))},function(e,t,r){var n=r(59);e.exports=function(e){if(!n(e))throw TypeError(e+" is not an object!");return e}},function(e,t,r){"use strict";var n=r(287),_=r(288),a=r(129),i=r(98);e.exports=r(195)(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";e.exports=function(e){if(null!=e)return e;throw new Error("Got unexpected null or undefined")}},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(15),a=r(22),i=r(23),o=r(54);!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(13)(e),r(133))},function(e,t,r){var n=r(47),_=r(86),a=r(97),i=r(123)("src"),o=Function.toString,s=(""+o).split("toString");r(96).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(638),_=r(641),a=r(642),i=r(643);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;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(242),_="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 O});r(45);var n=r(11),_=r.n(n),a=(r(43),r(44),r(36),r(230),r(15)),i=r(22),o=r(145),s=r(17),l=r(14);!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 O(){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(O,"mediaReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),n(e))}()}).call(this,r(13)(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(83));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(66),_=r(122);e.exports=r(67)?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(561)(!0);r(194)(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(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(567)).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(60)),o=r(107),s=(n(r(48)),n(r(135))),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(615);e.exports=n},function(e,t,r){var n=r(151),_=r(421),a=r(422),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(459),_=r(462);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(192),_=r(125);e.exports=function(e){return n(_(e))}},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(60)),o=n(r(49)),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(62),_=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(13)(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(125);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(288),_=r(197);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 O(e.amount);case"Add":return new v((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(42)),a=n(r(132)),i=n(r(99)),o=n(r(134)),s=n(r(207)),l=n(r(48)),u=r(107),c=n(r(91)),d=Object.prototype.toString},function(e,t,r){r(210)("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){var n=r(46);n(n.S+n.F,"Object",{assign:r(605)})},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(240);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(241);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(419)),i=o(r(420));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(243),_="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 b}),r.d(t,"c",function(){return O});r(45);var n=r(11),_=r.n(n),a=(r(43),r(44),r(36),r(231),r(15)),i=r(22),o=r(145),s=r(17),l=r(14);!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 b(e){return Object(l.a)(e.origin.destroy()),{type:f,item:e}}var g={items:[]};function O(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:g,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(b,"removeMediaItem","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(g,"initialState","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),t.register(O,"mediaReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/media.js"),n(e))}()}).call(this,r(13)(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(83));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(66),_=r(122);e.exports=r(67)?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(562)(!0);r(195)(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(6)),o=n(r(4)),s=n(r(7)),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(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(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(2)),a=n(r(3)),i=n(r(60)),o=r(107),s=(n(r(48)),n(r(135))),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(616);e.exports=n},function(e,t,r){var n=r(151),_=r(422),a=r(423),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(460),_=r(463);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(193),_=r(125);e.exports=function(e){return n(_(e))}},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(60)),o=n(r(49)),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(62),_=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(b,"serverStatusReducer","/Volumes/data_hfs/Code/1-projects/Chisel/chisel.git/src/ducks/serverStatus.js"),n(e))}()}).call(this,r(13)(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(125);e.exports=function(e){return Object(n(e))}},function(e,t,r){var n=r(289),_=r(198);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 g;case"Increment":return new O(e.amount);case"Add":return new M((0,d.default)(e.objects));case"AddUnique":return new v((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(42)),a=n(r(132)),i=n(r(99)),o=n(r(134)),s=n(r(208)),l=n(r(48)),u=r(107),c=n(r(91)),d=Object.prototype.toString},function(e,t,r){r(211)("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){var n=r(46);n(n.S+n.F,"Object",{assign:r(606)})},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(241);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(242);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(420)),i=o(r(421));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]",O="[object Number]",v="[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,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,K=U.hasOwnProperty,S=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 z(e){return e instanceof G?e:new G(e)}var H=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];K.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=H(z.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=Se(e),u=Se(t),c=l?f:_e(e),p=u?f:_e(t),g=(c=c==d?v:c)==v,b=(p=p==d?v:p)==v,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=H(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:He(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=He(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 Ke=ie(function(){return arguments}())?ie:function(e){return qe(e)&&K.call(e,"callee")&&!N.call(e,"callee")},Se=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)==O}var Ve=function(e){return qe(e)&&_e(e)==C};function ze(e){return"string"==typeof e||!Se(e)&&qe(e)&&_e(e)==P}var He=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,ve(t),e)});var Qe=de(function(e,t){e=Object(e);var r=-1,n=t.length,_=n>2?t[2]:a;for(_&&Oe(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=v({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;O(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 v({},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 v({},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 v({},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=v({},_,{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 v({},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=v({},r,n.props.appearAnimation.to):e.entering&&n.props.enterAnimation?r=v({},r,n.props.enterAnimation.to):e.leaving&&n.props.leaveAnimation&&(r=v({},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 v({},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?v({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]=v({},this.getChildData(e),t)},t.prototype.removeChildData=function(e){delete this.childrenData[e],this.setState(function(t){return v({},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=v({},_,{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__(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__(114),lodash_core__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(lodash_core__WEBPACK_IMPORTED_MODULE_7__),_SwitchControl_sss__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(772),_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__(13)(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__(110),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__(831),_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(55);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(66).f,_=r(97),a=r(38)("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(42)),a=(n(r(132)),n(r(99))),i=n(r(134)),o=n(r(207)),s=n(r(48)),l=r(107),u=n(r(91))},function(e,t,r){"use strict";var n=r(25);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var _=n(r(42)),a=n(r(2)),i=n(r(3)),o=n(r(60)),s=n(r(301)),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(42)),a=n(r(2)),i=n(r(3)),o=n(r(60)),s=n(r(49)),l=n(r(108)),u=r(208),c=n(r(90)),d=n(r(134)),f=n(r(48));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=O(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},K=function(e){m.call(s,function(){var t;T?P.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},S=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(S,n,1))}catch(e){S.call(n,e)}}):(r._v=e,r._s=1,L(r,!1))}catch(e){S.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(S,this,1))}catch(e){S.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(198)(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(S,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(130)(w,"Promise"),r(201)("Promise"),i=r(96).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(204)(function(e){w.all(e).catch(A)})),"Promise",{all:function(e){var t=this,r=I(t),n=r.resolve,_=r.reject,a=O(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,_=O(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(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(57);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__(136),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__(235),react_mde__WEBPACK_IMPORTED_MODULE_7___default=__webpack_require__.n(react_mde__WEBPACK_IMPORTED_MODULE_7__),showdown__WEBPACK_IMPORTED_MODULE_8__=__webpack_require__(364),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__(795),_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__(797),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__(13)(module))},function(e,t,r){var n=r(726),_=r(727),a=r(728);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__(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__(15),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.size=0,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("size")&&(this.size=e.get("size")),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("size",this.size),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.name=this.name,e.type=this.type,e.size=this.size,e.file=this.file,e.assigned=this.assigned,e.site=this.site,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__(13)(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(172);Object.defineProperty(t,"arrayMove",{enumerable:!0,get:function(){return n.arrayMove}});var _=o(r(743)),a=o(r(745)),i=o(r(746));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(93),_=r(80),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(79).Symbol;e.exports=n},function(e,t){e.exports=function(e){return e}},function(e,t,r){var n=r(449),_=r(450),a=r(451),i=r(452),o=r(453);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(291),_=r(203);e.exports=r(296)("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(42)),a=n(r(2)),i=n(r(3)),o=n(r(5)),s=n(r(4)),l=n(r(63)),u=n(r(6)),c=n(r(49)),d=n(r(308)),f=n(r(90)),p=n(r(48)),h=n(r(309)),E=n(r(166)),m=!c.default.get("IS_NODE"),g=!1,b=null,O={},v=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=O[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=O[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=O[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=O[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;_0?arguments[0]:void 0)}},{add:function(e){return n.def(_(this,"Set"),e=0===e?0:e,e)}},n)},function(e,t,r){"use strict";var n=r(46),_=r(191)(2);n(n.P+n.F*!r(128)([].filter,!0),"Array",{filter:function(e){return _(this,e,arguments[1])}})},function(e,t,r){"use strict";var n=r(315),_=r(316);e.exports=function(e,t){var r=t.getStartKey(),a=t.getStartOffset(),i=t.getEndKey(),o=t.getEndOffset(),s=_(e,t).getBlockMap(),l=s.keySeq(),u=l.indexOf(r),c=l.indexOf(i)+1;return n(s.slice(u,c).map(function(e,t){var n=e.getText(),_=e.getCharacterList();return r===i?e.merge({text:n.slice(a,o),characterList:_.slice(a,o)}):t===r?e.merge({text:n.slice(a),characterList:_.slice(a)}):t===i?e.merge({text:n.slice(0,o),characterList:_.slice(0,o)}):e}))}},function(e,t,r){"use strict";var n=r(37)||function(e){for(var t=1;t=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)},O=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(O(e,i.PUSH))},replace:function(e){return g(O(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:O}}},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(239),i=r(85),o=r(179).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(95)(r(79),"Map");e.exports=n},function(e,t,r){var n=r(463),_=r(470),a=r(472),i=r(473),o=r(474);function s(e){var t=-1,r=null==e?0:e.length;for(this.clear();++tv;v++)if((d||v in g)&&(E=b(h=g[v],v,m),e))if(r)M[v]=E;else if(E)switch(e){case 3:return!0;case 5:return h;case 6:return v;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(96),_=r(47),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(127)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(e,t,r){"use strict";var n=r(127),_=r(46),a=r(74),i=r(86),o=r(129),s=r(557),l=r(130),u=r(560),c=r(38)("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,O,v=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||v(h),T=h?C?v("entries"):w:void 0,A="Array"==t&&D.entries||y;if(A&&(O=u(A.call(new e)))!==Object.prototype&&O.next&&(l(O,M,!0),n||"function"==typeof O[c]||i(O,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:v("values"),keys:E?w:v("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(70),_=r(558),a=r(197),i=r(196)("IE_PROTO"),o=function(){},s=function(){var e,t=r(189)("iframe"),n=a.length;for(t.style.display="none",r(290).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("