require=functione(t,n,r){functions(o,u){if(!n[o]){if(!t[o]){vara="function"==typeofrequire&&require;if(!u&&a)returna(o,!0);if(i)returni(o,!0);varf=newError("Cannot find module '"+o+"'");throwf.code="MODULE_NOT_FOUND",f}varl=n[o]={exports:{}};t[o][0].call(l.exports,function(e){varn=t[o][1][e];returns(n?n:e)},l,l.exports,e,t,n,r)}returnn[o].exports}for(vari="function"==typeofrequire&&require,o=0;o<r.length;o++)s(r[o]);returns}({1:[function(require,module,exports){"use strict";require("babel-polyfill"),require("../../../../thirdparty/jquery/jquery.js"),require("../../../../thirdparty/jquery-ondemand/jquery.ondemand.js"),require("../legacy/sspath.js"),require("../../../../thirdparty/jquery-ui/jquery-ui.js"),require("../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js"),require("../../../../thirdparty/jquery-cookie/jquery.cookie.js"),require("../../../../thirdparty/jquery-query/jquery.query.js"),require("../../../../thirdparty/jquery-form/jquery.form.js"),require("../../../thirdparty/jquery-notice/jquery.notice.js"),require("../../../thirdparty/jsizes/lib/jquery.sizes.js"),require("../../../thirdparty/jlayout/lib/jlayout.border.js"),require("../../../thirdparty/jlayout/lib/jquery.jlayout.js"),require("../../../../thirdparty/jstree/jquery.jstree.js"),require("../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js"),require("../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js"),require("../../../../client/src/legacy/TreeDropdownField.js"),require("../../../../client/src/legacy/DateField.js"),require("../../../../client/src/legacy/HtmlEditorField.js"),require("../../../../client/src/legacy/TabSet.js"),require("../legacy/ssui.core.js"),require("../../../../client/src/legacy/GridField.js"),require("json-js")},{"../../../../client/src/legacy/DateField.js":18,"../../../../client/src/legacy/GridField.js":19,"../../../../client/src/legacy/HtmlEditorField.js":20,"../../../../client/src/legacy/TabSet.js":21,"../../../../client/src/legacy/TreeDropdownField.js":22,"../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js":826,"../../../../thirdparty/jquery-cookie/jquery.cookie.js":827,"../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js":828,"../../../../thirdparty/jquery-form/jquery.form.js":829,"../../../../thirdparty/jquery-ondemand/jquery.ondemand.js":830,"../../../../thirdparty/jquery-query/jquery.query.js":831,"../../../../thirdparty/jquery-ui/jquery-ui.js":832,"../../../../thirdparty/jquery/jquery.js":833,"../../../../thirdparty/jstree/jquery.jstree.js":834,"../../../thirdparty/jlayout/lib/jlayout.border.js":13,"../../../thirdparty/jlayout/lib/jquery.jlayout.js":14,"../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js":15,"../../../thirdparty/jquery-notice/jquery.notice.js":16,"../../../thirdparty/jsizes/lib/jquery.sizes.js":17,"../legacy/sspath.js":4,"../legacy/ssui.core.js":5,"babel-polyfill":23,"json-js":321}],2:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_defaults(obj,defaults){for(varkeys=Object.getOwnPropertyNames(defaults),i=0;i<keys.length;i++){varkey=keys[i],value=Object.getOwnPropertyDescriptor(defaults,key);value&&value.configurable&&void0===obj[key]&&Object.defineProperty(obj,key,value)}returnobj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_possibleConstructorReturn(self,call){if(!self)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeofcall&&"function"!=typeofcall?self:call}function_inherits(subClass,superClass){if("function"!=typeofsuperClass&&null!==superClass)thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subCla
module.exports=function(original,length){varC;returnisArray(original)&&(C=original.constructor,"function"!=typeofC||C!==Array&&!isArray(C.prototype)||(C=void0),isObject(C)&&(C=C[SPECIES],null===C&&(C=void0))),new(void0===C?Array:C)(length)}},{"./_is-array":69,"./_is-object":71,"./_wks":137}],38:[function(require,module,exports){"use strict";varaFunction=require("./_a-function"),isObject=require("./_is-object"),invoke=require("./_invoke"),arraySlice=[].slice,factories={},construct=function(F,len,args){if(!(leninfactories)){for(varn=[],i=0;len>i;i++)n[i]="a["+i+"]";factories[len]=Function("F,a","return new F("+n.join(",")+")")}returnfactories[len](F,args)};module.exports=Function.bind||function(that){varfn=aFunction(this),partArgs=arraySlice.call(arguments,1),bound=function(){varargs=partArgs.concat(arraySlice.call(arguments));returnthisinstanceofbound?construct(fn,args.length,args):invoke(fn,args,that)};returnisObject(fn.prototype)&&(bound.prototype=fn.prototype),bound}},{"./_a-function":26,"./_invoke":66,"./_is-object":71}],39:[function(require,module,exports){varcof=require("./_cof"),TAG=require("./_wks")("toStringTag"),ARG="Arguments"==cof(function(){returnarguments}()),tryGet=function(it,key){try{returnit[key]}catch(e){}};module.exports=function(it){varO,T,B;returnvoid0===it?"Undefined":null===it?"Null":"string"==typeof(T=tryGet(O=Object(it),TAG))?T:ARG?cof(O):"Object"==(B=cof(O))&&"function"==typeofO.callee?"Arguments":B}},{"./_cof":40,"./_wks":137}],40:[function(require,module,exports){vartoString={}.toString;module.exports=function(it){returntoString.call(it).slice(8,-1)}},{}],41:[function(require,module,exports){"use strict";vardP=require("./_object-dp").f,create=require("./_object-create"),redefineAll=(require("./_hide"),require("./_redefine-all")),ctx=require("./_ctx"),anInstance=require("./_an-instance"),defined=require("./_defined"),forOf=require("./_for-of"),$iterDefine=require("./_iter-define"),step=require("./_iter-step"),setSpecies=require("./_set-species"),DESCRIPTORS=require("./_descriptors"),fastKey=require("./_meta").fastKey,SIZE=DESCRIPTORS?"_s":"size",getEntry=function(that,key){varentry,index=fastKey(key);if("F"!==index)returnthat._i[index];for(entry=that._f;entry;entry=entry.n)if(entry.k==key)returnentry};module.exports={getConstructor:function(wrapper,NAME,IS_MAP,ADDER){varC=wrapper(function(that,iterable){anInstance(that,C,NAME,"_i"),that._i=create(null),that._f=void0,that._l=void0,that[SIZE]=0,void0!=iterable&&forOf(iterable,IS_MAP,that[ADDER],that)});returnredefineAll(C.prototype,{clear:function(){for(varthat=this,data=that._i,entry=that._f;entry;entry=entry.n)entry.r=!0,entry.p&&(entry.p=entry.p.n=void0),deletedata[entry.i];that._f=that._l=void0,that[SIZE]=0},"delete":function(key){varthat=this,entry=getEntry(that,key);if(entry){varnext=entry.n,prev=entry.p;deletethat._i[entry.i],entry.r=!0,prev&&(prev.n=next),next&&(next.p=prev),that._f==entry&&(that._f=next),that._l==entry&&(that._l=prev),that[SIZE]--}return!!entry},forEach:function(callbackfn){anInstance(this,C,"forEach");for(varentry,f=ctx(callbackfn,arguments.length>1?arguments[1]:void0,3);entry=entry?entry.n:this._f;)for(f(entry.v,entry.k,this);entry&&entry.r;)entry=entry.p},has:function(key){return!!getEntry(this,key)}}),DESCRIPTORS&&dP(C.prototype,"size",{get:function(){returndefined(this[SIZE])}}),C},def:function(that,key,value){varprev,index,entry=getEntry(that,key);returnentry?entry.v=value:(that._l=entry={i:index=fastKey(key,!0),k:key,v:value,p:prev=that._l,n:void0,r:!1},that._f||(that._f=entry),prev&&(prev.n=entry),that[SIZE]++,"F"!==index&&(that._i[index]=entry)),that},getEntry:getEntry,setStrong:function(C,NAME,IS_MAP){$iterDefine(C,NAME,function(iterated,kind){this._t=iterated,this._k=kind,this._l=void0},function(){for(varthat=this,kind=that._k,entry=that._l;entry&&entry.r;)entry=entry.p;returnthat._t&&(that._l=entry=entry?entry.n:that._t._f)?"keys"==kind?step(0,entry.k):"values"==kind?step(0,entry.v):step(0,[entry.k,entry.v]):(that._t=void0,step(1))},IS_MAP?"entries":"values
onEntered:this.props.onEntered}),overlay=_react.cloneElement(this.props.overlay,{placement:overlayProps.placement,container:overlayProps.container});return_react2["default"].createElement(_Overlay2["default"],overlayProps,overlay)},render:function(){vartrigger=_react2["default"].Children.only(this.props.children),triggerProps=trigger.props,props={"aria-describedby":this.props.overlay.props.id};returnthis._overlay=this.getOverlay(),props.onClick=_utilsCreateChainedFunction2["default"](triggerProps.onClick,this.props.onClick),isOneOf("click",this.props.trigger)&&(props.onClick=_utilsCreateChainedFunction2["default"](this.toggle,props.onClick)),isOneOf("hover",this.props.trigger)&&("production"!==process.env.NODE_ENV?_warning2["default"](!("hover"===this.props.trigger),'[react-bootstrap] Specifying only the `"hover"` trigger limits the visibilty of the overlay to just mouse users. Consider also including the `"focus"` trigger so that touch and keyboard only users can see the overlay as well.'):void0,props.onMouseOver=_utilsCreateChainedFunction2["default"](this.handleMouseOver,this.props.onMouseOver,triggerProps.onMouseOver),props.onMouseOut=_utilsCreateChainedFunction2["default"](this.handleMouseOut,this.props.onMouseOut,triggerProps.onMouseOut)),isOneOf("focus",this.props.trigger)&&(props.onFocus=_utilsCreateChainedFunction2["default"](this.handleDelayedShow,this.props.onFocus,triggerProps.onFocus),props.onBlur=_utilsCreateChainedFunction2["default"](this.handleDelayedHide,this.props.onBlur,triggerProps.onBlur)),_react.cloneElement(trigger,props)},handleDelayedShow:function(){var_this=this;if(null!=this._hoverHideDelay)returnclearTimeout(this._hoverHideDelay),void(this._hoverHideDelay=null);if(!this.state.isOverlayShown&&null==this._hoverShowDelay){vardelay=null!=this.props.delayShow?this.props.delayShow:this.props.delay;returndelay?void(this._hoverShowDelay=setTimeout(function(){_this._hoverShowDelay=null,_this.show()},delay)):voidthis.show()}},handleDelayedHide:function(){var_this2=this;if(null!=this._hoverShowDelay)returnclearTimeout(this._hoverShowDelay),void(this._hoverShowDelay=null);if(this.state.isOverlayShown&&null==this._hoverHideDelay){vardelay=null!=this.props.delayHide?this.props.delayHide:this.props.delay;returndelay?void(this._hoverHideDelay=setTimeout(function(){_this2._hoverHideDelay=null,_this2.hide()},delay)):voidthis.hide()}},handleMouseOverOut:function(handler,e){vartarget=e.currentTarget,related=e.relatedTarget||e.nativeEvent.toElement;related&&(related===target||_domHelpersQueryContains2["default"](target,related))||handler(e)}});exports["default"]=OverlayTrigger,module.exports=exports["default"]}).call(this,require("_process"))},{"./Overlay":383,"./utils/createChainedFunction":413,_process:314,"babel-runtime/core-js/object/keys":418,"babel-runtime/helpers/extends":421,"babel-runtime/helpers/interop-require-default":423,"dom-helpers/query/contains":460,"lodash-compat/object/pick":546,react:"react","react-dom":"react-dom",warning:577}],385:[function(require,module,exports){"use strict";var_extends=require("babel-runtime/helpers/extends")["default"],_interopRequireDefault=require("babel-runtime/helpers/interop-require-default")["default"];exports.__esModule=!0;var_react=require("react"),_react2=_interopRequireDefault(_react),_classnames=require("classnames"),_classnames2=_interopRequireDefault(_classnames),PageHeader=_react2["default"].createClass({displayName:"PageHeader",render:function(){return_react2["default"].createElement("div",_extends({},this.props,{className:_classnames2["default"](this.props.className,"page-header")}),_react2["default"].createElement("h1",null,this.props.children))}});exports["default"]=PageHeader,module.exports=exports["default"]},{"babel-runtime/helpers/extends":421,"babel-runtime/helpers/interop-require-default":423,classnames:449,react:"react"}],386:[function(require,module,exports){"use strict";var_extends=require("babel-runtime/helpers/extends")["default"],_interopRequireDefault=require("babel-runtime/helpers/interop-require-default")["default"];ex
displayName:"Portal",propTypes:{container:_react2["default"].PropTypes.oneOfType([_reactPropTypesLibMountable2["default"],_react2["default"].PropTypes.func])},componentDidMount:function(){this._renderOverlay()},componentDidUpdate:function(){this._renderOverlay()},componentWillReceiveProps:function(nextProps){this._overlayTarget&&nextProps.container!==this.props.container&&(this._portalContainerNode.removeChild(this._overlayTarget),this._portalContainerNode=_utilsGetContainer2["default"](nextProps.container,_utilsOwnerDocument2["default"](this).body),this._portalContainerNode.appendChild(this._overlayTarget))},componentWillUnmount:function(){this._unrenderOverlay(),this._unmountOverlayTarget()},_mountOverlayTarget:function(){this._overlayTarget||(this._overlayTarget=document.createElement("div"),this._portalContainerNode=_utilsGetContainer2["default"](this.props.container,_utilsOwnerDocument2["default"](this).body),this._portalContainerNode.appendChild(this._overlayTarget))},_unmountOverlayTarget:function(){this._overlayTarget&&(this._portalContainerNode.removeChild(this._overlayTarget),this._overlayTarget=null),this._portalContainerNode=null},_renderOverlay:function(){varoverlay=this.props.children?_react2["default"].Children.only(this.props.children):null;null!==overlay?(this._mountOverlayTarget(),this._overlayInstance=_reactDom2["default"].unstable_renderSubtreeIntoContainer(this,overlay,this._overlayTarget)):(this._unrenderOverlay(),this._unmountOverlayTarget())},_unrenderOverlay:function(){this._overlayTarget&&(_reactDom2["default"].unmountComponentAtNode(this._overlayTarget),this._overlayInstance=null)},render:function(){returnnull},getMountNode:function(){returnthis._overlayTarget},getOverlayDOMNode:function(){if(!this.isMounted())thrownewError("getOverlayDOMNode(): A component must be mounted to have a DOM node.");returnthis._overlayInstance?this._overlayInstance.getWrappedDOMNode?this._overlayInstance.getWrappedDOMNode():_reactDom2["default"].findDOMNode(this._overlayInstance):null}});exports["default"]=Portal,module.exports=exports["default"]},{"./utils/getContainer":560,"./utils/ownerDocument":564,react:"react","react-dom":"react-dom","react-prop-types/lib/mountable":567}],554:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_objectWithoutProperties(obj,keys){vartarget={};for(variinobj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);returntarget}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_inherits(subClass,superClass){if("function"!=typeofsuperClass&&null!==superClass)thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):subClass.__proto__=superClass)}exports.__esModule=!0;var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget},_react=require("react"),_react2=_interopRequireDefault(_react),_reactDom=require("react-dom"),_reactDom2=_interopRequireDefault(_reactDom),_classnames=require("classnames"),_classnames2=_interopRequireDefault(_classnames),_utilsOwnerDocument=require("./utils/ownerDocument"),_utilsOwnerDocument2=_interopRequireDefault(_utilsOwnerDocument),_utilsGetContainer=require("./utils/getContainer"),_utilsGetContainer2=_interopRequireDefault(_utilsGetContainer),_utilsOverlayPositionUtils=require("./utils/overlayPositionUtils"),_reactPropTypesLibMountable=require("react-prop-types/lib/mountable"),_reactPropTypesLibMountable2=_interopRequireDefault(_reactPropTypesLibMountable),Position=function(_React$Component){functionPosition(props,contex
propTypes=utils.uncontrolledPropTypes(controlledValues,basePropTypes,displayName),(0,_invariant2["default"])(isCompositeComponent||!methods.length,"[uncontrollable] stateless function components cannot pass through methods becasue they have no associated instances. Check component: "+displayName+", attempting to pass through methods: "+methods.join(", ")),methods=utils.transform(methods,function(obj,method){obj[method]=function(){var_refs$inner;return(_refs$inner=this.refs.inner)[method].apply(_refs$inner,arguments)}},{});varcomponent=_react2["default"].createClass(_extends({displayName:"Uncontrolled("+displayName+")",mixins:mixins,propTypes:propTypes},methods,{componentWillMount:function(){varprops=this.props,keys=Object.keys(controlledValues);this._values=utils.transform(keys,function(values,key){values[key]=props[utils.defaultKey(key)]},{})},componentWillReceiveProps:function(nextProps){var_this=this,props=this.props,keys=Object.keys(controlledValues);keys.forEach(function(key){void0===utils.getValue(nextProps,key)&&void0!==utils.getValue(props,key)&&(_this._values[key]=nextProps[utils.defaultKey(key)])})},render:function(){var_this2=this,newProps={},_props=this.props,props=(_props.valueLink,_props.checkedLink,_objectWithoutProperties(_props,["valueLink","checkedLink"]));returnutils.each(controlledValues,function(handle,propName){varlinkPropName=utils.getLinkName(propName),prop=_this2.props[propName];linkPropName&&!isProp(_this2.props,propName)&&isProp(_this2.props,linkPropName)&&(prop=_this2.props[linkPropName].value),newProps[propName]=void0!==prop?prop:_this2._values[propName],newProps[handle]=setAndNotify.bind(_this2,propName)}),newProps=_extends({},props,newProps,{ref:isCompositeComponent?"inner":null}),_react2["default"].createElement(Component,newProps)}}));returncomponent.ControlledComponent=Component,component.deferControlTo=function(newComponent){varadditions=arguments.length<=1||void0===arguments[1]?{}:arguments[1],nextMethods=arguments[2];returnuncontrollable(newComponent,_extends({},controlledValues,additions),nextMethods)},component}returnuncontrollable}exports.__esModule=!0;var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget};exports["default"]=createUncontrollable;var_react=require("react"),_react2=_interopRequireDefault(_react),_invariant=require("invariant"),_invariant2=_interopRequireDefault(_invariant),_utils=require("./utils"),utils=_interopRequireWildcard(_utils);module.exports=exports["default"]},{"./utils":576,invariant:479,react:"react"}],575:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functionset(component,propName,handler,value,args){handler&&(component._notifying=!0,handler.call.apply(handler,[component,value].concat(args)),component._notifying=!1),component._values[propName]=value,component.isMounted()&&component.forceUpdate()}exports.__esModule=!0;var_createUncontrollable=require("./createUncontrollable"),_createUncontrollable2=_interopRequireDefault(_createUncontrollable),mixin={shouldComponentUpdate:function(){return!this._notifying}};exports["default"]=(0,_createUncontrollable2["default"])([mixin],set),module.exports=exports["default"]},{"./createUncontrollable":574}],576:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functioncustomPropType(handler,propType,name){returnfunction(props,propName){returnvoid0!==props[propName]?props[handler]?propType&&propType(props,propName,name):newError("You have provided a `"+propName+"` prop to `"+name+"` without an `"+handler+"` handler. This will render a read-only field. If the field should be mutable use `"+defaultKey(propName)+"`. Otherwise, set `"+handler+"`"):void0}}functionuncontrolledPropTypes(controlledValues,basePropTypes,displayName){varpropTypes={};return"producti
listen:func.isRequired,push:func.isRequired,replace:func.isRequired,go:func.isRequired,goBack:func.isRequired,goForward:func.isRequired}),exports.component=oneOfType([func,string])),route=(exports.components=oneOfType([component,object]),exports.route=oneOfType([object,element]));exports.routes=oneOfType([route,arrayOf(route)])},{react:"react"}],599:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}exports.__esModule=!0;var_routerWarning=require("./routerWarning"),_routerWarning2=_interopRequireDefault(_routerWarning),_react=require("react"),_react2=_interopRequireDefault(_react),_invariant=require("invariant"),_invariant2=_interopRequireDefault(_invariant),object=_react2["default"].PropTypes.object,Lifecycle={contextTypes:{history:object.isRequired,route:object},propTypes:{route:object},componentDidMount:function(){"production"!==process.env.NODE_ENV?(0,_routerWarning2["default"])(!1,"the `Lifecycle` mixin is deprecated, please use `context.router.setRouteLeaveHook(route, hook)`. http://tiny.cc/router-lifecyclemixin"):void0,this.routerWillLeave?void0:"production"!==process.env.NODE_ENV?(0,_invariant2["default"])(!1,"The Lifecycle mixin requires you to define a routerWillLeave method"):(0,_invariant2["default"])(!1);varroute=this.props.route||this.context.route;route?void0:"production"!==process.env.NODE_ENV?(0,_invariant2["default"])(!1,"The Lifecycle mixin must be used on either a) a <Route component> or b) a descendant of a <Route component> that uses the RouteContext mixin"):(0,_invariant2["default"])(!1),this._unlistenBeforeLeavingRoute=this.context.history.listenBeforeLeavingRoute(route,this.routerWillLeave)},componentWillUnmount:function(){this._unlistenBeforeLeavingRoute&&this._unlistenBeforeLeavingRoute()}};exports["default"]=Lifecycle,module.exports=exports["default"]}).call(this,require("_process"))},{"./routerWarning":625,_process:314,invariant:651,react:"react"}],600:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_objectWithoutProperties(obj,keys){vartarget={};for(variinobj)keys.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(obj,i)&&(target[i]=obj[i]);returntarget}functionisLeftClickEvent(event){return0===event.button}functionisModifiedEvent(event){return!!(event.metaKey||event.altKey||event.ctrlKey||event.shiftKey)}functionisEmptyObject(object){for(varpinobject)if(Object.prototype.hasOwnProperty.call(object,p))return!1;return!0}functioncreateLocationDescriptor(to,_ref){varquery=_ref.query,hash=_ref.hash,state=_ref.state;returnquery||hash||state?{pathname:to,query:query,hash:hash,state:state}:to}exports.__esModule=!0;var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget},_react=require("react"),_react2=_interopRequireDefault(_react),_routerWarning=require("./routerWarning"),_routerWarning2=_interopRequireDefault(_routerWarning),_PropTypes=require("./PropTypes"),_React$PropTypes=_react2["default"].PropTypes,bool=_React$PropTypes.bool,object=_React$PropTypes.object,string=_React$PropTypes.string,func=_React$PropTypes.func,oneOfType=_React$PropTypes.oneOfType,Link=_react2["default"].createClass({displayName:"Link",contextTypes:{router:_PropTypes.routerShape},propTypes:{to:oneOfType([string,object]).isRequired,query:object,hash:string,state:object,activeStyle:object,activeClassName:string,onlyActiveOnIndex:bool.isRequired,onClick:func,target:string},getDefaultProps:function(){return{onlyActiveOnIndex:!1,style:{}}},handleClick:function(event){varallowTransition=!0;if(this.props.onClick&&this.props.onClick(event),!isModifiedEvent(event)&&isLeftClickEvent(event)){if(event.defaultPrevented===!0&&(allowTransition=!1),this.props.target)returnvoid(allowTransition||event.preventDefault());if(event.preventDefault(),allowTrans
"default":obj}}functioncreateTransitionHook(hook,route,asyncArity){returnfunction(){for(var_len=arguments.length,args=Array(_len),_key=0;_len>_key;_key++)args[_key]=arguments[_key];if(hook.apply(route,args),hook.length<asyncArity){varcallback=args[args.length-1];callback()}}}functiongetEnterHooks(routes){returnroutes.reduce(function(hooks,route){returnroute.onEnter&&hooks.push(createTransitionHook(route.onEnter,route,3)),hooks},[])}functiongetChangeHooks(routes){returnroutes.reduce(function(hooks,route){returnroute.onChange&&hooks.push(createTransitionHook(route.onChange,route,4)),hooks},[])}functionrunTransitionHooks(length,iter,callback){functionreplace(location,deprecatedPathname,deprecatedQuery){returndeprecatedPathname?("production"!==process.env.NODE_ENV?(0,_routerWarning2["default"])(!1,"`replaceState(state, pathname, query) is deprecated; use `replace(location)` with a location descriptor instead. http://tiny.cc/router-isActivedeprecated"):void0,void(redirectInfo={pathname:deprecatedPathname,query:deprecatedQuery,state:location})):void(redirectInfo=location)}if(!length)returnvoidcallback();varredirectInfo=void0;(0,_AsyncUtils.loopAsync)(length,function(index,next,done){iter(index,replace,function(error){error||redirectInfo?done(error,redirectInfo):next()})},callback)}functionrunEnterHooks(routes,nextState,callback){varhooks=getEnterHooks(routes);returnrunTransitionHooks(hooks.length,function(index,replace,next){hooks[index](nextState,replace,next)},callback)}functionrunChangeHooks(routes,state,nextState,callback){varhooks=getChangeHooks(routes);returnrunTransitionHooks(hooks.length,function(index,replace,next){hooks[index](state,nextState,replace,next)},callback)}functionrunLeaveHooks(routes){for(vari=0,len=routes.length;len>i;++i)routes[i].onLeave&&routes[i].onLeave.call(routes[i])}exports.__esModule=!0,exports.runEnterHooks=runEnterHooks,exports.runChangeHooks=runChangeHooks,exports.runLeaveHooks=runLeaveHooks;var_AsyncUtils=require("./AsyncUtils"),_routerWarning=require("./routerWarning"),_routerWarning2=_interopRequireDefault(_routerWarning)}).call(this,require("_process"))},{"./AsyncUtils":593,"./routerWarning":625,_process:314}],612:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}exports.__esModule=!0;var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget},_react=require("react"),_react2=_interopRequireDefault(_react),_RouterContext=require("./RouterContext"),_RouterContext2=_interopRequireDefault(_RouterContext);exports["default"]=function(){for(var_len=arguments.length,middlewares=Array(_len),_key=0;_len>_key;_key++)middlewares[_key]=arguments[_key];varwithContext=middlewares.map(function(m){returnm.renderRouterContext}).filter(function(f){returnf}),withComponent=middlewares.map(function(m){returnm.renderRouteComponent}).filter(function(f){returnf}),makeCreateElement=function(){varbaseCreateElement=arguments.length<=0||void0===arguments[0]?_react.createElement:arguments[0];returnfunction(Component,props){returnwithComponent.reduceRight(function(previous,renderRouteComponent){returnrenderRouteComponent(previous,props)},baseCreateElement(Component,props))}};returnfunction(renderProps){returnwithContext.reduceRight(function(previous,renderRouterContext){returnrenderRouterContext(previous,renderProps)},_react2["default"].createElement(_RouterContext2["default"],_extends({},renderProps,{createElement:makeCreateElement(renderProps.createElement)})))}},module.exports=exports["default"]},{"./RouterContext":608,react:"react"}],613:[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}exports.__esModule=!0;var_createBrowserHistory=require("history/lib/createBrowserHistory"),_createBrowserHistory2=_interopRequireDefault(_createBrowserHistory),_createRouterHi
"use strict";exports.__esModule=!0;varPUSH="PUSH";exports.PUSH=PUSH;varREPLACE="REPLACE";exports.REPLACE=REPLACE;varPOP="POP";exports.POP=POP,exports["default"]={PUSH:PUSH,REPLACE:REPLACE,POP:POP}},{}],630:[function(require,module,exports){"use strict";functionloopAsync(turns,work,callback){functiondone(){returnisDone=!0,sync?void(doneArgs=[].concat(_slice.call(arguments))):voidcallback.apply(this,arguments)}functionnext(){if(!isDone&&(hasNext=!0,!sync)){for(sync=!0;!isDone&&turns>currentTurn&&hasNext;)hasNext=!1,work.call(this,currentTurn++,next,done);returnsync=!1,isDone?voidcallback.apply(this,doneArgs):void(currentTurn>=turns&&hasNext&&(isDone=!0,callback()))}}varcurrentTurn=0,isDone=!1,sync=!1,hasNext=!1,doneArgs=void0;next()}exports.__esModule=!0;var_slice=Array.prototype.slice;exports.loopAsync=loopAsync},{}],631:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functioncreateKey(key){returnKeyPrefix+key}functionsaveState(key,state){try{null==state?window.sessionStorage.removeItem(createKey(key)):window.sessionStorage.setItem(createKey(key),JSON.stringify(state))}catch(error){if(error.name===SecurityError)returnvoid("production"!==process.env.NODE_ENV?_warning2["default"](!1,"[history] Unable to save state; sessionStorage is not available due to security settings"):void0);if(QuotaExceededErrors.indexOf(error.name)>=0&&0===window.sessionStorage.length)returnvoid("production"!==process.env.NODE_ENV?_warning2["default"](!1,"[history] Unable to save state; sessionStorage is not available in Safari private mode"):void0);throwerror}}functionreadState(key){varjson=void0;try{json=window.sessionStorage.getItem(createKey(key))}catch(error){if(error.name===SecurityError)return"production"!==process.env.NODE_ENV?_warning2["default"](!1,"[history] Unable to read state; sessionStorage is not available due to security settings"):void0,null}if(json)try{returnJSON.parse(json)}catch(error){}returnnull}exports.__esModule=!0,exports.saveState=saveState,exports.readState=readState;var_warning=require("warning"),_warning2=_interopRequireDefault(_warning),KeyPrefix="@@History/",QuotaExceededErrors=["QuotaExceededError","QUOTA_EXCEEDED_ERR"],SecurityError="SecurityError"}).call(this,require("_process"))},{_process:314,warning:652}],632:[function(require,module,exports){"use strict";functionaddEventListener(node,event,listener){node.addEventListener?node.addEventListener(event,listener,!1):node.attachEvent("on"+event,listener)}functionremoveEventListener(node,event,listener){node.removeEventListener?node.removeEventListener(event,listener,!1):node.detachEvent("on"+event,listener)}functiongetHashPath(){returnwindow.location.href.split("#")[1]||""}functionreplaceHashPath(path){window.location.replace(window.location.pathname+window.location.search+"#"+path)}functiongetWindowPath(){returnwindow.location.pathname+window.location.search+window.location.hash}functiongo(n){n&&window.history.go(n)}functiongetUserConfirmation(message,callback){callback(window.confirm(message))}functionsupportsHistory(){varua=navigator.userAgent;return-1===ua.indexOf("Android 2.")&&-1===ua.indexOf("Android 4.0")||-1===ua.indexOf("Mobile Safari")||-1!==ua.indexOf("Chrome")||-1!==ua.indexOf("Windows Phone")?window.history&&"pushState"inwindow.history:!1}functionsupportsGoWithoutReloadUsingHash(){varua=navigator.userAgent;return-1===ua.indexOf("Firefox")}exports.__esModule=!0,exports.addEventListener=addEventListener,exports.removeEventListener=removeEventListener,exports.getHashPath=getHashPath,exports.replaceHashPath=replaceHashPath,exports.getWindowPath=getWindowPath,exports.go=go,exports.getUserConfirmation=getUserConfirmation,exports.supportsHistory=supportsHistory,exports.supportsGoWithoutReloadUsingHash=supportsGoWithoutReloadUsingHash},{}],633:[function(require,module,exports){"use strict";exports.__esModule=!0;varcanUseDOM=!("undefined"==typeofwindow||!window.document||!window.document.createElement);exports.canUseDO
})}}exports.__esModule=!0;var_extends=Object.assign||function(target){for(vari=1;i<arguments.length;i++){varsource=arguments[i];for(varkeyinsource)Object.prototype.hasOwnProperty.call(source,key)&&(target[key]=source[key])}returntarget},_warning=require("warning"),_warning2=_interopRequireDefault(_warning),_ExecutionEnvironment=require("./ExecutionEnvironment"),_PathUtils=require("./PathUtils"),_runTransitionHook=require("./runTransitionHook"),_runTransitionHook2=_interopRequireDefault(_runTransitionHook),_deprecate=require("./deprecate"),_deprecate2=_interopRequireDefault(_deprecate);exports["default"]=useBasename,module.exports=exports["default"]}).call(this,require("_process"))},{"./ExecutionEnvironment":633,"./PathUtils":634,"./deprecate":641,"./runTransitionHook":642,_process:314,warning:652}],644:[function(require,module,exports){(function(process){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}functiondefaultStringifyQuery(query){return_queryString.stringify(query).replace(/%20/g,"+")}functionisNestedObject(object){for(varpinobject)if(Object.prototype.hasOwnProperty.call(object,p)&&"object"==typeofobject[p]&&!Array.isArray(object[p])&&null!==object[p])return!0;return!1}functionuseQueries(createHistory){returnfunction(){functionaddQuery(location){if(null==location.query){varsearch=location.search;location.query=parseQueryString(search.substring(1)),location[SEARCH_BASE_KEY]={search:search,searchBase:""}}returnlocation}functionappendQuery(location,query){var_extends2,searchBaseSpec=location[SEARCH_BASE_KEY],queryString=query?stringifyQuery(query):"";if(!searchBaseSpec&&!queryString)returnlocation;"production"!==process.env.NODE_ENV?_warning2["default"](stringifyQuery!==defaultStringifyQuery||!isNestedObject(query),"useQueries does not stringify nested query objects by default; use a custom stringifyQuery function"):void0,"string"==typeoflocation&&(location=_PathUtils.parsePath(location));varsearchBase=void0;searchBase=searchBaseSpec&&location.search===searchBaseSpec.search?searchBaseSpec.searchBase:location.search||"";varsearch=searchBase;returnqueryString&&(search+=(search?"&":"?")+queryString),_extends({},location,(_extends2={search:search},_extends2[SEARCH_BASE_KEY]={search:search,searchBase:searchBase},_extends2))}functionlistenBefore(hook){returnhistory.listenBefore(function(location,callback){_runTransitionHook2["default"](hook,addQuery(location),callback)})}functionlisten(listener){returnhistory.listen(function(location){listener(addQuery(location))})}functionpush(location){history.push(appendQuery(location,location.query))}functionreplace(location){history.replace(appendQuery(location,location.query))}functioncreatePath(location,query){return"production"!==process.env.NODE_ENV?_warning2["default"](!query,"the query argument to createPath is deprecated; use a location descriptor instead"):void0,history.createPath(appendQuery(location,query||location.query))}functioncreateHref(location,query){return"production"!==process.env.NODE_ENV?_warning2["default"](!query,"the query argument to createHref is deprecated; use a location descriptor instead"):void0,history.createHref(appendQuery(location,query||location.query))}functioncreateLocation(location){for(var_len=arguments.length,args=Array(_len>1?_len-1:0),_key=1;_len>_key;_key++)args[_key-1]=arguments[_key];varfullLocation=history.createLocation.apply(history,[appendQuery(location,location.query)].concat(args));returnlocation.query&&(fullLocation.query=location.query),addQuery(fullLocation)}functionpushState(state,path,query){"string"==typeofpath&&(path=_PathUtils.parsePath(path)),push(_extends({state:state},path,{query:query}))}functionreplaceState(state,path,query){"string"==typeofpath&&(path=_PathUtils.parsePath(path)),replace(_extends({state:state},path,{query:query}))}varoptions=arguments.length<=0||void0===arguments[0]?{}:arguments[0],history=createHistory(options),stringifyQuery=options.stringifyQuery,parseQueryString=options.parseQueryString;return"function"!
}}},getValue:function(inputProps){returninputProps.valueLink?(_assertValueLink(inputProps),inputProps.valueLink.value):inputProps.value},getChecked:function(inputProps){returninputProps.checkedLink?(_assertCheckedLink(inputProps),inputProps.checkedLink.value):inputProps.checked},executeOnChange:function(inputProps,event){returninputProps.valueLink?(_assertValueLink(inputProps),inputProps.valueLink.requestChange(event.target.value)):inputProps.checkedLink?(_assertCheckedLink(inputProps),inputProps.checkedLink.requestChange(event.target.checked)):inputProps.onChange?inputProps.onChange.call(void0,event):void0}};module.exports=LinkedValueUtils},{"./ReactPropTypeLocations":727,"./ReactPropTypes":728,"fbjs/lib/invariant":803,"fbjs/lib/warning":814}],674:[function(require,module,exports){"use strict";functionassign(target,sources){if(null==target)thrownewTypeError("Object.assign target cannot be null or undefined");for(varto=Object(target),hasOwnProperty=Object.prototype.hasOwnProperty,nextIndex=1;nextIndex<arguments.length;nextIndex++){varnextSource=arguments[nextIndex];if(null!=nextSource){varfrom=Object(nextSource);for(varkeyinfrom)hasOwnProperty.call(from,key)&&(to[key]=from[key])}}returnto}module.exports=assign},{}],675:[function(require,module,exports){"use strict";varinvariant=require("fbjs/lib/invariant"),oneArgumentPooler=function(copyFieldsFrom){varKlass=this;if(Klass.instancePool.length){varinstance=Klass.instancePool.pop();returnKlass.call(instance,copyFieldsFrom),instance}returnnewKlass(copyFieldsFrom)},twoArgumentPooler=function(a1,a2){varKlass=this;if(Klass.instancePool.length){varinstance=Klass.instancePool.pop();returnKlass.call(instance,a1,a2),instance}returnnewKlass(a1,a2)},threeArgumentPooler=function(a1,a2,a3){varKlass=this;if(Klass.instancePool.length){varinstance=Klass.instancePool.pop();returnKlass.call(instance,a1,a2,a3),instance}returnnewKlass(a1,a2,a3)},fourArgumentPooler=function(a1,a2,a3,a4){varKlass=this;if(Klass.instancePool.length){varinstance=Klass.instancePool.pop();returnKlass.call(instance,a1,a2,a3,a4),instance}returnnewKlass(a1,a2,a3,a4)},fiveArgumentPooler=function(a1,a2,a3,a4,a5){varKlass=this;if(Klass.instancePool.length){varinstance=Klass.instancePool.pop();returnKlass.call(instance,a1,a2,a3,a4,a5),instance}returnnewKlass(a1,a2,a3,a4,a5)},standardReleaser=function(instance){varKlass=this;instanceinstanceofKlass?void0:invariant(!1),instance.destructor(),Klass.instancePool.length<Klass.poolSize&&Klass.instancePool.push(instance)},DEFAULT_POOL_SIZE=10,DEFAULT_POOLER=oneArgumentPooler,addPoolingTo=function(CopyConstructor,pooler){varNewKlass=CopyConstructor;returnNewKlass.instancePool=[],NewKlass.getPooled=pooler||DEFAULT_POOLER,NewKlass.poolSize||(NewKlass.poolSize=DEFAULT_POOL_SIZE),NewKlass.release=standardReleaser,NewKlass},PooledClass={addPoolingTo:addPoolingTo,oneArgumentPooler:oneArgumentPooler,twoArgumentPooler:twoArgumentPooler,threeArgumentPooler:threeArgumentPooler,fourArgumentPooler:fourArgumentPooler,fiveArgumentPooler:fiveArgumentPooler};module.exports=PooledClass},{"fbjs/lib/invariant":803}],676:[function(require,module,exports){"use strict";varReactDOM=require("./ReactDOM"),ReactDOMServer=require("./ReactDOMServer"),ReactIsomorphic=require("./ReactIsomorphic"),assign=require("./Object.assign"),deprecated=require("./deprecated"),React={};assign(React,ReactIsomorphic),assign(React,{findDOMNode:deprecated("findDOMNode","ReactDOM","react-dom",ReactDOM,ReactDOM.findDOMNode),render:deprecated("render","ReactDOM","react-dom",ReactDOM,ReactDOM.render),unmountComponentAtNode:deprecated("unmountComponentAtNode","ReactDOM","react-dom",ReactDOM,ReactDOM.unmountComponentAtNode),renderToString:deprecated("renderToString","ReactDOMServer","react-dom/server",ReactDOMServer,ReactDOMServer.renderToString),renderToStaticMarkup:deprecated("renderToStaticMarkup","ReactDOMServer","react-dom/server",ReactDOMServer,ReactDOMServer.renderToStaticMarkup)}),React.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ReactDOM,React.__SECRET_DOM_SERVER_DO_NOT_USE_O
if(this._bodyFormData)thrownewError("could not read FormData body as text");returnPromise.resolve(this._bodyText)}):this.text=function(){varrejected=consumed(this);returnrejected?rejected:Promise.resolve(this._bodyText)},support.formData&&(this.formData=function(){returnthis.text().then(decode)}),this.json=function(){returnthis.text().then(JSON.parse)},this}functionnormalizeMethod(method){varupcased=method.toUpperCase();returnmethods.indexOf(upcased)>-1?upcased:method}functionRequest(input,options){options=options||{};varbody=options.body;if(Request.prototype.isPrototypeOf(input)){if(input.bodyUsed)thrownewTypeError("Already read");this.url=input.url,this.credentials=input.credentials,options.headers||(this.headers=newHeaders(input.headers)),this.method=input.method,this.mode=input.mode,body||(body=input._bodyInit,input.bodyUsed=!0)}elsethis.url=input;if(this.credentials=options.credentials||this.credentials||"omit",!options.headers&&this.headers||(this.headers=newHeaders(options.headers)),this.method=normalizeMethod(options.method||this.method||"GET"),this.mode=options.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&body)thrownewTypeError("Body not allowed for GET or HEAD requests");this._initBody(body)}functiondecode(body){varform=newFormData;returnbody.trim().split("&").forEach(function(bytes){if(bytes){varsplit=bytes.split("="),name=split.shift().replace(/\+/g," "),value=split.join("=").replace(/\+/g," ");form.append(decodeURIComponent(name),decodeURIComponent(value))}}),form}functionheaders(xhr){varhead=newHeaders,pairs=xhr.getAllResponseHeaders().trim().split("\n");returnpairs.forEach(function(header){varsplit=header.trim().split(":"),key=split.shift().trim(),value=split.join(":").trim();head.append(key,value)}),head}functionResponse(bodyInit,options){options||(options={}),this.type="default",this.status=options.status,this.ok=this.status>=200&&this.status<300,this.statusText=options.statusText,this.headers=options.headersinstanceofHeaders?options.headers:newHeaders(options.headers),this.url=options.url||"",this._initBody(bodyInit)}if(!self.fetch){Headers.prototype.append=function(name,value){name=normalizeName(name),value=normalizeValue(value);varlist=this.map[name];list||(list=[],this.map[name]=list),list.push(value)},Headers.prototype["delete"]=function(name){deletethis.map[normalizeName(name)]},Headers.prototype.get=function(name){varvalues=this.map[normalizeName(name)];returnvalues?values[0]:null},Headers.prototype.getAll=function(name){returnthis.map[normalizeName(name)]||[]},Headers.prototype.has=function(name){returnthis.map.hasOwnProperty(normalizeName(name))},Headers.prototype.set=function(name,value){this.map[normalizeName(name)]=[normalizeValue(value)]},Headers.prototype.forEach=function(callback,thisArg){Object.getOwnPropertyNames(this.map).forEach(function(name){this.map[name].forEach(function(value){callback.call(thisArg,value,name,this)},this)},this)};varsupport={blob:"FileReader"inself&&"Blob"inself&&function(){try{returnnewBlob,!0}catch(e){return!1}}(),formData:"FormData"inself,arrayBuffer:"ArrayBuffer"inself},methods=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];Request.prototype.clone=function(){returnnewRequest(this)},Body.call(Request.prototype),Body.call(Response.prototype),Response.prototype.clone=function(){returnnewResponse(this._bodyInit,{status:this.status,statusText:this.statusText,headers:newHeaders(this.headers),url:this.url})},Response.error=function(){varresponse=newResponse(null,{status:0,statusText:""});returnresponse.type="error",response};varredirectStatuses=[301,302,303,307,308];Response.redirect=function(url,status){if(-1===redirectStatuses.indexOf(status))thrownewRangeError("Invalid status code");returnnewResponse(null,{status:status,headers:{location:url}})},self.Headers=Headers,self.Request=Request,self.Response=Response,self.fetch=function(input,init){returnnewPromise(function(resolve,reject){functionresponseURL(){return"responseURL"inxhr?xhr.responseURL:/^X-Request-URL:/
runSoon=function(func,delay){returnfunc.call(this),null}},triggerMatching:function(){changes.addAll()}})}(jQuery),function($){if(void0==$.support.changeBubbles){$.support.changeBubbles=!0;varel=document.createElement("div");if(eventName="onchange",el.attachEvent){varisSupported=eventNameinel;isSupported||(el.setAttribute(eventName,"return;"),isSupported="function"==typeofel[eventName]),$.support.changeBubbles=isSupported}}if(document.compareDocumentPosition)varis_or_contains=function(a,b){returna&&b&&(a==b||!!(16&a.compareDocumentPosition(b)))};elsevaris_or_contains=function(a,b){returna&&b&&(a==b||(a.contains?a.contains(b):!0))};$.entwine.Namespace.addMethods({build_event_proxy:function(name){varone=this.one(name,"func"),prxy=function(e,data){e=e.delegatedEvent||e;for(varel=e.target;el&&1==el.nodeType&&!e.isPropagationStopped();){varret=one(el,arguments);void0!==ret&&(e.result=ret),ret===!1&&(e.preventDefault(),e.stopPropagation()),el=el.parentNode}};returnprxy},build_mouseenterleave_proxy:function(name){varone=this.one(name,"func"),prxy=function(e){for(varel=e.target,rel=e.relatedTarget;el&&1==el.nodeType&&!e.isPropagationStopped()&&!is_or_contains(el,rel);){varret=one(el,arguments);void0!==ret&&(e.result=ret),ret===!1&&(e.preventDefault(),e.stopPropagation()),el=el.parentNode}};returnprxy},build_change_proxy:function(name){varone=this.one(name,"func"),getVal=function(elem){vartype=elem.type,val=elem.value;return"radio"===type||"checkbox"===type?val=elem.checked:"select-multiple"===type?(val="",elem.selectedIndex>-1&&(val=jQuery.map(elem.options,function(elem){returnelem.selected}).join("-"))):jQuery.nodeName(elem,"select")&&(val=elem.selectedIndex),val},rformElems=/^(?:textarea|input|select)$/i,testChange=function(e){vardata,val,elem=e.target;if(rformElems.test(elem.nodeName)&&!elem.readOnly&&(data=jQuery.data(elem,"_entwine_change_data"),val=getVal(elem),"focusout"===e.type&&"radio"===elem.type||jQuery.data(elem,"_entwine_change_data",val),void0!==data&&val!==data&&(null!=data||val)))for(e.type="change";elem&&1==elem.nodeType&&!e.isPropagationStopped();){varret=one(elem,arguments);void0!==ret&&(e.result=ret),ret===!1&&(e.preventDefault(),e.stopPropagation()),elem=elem.parentNode}},prxy=function(e){varevent=e.type,elem=e.target,type=jQuery.nodeName(elem,"input")?elem.type:"";switch(event){case"focusout":case"beforedeactivate":testChange.apply(this,arguments);break;case"click":("radio"===type||"checkbox"===type||jQuery.nodeName(elem,"select"))&&testChange.apply(this,arguments);break;case"keydown":(13===e.keyCode&&!jQuery.nodeName(elem,"textarea")||32===e.keyCode&&("checkbox"===type||"radio"===type)||"select-multiple"===type)&&testChange.apply(this,arguments);break;case"focusin":case"beforeactivate":jQuery.data(elem,"_entwine_change_data",getVal(elem))}};returnprxy},bind_event:function(selector,name,func,event){varfuncs=this.store[name]||(this.store[name]=$.entwine.RuleList()),proxies=funcs.proxies||(funcs.proxies={}),rule=funcs.addRule(selector,name);if(rule.func=func,!proxies[name]){switch(name){case"onmouseenter":proxies[name]=this.build_mouseenterleave_proxy(name),event="mouseover";break;case"onmouseleave":proxies[name]=this.build_mouseenterleave_proxy(name),event="mouseout";break;case"onchange":$.support.changeBubbles||(proxies[name]=this.build_change_proxy(name),event="click keydown focusin focusout beforeactivate beforedeactivate");break;case"onsubmit":event="delegatedSubmit";break;case"onfocus":case"onblur":$.entwine.warn("Event "+event+" not supported - using focusin / focusout instead",$.entwine.WARN_LEVEL_IMPORTANT)}proxies[name]||(proxies[name]=this.build_event_proxy(name)),$(document).bind(event.replace(/(\s+|$)/g,".entwine$1"),proxies[name])}}}),$.entwine.Namespace.addHandler({order:40,bind:function(selector,k,v){varmatch,event;return$.isFunction(v)&&(match=k.match(/^on(.*)/))?(event=match[1],this.bind_event(selector,k,v,event),!0):void0}});vardelegate_submit=function(e,data){vardelegationEvent=$.Event("delegatedSubmit");returndelegationEvent.delegatedEvent=e,$(docume
}),obj=obj.detach(),-1!==p&&0===p.find("> ul > li").length&&p.removeClass("jstree-open jstree-closed").addClass("jstree-leaf"),this.clean_node(p),this.__callback({obj:obj,prev:prev,parent:p}),obj},prepare_move:function(o,r,pos,cb,is_cb){varp={};if(p.ot=$.jstree._reference(o)||this,p.o=p.ot._get_node(o),p.r=-1===r?-1:this._get_node(r),p.p="undefined"==typeofpos||pos===!1?"last":pos,!is_cb&&prepared_move.o&&prepared_move.o[0]===p.o[0]&&prepared_move.r[0]===p.r[0]&&prepared_move.p===p.p)returnthis.__callback(prepared_move),void(cb&&cb.call(this,prepared_move));if(p.ot=$.jstree._reference(p.o)||this,p.rt=$.jstree._reference(p.r)||this,-1!==p.r&&p.r){if(!/^(before|after)$/.test(p.p)&&!this._is_loaded(p.r))returnthis.load_node(p.r,function(){this.prepare_move(o,r,pos,cb,!0)});switch(p.p){case"before":p.cp=p.r.index(),p.cr=p.rt._get_parent(p.r);break;case"after":p.cp=p.r.index()+1,p.cr=p.rt._get_parent(p.r);break;case"inside":case"first":p.cp=0,p.cr=p.r;break;case"last":p.cp=p.r.find(" > ul > li").length,p.cr=p.r;break;default:p.cp=p.p,p.cr=p.r}}elseswitch(p.cr=-1,p.p){case"first":case"before":case"inside":p.cp=0;break;case"after":case"last":p.cp=p.rt.get_container().find(" > ul > li").length;break;default:p.cp=p.p}p.np=-1==p.cr?p.rt.get_container():p.cr,p.op=p.ot._get_parent(p.o),p.cop=p.o.index(),-1===p.op&&(p.op=p.ot?p.ot.get_container():this.get_container()),!/^(before|after)$/.test(p.p)&&p.op&&p.np&&p.op[0]===p.np[0]&&p.o.index()<p.cp&&p.cp++,p.or=p.np.find(" > ul > li:nth-child("+(p.cp+1)+")"),prepared_move=p,this.__callback(prepared_move),cb&&cb.call(this,prepared_move)},check_move:function(){varobj=prepared_move,ret=!0,r=-1===obj.r?this.get_container():obj.r;if(!obj||!obj.o||obj.or[0]===obj.o[0])return!1;if(!obj.cy){if(obj.op&&obj.np&&obj.op[0]===obj.np[0]&&obj.cp-1===obj.o.index())return!1;obj.o.each(function(){return-1!==r.parentsUntil(".jstree","li").andSelf().index(this)?(ret=!1,!1):void0})}returnret},move_node:function(obj,ref,position,is_copy,is_prepared,skip_check){if(!is_prepared)returnthis.prepare_move(obj,ref,position,function(p){this.move_node(p,!1,!1,is_copy,!0,skip_check)});if(is_copy&&(prepared_move.cy=!0),!skip_check&&!this.check_move())return!1;this.__rollback();varo=!1;is_copy?(o=obj.o.clone(!0),o.find("*[id]").andSelf().each(function(){this.id&&(this.id="copy_"+this.id)})):o=obj.o,obj.or.length?obj.or.before(o):(obj.np.children("ul").length||$("<ul />").appendTo(obj.np),obj.np.children("ul:eq(0)").append(o));try{obj.ot.clean_node(obj.op),obj.rt.clean_node(obj.np),obj.op.find("> ul > li").length||obj.op.removeClass("jstree-open jstree-closed").addClass("jstree-leaf").children("ul").remove()}catch(e){}returnis_copy&&(prepared_move.cy=!0,prepared_move.oc=o),this.__callback(prepared_move),prepared_move},_get_move:function(){returnprepared_move}}})}(jQuery),function($){varscrollbar_width,e1,e2;$(function(){/msie/.test(navigator.userAgent.toLowerCase())?(e1=$('<textarea cols="10" rows="2"></textarea>').css({position:"absolute",top:-1e3,left:0}).appendTo("body"),e2=$('<textarea cols="10" rows="2" style="overflow: hidden;"></textarea>').css({position:"absolute",top:-1e3,left:0}).appendTo("body"),scrollbar_width=e1.width()-e2.width(),e1.add(e2).remove()):(e1=$("<div />").css({width:100,height:100,overflow:"auto",position:"absolute",top:-1e3,left:0}).prependTo("body").append("<div />").find("div").css({width:"100%",height:200}),scrollbar_width=100-e1.width(),e1.parent().remove())}),$.jstree.plugin("ui",{__init:function(){this.data.ui.selected=$(),this.data.ui.last_selected=!1,this.data.ui.hovered=null,this.data.ui.to_select=this.get_settings().ui.initially_select,this.get_container().delegate("a","click.jstree",$.proxy(function(event){event.preventDefault(),event.currentTarget.blur(),$(event.currentTarget).hasClass("jstree-loading")||this.select_node(event.currentTarget,!0,event)},this)).delegate("a","mouseenter.jstree",$.proxy(function(event){$(event.currentTarget).hasClass("jstree-loading")||this.hover_node(event.target)},this)).delegate("a","mouseleave.jstree",$.proxy(function(event){$(event.cur
cookie_options:{}},_fn:{save_cookie:function(c){if(!this.data.core.refreshing){vars=this._get_settings().cookies;if(!c)returns.save_loaded&&(this.save_loaded(),$.cookie(s.save_loaded,this.data.core.to_load.join(","),s.cookie_options)),s.save_opened&&(this.save_opened(),$.cookie(s.save_opened,this.data.core.to_open.join(","),s.cookie_options)),void(s.save_selected&&this.data.ui&&(this.save_selected(),$.cookie(s.save_selected,this.data.ui.to_select.join(","),s.cookie_options)));switch(c){case"open_node":case"close_node":s.save_opened&&(this.save_opened(),$.cookie(s.save_opened,this.data.core.to_open.join(","),s.cookie_options)),s.save_loaded&&(this.save_loaded(),$.cookie(s.save_loaded,this.data.core.to_load.join(","),s.cookie_options));break;case"select_node":case"deselect_node":s.save_selected&&this.data.ui&&(this.save_selected(),$.cookie(s.save_selected,this.data.ui.to_select.join(","),s.cookie_options))}}}}})}(jQuery),function($){$.jstree.plugin("sort",{__init:function(){this.get_container().bind("load_node.jstree",$.proxy(function(e,data){varobj=this._get_node(data.rslt.obj);obj=-1===obj?this.get_container().children("ul"):obj.children("ul"),this.sort(obj)},this)).bind("rename_node.jstree create_node.jstree create.jstree",$.proxy(function(e,data){this.sort(data.rslt.obj.parent())},this)).bind("move_node.jstree",$.proxy(function(e,data){varm=-1==data.rslt.np?this.get_container():data.rslt.np;this.sort(m.children("ul"))},this))},defaults:function(a,b){returnthis.get_text(a)>this.get_text(b)?1:-1},_fn:{sort:function(obj){vars=this._get_settings().sort,t=this;obj.append($.makeArray(obj.children("li")).sort($.proxy(s,t))),obj.find("> li > ul").each(function(){t.sort($(this))}),this.clean_node(obj)}}})}(jQuery),function($){varo=!1,r=!1,m=!1,ml=!1,sli=!1,sti=!1,dir1=!1,dir2=!1,last_pos=!1;$.vakata.dnd={is_down:!1,is_drag:!1,helper:!1,scroll_spd:10,init_x:0,init_y:0,threshold:5,helper_left:5,helper_top:10,user_data:{},drag_start:function(e,data,html){$.vakata.dnd.is_drag&&$.vakata.drag_stop({});try{e.currentTarget.unselectable="on",e.currentTarget.onselectstart=function(){return!1},e.currentTarget.style&&(e.currentTarget.style.MozUserSelect="none")}catch(err){}return$.vakata.dnd.init_x=e.pageX,$.vakata.dnd.init_y=e.pageY,$.vakata.dnd.user_data=data,$.vakata.dnd.is_down=!0,$.vakata.dnd.helper=$("<div id='vakata-dragged' />").html(html),$(document).bind("mousemove",$.vakata.dnd.drag),$(document).bind("mouseup",$.vakata.dnd.drag_stop),!1},drag:function(e){if($.vakata.dnd.is_down){if(!$.vakata.dnd.is_drag){if(!(Math.abs(e.pageX-$.vakata.dnd.init_x)>5||Math.abs(e.pageY-$.vakata.dnd.init_y)>5))return;$.vakata.dnd.helper.appendTo("body"),$.vakata.dnd.is_drag=!0,$(document).triggerHandler("drag_start.vakata",{event:e,data:$.vakata.dnd.user_data})}if("mousemove"===e.type){vard=$(document),t=d.scrollTop(),l=d.scrollLeft();e.pageY-t<20?(sti&&"down"===dir1&&(clearInterval(sti),sti=!1),sti||(dir1="up",sti=setInterval(function(){$(document).scrollTop($(document).scrollTop()-$.vakata.dnd.scroll_spd)},150))):sti&&"up"===dir1&&(clearInterval(sti),sti=!1),$(window).height()-(e.pageY-t)<20?(sti&&"up"===dir1&&(clearInterval(sti),sti=!1),sti||(dir1="down",sti=setInterval(function(){$(document).scrollTop($(document).scrollTop()+$.vakata.dnd.scroll_spd)},150))):sti&&"down"===dir1&&(clearInterval(sti),sti=!1),e.pageX-l<20?(sli&&"right"===dir2&&(clearInterval(sli),sli=!1),sli||(dir2="left",sli=setInterval(function(){$(document).scrollLeft($(document).scrollLeft()-$.vakata.dnd.scroll_spd)},150))):sli&&"left"===dir2&&(clearInterval(sli),sli=!1),$(window).width()-(e.pageX-l)<20?(sli&&"left"===dir2&&(clearInterval(sli),sli=!1),sli||(dir2="right",sli=setInterval(function(){$(document).scrollLeft($(document).scrollLeft()+$.vakata.dnd.scroll_spd)},150))):sli&&"right"===dir2&&(clearInterval(sli),sli=!1)}$.vakata.dnd.helper.css({left:e.pageX+$.vakata.dnd.helper_left+"px",top:e.pageY+$.vakata.dnd.helper_top+"px"}),$(document).triggerHandler("drag.vakata",{event:e,data:$.vakata.dnd.user_data})}},drag_stop:function(e){sli&&clearInterval(sli),sti&&clearI
},escape_xml=function(string){returnstring.toString().replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")};$.jstree.plugin("xml_data",{defaults:{data:!1,ajax:!1,xsl:"flat",clean_node:!1,correct_state:!0,get_skip_empty:!1,get_include_preamble:!0},_fn:{load_node:function(obj,s_call,e_call){var_this=this;this.load_node_xml(obj,function(){_this.__callback({obj:_this._get_node(obj)}),s_call.call(this)},e_call)},_is_loaded:function(obj){vars=this._get_settings().xml_data;returnobj=this._get_node(obj),-1==obj||!obj||!s.ajax&&!$.isFunction(s.data)||obj.is(".jstree-open, .jstree-leaf")||obj.children("ul").children("li").size()>0},load_node_xml:function(obj,s_call,e_call){vars=this.get_settings().xml_data,error_func=function(){},success_func=function(){};if(obj=this._get_node(obj),obj&&-1!==obj){if(obj.data("jstree_is_loading"))return;obj.data("jstree_is_loading",!0)}switch(!0){case!s.data&&!s.ajax:throw"Neither data nor ajax settings supplied.";case$.isFunction(s.data):s.data.call(this,obj,$.proxy(function(d){this.parse_xml(d,$.proxy(function(d){d&&(d=d.replace(/ ?xmlns="[^"]*"/gi,""),d.length>10?(d=$(d),-1!==obj&&obj?(obj.children("a.jstree-loading").removeClass("jstree-loading"),obj.append(d),obj.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(d.children()),s.clean_node&&this.clean_node(obj),s_call&&s_call.call(this)):obj&&-1!==obj?(obj.children("a.jstree-loading").removeClass("jstree-loading"),obj.removeData("jstree_is_loading"),s.correct_state&&(this.correct_state(obj),s_call&&s_call.call(this))):s.correct_state&&(this.get_container().children("ul").empty(),s_call&&s_call.call(this)))},this))},this));break;case!!s.data&&!s.ajax||!!s.data&&!!s.ajax&&(!obj||-1===obj):obj&&-1!=obj||this.parse_xml(s.data,$.proxy(function(d){d?(d=d.replace(/ ?xmlns="[^"]*"/gi,""),d.length>10&&(d=$(d),this.get_container().children("ul").empty().append(d.children()),s.clean_node&&this.clean_node(obj),s_call&&s_call.call(this))):s.correct_state&&(this.get_container().children("ul").empty(),s_call&&s_call.call(this))},this));break;case!s.data&&!!s.ajax||!!s.data&&!!s.ajax&&obj&&-1!==obj:error_func=function(x,t,e){varef=this.get_settings().xml_data.ajax.error;ef&&ef.call(this,x,t,e),-1!==obj&&obj.length?(obj.children("a.jstree-loading").removeClass("jstree-loading"),obj.removeData("jstree_is_loading"),"success"===t&&s.correct_state&&this.correct_state(obj)):"success"===t&&s.correct_state&&this.get_container().children("ul").empty(),e_call&&e_call.call(this)},success_func=function(d,t,x){d=x.responseText;varsf=this.get_settings().xml_data.ajax.success;returnsf&&(d=sf.call(this,d,t,x)||d),""===d||d&&d.toString&&""===d.toString().replace(/^[\s\n]+$/,"")?error_func.call(this,x,t,""):voidthis.parse_xml(d,$.proxy(function(d){d&&(d=d.replace(/ ?xmlns="[^"]*"/gi,""),d.length>10?(d=$(d),-1!==obj&&obj?(obj.children("a.jstree-loading").removeClass("jstree-loading"),obj.append(d),obj.removeData("jstree_is_loading")):this.get_container().children("ul").empty().append(d.children()),s.clean_node&&this.clean_node(obj),s_call&&s_call.call(this)):obj&&-1!==obj?(obj.children("a.jstree-loading").removeClass("jstree-loading"),obj.removeData("jstree_is_loading"),s.correct_state&&(this.correct_state(obj),s_call&&s_call.call(this))):s.correct_state&&(this.get_container().children("ul").empty(),s_call&&s_call.call(this)))},this))},s.ajax.context=this,s.ajax.error=error_func,s.ajax.success=success_func,s.ajax.dataType||(s.ajax.dataType="xml"),$.isFunction(s.ajax.url)&&(s.ajax.url=s.ajax.url.call(this,obj)),$.isFunction(s.ajax.data)&&(s.ajax.data=s.ajax.data.call(this,obj)),$.ajax(s.ajax)}},parse_xml:function(xml,callback){vars=this._get_settings().xml_data;$.vakata.xslt(xml,xsl[s.xsl],callback)},get_xml:function(tp,obj,li_attr,a_attr,is_callback){vartmp1,tmp2,li,a,lang,result="",s=this._get_settings(),_this=this;returntp||(tp="flat"),is_callback||(is_callback=0),obj=this._get_node(obj),obj&&-1!==obj||(obj=this.get_container().find("> ul > li")),li_attr=$.isArray(li_attr)?
nms.push($(this).text().replace(/^\s+/g,""))}),res=this._check_unique(nms,data.args[0].np.find("> ul > li").not(data.args[0].o),"move_node")),"create_node"==data.func&&(data.args[4]||this._is_loaded(data.args[0]))&&(p=this._get_node(data.args[0]),!data.args[1]||"before"!==data.args[1]&&"after"!==data.args[1]||(p=this._get_parent(data.args[0]),p&&-1!==p||(p=this.get_container())),"string"==typeofdata.args[2]?nms.push(data.args[2]):data.args[2]&&data.args[2].data?nms.push(data.args[2].data):nms.push(this._get_string("new_node")),res=this._check_unique(nms,p.find("> ul > li"),"create_node")),"rename_node"==data.func&&(nms.push(data.args[1]),t=this._get_node(data.args[0]),p=this._get_parent(t),p&&-1!==p||(p=this.get_container()),res=this._check_unique(nms,p.find("> ul > li").not(t),"rename_node")),res?void0:(e.stopPropagation(),!1)},this))},defaults:{error_callback:$.noop},_fn:{_check_unique:function(nms,p,func){varcnms=[],ok=!0;returnp.children("a").each(function(){cnms.push($(this).text().replace(/^\s+/g,""))}),cnms.length&&nms.length?($.each(nms,function(i,v){return-1!==$.inArray(v,cnms)?(ok=!1,!1):void0}),ok||this._get_settings().unique.error_callback.call(null,nms,p,func),ok):!0},check_move:function(){if(!this.__call_old())return!1;varp=this._get_move(),nms=[];returnp.o&&p.o.length?(p.o.children("a").each(function(){nms.push($(this).text().replace(/^\s+/g,""))}),this._check_unique(nms,p.np.find("> ul > li").not(p.o),"check_move")):!0}}})}(jQuery),function($){$.jstree.plugin("wholerow",{__init:function(){if(!this.data.ui)throw"jsTree wholerow: jsTree UI plugin not included.";this.data.wholerow.html=!1,this.data.wholerow.to=!1,this.get_container().bind("init.jstree",$.proxy(function(e,data){this._get_settings().core.animation=0},this)).bind("open_node.jstree create_node.jstree clean_node.jstree loaded.jstree",$.proxy(function(e,data){this._prepare_wholerow_span(data&&data.rslt&&data.rslt.obj?data.rslt.obj:-1)},this)).bind("search.jstree clear_search.jstree reopen.jstree after_open.jstree after_close.jstree create_node.jstree delete_node.jstree clean_node.jstree",$.proxy(function(e,data){this.data.to&&clearTimeout(this.data.to),this.data.to=setTimeout(function(t,o){returnfunction(){t._prepare_wholerow_ul(o)}}(this,data&&data.rslt&&data.rslt.obj?data.rslt.obj:-1),0)},this)).bind("deselect_all.jstree",$.proxy(function(e,data){this.get_container().find(" > .jstree-wholerow .jstree-clicked").removeClass("jstree-clicked "+(this.data.themeroller?this._get_settings().themeroller.item_a:""))},this)).bind("select_node.jstree deselect_node.jstree ",$.proxy(function(e,data){data.rslt.obj.each(function(){varref=data.inst.get_container().find(" > .jstree-wholerow li:visible:eq("+parseInt(($(this).offset().top-data.inst.get_container().offset().top+data.inst.get_container()[0].scrollTop)/data.inst.data.core.li_height,10)+")");ref.children("a").attr("class",data.rslt.obj.children("a").attr("class"))})},this)).bind("hover_node.jstree dehover_node.jstree",$.proxy(function(e,data){if(this.get_container().find(" > .jstree-wholerow .jstree-hovered").removeClass("jstree-hovered "+(this.data.themeroller?this._get_settings().themeroller.item_h:"")),"hover_node"===e.type){varref=this.get_container().find(" > .jstree-wholerow li:visible:eq("+parseInt((data.rslt.obj.offset().top-this.get_container().offset().top+this.get_container()[0].scrollTop)/this.data.core.li_height,10)+")");ref.children("a").attr("class",data.rslt.obj.children(".jstree-hovered").attr("class"))}},this)).delegate(".jstree-wholerow-span, ins.jstree-icon, li","click.jstree",function(e){varn=$(e.currentTarget);"A"===e.target.tagName||"INS"===e.target.tagName&&n.closest("li").is(".jstree-open, .jstree-closed")||(n.closest("li").children("a:visible:eq(0)").click(),e.stopImmediatePropagation())}).delegate("li","mouseover.jstree",$.proxy(function(e){returne.stopImmediatePropagation(),$(e.currentTarget).children(".jstree-hovered, .jstree-clicked").length?!1:(this.hover_node(e.currentTarget),!1)},this)).delegate("li","mouseleave.jstree",$.proxy(function(e){$(e.currentTarget
varkey=keys[i],value=Object.getOwnPropertyDescriptor(defaults,key);value&&value.configurable&&void0===obj[key]&&Object.defineProperty(obj,key,value)}returnobj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_possibleConstructorReturn(self,call){if(!self)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeofcall&&"function"!=typeofcall?self:call}function_inherits(subClass,superClass){if("function"!=typeofsuperClass&&null!==superClass)thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):_defaults(subClass,superClass))}Object.defineProperty(exports,"__esModule",{value:!0});var_react=require("react"),_react2=_interopRequireDefault(_react),_reactBootstrap=require("react-bootstrap-4"),_SilverStripeComponent=require("lib/SilverStripeComponent"),_SilverStripeComponent2=_interopRequireDefault(_SilverStripeComponent),PopoverField=function(_SilverStripeComponen){functionPopoverField(props){_classCallCheck(this,PopoverField);var_this=_possibleConstructorReturn(this,_SilverStripeComponen.call(this,props));return_this.handleShow=_this.handleShow.bind(_this),_this.handleHide=_this.handleHide.bind(_this),_this.state={showing:!1},_this}return_inherits(PopoverField,_SilverStripeComponen),PopoverField.prototype.handleShow=function(){this.setState({showing:!0})},PopoverField.prototype.handleHide=function(){this.setState({showing:!1})},PopoverField.prototype.render=function(){varplacement=this.getPlacement(),overlay=_react2["default"].createElement(_reactBootstrap.Popover,{id:this.props.id+"_Popover",className:"fade in popover-"+placement,title:this.props.data.popoverTitle},this.props.children),buttonClasses=["btn","btn-secondary"];returnthis.state.showing&&buttonClasses.push("btn--no-focus"),this.props.title||buttonClasses.push("font-icon-dot-3 btn--no-text btn--icon-xl"),_react2["default"].createElement(_reactBootstrap.OverlayTrigger,{rootClose:!0,trigger:"click",container:this,placement:placement,overlay:overlay,onEnter:this.handleShow,onExited:this.handleHide},_react2["default"].createElement("button",{id:this.props.id,type:"button",className:buttonClasses.join(" ")},this.props.title))},PopoverField.prototype.getPlacement=function(){varplacement=this.props.data.placement;returnplacement||"bottom"},PopoverField}(_SilverStripeComponent2["default"]);PopoverField.propTypes={id:_react2["default"].PropTypes.string,title:_react2["default"].PropTypes.oneOfType([_react2["default"].PropTypes.string,_react2["default"].PropTypes.bool]),data:_react2["default"].PropTypes.oneOfType([_react2["default"].PropTypes.array,_react2["default"].PropTypes.shape({popoverTitle:_react2["default"].PropTypes.string,placement:_react2["default"].PropTypes.oneOf(["top","right","bottom","left"])})])},exports["default"]=PopoverField},{"lib/SilverStripeComponent":"lib/SilverStripeComponent",react:"react","react-bootstrap-4":"react-bootstrap-4"}],"components/SingleSelectField/SingleSelectField":[function(require,module,exports){"use strict";function_interopRequireDefault(obj){returnobj&&obj.__esModule?obj:{"default":obj}}function_defaults(obj,defaults){for(varkeys=Object.getOwnPropertyNames(defaults),i=0;i<keys.length;i++){varkey=keys[i],value=Object.getOwnPropertyDescriptor(defaults,key);value&&value.configurable&&void0===obj[key]&&Object.defineProperty(obj,key,value)}returnobj}function_classCallCheck(instance,Constructor){if(!(instanceinstanceofConstructor))thrownewTypeError("Cannot call a class as a function")}function_possibleConstructorReturn(self,call){if(!self)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!call||"object"!=typeofcall&&"function"!=typeofcall?self:call}funct
}function_inherits(subClass,superClass){if("function"!=typeofsuperClass&&null!==superClass)thrownewTypeError("Super expression must either be null or a function, not "+typeofsuperClass);subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,enumerable:!1,writable:!0,configurable:!0}}),superClass&&(Object.setPrototypeOf?Object.setPrototypeOf(subClass,superClass):_defaults(subClass,superClass))}Object.defineProperty(exports,"__esModule",{value:!0});var_react=require("react"),_react2=_interopRequireDefault(_react),_jQuery=require("jQuery"),_jQuery2=_interopRequireDefault(_jQuery),SilverStripeComponent=function(_Component){functionSilverStripeComponent(){return_classCallCheck(this,SilverStripeComponent),_possibleConstructorReturn(this,_Component.apply(this,arguments))}return_inherits(SilverStripeComponent,_Component),SilverStripeComponent.prototype.componentDidMount=function(){if("undefined"!=typeofthis.props.cmsEvents){this.cmsEvents=this.props.cmsEvents;for(varcmsEventinthis.cmsEvents)({}).hasOwnProperty.call(this.cmsEvents,cmsEvent)&&(0,_jQuery2["default"])(document).on(cmsEvent,this.cmsEvents[cmsEvent].bind(this))}},SilverStripeComponent.prototype.componentWillUnmount=function(){for(varcmsEventinthis.cmsEvents)({}).hasOwnProperty.call(this.cmsEvents,cmsEvent)&&(0,_jQuery2["default"])(document).off(cmsEvent)},SilverStripeComponent.prototype.emitCmsEvent=function(componentEvent,data){(0,_jQuery2["default"])(document).trigger(componentEvent,data)},SilverStripeComponent}(_react.Component);SilverStripeComponent.propTypes={cmsEvents:_react2["default"].PropTypes.object},exports["default"]=SilverStripeComponent},{jQuery:"jQuery",react:"react"}],"page.js":[function(require,module,exports){(function(process){"use strict";functionpage(path,fn){if("function"==typeofpath)returnpage("*",path);if("function"==typeoffn)for(varroute=newRoute(path),i=1;i<arguments.length;++i)page.callbacks.push(route.middleware(arguments[i]));else"string"==typeofpath?page["string"==typeoffn?"redirect":"show"](path,fn):page.start(path)}functionunhandled(ctx){if(!ctx.handled){varcurrent;current=hashbang?base+location.hash.replace("#!",""):location.pathname+location.search,current!==ctx.canonicalPath&&(page.stop(),ctx.handled=!1,location.href=ctx.canonicalPath)}}functiondecodeURLEncodedURIComponent(val){return"string"!=typeofval?val:decodeURLComponents?decodeURIComponent(val.replace(/\+/g," ")):val}functionContext(path,state){"/"===path[0]&&0!==path.indexOf(base)&&(path=base+(hashbang?"#!":"")+path);vari=path.indexOf("?");if(this.canonicalPath=path,this.path=path.replace(base,"")||"/",hashbang&&(this.path=this.path.replace("#!","")||"/"),this.title=document.title,this.state=state||{},this.state.path=path,this.querystring=~i?decodeURLEncodedURIComponent(path.slice(i+1)):"",this.pathname=decodeURLEncodedURIComponent(~i?path.slice(0,i):path),this.params={},this.hash="",!hashbang){if(!~this.path.indexOf("#"))return;varparts=this.path.split("#");this.path=parts[0],this.hash=decodeURLEncodedURIComponent(parts[1])||"",this.querystring=this.querystring.split("#")[0]}}functionRoute(path,options){options=options||{},this.path=path,this.method="GET",this.regexp=pathtoRegexp(this.path,this.keys=[],options.sensitive,options.strict)}functiononclick(e){if(1===which(e)&&!(e.metaKey||e.ctrlKey||e.shiftKey||e.defaultPrevented)){for(varel=e.target;el&&"A"!==el.nodeName;)el=el.parentNode;if(el&&"A"===el.nodeName&&!el.hasAttribute("download")&&"external"!==el.getAttribute("rel")){varlink=el.getAttribute("href");if((hashbang||el.pathname!==location.pathname||!el.hash&&"#"!==link)&&!(link&&link.indexOf("mailto:")>-1)&&!el.target&&sameOrigin(el.href)){varpath=el.pathname+el.search+(el.hash||"");"undefined"!=typeofprocess&&path.match(/^\/[a-zA-Z]:\//)&&(path=path.replace(/^\/[a-zA-Z]:\//,"/"));varorig=path;0===path.indexOf(base)&&(path=path.substr(base.length)),hashbang&&(path=path.replace("#!","")),base&&orig===path||(e.preventDefault(),page.show(orig))}}}}functionwhich(e){returne=e||window.event,null==