require=functione(t,n,i){functionr(o,a){if(!n[o]){if(!t[o]){varl="function"==typeofrequire&&require;if(!a&&l)returnl(o,!0);if(s)returns(o,!0);varc=newError("Cannot find module '"+o+"'");throwc.code="MODULE_NOT_FOUND",c}varu=n[o]={exports:{}};t[o][0].call(u.exports,function(e){varn=t[o][1][e];returnr(n?n:e)},u,u.exports,e,t,n,i)}returnn[o].exports}for(vars="function"==typeofrequire&&require,o=0;o<i.length;o++)r(i[o]);returnr}({1:[function(e,t,n){"use strict";e("../../../../thirdparty/jquery/jquery.js"),e("../../../../thirdparty/jquery-ondemand/jquery.ondemand.js"),e("../../src/sspath.js"),e("../../../../thirdparty/jquery-ui/jquery-ui.js"),e("../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js"),e("../../../../thirdparty/jquery-cookie/jquery.cookie.js"),e("../../../../thirdparty/jquery-query/jquery.query.js"),e("../../../../thirdparty/jquery-form/jquery.form.js"),e("../../../thirdparty/jquery-notice/jquery.notice.js"),e("../../../thirdparty/jsizes/lib/jquery.sizes.js"),e("../../../thirdparty/jlayout/lib/jlayout.border.js"),e("../../../thirdparty/jlayout/lib/jquery.jlayout.js"),e("../../../../thirdparty/jstree/jquery.jstree.js"),e("../../../thirdparty/chosen/chosen/chosen.jquery.js"),e("../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js"),e("../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js"),e("../../../../javascript/src/TreeDropdownField.js"),e("../../../../javascript/src/DateField.js"),e("../../../../javascript/src/HtmlEditorField.js"),e("../../../../javascript/src/TabSet.js"),e("../../src/ssui.core.js"),e("../../../../javascript/src/GridField.js"),e("json-js")},{"../../../../javascript/src/DateField.js":15,"../../../../javascript/src/GridField.js":16,"../../../../javascript/src/HtmlEditorField.js":17,"../../../../javascript/src/TabSet.js":18,"../../../../javascript/src/TreeDropdownField.js":19,"../../../../thirdparty/jquery-changetracker/lib/jquery.changetracker.js":212,"../../../../thirdparty/jquery-cookie/jquery.cookie.js":213,"../../../../thirdparty/jquery-entwine/dist/jquery.entwine-dist.js":214,"../../../../thirdparty/jquery-form/jquery.form.js":215,"../../../../thirdparty/jquery-ondemand/jquery.ondemand.js":216,"../../../../thirdparty/jquery-query/jquery.query.js":217,"../../../../thirdparty/jquery-ui/jquery-ui.js":218,"../../../../thirdparty/jquery/jquery.js":219,"../../../../thirdparty/jstree/jquery.jstree.js":220,"../../../thirdparty/chosen/chosen/chosen.jquery.js":9,"../../../thirdparty/jlayout/lib/jlayout.border.js":10,"../../../thirdparty/jlayout/lib/jquery.jlayout.js":11,"../../../thirdparty/jquery-hoverIntent/jquery.hoverIntent.js":12,"../../../thirdparty/jquery-notice/jquery.notice.js":13,"../../../thirdparty/jsizes/lib/jquery.sizes.js":14,"../../src/sspath.js":3,"../../src/ssui.core.js":4,"json-js":24}],2:[function(e,t,n){"use strict";functioni(e){returne&&e.__esModule?e:{"default":e}}functionr(e,t){for(varn=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){varr=n[i],s=Object.getOwnPropertyDescriptor(t,r);s&&s.configurable&&void0===e[r]&&Object.defineProperty(e,r,s)}returne}functions(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}functiono(e,t){if(!e)thrownewReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeoft&&"function"!=typeoft?e:t}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}Object.defineProperty(n,"__esModule",{value:!0});varl=e("react"),c=i(l),u=e("silverstripe-component"),d=i(u),h=function(e){functiont(n){s(this,t);vari=o(this,e.call(this,n));returni.handleClick=i.handleClick.bind(i),i}returna(t,e),t.prototype.render=function(){returnc["default"].createElement("button",{className:"grid-field-action-component font-icon-"+this.props.icon,onClick:this.handleClick})},t.prototyp
},this}functionc(e){vart=e.toUpperCase();returnm.indexOf(t)>-1?t:e}functionu(e,t){t=t||{};varn=t.body;if(u.prototype.isPrototypeOf(e)){if(e.bodyUsed)thrownewTypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=newi(e.headers)),this.method=e.method,this.mode=e.mode,n||(n=e._bodyInit,e.bodyUsed=!0)}elsethis.url=e;if(this.credentials=t.credentials||this.credentials||"omit",!t.headers&&this.headers||(this.headers=newi(t.headers)),this.method=c(t.method||this.method||"GET"),this.mode=t.mode||this.mode||null,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)thrownewTypeError("Body not allowed for GET or HEAD requests");this._initBody(n)}functiond(e){vart=newFormData;returne.trim().split("&").forEach(function(e){if(e){varn=e.split("="),i=n.shift().replace(/\+/g," "),r=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(i),decodeURIComponent(r))}}),t}functionh(e){vart=newi,n=e.getAllResponseHeaders().trim().split("\n");returnn.forEach(function(e){varn=e.trim().split(":"),i=n.shift().trim(),r=n.join(":").trim();t.append(i,r)}),t}functionp(e,t){t||(t={}),this.type="default",this.status=t.status,this.ok=this.status>=200&&this.status<300,this.statusText=t.statusText,this.headers=t.headersinstanceofi?t.headers:newi(t.headers),this.url=t.url||"",this._initBody(e)}if(!e.fetch){i.prototype.append=function(e,i){e=t(e),i=n(i);varr=this.map[e];r||(r=[],this.map[e]=r),r.push(i)},i.prototype["delete"]=function(e){deletethis.map[t(e)]},i.prototype.get=function(e){varn=this.map[t(e)];returnn?n[0]:null},i.prototype.getAll=function(e){returnthis.map[t(e)]||[]},i.prototype.has=function(e){returnthis.map.hasOwnProperty(t(e))},i.prototype.set=function(e,i){this.map[t(e)]=[n(i)]},i.prototype.forEach=function(e,t){Object.getOwnPropertyNames(this.map).forEach(function(n){this.map[n].forEach(function(i){e.call(t,i,n,this)},this)},this)};varf={blob:"FileReader"ine&&"Blob"ine&&function(){try{returnnewBlob,!0}catch(e){return!1}}(),formData:"FormData"ine,arrayBuffer:"ArrayBuffer"ine},m=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];u.prototype.clone=function(){returnnewu(this)},l.call(u.prototype),l.call(p.prototype),p.prototype.clone=function(){returnnewp(this._bodyInit,{status:this.status,statusText:this.statusText,headers:newi(this.headers),url:this.url})},p.error=function(){vare=newp(null,{status:0,statusText:""});returne.type="error",e};varg=[301,302,303,307,308];p.redirect=function(e,t){if(-1===g.indexOf(t))thrownewRangeError("Invalid status code");returnnewp(null,{status:t,headers:{location:e}})},e.Headers=i,e.Request=u,e.Response=p,e.fetch=function(e,t){returnnewPromise(function(n,i){functionr(){return"responseURL"ino?o.responseURL:/^X-Request-URL:/m.test(o.getAllResponseHeaders())?o.getResponseHeader("X-Request-URL"):void0}vars;s=u.prototype.isPrototypeOf(e)&&!t?e:newu(e,t);varo=newXMLHttpRequest;o.onload=function(){vare=1223===o.status?204:o.status;if(100>e||e>599)returnvoidi(newTypeError("Network request failed"));vart={status:e,statusText:o.statusText,headers:h(o),url:r()},s="response"ino?o.response:o.responseText;n(newp(s,t))},o.onerror=function(){i(newTypeError("Network request failed"))},o.open(s.method,s.url,!0),"include"===s.credentials&&(o.withCredentials=!0),"responseType"ino&&f.blob&&(o.responseType="blob"),s.headers.forEach(function(e,t){o.setRequestHeader(t,e)}),o.send("undefined"==typeofs._bodyInit?null:s._bodyInit)})},e.fetch.polyfill=!0}}("undefined"!=typeofself?self:this)},{}],24:[function(require,module,exports){"function"!=typeofJSON.decycle&&(JSON.decycle=function(e){"use strict";vart=[],n=[];returnfunctioni(e,r){vars,o;if(!("object"!=typeofe||null===e||einstanceofBoolean||einstanceofDate||einstanceofNumber||einstanceofRegExp||einstanceofString)){for(s=0;s<t.length;s+=1)if(t[s]===e)return{$ref:n[s]};if(t.push(e),n.push(r),"[object Array]"===Object.prototype.toString.apply(e))for(o=[],s=0;s<e.length;s+=1)o[s]=i(e[s],r+"["+s+"]");else{o={};vara=Object.getOwnPropertyNames(e);a
outlineColor:!0}},a={isUnitlessNumber:r,shorthandPropertyExpansions:o};t.exports=a},{}],45:[function(e,t,n){"use strict";vari=e("./CSSProperty"),r=e("fbjs/lib/ExecutionEnvironment"),s=e("./ReactPerf"),o=e("fbjs/lib/camelizeStyleName"),a=e("./dangerousStyleValue"),l=e("fbjs/lib/hyphenateStyleName"),c=e("fbjs/lib/memoizeStringOnly"),u=e("fbjs/lib/warning"),d=c(function(e){returnl(e)}),h=!1,p="cssFloat";if(r.canUseDOM){varf=document.createElement("div").style;try{f.font=""}catch(m){h=!0}void0===document.documentElement.style.cssFloat&&(p="styleFloat")}varg=/^(?:webkit|moz|o)[A-Z]/,v=/;\s*$/,_={},y={},b=function(e){_.hasOwnProperty(e)&&_[e]||(_[e]=!0,u(!1,"Unsupported style property %s. Did you mean %s?",e,o(e)))},w=function(e){_.hasOwnProperty(e)&&_[e]||(_[e]=!0,u(!1,"Unsupported vendor-prefixed style property %s. Did you mean %s?",e,e.charAt(0).toUpperCase()+e.slice(1)))},x=function(e,t){y.hasOwnProperty(t)&&y[t]||(y[t]=!0,u(!1,'Style property values shouldn\'t contain a semicolon. Try "%s: %s" instead.',e,t.replace(v,"")))},C=function(e,t){e.indexOf("-")>-1?b(e):g.test(e)?w(e):v.test(t)&&x(e,t)},k={createMarkupForStyles:function(e){vart="";for(varnine)if(e.hasOwnProperty(n)){vari=e[n];C(n,i),null!=i&&(t+=d(n)+":",t+=a(n,i)+";")}returnt||null},setValueForStyles:function(e,t){varn=e.style;for(varrint)if(t.hasOwnProperty(r)){C(r,t[r]);vars=a(r,t[r]);if("float"===r&&(r=p),s)n[r]=s;else{varo=h&&i.shorthandPropertyExpansions[r];if(o)for(varlino)n[l]="";elsen[r]=""}}}};s.measureMethods(k,"CSSPropertyOperations",{setValueForStyles:"setValueForStyles"}),t.exports=k},{"./CSSProperty":44,"./ReactPerf":114,"./dangerousStyleValue":152,"fbjs/lib/ExecutionEnvironment":178,"fbjs/lib/camelizeStyleName":180,"fbjs/lib/hyphenateStyleName":191,"fbjs/lib/memoizeStringOnly":198,"fbjs/lib/warning":203}],46:[function(e,t,n){"use strict";functioni(){this._callbacks=null,this._contexts=null}varr=e("./PooledClass"),s=e("./Object.assign"),o=e("fbjs/lib/invariant");s(i.prototype,{enqueue:function(e,t){this._callbacks=this._callbacks||[],this._contexts=this._contexts||[],this._callbacks.push(e),this._contexts.push(t)},notifyAll:function(){vare=this._callbacks,t=this._contexts;if(e){e.length!==t.length?o(!1,"Mismatched list of contexts in callback queue"):void0,this._callbacks=null,this._contexts=null;for(varn=0;n<e.length;n++)e[n].call(t[n]);e.length=0,t.length=0}},reset:function(){this._callbacks=null,this._contexts=null},destructor:function(){this.reset()}}),r.addPoolingTo(i),t.exports=i},{"./Object.assign":63,"./PooledClass":64,"fbjs/lib/invariant":192}],47:[function(e,t,n){"use strict";functioni(e){vart=e.nodeName&&e.nodeName.toLowerCase();return"select"===t||"input"===t&&"file"===e.type}functionr(e){vart=C.getPooled(S.change,R,e,k(e));b.accumulateTwoPhaseDispatches(t),x.batchedUpdates(s,t)}functions(e){y.enqueueEvents(e),y.processEventQueue(!1)}functiono(e,t){P=e,R=t,P.attachEvent("onchange",r)}functiona(){P&&(P.detachEvent("onchange",r),P=null,R=null)}functionl(e,t,n){returne===D.topChange?n:void0}functionc(e,t,n){e===D.topFocus?(a(),o(t,n)):e===D.topBlur&&a()}functionu(e,t){P=e,R=t,O=e.value,M=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value"),Object.defineProperty(P,"value",A),P.attachEvent("onpropertychange",h)}functiond(){P&&(deleteP.value,P.detachEvent("onpropertychange",h),P=null,R=null,O=null,M=null)}functionh(e){if("value"===e.propertyName){vart=e.srcElement.value;t!==O&&(O=t,r(e))}}functionp(e,t,n){returne===D.topInput?n:void0}functionf(e,t,n){e===D.topFocus?(d(),u(t,n)):e===D.topBlur&&d()}functionm(e,t,n){returne!==D.topSelectionChange&&e!==D.topKeyUp&&e!==D.topKeyDown||!P||P.value===O?void0:(O=P.value,R)}functiong(e){returne.nodeName&&"input"===e.nodeName.toLowerCase()&&("checkbox"===e.type||"radio"===e.type)}functionv(e,t,n){returne===D.topClick?n:void0}var_=e("./EventConstants"),y=e("./EventPluginHub"),b=e("./EventPropagators"),w=e("fbjs/lib/ExecutionEnvironment"),x=e("./ReactUpdates"),C=e("./SyntheticEvent"),k=e("./getEventTarget"),j=e("./isEventSupported"),E=e(".
threeArgumentPooler:o,fourArgumentPooler:a,fiveArgumentPooler:l};t.exports=p},{"fbjs/lib/invariant":192}],65:[function(e,t,n){"use strict";vari=e("./ReactDOM"),r=e("./ReactDOMServer"),s=e("./ReactIsomorphic"),o=e("./Object.assign"),a=e("./deprecated"),l={};o(l,s),o(l,{findDOMNode:a("findDOMNode","ReactDOM","react-dom",i,i.findDOMNode),render:a("render","ReactDOM","react-dom",i,i.render),unmountComponentAtNode:a("unmountComponentAtNode","ReactDOM","react-dom",i,i.unmountComponentAtNode),renderToString:a("renderToString","ReactDOMServer","react-dom/server",r,r.renderToString),renderToStaticMarkup:a("renderToStaticMarkup","ReactDOMServer","react-dom/server",r,r.renderToStaticMarkup)}),l.__SECRET_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=i,l.__SECRET_DOM_SERVER_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=r,t.exports=l},{"./Object.assign":63,"./ReactDOM":78,"./ReactDOMServer":88,"./ReactIsomorphic":106,"./deprecated":153}],66:[function(e,t,n){"use strict";vari=e("./ReactInstanceMap"),r=e("./findDOMNode"),s=e("fbjs/lib/warning"),o="_getDOMNodeDidWarn",a={getDOMNode:function(){returns(this.constructor[o],"%s.getDOMNode(...) is deprecated. Please use ReactDOM.findDOMNode(instance) instead.",i.get(this).getName()||this.tagName||"Unknown"),this.constructor[o]=!0,r(this)}};t.exports=a},{"./ReactInstanceMap":105,"./findDOMNode":155,"fbjs/lib/warning":203}],67:[function(e,t,n){"use strict";functioni(e){returnObject.prototype.hasOwnProperty.call(e,g)||(e[g]=f++,h[e[g]]={}),h[e[g]]}varr=e("./EventConstants"),s=e("./EventPluginHub"),o=e("./EventPluginRegistry"),a=e("./ReactEventEmitterMixin"),l=e("./ReactPerf"),c=e("./ViewportMetrics"),u=e("./Object.assign"),d=e("./isEventSupported"),h={},p=!1,f=0,m={topAbort:"abort",topBlur:"blur",topCanPlay:"canplay",topCanPlayThrough:"canplaythrough",topChange:"change",topClick:"click",topCompositionEnd:"compositionend",topCompositionStart:"compositionstart",topCompositionUpdate:"compositionupdate",topContextMenu:"contextmenu",topCopy:"copy",topCut:"cut",topDoubleClick:"dblclick",topDrag:"drag",topDragEnd:"dragend",topDragEnter:"dragenter",topDragExit:"dragexit",topDragLeave:"dragleave",topDragOver:"dragover",topDragStart:"dragstart",topDrop:"drop",topDurationChange:"durationchange",topEmptied:"emptied",topEncrypted:"encrypted",topEnded:"ended",topError:"error",topFocus:"focus",topInput:"input",topKeyDown:"keydown",topKeyPress:"keypress",topKeyUp:"keyup",topLoadedData:"loadeddata",topLoadedMetadata:"loadedmetadata",topLoadStart:"loadstart",topMouseDown:"mousedown",topMouseMove:"mousemove",topMouseOut:"mouseout",topMouseOver:"mouseover",topMouseUp:"mouseup",topPaste:"paste",topPause:"pause",topPlay:"play",topPlaying:"playing",topProgress:"progress",topRateChange:"ratechange",topScroll:"scroll",topSeeked:"seeked",topSeeking:"seeking",topSelectionChange:"selectionchange",topStalled:"stalled",topSuspend:"suspend",topTextInput:"textInput",topTimeUpdate:"timeupdate",topTouchCancel:"touchcancel",topTouchEnd:"touchend",topTouchMove:"touchmove",topTouchStart:"touchstart",topVolumeChange:"volumechange",topWaiting:"waiting",topWheel:"wheel"},g="_reactListenersID"+String(Math.random()).slice(2),v=u({},a,{ReactEventListener:null,injection:{injectReactEventListener:function(e){e.setHandleTopLevel(v.handleTopLevel),v.ReactEventListener=e}},setEnabled:function(e){v.ReactEventListener&&v.ReactEventListener.setEnabled(e)},isEnabled:function(){return!(!v.ReactEventListener||!v.ReactEventListener.isEnabled())},listenTo:function(e,t){for(varn=t,s=i(n),a=o.registrationNameDependencies[e],l=r.topLevelTypes,c=0;c<a.length;c++){varu=a[c];s.hasOwnProperty(u)&&s[u]||(u===l.topWheel?d("wheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"wheel",n):d("mousewheel")?v.ReactEventListener.trapBubbledEvent(l.topWheel,"mousewheel",n):v.ReactEventListener.trapBubbledEvent(l.topWheel,"DOMMouseScroll",n):u===l.topScroll?d("scroll",!0)?v.ReactEventListener.trapCapturedEvent(l.topScroll,"scroll",n):v.ReactEventListener.trapBubbledEvent(l.topScroll,"scroll",v.ReactEventListener.WINDOW_HANDLE):u===l.topFocus||u===l.topBlur?(d("focus",!0)?(v.Reac
s.inject();varm=l.measure("React","render",a.render),g={findDOMNode:h,render:m,unmountComponentAtNode:a.unmountComponentAtNode,version:d,unstable_batchedUpdates:u.batchedUpdates,unstable_renderSubtreeIntoContainer:p};"undefined"!=typeof__REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof__REACT_DEVTOOLS_GLOBAL_HOOK__.inject&&__REACT_DEVTOOLS_GLOBAL_HOOK__.inject({CurrentOwner:i,InstanceHandles:o,Mount:a,Reconciler:c,TextComponent:r});varv=e("fbjs/lib/ExecutionEnvironment");if(v.canUseDOM&&window.top===window.self){"undefined"==typeof__REACT_DEVTOOLS_GLOBAL_HOOK__&&(navigator.userAgent.indexOf("Chrome")>-1&&-1===navigator.userAgent.indexOf("Edge")||navigator.userAgent.indexOf("Firefox")>-1)&&console.debug("Download the React DevTools for a better development experience: https://fb.me/react-devtools");var_=document.documentMode&&document.documentMode<8;f(!_,'Internet Explorer is running in compatibility mode; please add the following tag to your HTML to prevent this from happening: <meta http-equiv="X-UA-Compatible" content="IE=edge" />');for(vary=[Array.isArray,Array.prototype.every,Array.prototype.forEach,Array.prototype.indexOf,Array.prototype.map,Date.now,Function.prototype.bind,Object.keys,String.prototype.split,String.prototype.trim,Object.create,Object.freeze],b=0;b<y.length;b++)if(!y[b]){console.error("One or more ES5 shim/shams expected by React are not available: https://fb.me/react-warning-polyfills");break}}t.exports=g},{"./ReactCurrentOwner":77,"./ReactDOMTextComponent":89,"./ReactDefaultInjection":92,"./ReactInstanceHandles":104,"./ReactMount":108,"./ReactPerf":114,"./ReactReconciler":119,"./ReactUpdates":130,"./ReactVersion":131,"./findDOMNode":155,"./renderSubtreeIntoContainer":170,"fbjs/lib/ExecutionEnvironment":178,"fbjs/lib/warning":203}],79:[function(e,t,n){"use strict";vari={onClick:!0,onDoubleClick:!0,onMouseDown:!0,onMouseMove:!0,onMouseUp:!0,onClickCapture:!0,onDoubleClickCapture:!0,onMouseDownCapture:!0,onMouseMoveCapture:!0,onMouseUpCapture:!0},r={getNativeProps:function(e,t,n){if(!t.disabled)returnt;varr={};for(varsint)t.hasOwnProperty(s)&&!i[s]&&(r[s]=t[s]);returnr}};t.exports=r},{}],80:[function(e,t,n){"use strict";functioni(e){if(e){vart=e._currentElement._owner||null;if(t){varn=t.getName();if(n)return" This DOM node was rendered by `"+n+"`."}}return""}functionr(){vare=this._reactInternalComponent;returnK(!1,"ReactDOMComponent: Do not access .getDOMNode() of a DOM node; instead, use the node directly.%s",i(e)),this}functions(){vare=this._reactInternalComponent;returnK(!1,"ReactDOMComponent: Do not access .isMounted() of a DOM node.%s",i(e)),!!e}functiono(){vare=this._reactInternalComponent;K(!1,"ReactDOMComponent: Do not access .setState(), .replaceState(), or .forceUpdate() of a DOM node. This is a no-op.%s",i(e))}functiona(e,t){varn=this._reactInternalComponent;K(!1,"ReactDOMComponent: Do not access .setProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",i(n)),n&&(L.enqueueSetPropsInternal(n,e),t&&L.enqueueCallbackInternal(n,t))}functionl(e,t){varn=this._reactInternalComponent;K(!1,"ReactDOMComponent: Do not access .replaceProps() of a DOM node. Instead, call ReactDOM.render again at the top level.%s",i(n)),n&&(L.enqueueReplacePropsInternal(n,e),t&&L.enqueueCallbackInternal(n,t))}functionc(e){if("object"==typeofe){if(Array.isArray(e))return"["+e.map(c).join(", ")+"]";vart=[];for(varnine)if(Object.prototype.hasOwnProperty.call(e,n)){vari=/^[a-z$_][\w$_]*$/i.test(n)?n:JSON.stringify(n);t.push(i+": "+c(e[n]))}return"{"+t.join(", ")+"}"}return"string"==typeofe?JSON.stringify(e):"function"==typeofe?"[function object]":String(e)}functionu(e,t,n){if(null!=e&&null!=t&&!V(e,t)){vari,r=n._tag,s=n._currentElement._owner;s&&(i=s.getName());varo=i+"|"+r;ie.hasOwnProperty(o)||(ie[o]=!0,K(!1,"`%s` was passed a style object that has previously been mutated. Mutating `style` is deprecated. Consider cloning it beforehand. Check the `render` %s. Previous style: %s. Mutated style: %s.",r,s?"of `"+i+"`":"using <"+r+">",c(e),c(t)))}}functiond(e,
"./ReactDOMTextComponent":89,"./ReactDefaultBatchingStrategy":91,"./ReactDefaultPerf":93,"./ReactEventListener":101,"./ReactInjection":102,"./ReactInstanceHandles":104,"./ReactMount":108,"./ReactReconcileTransaction":118,"./SVGDOMPropertyConfig":132,"./SelectEventPlugin":133,"./ServerReactRootIndex":134,"./SimpleEventPlugin":135,"fbjs/lib/ExecutionEnvironment":178}],93:[function(e,t,n){"use strict";functioni(e){returnMath.floor(100*e)/100}functionr(e,t,n){e[t]=(e[t]||0)+n}vars=e("./DOMProperty"),o=e("./ReactDefaultPerfAnalysis"),a=e("./ReactMount"),l=e("./ReactPerf"),c=e("fbjs/lib/performanceNow"),u={_allMeasurements:[],_mountStack:[0],_injected:!1,start:function(){u._injected||l.injection.injectMeasure(u.measure),u._allMeasurements.length=0,l.enableMeasure=!0},stop:function(){l.enableMeasure=!1},getLastMeasurements:function(){returnu._allMeasurements},printExclusive:function(e){e=e||u._allMeasurements;vart=o.getExclusiveSummary(e);console.table(t.map(function(e){return{"Component class name":e.componentName,"Total inclusive time (ms)":i(e.inclusive),"Exclusive mount time (ms)":i(e.exclusive),"Exclusive render time (ms)":i(e.render),"Mount time per instance (ms)":i(e.exclusive/e.count),"Render time per instance (ms)":i(e.render/e.count),Instances:e.count}}))},printInclusive:function(e){e=e||u._allMeasurements;vart=o.getInclusiveSummary(e);console.table(t.map(function(e){return{"Owner > component":e.componentName,"Inclusive time (ms)":i(e.time),Instances:e.count}})),console.log("Total time:",o.getTotalTime(e).toFixed(2)+" ms")},getMeasurementsSummaryMap:function(e){vart=o.getInclusiveSummary(e,!0);returnt.map(function(e){return{"Owner > component":e.componentName,"Wasted time (ms)":e.time,Instances:e.count}})},printWasted:function(e){e=e||u._allMeasurements,console.table(u.getMeasurementsSummaryMap(e)),console.log("Total time:",o.getTotalTime(e).toFixed(2)+" ms")},printDOM:function(e){e=e||u._allMeasurements;vart=o.getDOMSummary(e);console.table(t.map(function(e){vart={};returnt[s.ID_ATTRIBUTE_NAME]=e.id,t.type=e.type,t.args=JSON.stringify(e.args),t})),console.log("Total time:",o.getTotalTime(e).toFixed(2)+" ms")},_recordWrite:function(e,t,n,i){varr=u._allMeasurements[u._allMeasurements.length-1].writes;r[e]=r[e]||[],r[e].push({type:t,time:n,args:i})},measure:function(e,t,n){returnfunction(){for(vari=arguments.length,s=Array(i),o=0;i>o;o++)s[o]=arguments[o];varl,d,h;if("_renderNewRootComponent"===t||"flushBatchedUpdates"===t)returnu._allMeasurements.push({exclusive:{},inclusive:{},render:{},counts:{},writes:{},displayNames:{},totalTime:0,created:{}}),h=c(),d=n.apply(this,s),u._allMeasurements[u._allMeasurements.length-1].totalTime=c()-h,d;if("_mountImageIntoNode"===t||"ReactBrowserEventEmitter"===e||"ReactDOMIDOperations"===e||"CSSPropertyOperations"===e||"DOMChildrenOperations"===e||"DOMPropertyOperations"===e){if(h=c(),d=n.apply(this,s),l=c()-h,"_mountImageIntoNode"===t){varp=a.getID(s[1]);u._recordWrite(p,t,l,s[0])}elseif("dangerouslyProcessChildrenUpdates"===t)s[0].forEach(function(e){vart={};null!==e.fromIndex&&(t.fromIndex=e.fromIndex),null!==e.toIndex&&(t.toIndex=e.toIndex),null!==e.textContent&&(t.textContent=e.textContent),null!==e.markupIndex&&(t.markup=s[1][e.markupIndex]),u._recordWrite(e.parentID,e.type,l,t)});else{varf=s[0];"object"==typeoff&&(f=a.getID(s[0])),u._recordWrite(f,t,l,Array.prototype.slice.call(s,1))}returnd}if("ReactCompositeComponent"!==e||"mountComponent"!==t&&"updateComponent"!==t&&"_renderValidatedComponent"!==t)returnn.apply(this,s);if(this._currentElement.type===a.TopLevelWrapper)returnn.apply(this,s);varm="mountComponent"===t?s[0]:this._rootNodeID,g="_renderValidatedComponent"===t,v="mountComponent"===t,_=u._mountStack,y=u._allMeasurements[u._allMeasurements.length-1];if(g?r(y.counts,m,1):v&&(y.created[m]=!0,_.push(0)),h=c(),d=n.apply(this,s),l=c()-h,g)r(y.render,m,l);elseif(v){varb=_.pop();_[_.length-1]+=l,r(y.exclusive,m,l-b),r(y.inclusive,m,l)}elser(y.inclusive,m,l);returny.displayNames[m]={current:this.getName(),owner:this._currentElement._owner?this._c
_.enqueue(e,t),y=!0}varu=e("./CallbackQueue"),d=e("./PooledClass"),h=e("./ReactPerf"),p=e("./ReactReconciler"),f=e("./Transaction"),m=e("./Object.assign"),g=e("fbjs/lib/invariant"),v=[],_=u.getPooled(),y=!1,b=null,w={initialize:function(){this.dirtyComponentsLength=v.length},close:function(){this.dirtyComponentsLength!==v.length?(v.splice(0,this.dirtyComponentsLength),k()):v.length=0}},x={initialize:function(){this.callbackQueue.reset()},close:function(){this.callbackQueue.notifyAll()}},C=[w,x];m(r.prototype,f.Mixin,{getTransactionWrappers:function(){returnC},destructor:function(){this.dirtyComponentsLength=null,u.release(this.callbackQueue),this.callbackQueue=null,E.ReactReconcileTransaction.release(this.reconcileTransaction),this.reconcileTransaction=null},perform:function(e,t,n){returnf.Mixin.perform.call(this,this.reconcileTransaction.perform,this.reconcileTransaction,e,t,n)}}),d.addPoolingTo(r);vark=function(){for(;v.length||y;){if(v.length){vare=r.getPooled();e.perform(a,null,e),r.release(e)}if(y){y=!1;vart=_;_=u.getPooled(),t.notifyAll(),u.release(t)}}};k=h.measure("ReactUpdates","flushBatchedUpdates",k);varj={injectReconcileTransaction:function(e){e?void0:g(!1,"ReactUpdates: must provide a reconcile transaction class"),E.ReactReconcileTransaction=e},injectBatchingStrategy:function(e){e?void0:g(!1,"ReactUpdates: must provide a batching strategy"),"function"!=typeofe.batchedUpdates?g(!1,"ReactUpdates: must provide a batchedUpdates() function"):void0,"boolean"!=typeofe.isBatchingUpdates?g(!1,"ReactUpdates: must provide an isBatchingUpdates boolean attribute"):void0,b=e}},E={ReactReconcileTransaction:null,batchedUpdates:s,enqueueUpdate:l,flushBatchedUpdates:k,injection:j,asap:c};t.exports=E},{"./CallbackQueue":46,"./Object.assign":63,"./PooledClass":64,"./ReactPerf":114,"./ReactReconciler":119,"./Transaction":147,"fbjs/lib/invariant":192}],131:[function(e,t,n){"use strict";t.exports="0.14.8"},{}],132:[function(e,t,n){"use strict";vari=e("./DOMProperty"),r=i.injection.MUST_USE_ATTRIBUTE,s={xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace"},o={Properties:{clipPath:r,cx:r,cy:r,d:r,dx:r,dy:r,fill:r,fillOpacity:r,fontFamily:r,fontSize:r,fx:r,fy:r,gradientTransform:r,gradientUnits:r,markerEnd:r,markerMid:r,markerStart:r,offset:r,opacity:r,patternContentUnits:r,patternUnits:r,points:r,preserveAspectRatio:r,r:r,rx:r,ry:r,spreadMethod:r,stopColor:r,stopOpacity:r,stroke:r,strokeDasharray:r,strokeLinecap:r,strokeOpacity:r,strokeWidth:r,textAnchor:r,transform:r,version:r,viewBox:r,x1:r,x2:r,x:r,xlinkActuate:r,xlinkArcrole:r,xlinkHref:r,xlinkRole:r,xlinkShow:r,xlinkTitle:r,xlinkType:r,xmlBase:r,xmlLang:r,xmlSpace:r,y1:r,y2:r,y:r},DOMAttributeNamespaces:{xlinkActuate:s.xlink,xlinkArcrole:s.xlink,xlinkHref:s.xlink,xlinkRole:s.xlink,xlinkShow:s.xlink,xlinkTitle:s.xlink,xlinkType:s.xlink,xmlBase:s.xml,xmlLang:s.xml,xmlSpace:s.xml},DOMAttributeNames:{clipPath:"clip-path",fillOpacity:"fill-opacity",fontFamily:"font-family",fontSize:"font-size",gradientTransform:"gradientTransform",gradientUnits:"gradientUnits",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",patternContentUnits:"patternContentUnits",patternUnits:"patternUnits",preserveAspectRatio:"preserveAspectRatio",spreadMethod:"spreadMethod",stopColor:"stop-color",stopOpacity:"stop-opacity",strokeDasharray:"stroke-dasharray",strokeLinecap:"stroke-linecap",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",textAnchor:"text-anchor",viewBox:"viewBox",xlinkActuate:"xlink:actuate",xlinkArcrole:"xlink:arcrole",xlinkHref:"xlink:href",xlinkRole:"xlink:role",xlinkShow:"xlink:show",xlinkTitle:"xlink:title",xlinkType:"xlink:type",xmlBase:"xml:base",xmlLang:"xml:lang",xmlSpace:"xml:space"}};t.exports=o},{"./DOMProperty":50}],133:[function(e,t,n){"use strict";functioni(e){if("selectionStart"ine&&l.hasSelectionCapabilities(e))return{start:e.selectionStart,end:e.selectionEnd};if(window.getSelection){vart=window.getSelection();return{anchorNode:t.anchorNode,anchorOffset:t.anchorOffset,focusNode:t.focusNode,focusOffset:t
e.textContent=t};i.canUseDOM&&("textContent"indocument.documentElement||(o=function(e,t){s(e,r(t))})),t.exports=o},{"./escapeTextContentForBrowser":154,"./setInnerHTML":171,"fbjs/lib/ExecutionEnvironment":178}],173:[function(e,t,n){"use strict";functioni(e,t){varn=null===e||e===!1,i=null===t||t===!1;if(n||i)returnn===i;varr=typeofe,s=typeoft;return"string"===r||"number"===r?"string"===s||"number"===s:"object"===s&&e.type===t.type&&e.key===t.key}t.exports=i},{}],174:[function(e,t,n){"use strict";functioni(e){returnv[e]}functionr(e,t){returne&&null!=e.key?o(e.key):t.toString(36)}functions(e){return(""+e).replace(_,i)}functiono(e){return"$"+s(e)}functiona(e,t,n,i){vars=typeofe;if("undefined"!==s&&"boolean"!==s||(e=null),null===e||"string"===s||"number"===s||u.isValidElement(e))returnn(i,e,""===t?m+r(e,0):t),1;varl,d,v=0,_=""===t?m:t+g;if(Array.isArray(e))for(varb=0;b<e.length;b++)l=e[b],d=_+r(l,b),v+=a(l,d,n,i);else{varw=h(e);if(w){varx,C=w.call(e);if(w!==e.entries)for(vark=0;!(x=C.next()).done;)l=x.value,d=_+r(l,k++),v+=a(l,d,n,i);elsefor(f(y,"Using Maps as children is not yet fully supported. It is an experimental feature that might be removed. Convert it to a sequence / iterable of keyed ReactElements instead."),y=!0;!(x=C.next()).done;){varj=x.value;j&&(l=j[1],d=_+o(j[0])+g+r(l,0),v+=a(l,d,n,i))}}elseif("object"===s){varE="";if(E=" If you meant to render a collection of children, use an array instead or wrap the object using createFragment(object) from the React add-ons.",e._isReactElement&&(E=" It looks like you're using an element created by a different version of React. Make sure to use only one copy of React."),c.current){varT=c.current.getName();T&&(E+=" Check the render method of `"+T+"`.")}varD=String(e);p(!1,"Objects are not valid as a React child (found: %s).%s","[object Object]"===D?"object with keys {"+Object.keys(e).join(", ")+"}":D,E)}}returnv}functionl(e,t,n){returnnull==e?0:a(e,"",t,n)}varc=e("./ReactCurrentOwner"),u=e("./ReactElement"),d=e("./ReactInstanceHandles"),h=e("./getIteratorFn"),p=e("fbjs/lib/invariant"),f=e("fbjs/lib/warning"),m=d.SEPARATOR,g=":",v={"=":"=0",".":"=1",":":"=2"},_=/[=.:]/g,y=!1;t.exports=l},{"./ReactCurrentOwner":77,"./ReactElement":95,"./ReactInstanceHandles":104,"./getIteratorFn":162,"fbjs/lib/invariant":192,"fbjs/lib/warning":203}],175:[function(e,t,n){"use strict";vari=e("./Object.assign"),r=e("fbjs/lib/emptyFunction"),s=e("fbjs/lib/warning"),o=r,a=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],l=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],c=l.concat(["button"]),u=["dd","dt","li","option","optgroup","p","rp","rt"],d={parentTag:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null},h=function(e,t,n){varr=i({},e||d),s={tag:t,instance:n};return-1!==l.indexOf(t)&&(r.aTagInScope=null,r.buttonTagInScope=null,r.nobrTagInScope=null),-1!==c.indexOf(t)&&(r.pTagInButtonScope=null),-1!==a.indexOf(t)&&"address"!==t&&"div"!==t&&"p"!==t&&(r.listItemTagAutoclosing=null,r.dlItemTagAutoclosing=null),r.parentTag=s,"form"===t&&(r.formTag=s),"a"===t&&(r.aTagInScope=s),"button"===t&&(r.buttonTagInScope=s),"nobr"===t&&(r.nobrTagInScope=s),"p"===t&&(r.pTagInButtonScope=s),"li"===t&&(r.listItemTagAutoclosing=s),"dd"!==t&&"dt"!==t||(r.dlItemTagAutoclosing=s),r},p=function(e,t){switch(t){case"select":return
for(dini)a.access(e,n,d,i[d],1,o,r);s=1}elseif(r!==t){if(c=l===t&&a.isFunction(r),u&&(c?(c=n,n=function(e,t,n){returnc.call(a(e),n)}):(n.call(e,r),n=null)),n)for(;h>d;d++)n(e[d],i,c?r.call(e[d],d,n(e[d],i)):r,l);s=1}returns?e:u?n.call(e):h?n(e[0],i):o},now:function(){return(newDate).getTime()},uaMatch:function(e){e=e.toLowerCase();vart=y.exec(e)||b.exec(e)||w.exec(e)||e.indexOf("compatible")<0&&x.exec(e)||[];return{browser:t[1]||"",version:t[2]||"0"}},sub:function(){functione(t,n){returnnewe.fn.init(t,n)}a.extend(!0,e,this),e.superclass=this,e.fn=e.prototype=this(),e.fn.constructor=e,e.sub=this.sub,e.fn.init=function(n,i){returni&&iinstanceofa&&!(iinstanceofe)&&(i=e(i)),a.fn.init.call(this,n,i,t)},e.fn.init.prototype=e.fn;vart=e(O);returne},browser:{}}),a.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(e,t){N["[object "+t+"]"]=t.toLowerCase()}),r=a.uaMatch(E),r.browser&&(a.browser[r.browser]=!0,a.browser.version=r.version),a.browser.webkit&&(a.browser.safari=!0),d.test("")&&(h=/^[\s\xA0]+/,p=/[\s\xA0]+$/),i=a(O),O.addEventListener?o=function(){O.removeEventListener("DOMContentLoaded",o,!1),a.ready()}:O.attachEvent&&(o=function(){"complete"===O.readyState&&(O.detachEvent("onreadystatechange",o),a.ready())}),a}(),A={};N.Callbacks=function(e){e=e?A[e]||n(e):{};vari,r,s,o,a,l,c=[],u=[],d=function(t){varn,i,r,s;for(n=0,i=t.length;i>n;n++)r=t[n],s=N.type(r),"array"===s?d(r):"function"===s&&(e.unique&&p.has(r)||c.push(r))},h=function(t,n){for(n=n||[],i=!e.memory||[t,n],r=!0,s=!0,l=o||0,o=0,a=c.length;c&&a>l;l++)if(c[l].apply(t,n)===!1&&e.stopOnFalse){i=!0;break}s=!1,c&&(e.once?i===!0?p.disable():c=[]:u&&u.length&&(i=u.shift(),p.fireWith(i[0],i[1])))},p={add:function(){if(c){vare=c.length;d(arguments),s?a=c.length:i&&i!==!0&&(o=e,h(i[0],i[1]))}returnthis},remove:function(){if(c)for(vart=arguments,n=0,i=t.length;i>n;n++)for(varr=0;r<c.length&&(t[n]!==c[r]||(s&&a>=r&&(a--,l>=r&&l--),c.splice(r--,1),!e.unique));r++);returnthis},has:function(e){if(c)for(vart=0,n=c.length;n>t;t++)if(e===c[t])return!0;return!1},empty:function(){returnc=[],this},disable:function(){returnc=u=i=t,this},disabled:function(){return!c},lock:function(){returnu=t,i&&i!==!0||p.disable(),this},locked:function(){return!u},fireWith:function(t,n){returnu&&(s?e.once||u.push([t,n]):e.once&&i||h(t,n)),this},fire:function(){returnp.fireWith(this,arguments),this},fired:function(){return!!r}};returnp};varL=[].slice;N.extend({Deferred:function(e){vart,n=N.Callbacks("once memory"),i=N.Callbacks("once memory"),r=N.Callbacks("memory"),s="pending",o={resolve:n,reject:i,notify:r},a={done:n.add,fail:i.add,progress:r.add,state:function(){returns},isResolved:n.fired,isRejected:i.fired,then:function(e,t,n){returnl.done(e).fail(t).progress(n),this},always:function(){returnl.done.apply(l,arguments).fail.apply(l,arguments),this},pipe:function(e,t,n){returnN.Deferred(function(i){N.each({done:[e,"resolve"],fail:[t,"reject"],progress:[n,"notify"]},function(e,t){varn,r=t[0],s=t[1];N.isFunction(r)?l[e](function(){n=r.apply(this,arguments),n&&N.isFunction(n.promise)?n.promise().then(i.resolve,i.reject,i.notify):i[s+"With"](this===l?i:this,[n])}):l[e](i[s])})}).promise()},promise:function(e){if(null==e)e=a;elsefor(vartina)e[t]=a[t];returne}},l=a.promise({});for(tino)l[t]=o[t].fire,l[t+"With"]=o[t].fireWith;returnl.done(function(){s="resolved"},i.disable,r.lock).fail(function(){s="rejected"},n.disable,r.lock),e&&e.call(l,l),l},when:function(e){functiont(e){returnfunction(t){i[e]=arguments.length>1?L.call(arguments,0):t,--a||l.resolveWith(l,i)}}functionn(e){returnfunction(t){o[e]=arguments.length>1?L.call(arguments,0):t,l.notifyWith(c,o)}}vari=L.call(arguments,0),r=0,s=i.length,o=newArray(s),a=s,l=1>=s&&e&&N.isFunction(e.promise)?e:N.Deferred(),c=l.promise();if(s>1){for(;s>r;r++)i[r]&&i[r].promise&&N.isFunction(i[r].promise)?i[r].promise().then(t(r),l.reject,n(r)):--a;a||l.resolveWith(l,i)}elsel!==e&&l.resolveWith(l,s?[e]:[]);returnc}}),N.support=function(){vart,n,i,r,s,o,a,l,c,u,d,h=O.createElement("
}functiona(e,t){if("function"!=typeoft&&null!==t)thrownewTypeError("Super expression must either be null or a function, not "+typeoft);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):r(e,t))}Object.defineProperty(n,"__esModule",{value:!0});varl=e("react"),c=i(l),u=e("silverstripe-component"),d=i(u),h=function(e){functiont(n){s(this,t);vari=o(this,e.call(this,n));returni.handleChange=i.handleChange.bind(i),i}returna(t,e),t.prototype.render=function(){returnc["default"].createElement("div",{className:"field text"},this.props.label&&c["default"].createElement("label",{className:"left",htmlFor:"gallery_"+this.props.name},this.props.label),c["default"].createElement("div",{className:"middleColumn"},c["default"].createElement("input",this.getInputProps())))},t.prototype.getInputProps=function(){return{className:["text",this.props.extraClass].join(" "),id:"gallery_"+this.props.name,name:this.props.name,onChange:this.props.onChange,type:"text",value:this.props.value}},t.prototype.handleChange=function(){"undefined"!=typeofthis.props.onChange&&this.props.onChange()},t}(d["default"]);h.propTypes={label:c["default"].PropTypes.string,extraClass:c["default"].PropTypes.string,name:c["default"].PropTypes.string.isRequired,onChange:c["default"].PropTypes.func,value:c["default"].PropTypes.string},n["default"]=h},{react:"react","silverstripe-component":"silverstripe-component"}],config:[function(e,t,n){"use strict";functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});varr=function(){functione(){i(this,e)}returne.getSection=function(e){returnwindow.ss.config.sections[e]},e.getTopLevelRoutes=function(){vare=[];returnObject.keys(window.ss.config.sections).forEach(function(t){varn=window.ss.config.sections[t].route,i=-1===n.indexOf("/"),r=-1===e.indexOf(n);i&&r&&e.push(n)}),e},e}();n["default"]=r},{}],"deep-freeze":[function(e,t,n){t.exports=functioni(e){returnObject.freeze(e),Object.getOwnPropertyNames(e).forEach(function(t){!e.hasOwnProperty(t)||null===e[t]||"object"!=typeofe[t]&&"function"!=typeofe[t]||Object.isFrozen(e[t])||i(e[t])}),e}},{}],i18n:[function(e,t,n){"use strict";functioni(e,t){if(!(einstanceoft))thrownewTypeError("Cannot call a class as a function")}Object.defineProperty(n,"__esModule",{value:!0});varr=function(){functione(){i(this,e),this.currentLocale=null,this.defaultLocale="en_US",this.lang={}}returne.prototype.setLocale=function(e){this.currentLocale=e},e.prototype.getLocale=function(){returnnull!==this.currentLocale?this.currentLocale:this.defaultLocale},e.prototype._t=function(e,t,n,i){varr=this.getLocale().replace(/_[\w]+/i,""),s=this.defaultLocale.replace(/_[\w]+/i,"");returnthis.lang&&this.lang[this.getLocale()]&&this.lang[this.getLocale()][e]?this.lang[this.getLocale()][e]:this.lang&&this.lang[r]&&this.lang[r][e]?this.lang[r][e]:this.lang&&this.lang[this.defaultLocale]&&this.lang[this.defaultLocale][e]?this.lang[this.defaultLocale][e]:this.lang&&this.lang[s]&&this.lang[s][e]?this.lang[s][e]:t?t:""},e.prototype.addDictionary=function(e,t){"undefined"==typeofthis.lang[e]&&(this.lang[e]={});for(varnint)this.lang[e][n]=t[n]},e.prototype.getDictionary=function(e){returnthis.lang[e]},e.prototype.stripStr=function(e){returne.replace(/^\s*/,"").replace(/\s*$/,"")},e.prototype.stripStrML=function(e){for(vart=e.split("\n"),n=0;n<t.length;n+=1)t[n]=stripStr(t[n]);returnstripStr(t.join(" "))},e.prototype.sprintf=function(e){for(vart=arguments.length,n=Array(t>1?t-1:0),i=1;t>i;i++)n[i-1]=arguments[i];if(0===n.length)returne;varr=newRegExp("(.?)(%s)","g"),s=0;returne.replace(r,function(e,t,i,r,o){return"%"===t?e:t+n[s++]})},e.prototype.inject=function(e,t){varn=newRegExp("{([A-Za-z0-9_]*)}","g");returne.replace(n,function(e,n,i,r){returnt[n]?t[n]:e})},e.prototype.detectLocale=function(){vart,n;if(t=jQuery("body").attr("lang"),!t)for(vari=document.getElementsByTagName("meta"),