/*! Copyright © 2022 JustRelate Group GmbH (scrivito.com) */!function(t){var e={};function n®{if(e)return e.exports;var i=e={i:r,l:!1,exports:{}};return t.call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},n.r=function(t){“undefined”!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:“Module”}),Object.defineProperty(t,“__esModule”,{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&“object”==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r®,Object.defineProperty(r,“default”,{enumerable:!0,value:t}),2&e&&“string”!=typeof t)for(var i in t)n.d(r,i,function(e){return t}.bind(null,i));return r},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,“a”,e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=“”,n(n.s=744)}({0:function(t,e,n){“use strict”;n.d(e,“p”,(function(){return p})),n.d(e,“d”,(function(){return v})),n.d(e,“e”,(function(){return m})),n.d(e,“a”,(function(){return s.ArgumentError})),n.d(e,“g”,(function(){return s.InternalError})),n.d(e,“h”,(function(){return s.ResourceNotFoundError})),n.d(e,“i”,(function(){return s.ScrivitoError})),n.d(e,“Q”,(function(){return d})),n.d(e,“G”,(function(){return f})),n.d(e,“I”,(function(){return i})),n.d(e,“O”,(function(){return u})),n.d(e,“M”,(function(){return y})),n.d(e,“F”,(function(){return b})),n.d(e,“x”,(function(){return w})),n.d(e,“D”,(function(){return _})),n.d(e,“E”,(function(){return O})),n.d(e,“o”,(function(){return N})),n.d(e,“q”,(function(){return L})),n.d(e,“N”,(function(){return I})),n.d(e,“R”,(function(){return P})),n.d(e,“y”,(function(){return A})),n.d(e,“f”,(function(){return R})),n.d(e,“c”,(function(){return D})),n.d(e,“z”,(function(){return M})),n.d(e,“m”,(function(){return B})),n.d(e,“L”,(function(){return F})),n.d(e,“K”,(function(){return q})),n.d(e,“P”,(function(){return U})),n.d(e,“H”,(function(){return $})),n.d(e,“t”,(function(){return Q})),n.d(e,“u”,(function(){return W})),n.d(e,“B”,(function(){return K})),n.d(e,“w”,(function(){return G})),n.d(e,“A”,(function(){return Y})),n.d(e,“C”,(function(){return V})),n.d(e,“S”,(function(){return J})),n.d(e,“T”,(function(){return tt})),n.d(e,“v”,(function(){return et})),n.d(e,“J”,(function(){return rt})),n.d(e,“j”,(function(){return it})),n.d(e,“b”,(function(){return at})),n.d(e,“s”,(function(){return st})),n.d(e,“n”,(function(){return lt})),n.d(e,“r”,(function(){return ct})),n.d(e,“k”,(function(){return dt})),n.d(e,“l”,(function(){return vt}));var r=n(2);function i(t){try{return Object(r.isFunction)(t)?function(t){if(function(t){return!!t._scrivitoPrivateSchema}(t)){return“[class ”t._scrivitoPrivateSchema.name
“]”}if(function(t){var e=t.prototype;return e&&e.isReactComponent}(t)){return’[class React.Component “‘+(t.displayName||t.name)+’”]‘}return a(t.toString())}(t):Object(r.isObject)(t)?function(t){var e=t._scrivitoPrivateContent;if(e&&Object(r.isFunction)(e.toPrettyPrint))return e.toPrettyPrint();if(Object(r.isElement)(t))return“[object HTMLElement ”+o(t.outerHTML)+“]”;return o(t)}(t):o(t)}catch(t){return“”}}function o(t){var e=JSON.stringify(t);return e?a(e):e}function a(t){return t.length>100?t.slice(0,100)+“…”:t}var s=n(52),u=n(58);u.struct.strict=!0,u.interface.strict=!0,u.fail=function(t){throw new TypeError(t)};var l,c=[];function f(t){l?c.push(t):setTimeout(t,0)}function d(t){f((function(){throw t}))}function p(t,e,n){var r=n.docPermalink;return function(){for(var n,i=[],o=0;or
“ for more information.”;throw new s.ArgumentError(“Invalid arguments for ’”t
“‘: ”n
“ ”+a)}}}function h(t,e){var n=e.length,o=t.length;if(o>n)return“Expected ”n
“ arguments, got ”+o;var a=Object(r.flatten)(e.map((function(e,n){var r=e,o=e,a=t;return u.validate(a,o).errors.map((function(t){return function(t,e){var n=function(t,e){var n=“argument ’”t
“‘”;if(0===e.path.length)return n;return“key ’”+e.path.join(“/”)+“‘ in ”+n}(t,e);if(void 0===e.actual)return“Missing required ”n
“.”;if(e.expected===u.Nil)return“Unexpected ”n
“.”;var r=u.getTypeName(e.expected),o=“got ”+i(e.actual)+“, expected type ”r
“.”;return“Unexpected value for ”n
“: ”+o}(r,t)}))})));return a.length>0?a.join(“ ”):void 0}var v=function(){function t(){}return t.prototype.current=function(){return this.currentContext},t.prototype.runWith=function(t,e){var n=this.currentContext;try{return this.currentContext=t,e()}finally{this.currentContext=n}},t}(),m=function(){function t(){var t=this;this.promise=new it((function(e,n){t.resolve=function(n){t.settled=!0,e(n)},t.reject=function(e){t.settled=!0,n(e)}}))}return t.prototype.isPending=function(){return!this.settled},t}();function y(t){try{return{errorThrown:!1,result:t()}}catch(t){return{errorThrown:!0,error:t}}}var g=!1;function b(){for(var t,e=[],n=0;nt
’”‘);return $(t)}function $(t){if(!t)return null;var e=t.match(H);if(!e)return null;var n=e,r=e,i=e,o=e,a=e,s=e,u=parseInt(n,10),l=parseInt(r,10),c=parseInt(i,10),f=parseInt(o,10),d=parseInt(a,10),p=parseInt(s,10);return new Date(Date.UTC(u,l-1,c,f,d,p))}function G(t){return“”+(“”+t.getUTCFullYear()+Z(t.getUTCMonth()+1))+(“”+Z(t.getUTCDate())+Z(t.getUTCHours()))+(“”+Z(t.getUTCMinutes())+Z(t.getUTCSeconds()))}function Y(t){return“string”==typeof t&&!!t.match(/^d{14}$/)}function Z(t){return t<10?“0”+t:t}function X(t){var e=parseInt(t.toString(),10);return 0===e?0:V(e)?e:null}function J(t){return tt(1e3*t)}function tt(t){return new it((function(e){setTimeout(e,t)}))}function et(t,e){return nt(t)&&nt(e)?t.equals(e):Array.isArray(t)&&Array.isArray(e)?t.length===e.length&&Object(r.every)(Object(r.zip)(t,e),(function(t){return et(t,t)})):t&&e?t.valueOf()===e.valueOf():t===e}function nt(t){return!!t&&“function”==typeof t.equals}function rt(t,e){return t.then((function(t){return e(),t}),(function(t){throw e(),t}))}var it,ot=n(149);it=“undefined”!=typeof Promise?Promise:ot.a;var at=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.itemsToBatch=[]}return t.prototype.retrieve=function(t){var e=this;0===this.itemsToBatch.length&&f((function(){return e.performRetrieval()}));var n=new m;return this.itemsToBatch.push({key:t,deferred:n}),n.promise},t.prototype.reset=function(){this.itemsToBatch=[]},t.prototype.performRetrieval=function(){var t=this,e=this.itemsToBatch.splice(0,this.batchSize);if(0!==e.length){var n=e.map((function(t){return t.key}));this.mget(n).then((function(n){e.forEach((function(e,r){var i=e.key,o=e.deferred;if(r<n.length){var a=n;o.resolve(a)}else t.retrieve(i).then(o.resolve,o.reject)}))}),(function(t){e.forEach((function(e){return e.deferred.reject(t)}))})),this.performRetrieval()}},t}();function st(t){var e=ut(t);return JSON.stringify(e)}function ut(t){return Array.isArray(t)?t.map(ut):function(t){return“object”==typeof t&&null!==t}(t)?Object.keys(t).sort().map((function(e){return[e,ut(t)]})):t}var lt=Object.assign||r.extend;function ct(t,e){var n=t.clientX,r=t.clientY,i=e.getBoundingClientRect();return{x:n-i.left,y:r-i.top}}var ft,dt=function(){function t(t){this.subscribeFunction=t}return t.prototype.subscribe=function(t){var e=new pt(“object”==typeof t?t:{next:t}),n=this.subscribeFunction(e);return e.setUnsubscribeCallback(“object”==typeof n?function(){return n.unsubscribe()}:n),e},t.prototype.map=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){return t.next(e(n))},complete:function(){return t.complete()}})}))},t.prototype.filter=function(e){var n=this;return new t((function(t){return n.subscribe({next:function(n){e(n)&&t.next(n)},complete:function(){return t.complete()}})}))},t.prototype.toPromise=function(){var t=this;return new it((function(e){var n;t.subscribe({next:function(t){n=t},complete:function(){e(n)}})}))},t.prototype.takeOne=function(){var e=this;return new t((function(t){var n=e.subscribe({next:function(e){n.unsubscribe(),t.next(e),t.complete()},complete:function(){t.complete()}});return n}))},t.prototype.takeUntil=function(e){var n=this;return new t((function(t){var r,i;if((i=n.subscribe({next:function(e){t.next(e)},complete:function(){o()}})).isClosed())return function(){};function o(){t.complete(),a()}function a(){i&&i.unsubscribe(),r&&r.unsubscribe()}return r=e.subscribe({next:function(){o()},complete:function(){o()}}),a}))},t}(),pt=function(){function t(t){this.subscriber=t}return t.prototype.next=function(t){this.subscriber&&this.subscriber.next&&this.subscriber.next(t)},t.prototype.complete=function(){this.subscriber&&this.subscriber.complete&&this.subscriber.complete(),this.subscriber=void 0},t.prototype.unsubscribe=function(){this.subscriber&&(this.unsubscribeCallback&&this.unsubscribeCallback(),this.subscriber=void 0)},t.prototype.isClosed=function(){return!this.subscriber},t.prototype.setUnsubscribeCallback=function(t){this.unsubscribeCallback=t},t}(),ht=(ft=function(t,e){return(ft=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(t,e)},function(t,e){function n(){this.constructor=t}ft(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),vt=function(t){function e(){var e=t.call(this,(function(t){if(e.isCompleted)return t.complete(),function(){};var n=(e.subscriberIdCounter++).toString();return e.subscribers=t,function(){delete e.subscribers}}))||this;return e.subscribers={},e.subscriberIdCounter=1,e.isCompleted=!1,e}return ht(e,t),e.prototype.next=function(t){var e=this;Object.keys(this.subscribers).forEach((function(n){e.subscribers.next(t)}))},e.prototype.complete=function(){var t=this;Object.keys(this.subscribers).forEach((function(e){return t.subscribers.complete()})),this.subscribers={},this.isCompleted=!0},e.prototype.subscriberCount=function(){return Object.keys(this.subscribers).length},e.prototype.isClosed=function(){return this.isCompleted},e}(dt)},1:function(t,e,n){“use strict”;t.exports=n(225)},10:function(t,e,n){“use strict”;n.d(e,“f”,(function(){return f})),n.d(e,“e”,(function(){return p})),n.d(e,“d”,(function(){return h})),n.d(e,“a”,(function(){return O})),n.d(e,“b”,(function(){return s}));var r=n(2),i=n(3),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},a=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);ir
’” is not defined for CMS object class “‘n
’”.‘);return}))}var v=function(){function t(t){this._registry=t}return t.prototype.getObj=function(t,e){var n=i.BasicObj.get(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.getObjIncludingDeleted=function(t,e){var n=i.BasicObj.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)},t.prototype.read=function(t,e){var n=s.basicFieldFor(t,e);if(!n)return null;var r=n.get();return f(this._registry,r)},t.prototype.update=function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r=void 0;throw r=t.constructor===this._registry.defaultClassForObjs?“Obj”:“Widget”,new c.a(’Updating is not supported on the base class “‘r
’”.‘)}if(e.constructor!==Object)throw new c.a(“The provided attributes are invalid. They have to be an Object with valid Scrivito
attribute values.”);var i=h(e,s.forInstance(t),n);t._scrivitoPrivateContent.update(i)},t.prototype.wrapInAppClass=function(t){return f(this._registry,t)},t.prototype._checkObjClassAndWrapInAppClass=function(t,e){if(!e)return null;var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.h(’Obj with id “‘+e.id()+’” is not of type “‘n
’”.‘);return this.wrapInAppClass(e)},t}();function m(t){return function(){function e(){}return e.prototype.id=function(){return this._scrivitoPrivateContent.id()},e.prototype.objClass=function(){return this._scrivitoPrivateContent.objClass()},e.prototype.finishSaving=function(){return this._scrivitoPrivateContent.finishSaving()},e.prototype.get=function(e){if(!Object(c.y)(e))throw new c.a(“Attribute names have to be in camel case.”);if(Object(c.z)(e))throw new c.a(’Attribute name “‘e
’” is not a valid custom attribute name.‘);return t.read(this,e)},e.prototype.update=function(e){t.update(this,e)},e}()}function y(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach((function(n){if(!Object.prototype.hasOwnProperty.call(t,n)){var o=e.initialContentFor(r,n);void 0!==o&&(i=o)}})),i}var g,b=(g=function(t,e){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(t,e)},function(t,e){function n(){this.constructor=t}g(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});function w(t){var e=new v(t);function n(e,n){var r=new t.ObjSearch;return e&&r.and(“_objClass”,“equals”,e),n&&r._scrivitoPrivateContent.batchSize(n),r}function o(e){return f(t,e)}return function(a){function u(){return null!==a&&a.apply(this,arguments)||this}return b(u,a),u.get=function(t){return e.getObj(this,t)},u.getIncludingDeleted=function(t){return e.getObjIncludingDeleted(this,t)},u.getByPath=function(t){return o(i.BasicObj.getByPath(t))},u.getByPermalink=function(t){return o(i.BasicObj.getByPermalink(t))},u.all=function(){return n(t.objClassNameFor(this),1e3)},u.root=function(){return o(i.BasicObj.root())},u.where=function(e,r,i,o){return void 0===o&&(o=null),n(t.objClassNameFor(this)).and(e,r,i,o)},u.create=function(t){void 0===t&&(t={}),_(t,this._appClassName());var e=this._prepareAttributesForCreate(t);return o(i.BasicObj.create(e))},u.createFromFile=function(t,e){void 0===e&&(e={}),function(t){if(!c.f.is(t)){if(c.c.is(t))throw new c.a(’Creating CMS objects from file is only available with instances of “File”, but an instance of “Blob” is given’);throw new c.a(‘Creating CMS objects from file is only available with instances of “File”’)}}(t),function(t,e,n){if(_(t,e),Object.prototype.hasOwnProperty.call(t,“blob”))throw new c.a(‘Setting attribute “blob” is not allowed when creating CMS objects from file, because the file will be assigned to that attribute’);if(!n.isBinary())throw new c.a(‘Creating CMS objects from file is only available for classes with a binary attribute “blob”’)}(e,this._appClassName(),this._schema());var n=this._prepareAttributesForCreate(e);return i.BasicObj.createFromFile(t,n).then((function(t){return o(t)}))},u.prototype.lastChanged=function(){return this._scrivitoPrivateContent.lastChanged()},u.prototype.path=function(){return this._scrivitoPrivateContent.path()},u.prototype.parent=function(){return o(this._scrivitoPrivateContent.parent())},u.prototype.ancestors=function(){return o(this._scrivitoPrivateContent.ancestors())},u.prototype.backlinks=function(){return o(this._scrivitoPrivateContent.backlinks())},u.prototype.children=function(){return o(this._scrivitoPrivateContent.children())},u.prototype.orderedChildren=function(){return o(this._scrivitoPrivateContent.orderedChildren())},u.prototype.permalink=function(){return this._scrivitoPrivateContent.permalink()},u.prototype.slug=function(){return this._scrivitoPrivateContent.slug()},u.prototype.isBinary=function(){var t=s.forInstance(this);return!!t&&t.isBinary()},u.prototype.isRestricted=function(){return this._scrivitoPrivateContent.isRestricted()},u.prototype.contentLength=function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0},u.prototype.contentType=function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():“”},u.prototype.contentUrl=function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():“”},u.prototype.metadata=function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new i.MetadataCollection},u.prototype.restrict=function(){this._scrivitoPrivateContent.restrict()},u.prototype.unrestrict=function(){this._scrivitoPrivateContent.unrestrict()},u.prototype.widget=function(t){return o(this._scrivitoPrivateContent.widget(t))},u.prototype.widgets=function(){return o(this._scrivitoPrivateContent.widgets())},u.prototype.destroy=function(){this._scrivitoPrivateContent.destroy()},u._prepareAttributesForCreate=function(e){var n=this._schema(),i=this._appClassName(),o=y(e,t,n,i),a={_objClass:i};return h(Object(r.extend)({},e,o,a),n,i)},u._appClassName=function(){return t.objClassNameFor(this)},u._schema=function(){return s.forClass(this)},u}(m(e))}function _(t,e){if(!e)throw new c.a(“Creating CMS objects is not supported for the class Obj
or abstract classes.”);if(t.constructor!==Object)throw new c.a(“The provided attributes are invalid. They have to be an Object with valid Scrivito
attribute values.”);if(t._objClass)throw new c.a(‘Invalid attribute “_objClass”. “’t._objClass
‘.create” will automatically set the CMS object class correctly.’)}var O=function(){function t(t,e){this._registry=t,this._basicObjFacetValue=e}return t.prototype.name=function(){return this._basicObjFacetValue.name()},t.prototype.count=function(){return this._basicObjFacetValue.count()},t.prototype.includedObjs=function(){var t=this._basicObjFacetValue.includedObjs();return f(this._registry,t)},t}();function k(t){return r.isArray(t)?t.map((function(t){return p(t)})):p(t)}var x=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function C(t){return function(e){function n(n){void 0===n&&(n={});var r=e.call(this)||this,o=s.forInstance®,a=t.objClassNameFor(r.constructor),u=r._prepareAttributesForConstructor(n,o,a),l=new i.BasicWidget(u);return l.onDidPersist((function(e){var n=f(t,e),r=y(u,t,o,a);n.update®})),r._scrivitoPrivateContent=l,r}return x(n,e),n.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return f(t,e)},n.prototype.copy=function(){var e=t.widgetClassFor(this.objClass());return d(this._scrivitoPrivateContent.copy(),e)},n.prototype.destroy=function(){this._scrivitoPrivateContent.remove()},n.prototype._prepareAttributesForConstructor=function(t,e,n){!function(t,e){if(!t)throw new c.a(“Creating widgets is not supported for the class Widget
or abstract classes.”);if(e.constructor!==Object)throw new c.a(“The provided attributes are invalid. They have to be an Object with valid Scrivito
attribute values.”);if(e._objClass)throw new c.a(‘Invalid attribute “_objClass”. “new ’e._objClass
‘” will automatically set the CMS object class correctly.’)}(n,t);var i={_objClass:n};return h(Object(r.extend)({},t,i),e,n)},n}(m(new v(t)))}var E=;function j(t){return function(t){var e=r.without.apply(r,.concat(E));if(!r.isEmpty(e))throw new c.a(“Unexpected attributes ”+Object(c.I)(e)+“. Available attributes: ”+Object(c.I)(E))}(t),r.has(t,“obj”)?r.extend({},t,{objId:S(t.obj)}):t}function S(t){return t?p(t).id():null}n(140);var T=function(){function t(){var t;this.mapping={},this.defaultClassForObjs=w(this),this.defaultClassForWidgets=C(this),this.defaultClassForLinks=(t=this,function(){function e(t){var e=j(t);this._scrivitoPrivateContent=new i.BasicLink(e)}return e.prototype.title=function(){return this._scrivitoPrivateContent.title()},e.prototype.query=function(){return this._scrivitoPrivateContent.query()},e.prototype.hash=function(){return this._scrivitoPrivateContent.hash()},e.prototype.rel=function(){return this._scrivitoPrivateContent.rel()},e.prototype.target=function(){return this._scrivitoPrivateContent.target()},e.prototype.url=function(){return this._scrivitoPrivateContent.url()},e.prototype.obj=function(){var e=this._scrivitoPrivateContent.obj();return e?f(t,e):null},e.prototype.queryParameters=function(){return this._scrivitoPrivateContent.queryParameters()},e.prototype.copy=function(e){var n=this._scrivitoPrivateContent.copy(j(e)),r=Object.create(t.defaultClassForLinks.prototype);return r._scrivitoPrivateContent=n,r},e.prototype.isExternal=function(){return this._scrivitoPrivateContent.isExternal()},e.prototype.isInternal=function(){return this._scrivitoPrivateContent.isInternal()},e}()),this.ObjSearch=function(t){var e=function(){function e(){this._scrivitoPrivateContent=new i.BasicObjSearch}return e.prototype.and=function(t,n,r,i){if(t instanceof e){var o=t;this._scrivitoPrivateContent.and(o._scrivitoPrivateContent)}else{if(void 0===n)throw new c.a(“Missing operator to search with”);if(void 0===r)throw new c.a(‘Missing value to search (specify “null” for missing)’);var a=k®,s=t;this._scrivitoPrivateContent.and(s,n,a,i)}return this},e.prototype.andNot=function(t,e,n){var r=k(n);return this._scrivitoPrivateContent.andNot(t,e,r),this},e.prototype.facet=function(e,n){return this._scrivitoPrivateContent.facet(e,n).map((function(e){return new O(t,e)}))},e.prototype.first=function(){var e=this._scrivitoPrivateContent.first();return e?f(t,e):null},e.prototype.take=function(e){return this._scrivitoPrivateContent.take(e).map((function(e){return f(t,e)}))},e.prototype.toArray=function(){return this._scrivitoPrivateContent.take().map((function(e){return f(t,e)}))},e.prototype.offset=function(t){return this._scrivitoPrivateContent.offset(t),this},e.prototype.order=function(t,e){return this._scrivitoPrivateContent.order(t,e),this},e.prototype.count=function(){return this._scrivitoPrivateContent.count()},e}();if(“function”==typeof Symbol){var n=Symbol.iterator;if(n)e.prototype=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next();return n.done?{done:n.done}:{done:n.done,value:f(t,n.value)}}}}}return e}(this)}return t.prototype.register=function(t,e){this.mapping=e},t.prototype.getClass=function(t){return this.mapping||null},t.prototype.allObjClasses=function(){var t=this;return r.pick(this.mapping,(function(e){return t.defaultClassForObjs.isPrototypeOf(e)}))},t.prototype.allWidgetClasses=function(){var t=this;return r.pick(this.mapping,(function(e){return t.defaultClassForWidgets.isPrototypeOf(e)}))},t.prototype.objClassFor=function(t){return this.appClassFor(t,this.defaultClassForObjs)},t.prototype.widgetClassFor=function(t){return this.appClassFor(t,this.defaultClassForWidgets)},t.prototype.objClassNameFor=function(t){return r.findKey(this.mapping,(function(e){return e===t}))},t.prototype.setInitialContentFor=function(t){this.initialContentForFunction=t},t.prototype.initialContentFor=function(t,e){if(this.initialContentForFunction)return this.initialContentForFunction(t,e)},t.prototype.appClassFor=function(t,e){var n=this.getClass(t);return n&&e.isPrototypeOf(n)?n:e},t}(),A=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function P(t,e){if(e.extend&&!D(e.extend,t.defaultClassForObjs))throw new c.a(‘Invalid value for “extend”: not a Scrivito
Obj
class’);var n=e.extend||t.defaultClassForObjs,r=new s(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A(e,t),Object.defineProperty(e,“_scrivitoPrivateSchema”,{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function N(t,e){if(e.extend&&!D(e.extend,t.defaultClassForWidgets))throw new c.a(‘Invalid value for “extend”: not a Scrivito
Widget
class’);var n=e.extend||t.defaultClassForWidgets,r=new s(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return A(e,t),Object.defineProperty(e,“_scrivitoPrivateSchema”,{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function L(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return P(t,i)}(t,e,n);return t.register(e,i),i}function I(t,e,n){var i=function(t,e,n){if(u(n))return n;var i=Object(r.extend)({},n,{name:e});return N(t,i)}(t,e,n);return t.register(e,i),i}function D(t,e){return!!t&&(t===e||t.prototype instanceof e)}var R=c.O.refinement(c.O.Function,u,“ObjClass”),M=c.O.interface({attributes:c.O.maybe(c.O.dict(c.O.refinement(c.O.String,(function(t){return/^(_+|[A-Za-z0-9])*$/.test(t)}),“String (alphanumeric, starting with a lower-case character)”),c.O.union([c.O.enums.of(),c.O.tuple([c.O.enums.of(),c.O.interface({values:c.O.list(c.O.String)})]),c.O.tuple([c.O.enums.of(),c.O.interface({only:c.O.union()})]),c.O.tuple([c.O.enums.of(),c.O.interface({only:c.O.union()})])]),“Attributes Specification”)),extend:c.O.maybe®}),B=c.O.refinement(c.O.Function,u,“WidgetClass”),q=c.O.interface({attributes:M.meta.props.attributes,extend:c.O.maybe(B),onlyInside:c.O.maybe(c.O.union())}),F=Object(c.p)(“createObjClass”,[],{docPerma“js-sdk/createObjClass”}),z=Object(c.p)(“createWidgetClass”,[[“options”,q]],{docPermalink:“js-sdk/createWidgetClass”}),U=c.O.union([M,R]),H=Object(c.p)(“provideObjClass”,[[“name”,c.O.String],[“objClassOrDefinition”,U]],{docPermalink:“js-sdk/provideObjClass”}),W=c.O.union([q,B]),V=Object(c.p)(“provideWidgetClass”,[[“name”,c.O.String],[“widgetClassOrDefinition”,W]],{docPermalink:“js-sdk/provideWidgetClass”});var K=function(){function t(){this._registry=new T,this.appModelAccessor=new v(this._registry)}return t.init=function(e){var n=new t;return e.Obj=n.Obj,e.Widget=n.Widget,e.Link=n.Link,e.ObjSearch=n.ObjSearch,e.appModelAccessor=n.appModelAccessor,e.provideObjClass=function(t,e){return n.provideObjClass(t,e)},e.provideWidgetClass=function(t,e){return n.provideWidgetClass(t,e)},e.createObjClass=function(t){return n.createObjClass(t)},e.createWidgetClass=function(t){return n.createWidgetClass(t)},e.getClass=function(t){return n.getClass(t)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n},Object.defineProperty(t.prototype,“Obj”,{get:function(){return this._registry.defaultClassForObjs},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,“Widget”,{get:function(){return this._registry.defaultClassForWidgets},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,“Link”,{get:function(){return this._registry.defaultClassForLinks},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,“ObjSearch”,{get:function(){return this._registry.ObjSearch},enumerable:!0,configurable:!0}),t.prototype.provideObjClass=function(t,e){for(var n=[],r=2;rthis._workspaceId
“/objs/”+this._objId;return b.d.put(e,{obj:t})},t.prototype._initDeferredForRequest=function(){if(this._nextRequestDeferred){var t=this._nextRequestDeferred;this._nextRequestDeferred=null,this._currentRequestDeferred=t}else this._currentRequestDeferred=new f.e},t.prototype._handleBackendUpdate=function(t,e){var n=P(t,this._localState);this._backendState=function(t,e){if(L(t,e)>0)return t;return e}(e,this._bufferedBackendState),this._bufferedBackendState=void 0,this._updateLocalState(N(this._backendState,n))},t.prototype._updateLocalState=function(t){this._localState=t,F(this._workspaceId,this._objId,this._localState)},Object.defineProperty(t.prototype,“backendState”,{get:function(){return this._backendState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,“localState”,{get:function(){return this._localState},enumerable:!0,configurable:!0}),t.prototype.isNotStoredInBackend=function(){return null===this._backendState},t.prototype.isRequestInFlight=function(){return this._replicationActive},t}();function P(t,e){return E(t,e)}function N(t,e){return C(t,e)}function L(t,e){return t?e?function(t,e){if(t>e)return 1;if(e>t)return-1;return 0}(t._version,e._version):1:-1}var I=new(function(){function t(){this.replicationCache={},this.disabled=!1,this.writeWriteCallbacks={},this.subscriptionToken=0}return t.prototype.get=function(t,e){return this.replicationCache||(this.replicationCache={}),this.replicationCache[e]||(this.replicationCache[e]=new A(t,e)),this.replicationCache[e]},t.prototype.subscribeWrites=function(t){return this.subscriptionToken+=1,this.writeWriteCallbacks=t,this.subscriptionToken},t.prototype.unsubscribeWrites=function(t){delete this.writeWriteCallbacks},t.prototype.isDisabled=function(){return this.disabled},t.prototype.writeStarted=function(t){Object(s.each)(this.writeWriteCallbacks,(function(e){e(t)}))},t.prototype.disableReplication=function(){this.disabled=!0},t.prototype.enableReplication=function(){this.disabled=!1},t.prototype.clearWriteCallbacks=function(){this.writeWriteCallbacks={}},t.prototype.clearCache=function(){this.replicationCache={}},t}());function D(t){I=t}function R(){return c.m.subState(“objData”)}var M=new l.LoadableCollection({name:“objdata”,state:R,loader:function(t){var e=t,n=t;return I.get(e,n).start(),new f.j((function(){}))}});var B=function(){function t(t,e){this._workspaceId=t,this._id=e,this._loadableData=M.get()}return t.prototype.get=function(){return Object(c.h)(“for performance reasons, avoid this method when rendering”),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(c.h)(“for performance reasons, avoid this method when rendering”),this.getWidgetState(t).get()},t.prototype.getWidgetWithBadPerformance=function(t){return this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if(“_widget_pool”===t)throw new f.g(“_widget_pool is not an attribute, use getWidget or getWidgetAttribute”);return this.getSubReader(t).get()},t.prototype.getWidgetAttribute=function(t,e){return this.getWidgetState(t).subState(e).get()},t.prototype.isNonExistent=function(){return!!this.getSubReader(“_deleted”).get()||!this.getSubReader(“_id”).get()},t.prototype.set=function(t){Object(c.g)(“Changing CMS content”),this._loadableData.set(t)},t.prototype.setError=function(t){this._loadableData.setError(t)},t.prototype.ensureAvailable=function(){return this._loadableData.ensureAvailable()},t.prototype.isAvailable=function(){return this._loadableData.isAvailable()},t.prototype.update=function(t){var e=C(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype.workspaceId=function(){return this._workspaceId},t.prototype.equals=function(e){return e instanceof t&&(this.workspaceId()===e.workspaceId()&&this._id===e._id)},t.prototype._replication=function(){return I.get(this._workspaceId,this._id)},t.prototype.getWidgetState=function(t){return this.getSubReader(“_widget_pool”).subState(t)},t.prototype.getSubReader=function(t){return this._loadableData.reader().subState(t)},t}();function q(t,e){var n=U(t,e);return n.set(null),I.get(t,e).notifyBackendState(null),n}function F(t,e,n){U(t,e).set(n)}function z(t,e){var n=U(t,e);if(n.ensureAvailable())return n}function U(t,e){return new B(t,e)}var H=function(){return(H=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},W={results:[],total:0},V=new l.LoadableCollection({name:“objquery”,state:function(){return tt()},loader:function(t,e,n){var r=t,i=t,o=t,a=e.push,s=e.isReload,u=e.wasCancelled;return function(t,e,n,r){if(r>0){var i=new K(t,e,n,r-1);return Object(l.load)((function(){return i.continuationForNextBatch()}))}return f.j.resolve()}(r,i,n,o).then((function(t){if(u())throw new Error;var e={size:n,continuation:t,include_objs:!s()},o=H({},i,e);return b.e.retrieveObjQuery(r,o).then((function(t){var e=t.objs;return e&&a((function(){return e.forEach((function(t){t._id&&I.get(r,t._id).notifyBackendState(t)}))})),function(t,e){e.forEach((function(e){return function(t,e){Object(l.load)((function(){return z(t,e)}))}(t,e)}))}(r,t.results),{results:t.results,total:t.total,continuation:t.continuation}}))}))},invalidation:function(t){var e=t;t,t;return Object(l.loadableWithDefault)(void 0,(function(){return i(e)}))||“”}}),K=function(){function t(t,e,n,r){void 0===r&&(r=0),this._workspaceId=t,this._params=e,this._batchSize=n,this._index=r}return t.store=function(t,e,n,r){void 0===r&&(r=n.length),V.get().set({results:n,total:r})},t.firstBatchFor=function(e,n,r){return new t(e,$(n),r)},t.countFor=function(t,e){return this.firstBatchFor(t,e,0).count()},t.prototype.objIds=function(){return this._response().results},t.prototype.count=function(){return this._response().total||0},t.prototype.nextBatch=function(){if(this.continuationForNextBatch())return new t(this._workspaceId,this._params,this._batchSize,this._index+1)},Object.defineProperty(t.prototype,“index”,{get:function(){return this._index},enumerable:!0,configurable:!0}),t.prototype.continuationForNextBatch=function(){return this._response().continuation},t.prototype._response=function(){return this._data().get()||W},t.prototype._data=function(){return V.get(,this._batchSize)},t}(),Q=K;function $(t){var e=Object(s.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},s.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var G=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.store=function(t,e,n,r){Q.store(t,e,n,r)},t.count=function(t,e){return Q.countFor(t,e)},t.prototype.iterator=function(){var t={},e=Q.firstBatchFor(this._workspaceId,this._params,this._batchSize),n=0;return{next:function r(){if(!e)return{done:!0};var i=e.objIds();if(n<i.length){var o=i;return n++,t?r():(t=!0,{value:o,done:!1})}return e=e.nextBatch(),n=0,r()}}},t}(),Y=function(){function t(t,e,n){this._workspaceId=t,this._params=e,this._batchSize=n}return t.prototype.count=function(){return G.count(this._workspaceId,this._params)},t.prototype.iterator=function(){return new Z(this._workspaceId,this._params,this._batchSize)},t}(),Z=function(){function t(t,e,n){this._workspaceId=t,this._iterator=new G(t,e,n).iterator()}return t.prototype.next=function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=z(this._workspaceId,t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}},t}();function X(t,e,n,r){G.store(t,e,n,r)}function J(t,e,n){return y(“Search API”),new Y(t,e,n)}function tt(){return c.c.subState(“objQuery”)}var et=new l.LoadableCollection({name:“objFieldDiffs”,state:function(){return c.c.subState(“objFieldDiffs”)},loader:function(t){var e=t,n=t;return b.e.retrieveObjFieldDiffs(e,n)},invalidation:function(t){return function(t,e){var n=z(t,e);if(n)return n.getAttribute(“_version”)||“”;return“”}(t,t)}});function nt(t,e,n,r){if(“published”===t)return null;var i=function(t,e){return rt(t,e).get()||{}}(t,n);return r?function(t,e,n){var r=n._widget_pool;if®{var i=r;if(i)return it(t,i)}return null}(e,r,i):it(e,i)}function rt(t,e){return et.get()}function it(t,e){var n=e;return n?n:null}function ot(t,e,n){var r=z(“published”,e),i=z(t,e);return r&&i?r.isNonExistent()&&i.isNonExistent()?null:r.isNonExistent()&&!i.isNonExistent()?“new”:!r.isNonExistent()&&i.isNonExistent()?“deleted”:function(t,e,n){var r=t.getWidgetWithBadPerformance(n),i=e.getWidgetWithBadPerformance(n);return r?i?function(t,e){var n=E(t,e);return Object(s.some)(Object.keys(n),(function(t){return!Object(f.z)(t)||“_obj_class”===t}))}(r,i)?“edited”:null:“deleted”:i?“new”:null}(r,i,n):null}},110:function(t,e,n){“use strict”;e.a=function(t){t.dataTransfer.effectAllowed=“move”;try{t.dataTransfer.setData(“text/plain”,t.target.id)}catch(t){}}},111:function(t,e,n){“use strict”;n.d(e,“b”,(function(){return a})),n.d(e,“a”,(function(){return s}));var r=n(7),i=n(0),o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)};function a(t,e,n){return Object(i.G)((function(){return u((function®{r={content:e,parentElementId:n}}))})),function(){return Object(i.G)((function(){return u((function(e){delete e}))}))}}function s(){var t=l();return Object.keys(t).map((function(e){var n=parseInt(e,10);return o({elementId:n},t)}))}function u(t){var e=o({},l());t(e),c().set(e)}function l(){return c().get()||{}}function c(){return r.b.subState(“contentZoneRegistry”)}},112:function(t,e,n){“use strict”;n.d(e,“b”,(function(){return a})),n.d(e,“a”,(function(){return s}));var r=n(17),i=new(n(0).d),o=128;function a(t){return i.runWith(!0,t)}function s(t){if(t.isRaw()||t.isExplicitlyTransformed())return{initialUrl:t.url()};var e=function(t){return t.optimizeFor({width:o})}(t).url();if(i.current())return{initialUrl:e};var n=function(t){return t.optimizeFor({width:Object(r.j)().width*Object(r.a)()})}(t).urlWithoutPlaceholder();return n&&e!==n?{initialUrl:e,highResUrlToDecode:n}:{initialUrl:e}}},115:function(t,e,n){“use strict”;n.d(e,“b”,(function(){return o})),n.d(e,“a”,(function(){return a}));var r,i=n(0);function o(){return r||(r=“assets.scrivito.com/sjs/”+Object(i.x)()),r}function a(t){if®throw new Error(“Refusing attempt to reconfigure asset url base (again or after first access).”);r=t}},117:function(t,e,n){“use strict”;n.r(e),n.d(e,“default”,(function(){return i}));var r=n(5);function i(t,e,n){void 0===n&&(n=[]);var o=Object(r.runAndCatchErrorsWhileLoading)((function(){return t.next()}));if(!o.allDataLoaded)return{done:!1,objs:n};var a=o.result;return a.done||0===e?{done:a.done,objs:n}:i(t,e-1,n.concat())}},12:function(t,e,n){var r,i,o; /*!
* URI.js - Mutating URLs * * Version: 1.19.1 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */!function(a,s){"use strict";t.exports?t.exports=s(n(137),n(138),n(139)):(i=[n(137),n(138),n(139)],void 0===(o="function"==typeof(r=s)?r.apply(e,i):r)||(t.exports=o))}(0,(function(t,e,n,r){"use strict";var i=r&&r.URI;function o(t,e){var n=arguments.length>=1,r=arguments.length>=2;if(!(this instanceof o))return n?r?new o(t,e):new o(t):new o;if(void 0===t){if(n)throw new TypeError("undefined is not a valid argument for URI");t="undefined"!=typeof location?location.href+"":""}if(null===t&&n)throw new TypeError("null is not a valid argument for URI");return this.href(t),void 0!==e?this.absoluteTo(e):this}o.version="1.19.1";var a=o.prototype,s=Object.prototype.hasOwnProperty;function u(t){return t.replace(/([.*+?^=!:${}()|[\]\/\\])/g,"\\$1")}function l(t){return void 0===t?"Undefined":String(Object.prototype.toString.call(t)).slice(8,-1)}function c(t){return"Array"===l(t)}function f(t,e){var n,r,i={};if("RegExp"===l(e))i=null;else if(c(e))for(n=0,r=e.length;n<r;n++)i[e[n]]=!0;else i[e]=!0;for(n=0,r=t.length;n<r;n++){(i&&void 0!==i[t[n]]||!i&&e.test(t[n]))&&(t.splice(n,1),r--,n--)}return t}function d(t,e){var n,r;if(c(e)){for(n=0,r=e.length;n<r;n++)if(!d(t,e[n]))return!1;return!0}var i=l(e);for(n=0,r=t.length;n<r;n++)if("RegExp"===i){if("string"==typeof t[n]&&t[n].match(e))return!0}else if(t[n]===e)return!0;return!1}function p(t,e){if(!c(t)||!c(e))return!1;if(t.length!==e.length)return!1;t.sort(),e.sort();for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function h(t){return t.replace(/^\/+|\/+$/g,"")}function v(t){return escape(t)}function m(t){return encodeURIComponent(t).replace(/[!'()*]/g,v).replace(/\*/g,"%2A")}o._parts=function(){return{protocol:null,username:null,password:null,hostname:null,urn:null,port:null,path:null,query:null,fragment:null,preventInvalidHostname:o.preventInvalidHostname,duplicateQueryParameters:o.duplicateQueryParameters,escapeQuerySpace:o.escapeQuerySpace}},o.preventInvalidHostname=!1,o.duplicateQueryParameters=!1,o.escapeQuerySpace=!0,o.protocol_expression=/^[a-z][a-z0-9.+-]*$/i,o.idn_expression=/[^a-z0-9\._-]/i,o.punycode_expression=/(xn--)/i,o.ip4_expression=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,o.ip6_expression=/^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$/,o.find_uri_expression=/\b((?:[a-z][\w-]+:(?:\/{1,3}|[a-z0-9%])|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\(([^\s()<>]+|(\([^\s()<>]+\)))*\))+(?:\(([^\s()<>]+|(\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))/gi,o.findUri={start:/\b(?:([a-z][a-z0-9.+-]*:\/\/)|www\.)/gi,end:/[\s\r\n]|$/,trim:/[`!()\[\]{};:'".,<>?«»“”„‘’]+$/,parens:/(\([^\)]*\)|\[[^\]]*\]|\{[^}]*\}|<[^>]*>)/g},o.defaultPorts={http:"80",https:"443",ftp:"21",gopher:"70",ws:"80",wss:"443"},o.hostProtocols=["http","https"],o.invalid_hostname_characters=/[^a-zA-Z0-9\.\-:_]/,o.domAttributes={a:"href",blockquote:"cite",link:"href",base:"href",script:"src",form:"action",img:"src",area:"href",iframe:"src",embed:"src",source:"src",track:"src",input:"src",audio:"src",video:"src"},o.getDomAttribute=function(t){if(t&&t.nodeName){var e=t.nodeName.toLowerCase();if("input"!==e||"image"===t.type)return o.domAttributes[e]}},o.encode=m,o.decode=decodeURIComponent,o.iso8859=function(){o.encode=escape,o.decode=unescape},o.unicode=function(){o.encode=m,o.decode=decodeURIComponent},o.characters={pathname:{encode:{expression:/%(24|26|2B|2C|3B|3D|3A|40)/gi,map:{"%24":"$","%26":"&","%2B":"+","%2C":",","%3B":";","%3D":"=","%3A":":","%40":"@"}},decode:{expression:/[\/\?#]/g,map:{"/":"%2F","?":"%3F","#":"%23"}}},reserved:{encode:{expression:/%(21|23|24|26|27|28|29|2A|2B|2C|2F|3A|3B|3D|3F|40|5B|5D)/gi,map:{"%3A":":","%2F":"/","%3F":"?","%23":"#","%5B":"[","%5D":"]","%40":"@","%21":"!","%24":"$","%26":"&","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"="}}},urnpath:{encode:{expression:/%(21|24|27|28|29|2A|2B|2C|3B|3D|40)/gi,map:{"%21":"!","%24":"$","%27":"'","%28":"(","%29":")","%2A":"*","%2B":"+","%2C":",","%3B":";","%3D":"=","%40":"@"}},decode:{expression:/[\/\?#:]/g,map:{"/":"%2F","?":"%3F","#":"%23",":":"%3A"}}}},o.encodeQuery=function(t,e){var n=o.encode(t+"");return void 0===e&&(e=o.escapeQuerySpace),e?n.replace(/%20/g,"+"):n},o.decodeQuery=function(t,e){t+="",void 0===e&&(e=o.escapeQuerySpace);try{return o.decode(e?t.replace(/\+/g,"%20"):t)}catch(e){return t}};var y,g={encode:"encode",decode:"decode"},b=function(t,e){return function(n){try{return o[e](n+"").replace(o.characters[t][e].expression,(function(n){return o.characters[t][e].map[n]}))}catch(t){return n}}};for(y in g)o[y+"PathSegment"]=b("pathname",g[y]),o[y+"UrnPathSegment"]=b("urnpath",g[y]);var w=function(t,e,n){return function(r){var i;i=n?function(t){return o[e](o[n](t))}:o[e];for(var a=(r+"").split(t),s=0,u=a.length;s<u;s++)a[s]=i(a[s]);return a.join(t)}};function _(t){return function(e,n){return void 0===e?this._parts[t]||"":(this._parts[t]=e||null,this.build(!n),this)}}function O(t,e){return function(n,r){return void 0===n?this._parts[t]||"":(null!==n&&(n+="").charAt(0)===e&&(n=n.substring(1)),this._parts[t]=n,this.build(!r),this)}}o.decodePath=w("/","decodePathSegment"),o.decodeUrnPath=w(":","decodeUrnPathSegment"),o.recodePath=w("/","encodePathSegment","decode"),o.recodeUrnPath=w(":","encodeUrnPathSegment","decode"),o.encodeReserved=b("reserved","encode"),o.parse=function(t,e){var n;return e||(e={preventInvalidHostname:o.preventInvalidHostname}),(n=t.indexOf("#"))>-1&&(e.fragment=t.substring(n+1)||null,t=t.substring(0,n)),(n=t.indexOf("?"))>-1&&(e.query=t.substring(n+1)||null,t=t.substring(0,n)),"//"===t.substring(0,2)?(e.protocol=null,t=t.substring(2),t=o.parseAuthority(t,e)):(n=t.indexOf(":"))>-1&&(e.protocol=t.substring(0,n)||null,e.protocol&&!e.protocol.match(o.protocol_expression)?e.protocol=void 0:"//"===t.substring(n+1,n+3)?(t=t.substring(n+3),t=o.parseAuthority(t,e)):(t=t.substring(n+1),e.urn=!0)),e.path=t,e},o.parseHost=function(t,e){t||(t="");var n,r,i=(t=t.replace(/\\/g,"/")).indexOf("/");if(-1===i&&(i=t.length),"["===t.charAt(0))n=t.indexOf("]"),e.hostname=t.substring(1,n)||null,e.port=t.substring(n+2,i)||null,"/"===e.port&&(e.port=null);else{var a=t.indexOf(":"),s=t.indexOf("/"),u=t.indexOf(":",a+1);-1!==u&&(-1===s||u<s)?(e.hostname=t.substring(0,i)||null,e.port=null):(r=t.substring(0,i).split(":"),e.hostname=r[0]||null,e.port=r[1]||null)}return e.hostname&&"/"!==t.substring(i).charAt(0)&&(i++,t="/"+t),e.preventInvalidHostname&&o.ensureValidHostname(e.hostname,e.protocol),e.port&&o.ensureValidPort(e.port),t.substring(i)||"/"},o.parseAuthority=function(t,e){return t=o.parseUserinfo(t,e),o.parseHost(t,e)},o.parseUserinfo=function(t,e){var n,r=t.indexOf("/"),i=t.lastIndexOf("@",r>-1?r:t.length-1);return i>-1&&(-1===r||i<r)?(n=t.substring(0,i).split(":"),e.username=n[0]?o.decode(n[0]):null,n.shift(),e.password=n[0]?o.decode(n.join(":")):null,t=t.substring(i+1)):(e.username=null,e.password=null),t},o.parseQuery=function(t,e){if(!t)return{};if(!(t=t.replace(/&+/g,"&").replace(/^\?*&*|&+$/g,"")))return{};for(var n,r,i,a={},u=t.split("&"),l=u.length,c=0;c<l;c++)n=u[c].split("="),r=o.decodeQuery(n.shift(),e),i=n.length?o.decodeQuery(n.join("="),e):null,s.call(a,r)?("string"!=typeof a[r]&&null!==a[r]||(a[r]=[a[r]]),a[r].push(i)):a[r]=i;return a},o.build=function(t){var e="";return t.protocol&&(e+=t.protocol+":"),t.urn||!e&&!t.hostname||(e+="//"),e+=o.buildAuthority(t)||"","string"==typeof t.path&&("/"!==t.path.charAt(0)&&"string"==typeof t.hostname&&(e+="/"),e+=t.path),"string"==typeof t.query&&t.query&&(e+="?"+t.query),"string"==typeof t.fragment&&t.fragment&&(e+="#"+t.fragment),e},o.buildHost=function(t){var e="";return t.hostname?(o.ip6_expression.test(t.hostname)?e+="["+t.hostname+"]":e+=t.hostname,t.port&&(e+=":"+t.port),e):""},o.buildAuthority=function(t){return o.buildUserinfo(t)+o.buildHost(t)},o.buildUserinfo=function(t){var e="";return t.username&&(e+=o.encode(t.username)),t.password&&(e+=":"+o.encode(t.password)),e&&(e+="@"),e},o.buildQuery=function(t,e,n){var r,i,a,u,l="";for(i in t)if(s.call(t,i)&&i)if(c(t[i]))for(r={},a=0,u=t[i].length;a<u;a++)void 0!==t[i][a]&&void 0===r[t[i][a]+""]&&(l+="&"+o.buildQueryParameter(i,t[i][a],n),!0!==e&&(r[t[i][a]+""]=!0));else void 0!==t[i]&&(l+="&"+o.buildQueryParameter(i,t[i],n));return l.substring(1)},o.buildQueryParameter=function(t,e,n){return o.encodeQuery(t,n)+(null!==e?"="+o.encodeQuery(e,n):"")},o.addQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.addQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");if(void 0===t[e])return void(t[e]=n);"string"==typeof t[e]&&(t[e]=[t[e]]),c(n)||(n=[n]),t[e]=(t[e]||[]).concat(n)}},o.setQuery=function(t,e,n){if("object"==typeof e)for(var r in e)s.call(e,r)&&o.setQuery(t,r,e[r]);else{if("string"!=typeof e)throw new TypeError("URI.setQuery() accepts an object, string as the name parameter");t[e]=void 0===n?null:n}},o.removeQuery=function(t,e,n){var r,i,a;if(c(e))for(r=0,i=e.length;r<i;r++)t[e[r]]=void 0;else if("RegExp"===l(e))for(a in t)e.test(a)&&(t[a]=void 0);else if("object"==typeof e)for(a in e)s.call(e,a)&&o.removeQuery(t,a,e[a]);else{if("string"!=typeof e)throw new TypeError("URI.removeQuery() accepts an object, string, RegExp as the first parameter");void 0!==n?"RegExp"===l(n)?!c(t[e])&&n.test(t[e])?t[e]=void 0:t[e]=f(t[e],n):t[e]!==String(n)||c(n)&&1!==n.length?c(t[e])&&(t[e]=f(t[e],n)):t[e]=void 0:t[e]=void 0}},o.hasQuery=function(t,e,n,r){switch(l(e)){case"String":break;case"RegExp":for(var i in t)if(s.call(t,i)&&e.test(i)&&(void 0===n||o.hasQuery(t,i,n)))return!0;return!1;case"Object":for(var a in e)if(s.call(e,a)&&!o.hasQuery(t,a,e[a]))return!1;return!0;default:throw new TypeError("URI.hasQuery() accepts a string, regular expression or object as the name parameter")}switch(l(n)){case"Undefined":return e in t;case"Boolean":return n===Boolean(c(t[e])?t[e].length:t[e]);case"Function":return!!n(t[e],e,t);case"Array":return!!c(t[e])&&(r?d:p)(t[e],n);case"RegExp":return c(t[e])?!!r&&d(t[e],n):Boolean(t[e]&&t[e].match(n));case"Number":n=String(n);case"String":return c(t[e])?!!r&&d(t[e],n):t[e]===n;default:throw new TypeError("URI.hasQuery() accepts undefined, boolean, string, number, RegExp, Function as the value parameter")}},o.joinPaths=function(){for(var t=[],e=[],n=0,r=0;r<arguments.length;r++){var i=new o(arguments[r]);t.push(i);for(var a=i.segment(),s=0;s<a.length;s++)"string"==typeof a[s]&&e.push(a[s]),a[s]&&n++}if(!e.length||!n)return new o("");var u=new o("").segment(e);return""!==t[0].path()&&"/"!==t[0].path().slice(0,1)||u.path("/"+u.path()),u.normalize()},o.commonPath=function(t,e){var n,r=Math.min(t.length,e.length);for(n=0;n<r;n++)if(t.charAt(n)!==e.charAt(n)){n--;break}return n<1?t.charAt(0)===e.charAt(0)&&"/"===t.charAt(0)?"/":"":("/"===t.charAt(n)&&"/"===e.charAt(n)||(n=t.substring(0,n).lastIndexOf("/")),t.substring(0,n+1))},o.withinString=function(t,e,n){n||(n={});var r=n.start||o.findUri.start,i=n.end||o.findUri.end,a=n.trim||o.findUri.trim,s=n.parens||o.findUri.parens,u=/[a-z0-9-]=["']?$/i;for(r.lastIndex=0;;){var l=r.exec(t);if(!l)break;var c=l.index;if(n.ignoreHtml){var f=t.slice(Math.max(c-3,0),c);if(f&&u.test(f))continue}for(var d=c+t.slice(c).search(i),p=t.slice(c,d),h=-1;;){var v=s.exec(p);if(!v)break;var m=v.index+v[0].length;h=Math.max(h,m)}if(!((p=h>-1?p.slice(0,h)+p.slice(h).replace(a,""):p.replace(a,"")).length<=l[0].length||n.ignore&&n.ignore.test(p))){var y=e(p,c,d=c+p.length,t);void 0!==y?(y=String(y),t=t.slice(0,c)+y+t.slice(d),r.lastIndex=c+y.length):r.lastIndex=d}}return r.lastIndex=0,t},o.ensureValidHostname=function(e,n){var r=!!e,i=!1;if(!!n&&(i=d(o.hostProtocols,n)),i&&!r)throw new TypeError("Hostname cannot be empty, if protocol is "+n);if(e&&e.match(o.invalid_hostname_characters)){if(!t)throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_] and Punycode.js is not available');if(t.toASCII(e).match(o.invalid_hostname_characters))throw new TypeError('Hostname "'+e+'" contains characters other than [A-Z0-9.-:_]')}},o.ensureValidPort=function(t){if(t){var e=Number(t);if(!(/^[0-9]+$/.test(e)&&e>0&&e<65536))throw new TypeError('Port "'+t+'" is not a valid port')}},o.noConflict=function(t){if(t){var e={URI:this.noConflict()};return r.URITemplate&&"function"==typeof r.URITemplate.noConflict&&(e.URITemplate=r.URITemplate.noConflict()),r.IPv6&&"function"==typeof r.IPv6.noConflict&&(e.IPv6=r.IPv6.noConflict()),r.SecondLevelDomains&&"function"==typeof r.SecondLevelDomains.noConflict&&(e.SecondLevelDomains=r.SecondLevelDomains.noConflict()),e}return r.URI===this&&(r.URI=i),this},a.build=function(t){return!0===t?this._deferred_build=!0:(void 0===t||this._deferred_build)&&(this._string=o.build(this._parts),this._deferred_build=!1),this},a.clone=function(){return new o(this)},a.valueOf=a.toString=function(){return this.build(!1)._string},a.protocol=_("protocol"),a.username=_("username"),a.password=_("password"),a.hostname=_("hostname"),a.port=_("port"),a.query=O("query","?"),a.fragment=O("fragment","#"),a.search=function(t,e){var n=this.query(t,e);return"string"==typeof n&&n.length?"?"+n:n},a.hash=function(t,e){var n=this.fragment(t,e);return"string"==typeof n&&n.length?"#"+n:n},a.pathname=function(t,e){if(void 0===t||!0===t){var n=this._parts.path||(this._parts.hostname?"/":"");return t?(this._parts.urn?o.decodeUrnPath:o.decodePath)(n):n}return this._parts.urn?this._parts.path=t?o.recodeUrnPath(t):"":this._parts.path=t?o.recodePath(t):"/",this.build(!e),this},a.path=a.pathname,a.href=function(t,e){var n;if(void 0===t)return this.toString();this._string="",this._parts=o._parts();var r=t instanceof o,i="object"==typeof t&&(t.hostname||t.path||t.pathname);t.nodeName&&(t=t[o.getDomAttribute(t)]||"",i=!1);if(!r&&i&&void 0!==t.pathname&&(t=t.toString()),"string"==typeof t||t instanceof String)this._parts=o.parse(String(t),this._parts);else{if(!r&&!i)throw new TypeError("invalid input");var a=r?t._parts:t;for(n in a)"query"!==n&&s.call(this._parts,n)&&(this._parts[n]=a[n]);a.query&&this.query(a.query,!1)}return this.build(!e),this},a.is=function(t){var e=!1,r=!1,i=!1,a=!1,s=!1,u=!1,l=!1,c=!this._parts.urn;switch(this._parts.hostname&&(c=!1,r=o.ip4_expression.test(this._parts.hostname),i=o.ip6_expression.test(this._parts.hostname),s=(a=!(e=r||i))&&n&&n.has(this._parts.hostname),u=a&&o.idn_expression.test(this._parts.hostname),l=a&&o.punycode_expression.test(this._parts.hostname)),t.toLowerCase()){case"relative":return c;case"absolute":return!c;case"domain":case"name":return a;case"sld":return s;case"ip":return e;case"ip4":case"ipv4":case"inet4":return r;case"ip6":case"ipv6":case"inet6":return i;case"idn":return u;case"url":return!this._parts.urn;case"urn":return!!this._parts.urn;case"punycode":return l}return null};var k=a.protocol,x=a.port,C=a.hostname;a.protocol=function(t,e){if(t&&!(t=t.replace(/:(\/\/)?$/,"")).match(o.protocol_expression))throw new TypeError('Protocol "'+t+"\" contains characters other than [A-Z0-9.+-] or doesn't start with [A-Z]");return k.call(this,t,e)},a.scheme=a.protocol,a.port=function(t,e){return this._parts.urn?void 0===t?"":this:(void 0!==t&&(0===t&&(t=null),t&&(":"===(t+="").charAt(0)&&(t=t.substring(1)),o.ensureValidPort(t))),x.call(this,t,e))},a.hostname=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0!==t){var n={preventInvalidHostname:this._parts.preventInvalidHostname};if("/"!==o.parseHost(t,n))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');t=n.hostname,this._parts.preventInvalidHostname&&o.ensureValidHostname(t,this._parts.protocol)}return C.call(this,t,e)},a.origin=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=this.protocol();return this.authority()?(n?n+"://":"")+this.authority():""}var r=o(t);return this.protocol(r.protocol()).authority(r.authority()).build(!e),this},a.host=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildHost(this._parts):"";if("/"!==o.parseHost(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.authority=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t)return this._parts.hostname?o.buildAuthority(this._parts):"";if("/"!==o.parseAuthority(t,this._parts))throw new TypeError('Hostname "'+t+'" contains characters other than [A-Z0-9.-]');return this.build(!e),this},a.userinfo=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){var n=o.buildUserinfo(this._parts);return n?n.substring(0,n.length-1):n}return"@"!==t[t.length-1]&&(t+="@"),o.parseUserinfo(t,this._parts),this.build(!e),this},a.resource=function(t,e){var n;return void 0===t?this.path()+this.search()+this.hash():(n=o.parse(t),this._parts.path=n.path,this._parts.query=n.query,this._parts.fragment=n.fragment,this.build(!e),this)},a.subdomain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.length-this.domain().length-1;return this._parts.hostname.substring(0,n)||""}var r=this._parts.hostname.length-this.domain().length,i=this._parts.hostname.substring(0,r),a=new RegExp("^"+u(i));if(t&&"."!==t.charAt(t.length-1)&&(t+="."),-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");return t&&o.ensureValidHostname(t,this._parts.protocol),this._parts.hostname=this._parts.hostname.replace(a,t),this.build(!e),this},a.domain=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var n=this._parts.hostname.match(/\./g);if(n&&n.length<2)return this._parts.hostname;var r=this._parts.hostname.length-this.tld(e).length-1;return r=this._parts.hostname.lastIndexOf(".",r-1)+1,this._parts.hostname.substring(r)||""}if(!t)throw new TypeError("cannot set domain empty");if(-1!==t.indexOf(":"))throw new TypeError("Domains cannot contain colons");if(o.ensureValidHostname(t,this._parts.protocol),!this._parts.hostname||this.is("IP"))this._parts.hostname=t;else{var i=new RegExp(u(this.domain())+"$");this._parts.hostname=this._parts.hostname.replace(i,t)}return this.build(!e),this},a.tld=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("boolean"==typeof t&&(e=t,t=void 0),void 0===t){if(!this._parts.hostname||this.is("IP"))return"";var r=this._parts.hostname.lastIndexOf("."),i=this._parts.hostname.substring(r+1);return!0!==e&&n&&n.list[i.toLowerCase()]&&n.get(this._parts.hostname)||i}var o;if(!t)throw new TypeError("cannot set TLD empty");if(t.match(/[^a-zA-Z0-9-]/)){if(!n||!n.is(t))throw new TypeError('TLD "'+t+'" contains characters other than [A-Z0-9]');o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}else{if(!this._parts.hostname||this.is("IP"))throw new ReferenceError("cannot set TLD on non-domain host");o=new RegExp(u(this.tld())+"$"),this._parts.hostname=this._parts.hostname.replace(o,t)}return this.build(!e),this},a.directory=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path&&!this._parts.hostname)return"";if("/"===this._parts.path)return"/";var n=this._parts.path.length-this.filename().length-1,r=this._parts.path.substring(0,n)||(this._parts.hostname?"/":"");return t?o.decodePath(r):r}var i=this._parts.path.length-this.filename().length,a=this._parts.path.substring(0,i),s=new RegExp("^"+u(a));return this.is("relative")||(t||(t="/"),"/"!==t.charAt(0)&&(t="/"+t)),t&&"/"!==t.charAt(t.length-1)&&(t+="/"),t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t),this.build(!e),this},a.filename=function(t,e){if(this._parts.urn)return void 0===t?"":this;if("string"!=typeof t){if(!this._parts.path||"/"===this._parts.path)return"";var n=this._parts.path.lastIndexOf("/"),r=this._parts.path.substring(n+1);return t?o.decodePathSegment(r):r}var i=!1;"/"===t.charAt(0)&&(t=t.substring(1)),t.match(/\.?\//)&&(i=!0);var a=new RegExp(u(this.filename())+"$");return t=o.recodePath(t),this._parts.path=this._parts.path.replace(a,t),i?this.normalizePath(e):this.build(!e),this},a.suffix=function(t,e){if(this._parts.urn)return void 0===t?"":this;if(void 0===t||!0===t){if(!this._parts.path||"/"===this._parts.path)return"";var n,r,i=this.filename(),a=i.lastIndexOf(".");return-1===a?"":(n=i.substring(a+1),r=/^[a-z0-9%]+$/i.test(n)?n:"",t?o.decodePathSegment(r):r)}"."===t.charAt(0)&&(t=t.substring(1));var s,l=this.suffix();if(l)s=t?new RegExp(u(l)+"$"):new RegExp(u("."+l)+"$");else{if(!t)return this;this._parts.path+="."+o.recodePath(t)}return s&&(t=o.recodePath(t),this._parts.path=this._parts.path.replace(s,t)),this.build(!e),this},a.segment=function(t,e,n){var r=this._parts.urn?":":"/",i=this.path(),o="/"===i.substring(0,1),a=i.split(r);if(void 0!==t&&"number"!=typeof t&&(n=e,e=t,t=void 0),void 0!==t&&"number"!=typeof t)throw new Error('Bad segment "'+t+'", must be 0-based integer');if(o&&a.shift(),t<0&&(t=Math.max(a.length+t,0)),void 0===e)return void 0===t?a:a[t];if(null===t||void 0===a[t])if(c(e)){a=[];for(var s=0,u=e.length;s<u;s++)(e[s].length||a.length&&a[a.length-1].length)&&(a.length&&!a[a.length-1].length&&a.pop(),a.push(h(e[s])))}else(e||"string"==typeof e)&&(e=h(e),""===a[a.length-1]?a[a.length-1]=e:a.push(e));else e?a[t]=h(e):a.splice(t,1);return o&&a.unshift(""),this.path(a.join(r),n)},a.segmentCoded=function(t,e,n){var r,i,a;if("number"!=typeof t&&(n=e,e=t,t=void 0),void 0===e){if(c(r=this.segment(t,e,n)))for(i=0,a=r.length;i<a;i++)r[i]=o.decode(r[i]);else r=void 0!==r?o.decode(r):void 0;return r}if(c(e))for(i=0,a=e.length;i<a;i++)e[i]=o.encode(e[i]);else e="string"==typeof e||e instanceof String?o.encode(e):e;return this.segment(t,e,n)};var E=a.query;return a.query=function(t,e){if(!0===t)return o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("function"==typeof t){var n=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace),r=t.call(this,n);return this._parts.query=o.buildQuery(r||n,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this}return void 0!==t&&"string"!=typeof t?(this._parts.query=o.buildQuery(t,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),this.build(!e),this):E.call(this,t,e)},a.setQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);if("string"==typeof t||t instanceof String)r[t]=void 0!==e?e:null;else{if("object"!=typeof t)throw new TypeError("URI.addQuery() accepts an object, string as the name parameter");for(var i in t)s.call(t,i)&&(r[i]=t[i])}return this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.addQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.addQuery(r,t,void 0===e?null:e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.removeQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.removeQuery(r,t,e),this._parts.query=o.buildQuery(r,this._parts.duplicateQueryParameters,this._parts.escapeQuerySpace),"string"!=typeof t&&(n=e),this.build(!n),this},a.hasQuery=function(t,e,n){var r=o.parseQuery(this._parts.query,this._parts.escapeQuerySpace);return o.hasQuery(r,t,e,n)},a.setSearch=a.setQuery,a.addSearch=a.addQuery,a.removeSearch=a.removeQuery,a.hasSearch=a.hasQuery,a.normalize=function(){return this._parts.urn?this.normalizeProtocol(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build():this.normalizeProtocol(!1).normalizeHostname(!1).normalizePort(!1).normalizePath(!1).normalizeQuery(!1).normalizeFragment(!1).build()},a.normalizeProtocol=function(t){return"string"==typeof this._parts.protocol&&(this._parts.protocol=this._parts.protocol.toLowerCase(),this.build(!t)),this},a.normalizeHostname=function(n){return this._parts.hostname&&(this.is("IDN")&&t?this._parts.hostname=t.toASCII(this._parts.hostname):this.is("IPv6")&&e&&(this._parts.hostname=e.best(this._parts.hostname)),this._parts.hostname=this._parts.hostname.toLowerCase(),this.build(!n)),this},a.normalizePort=function(t){return"string"==typeof this._parts.protocol&&this._parts.port===o.defaultPorts[this._parts.protocol]&&(this._parts.port=null,this.build(!t)),this},a.normalizePath=function(t){var e,n=this._parts.path;if(!n)return this;if(this._parts.urn)return this._parts.path=o.recodeUrnPath(this._parts.path),this.build(!t),this;if("/"===this._parts.path)return this;var r,i,a="";for("/"!==(n=o.recodePath(n)).charAt(0)&&(e=!0,n="/"+n),"/.."!==n.slice(-3)&&"/."!==n.slice(-2)||(n+="/"),n=n.replace(/(\/(\.\/)+)|(\/\.$)/g,"/").replace(/\/{2,}/g,"/"),e&&(a=n.substring(1).match(/^(\.\.\/)+/)||"")&&(a=a[0]);-1!==(r=n.search(/\/\.\.(\/|$)/));)0!==r?(-1===(i=n.substring(0,r).lastIndexOf("/"))&&(i=r),n=n.substring(0,i)+n.substring(r+3)):n=n.substring(3);return e&&this.is("relative")&&(n=a+n.substring(1)),this._parts.path=n,this.build(!t),this},a.normalizePathname=a.normalizePath,a.normalizeQuery=function(t){return"string"==typeof this._parts.query&&(this._parts.query.length?this.query(o.parseQuery(this._parts.query,this._parts.escapeQuerySpace)):this._parts.query=null,this.build(!t)),this},a.normalizeFragment=function(t){return this._parts.fragment||(this._parts.fragment=null,this.build(!t)),this},a.normalizeSearch=a.normalizeQuery,a.normalizeHash=a.normalizeFragment,a.iso8859=function(){var t=o.encode,e=o.decode;o.encode=escape,o.decode=decodeURIComponent;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.unicode=function(){var t=o.encode,e=o.decode;o.encode=m,o.decode=unescape;try{this.normalize()}finally{o.encode=t,o.decode=e}return this},a.readable=function(){var e=this.clone();e.username("").password("").normalize();var n="";if(e._parts.protocol&&(n+=e._parts.protocol+"://"),e._parts.hostname&&(e.is("punycode")&&t?(n+=t.toUnicode(e._parts.hostname),e._parts.port&&(n+=":"+e._parts.port)):n+=e.host()),e._parts.hostname&&e._parts.path&&"/"!==e._parts.path.charAt(0)&&(n+="/"),n+=e.path(!0),e._parts.query){for(var r="",i=0,a=e._parts.query.split("&"),s=a.length;i<s;i++){var u=(a[i]||"").split("=");r+="&"+o.decodeQuery(u[0],this._parts.escapeQuerySpace).replace(/&/g,"%26"),void 0!==u[1]&&(r+="="+o.decodeQuery(u[1],this._parts.escapeQuerySpace).replace(/&/g,"%26"))}n+="?"+r.substring(1)}return n+=o.decodeQuery(e.hash(),!0)},a.absoluteTo=function(t){var e,n,r,i=this.clone(),a=["protocol","username","password","hostname","port"];if(this._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t instanceof o||(t=new o(t)),i._parts.protocol)return i;if(i._parts.protocol=t._parts.protocol,this._parts.hostname)return i;for(n=0;r=a[n];n++)i._parts[r]=t._parts[r];return i._parts.path?(".."===i._parts.path.substring(-2)&&(i._parts.path+="/"),"/"!==i.path().charAt(0)&&(e=(e=t.directory())||(0===t.path().indexOf("/")?"/":""),i._parts.path=(e?e+"/":"")+i._parts.path,i.normalizePath())):(i._parts.path=t._parts.path,i._parts.query||(i._parts.query=t._parts.query)),i.build(),i},a.relativeTo=function(t){var e,n,r,i,a,s=this.clone().normalize();if(s._parts.urn)throw new Error("URNs do not have any generally defined hierarchical components");if(t=new o(t).normalize(),e=s._parts,n=t._parts,i=s.path(),a=t.path(),"/"!==i.charAt(0))throw new Error("URI is already relative");if("/"!==a.charAt(0))throw new Error("Cannot calculate a URI relative to another relative URI");if(e.protocol===n.protocol&&(e.protocol=null),e.username!==n.username||e.password!==n.password)return s.build();if(null!==e.protocol||null!==e.username||null!==e.password)return s.build();if(e.hostname!==n.hostname||e.port!==n.port)return s.build();if(e.hostname=null,e.port=null,i===a)return e.path="",s.build();if(!(r=o.commonPath(i,a)))return s.build();var u=n.path.substring(r.length).replace(/[^\/]*$/,"").replace(/.*?\//g,"../");return e.path=u+e.path.substring(r.length)||"./",s.build()},a.equals=function(t){var e,n,r,i,a,u=this.clone(),l=new o(t),f={};if(u.normalize(),l.normalize(),u.toString()===l.toString())return!0;if(r=u.query(),i=l.query(),u.query(""),l.query(""),u.toString()!==l.toString())return!1;if(r.length!==i.length)return!1;for(a in e=o.parseQuery(r,this._parts.escapeQuerySpace),n=o.parseQuery(i,this._parts.escapeQuerySpace),e)if(s.call(e,a)){if(c(e[a])){if(!p(e[a],n[a]))return!1}else if(e[a]!==n[a])return!1;f[a]=!0}for(a in n)if(s.call(n,a)&&!f[a])return!1;return!0},a.preventInvalidHostname=function(t){return this._parts.preventInvalidHostname=!!t,this},a.duplicateQueryParameters=function(t){return this._parts.duplicateQueryParameters=!!t,this},a.escapeQuerySpace=function(t){return this._parts.escapeQuerySpace=!!t,this},o}))},126:function(t,e,n){var r=n(63);function i(t,e){return"function"==typeof e?r(e):e}t.exports=function(t){try{return JSON.stringify(t,i,2)}catch(e){return String(t)}}},127:function(t,e,n){var r=n(36),i=n(71);t.exports=r("Boolean",i)},128:function(t,e,n){var r=n(36),i=n(45);t.exports=r("Nil",i)},129:function(t,e,n){var r=n(36),i=n(92);t.exports=r("Number",i)},13:function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=n(226)},130:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},131:function(t,e,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(49),s=n(50),u=n(47);function l(t){return"Array<"+i(t)+">"}function c(t,e){var n=e||l(t),c=(i(t),o(t));function f(e,n){if(c)return e;for(var r=!0,i=[],o=0,s=e.length;o<s;o++){var u=e[o],l=a(t,u,null);r=r&&u===l,i.push(l)}return r&&(i=e),i}return f.meta={kind:"list",type:t,name:e,identity:c},f.displayName=n,f.is=function(e){return u(e)&&e.every((function(e){return s(e,t)}))},f.update=function(t,e){return f(r.update(t,e))},f}c.getDefaultName=l,t.exports=c},132:function(t,e,n){var r=n(29);t.exports=function(t){return"{"+Object.keys(t).map((function(e){return e+": "+r(t[e])})).join(", ")+"}"}},133:function(t,e,n){n(21),n(33),n(47);var r=n(96),i=(n(199),n(200),n(46)),o=n(93),a=n(201);t.exports=function(t,e,n){var s={},u={},l=[],c={};e.forEach((function(t,e){var n,o,f,d=a(t),p=d.unrefinedType;n=l,o=d.predicates,Array.prototype.push.apply(n,o),r(s,i(f=p)?f:f.meta.props),r(u,p.prototype),r(c,function(t){return i(t)?null:t.meta.defaultProps}(p),!0)})),(n=t.getOptions(n)).defaultProps=r(c,n.defaultProps,!0);var f=function(t,e,n){var r=t.reduce((function(t,e){return o(t,e)}),e);return n&&(r.displayName=n,r.meta.name=n),r}(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return r(f.prototype,u),f}},134:function(t,e,n){var r=n(21),i=(n(38),n(33),n(29)),o=n(48),a=n(47),s=n(49),u=n(50);function l(t){return"["+t.map(i).join(", ")+"]"}function c(t,e){var n=e||l(t),i=t.every(o);function c(e,n){if(i)return e;for(var r=!0,o=[],a=0,u=t.length;a<u;a++){var l=t[a],c=e[a],f=s(l,c,null);r=r&&c===f,o.push(f)}return r&&(o=e),o}return c.meta={kind:"tuple",types:t,name:e,identity:i},c.displayName=n,c.is=function(e){return a(e)&&e.length===t.length&&t.every((function(t,n){return u(e[n],t)}))},c.update=function(t,e){return c(r.update(t,e))},c}c.getDefaultName=l,t.exports=c},135:function(t,e){t.exports=function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}},136:function(t,e){},137:function(t,e,n){(function(t,r){var i;/*! https://mths.be/punycode v1.4.0 by @mathias */!function(o){e&&e.nodeType,t&&t.nodeType;var a="object"==typeof r&&r;a.global!==a&&a.window!==a&&a.self;var s,u=2147483647,l=/^xn--/,c=/[^\x20-\x7E]/,f=/[\x2E\u3002\uFF0E\uFF61]/g,d={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},p=Math.floor,h=String.fromCharCode;function v(t){throw new RangeError(d[t])}function m(t,e){for(var n=t.length,r=[];n--;)r[n]=e(t[n]);return r}function y(t,e){var n=t.split("@"),r="";return n.length>1&&(r=n[0]+"@",t=n[1]),r+m((t=t.replace(f,".")).split("."),e).join(".")}function g(t){for(var e,n,r=[],i=0,o=t.length;i<o;)(e=t.charCodeAt(i++))>=55296&&e<=56319&&i<o?56320==(64512&(n=t.charCodeAt(i++)))?r.push(((1023&e)<<10)+(1023&n)+65536):(r.push(e),i--):r.push(e);return r}function b(t){return m(t,(function(t){var e="";return t>65535&&(e+=h((t-=65536)>>>10&1023|55296),t=56320|1023&t),e+=h(t)})).join("")}function w(t,e){return t+22+75*(t<26)-((0!=e)<<5)}function _(t,e,n){var r=0;for(t=n?p(t/700):t>>1,t+=p(t/e);t>455;r+=36)t=p(t/35);return p(r+36*t/(t+38))}function O(t){var e,n,r,i,o,a,s,l,c,f,d,h=[],m=t.length,y=0,g=128,w=72;for((n=t.lastIndexOf("-"))<0&&(n=0),r=0;r<n;++r)t.charCodeAt(r)>=128&&v("not-basic"),h.push(t.charCodeAt(r));for(i=n>0?n+1:0;i<m;){for(o=y,a=1,s=36;i>=m&&v("invalid-input"),((l=(d=t.charCodeAt(i++))-48<10?d-22:d-65<26?d-65:d-97<26?d-97:36)>=36||l>p((u-y)/a))&&v("overflow"),y+=l*a,!(l<(c=s<=w?1:s>=w+26?26:s-w));s+=36)a>p(u/(f=36-c))&&v("overflow"),a*=f;w=_(y-o,e=h.length+1,0==o),p(y/e)>u-g&&v("overflow"),g+=p(y/e),y%=e,h.splice(y++,0,g)}return b(h)}function k(t){var e,n,r,i,o,a,s,l,c,f,d,m,y,b,O,k=[];for(m=(t=g(t)).length,e=128,n=0,o=72,a=0;a<m;++a)(d=t[a])<128&&k.push(h(d));for(r=i=k.length,i&&k.push("-");r<m;){for(s=u,a=0;a<m;++a)(d=t[a])>=e&&d<s&&(s=d);for(s-e>p((u-n)/(y=r+1))&&v("overflow"),n+=(s-e)*y,e=s,a=0;a<m;++a)if((d=t[a])<e&&++n>u&&v("overflow"),d==e){for(l=n,c=36;!(l<(f=c<=o?1:c>=o+26?26:c-o));c+=36)O=l-f,b=36-f,k.push(h(w(f+O%b,0))),l=p(O/b);k.push(h(w(l,0))),o=_(n,y,r==i),n=0,++r}++n,++e}return k.join("")}s={version:"1.3.2",ucs2:{decode:g,encode:b},decode:O,encode:k,toASCII:function(t){return y(t,(function(t){return c.test(t)?"xn--"+k(t):t}))},toUnicode:function(t){return y(t,(function(t){return l.test(t)?O(t.slice(4).toLowerCase()):t}))}},void 0===(i=function(){return s}.call(e,n,e,t))||(t.exports=i)}()}).call(this,n(79)(t),n(41))},138:function(t,e,n){var r,i;
/*!
* URI.js - Mutating URLs * IPv6 Support * * Version: 1.19.1 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.IPv6;return{best:function(t){var e,n,r=t.toLowerCase().split(":"),i=r.length,o=8;for(""===r[0]&&""===r[1]&&""===r[2]?(r.shift(),r.shift()):""===r[0]&&""===r[1]?r.shift():""===r[i-1]&&""===r[i-2]&&r.pop(),-1!==r[(i=r.length)-1].indexOf(".")&&(o=7),e=0;e<i&&""!==r[e];e++);if(e<o)for(r.splice(e,1,"0000");r.length<o;)r.splice(e,0,"0000");for(var a=0;a<o;a++){n=r[a].split("");for(var s=0;s<3&&("0"===n[0]&&n.length>1);s++)n.splice(0,1);r[a]=n.join("")}var u=-1,l=0,c=0,f=-1,d=!1;for(a=0;a<o;a++)d?"0"===r[a]?c+=1:(d=!1,c>l&&(u=f,l=c)):"0"===r[a]&&(d=!0,f=a,c=1);c>l&&(u=f,l=c),l>1&&r.splice(u,l,""),i=r.length;var p="";for(""===r[0]&&(p=":"),a=0;a<i&&(p+=r[a],a!==i-1);a++)p+=":";return""===r[i-1]&&(p+=":"),p},noConflict:function(){return t.IPv6===this&&(t.IPv6=e),this}}}))},139:function(t,e,n){var r,i;
/*!
* URI.js - Mutating URLs * Second Level Domain (SLD) Support * * Version: 1.19.1 * * Author: Rodney Rehm * Web: http://medialize.github.io/URI.js/ * * Licensed under * MIT License http://www.opensource.org/licenses/mit-license * */!function(o,a){"use strict";t.exports?t.exports=a():void 0===(i="function"==typeof(r=a)?r.call(e,n,e,t):r)||(t.exports=i)}(0,(function(t){"use strict";var e=t&&t.SecondLevelDomains,n={list:{ac:" com gov mil net org ",ae:" ac co gov mil name net org pro sch ",af:" com edu gov net org ",al:" com edu gov mil net org ",ao:" co ed gv it og pb ",ar:" com edu gob gov int mil net org tur ",at:" ac co gv or ",au:" asn com csiro edu gov id net org ",ba:" co com edu gov mil net org rs unbi unmo unsa untz unze ",bb:" biz co com edu gov info net org store tv ",bh:" biz cc com edu gov info net org ",bn:" com edu gov net org ",bo:" com edu gob gov int mil net org tv ",br:" adm adv agr am arq art ato b bio blog bmd cim cng cnt com coop ecn edu eng esp etc eti far flog fm fnd fot fst g12 ggf gov imb ind inf jor jus lel mat med mil mus net nom not ntr odo org ppg pro psc psi qsl rec slg srv tmp trd tur tv vet vlog wiki zlg ",bs:" com edu gov net org ",bz:" du et om ov rg ",ca:" ab bc mb nb nf nl ns nt nu on pe qc sk yk ",ck:" biz co edu gen gov info net org ",cn:" ac ah bj com cq edu fj gd gov gs gx gz ha hb he hi hl hn jl js jx ln mil net nm nx org qh sc sd sh sn sx tj tw xj xz yn zj ",co:" com edu gov mil net nom org ",cr:" ac c co ed fi go or sa ",cy:" ac biz com ekloges gov ltd name net org parliament press pro tm ",do:" art com edu gob gov mil net org sld web ",dz:" art asso com edu gov net org pol ",ec:" com edu fin gov info med mil net org pro ",eg:" com edu eun gov mil name net org sci ",er:" com edu gov ind mil net org rochest w ",es:" com edu gob nom org ",et:" biz com edu gov info name net org ",fj:" ac biz com info mil name net org pro ",fk:" ac co gov net nom org ",fr:" asso com f gouv nom prd presse tm ",gg:" co net org ",gh:" com edu gov mil org ",gn:" ac com gov net org ",gr:" com edu gov mil net org ",gt:" com edu gob ind mil net org ",gu:" com edu gov net org ",hk:" com edu gov idv net org ",hu:" 2000 agrar bolt casino city co erotica erotika film forum games hotel info ingatlan jogasz konyvelo lakas media news org priv reklam sex shop sport suli szex tm tozsde utazas video ",id:" ac co go mil net or sch web ",il:" ac co gov idf k12 muni net org ",in:" ac co edu ernet firm gen gov i ind mil net nic org res ",iq:" com edu gov i mil net org ",ir:" ac co dnssec gov i id net org sch ",it:" edu gov ",je:" co net org ",jo:" com edu gov mil name net org sch ",jp:" ac ad co ed go gr lg ne or ",ke:" ac co go info me mobi ne or sc ",kh:" com edu gov mil net org per ",ki:" biz com de edu gov info mob net org tel ",km:" asso com coop edu gouv k medecin mil nom notaires pharmaciens presse tm veterinaire ",kn:" edu gov net org ",kr:" ac busan chungbuk chungnam co daegu daejeon es gangwon go gwangju gyeongbuk gyeonggi gyeongnam hs incheon jeju jeonbuk jeonnam k kg mil ms ne or pe re sc seoul ulsan ",kw:" com edu gov net org ",ky:" com edu gov net org ",kz:" com edu gov mil net org ",lb:" com edu gov net org ",lk:" assn com edu gov grp hotel int ltd net ngo org sch soc web ",lr:" com edu gov net org ",lv:" asn com conf edu gov id mil net org ",ly:" com edu gov id med net org plc sch ",ma:" ac co gov m net org press ",mc:" asso tm ",me:" ac co edu gov its net org priv ",mg:" com edu gov mil nom org prd tm ",mk:" com edu gov inf name net org pro ",ml:" com edu gov net org presse ",mn:" edu gov org ",mo:" com edu gov net org ",mt:" com edu gov net org ",mv:" aero biz com coop edu gov info int mil museum name net org pro ",mw:" ac co com coop edu gov int museum net org ",mx:" com edu gob net org ",my:" com edu gov mil name net org sch ",nf:" arts com firm info net other per rec store web ",ng:" biz com edu gov mil mobi name net org sch ",ni:" ac co com edu gob mil net nom org ",np:" com edu gov mil net org ",nr:" biz com edu gov info net org ",om:" ac biz co com edu gov med mil museum net org pro sch ",pe:" com edu gob mil net nom org sld ",ph:" com edu gov i mil net ngo org ",pk:" biz com edu fam gob gok gon gop gos gov net org web ",pl:" art bialystok biz com edu gda gdansk gorzow gov info katowice krakow lodz lublin mil net ngo olsztyn org poznan pwr radom slupsk szczecin torun warszawa waw wroc wroclaw zgora ",pr:" ac biz com edu est gov info isla name net org pro prof ",ps:" com edu gov net org plo sec ",pw:" belau co ed go ne or ",ro:" arts com firm info nom nt org rec store tm www ",rs:" ac co edu gov in org ",sb:" com edu gov net org ",sc:" com edu gov net org ",sh:" co com edu gov net nom org ",sl:" com edu gov net org ",st:" co com consulado edu embaixada gov mil net org principe saotome store ",sv:" com edu gob org red ",sz:" ac co org ",tr:" av bbs bel biz com dr edu gen gov info k12 name net org pol tel tsk tv web ",tt:" aero biz cat co com coop edu gov info int jobs mil mobi museum name net org pro tel travel ",tw:" club com ebiz edu game gov idv mil net org ",mu:" ac co com gov net or org ",mz:" ac co edu gov org ",na:" co com ",nz:" ac co cri geek gen govt health iwi maori mil net org parliament school ",pa:" abo ac com edu gob ing med net nom org sld ",pt:" com edu gov int net nome org publ ",py:" com edu gov mil net org ",qa:" com edu gov mil net org ",re:" asso com nom ",ru:" ac adygeya altai amur arkhangelsk astrakhan bashkiria belgorod bir bryansk buryatia cbg chel chelyabinsk chita chukotka chuvashia com dagestan e-burg edu gov grozny int irkutsk ivanovo izhevsk jar joshkar-ola kalmykia kaluga kamchatka karelia kazan kchr kemerovo khabarovsk khakassia khv kirov koenig komi kostroma kranoyarsk kuban kurgan kursk lipetsk magadan mari mari-el marine mil mordovia mosreg msk murmansk nalchik net nnov nov novosibirsk nsk omsk orenburg org oryol penza perm pp pskov ptz rnd ryazan sakhalin samara saratov simbirsk smolensk spb stavropol stv surgut tambov tatarstan tom tomsk tsaritsyn tsk tula tuva tver tyumen udm udmurtia ulan-ude vladikavkaz vladimir vladivostok volgograd vologda voronezh vrn vyatka yakutia yamal yekaterinburg yuzhno-sakhalinsk ",rw:" ac co com edu gouv gov int mil net ",sa:" com edu gov med net org pub sch ",sd:" com edu gov info med net org tv ",se:" a ac b bd c d e f g h i k l m n o org p parti pp press r s t tm u w x y z ",sg:" com edu gov idn net org per ",sn:" art com edu gouv org perso univ ",sy:" com edu gov mil net news org ",th:" ac co go in mi net or ",tj:" ac biz co com edu go gov info int mil name net nic org test web ",tn:" agrinet com defense edunet ens fin gov ind info intl mincom nat net org perso rnrt rns rnu tourism ",tz:" ac co go ne or ",ua:" biz cherkassy chernigov chernovtsy ck cn co com crimea cv dn dnepropetrovsk donetsk dp edu gov if in ivano-frankivsk kh kharkov kherson khmelnitskiy kiev kirovograd km kr ks kv lg lugansk lutsk lviv me mk net nikolaev od odessa org pl poltava pp rovno rv sebastopol sumy te ternopil uzhgorod vinnica vn zaporizhzhe zhitomir zp zt ",ug:" ac co go ne or org sc ",uk:" ac bl british-library co cym gov govt icnet jet lea ltd me mil mod national-library-scotland nel net nhs nic nls org orgn parliament plc police sch scot soc ",us:" dni fed isa kids nsn ",uy:" com edu gub mil net org ",ve:" co com edu gob info mil net org web ",vi:" co com k12 net org ",vn:" ac biz com edu gov health info int name net org pro ",ye:" co com gov ltd me net org plc ",yu:" ac co edu gov org ",za:" ac agric alt bourse city co cybernet db edu gov grondar iaccess imt inca landesign law mil net ngo nis nom olivetti org pix school tm web ",zm:" ac co com edu gov net org sch ",com:"ar br cn de eu gb gr hu jpn kr no qc ru sa se uk us uy za ",net:"gb jp se uk ",org:"ae",de:"com "},has:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return!1;var i=n.list[t.slice(e+1)];return!!i&&i.indexOf(" "+t.slice(r+1,e)+" ")>=0},is:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return!1;if(t.lastIndexOf(".",e-1)>=0)return!1;var r=n.list[t.slice(e+1)];return!!r&&r.indexOf(" "+t.slice(0,e)+" ")>=0},get:function(t){var e=t.lastIndexOf(".");if(e<=0||e>=t.length-1)return null;var r=t.lastIndexOf(".",e-1);if(r<=0||r>=e-1)return null;var i=n.list[t.slice(e+1)];return i?i.indexOf(" "+t.slice(r+1,e)+" ")<0?null:t.slice(r+1):null},noConflict:function(){return t.SecondLevelDomains===this&&(t.SecondLevelDomains=e),this}};return n}))},14:function(t,e,n){"use strict";var r;function i(t){r=t}n.d(e,"b",(function(){return r})),n.d(e,"a",(function(){return i}))},140:function(t,e){},141:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(55),i=n(219),o=n(100),a=function(){function t(){}return t.sanitize=function(e){var n={};if(!e||"object"!=typeof e)return n;var a=["bold","italic","underline","strike","code","blockquote","code-block","renderAsBlock"],s=["background","color"],u=e.font,l=e.size,c=e.link,f=e.script,d=e.list,p=e.header,h=e.align,v=e.direction,m=e.indent,y=e.mentions,g=e.mention,b=e.width,w=e.target,_=a.concat(s,["font","size","link","script","list","header","align","direction","indent","mentions","mention","width"]);if(a.forEach((function(t){var r=e[t];r&&(n[t]=!!r)})),s.forEach((function(r){var i=e[r];i&&(t.IsValidHexColor(i+"")||t.IsValidColorLiteral(i+""))&&(n[r]=i)})),u&&t.IsValidFontName(u+"")&&(n.font=u),l&&t.IsValidSize(l+"")&&(n.size=l),b&&t.IsValidWidth(b+"")&&(n.width=b),c&&(n.link=o.sanitize(c+"")),w&&t.isValidTarget(w)&&(n.target=w),f!==r.ScriptType.Sub&&r.ScriptType.Super!==f||(n.script=f),d!==r.ListType.Bullet&&d!==r.ListType.Ordered&&d!==r.ListType.Checked&&d!==r.ListType.Unchecked||(n.list=d),Number(p)&&(n.header=Math.min(Number(p),6)),h!==r.AlignType.Center&&h!==r.AlignType.Right&&h!==r.AlignType.Justify||(n.align=h),v===r.DirectionType.Rtl&&(n.direction=v),m&&Number(m)&&(n.indent=Math.min(Number(m),30)),y&&g){var O=i.MentionSanitizer.sanitize(g);Object.keys(O).length>0&&(n.mentions=!!y,n.mention=g)}return Object.keys(e).reduce((function(t,n){return-1===_.indexOf(n)&&(t[n]=e[n]),t}),n)},t.IsValidHexColor=function(t){return!!t.match(/^#([0-9A-F]{6}|[0-9A-F]{3})$/i)},t.IsValidColorLiteral=function(t){return!!t.match(/^[a-z]{1,50}$/i)},t.IsValidFontName=function(t){return!!t.match(/^[a-z\s0-9\- ]{1,30}$/i)},t.IsValidSize=function(t){return!!t.match(/^[a-z0-9\-]{1,20}$/i)},t.IsValidWidth=function(t){return!!t.match(/^[0-9]*(px|em|%)?$/)},t.isValidTarget=function(t){return!!t.match(/^[_a-zA-Z0-9\-]{1,50}$/)},t}();e.OpAttributeSanitizer=a},142:function(t,e,n){"use strict";var r;function i(t){return o(r.Html).reduce(s,t)}function o(t){var e=[["&","&"],["<","<"],[">",">"],['"',"""],["'","'"],["\\/","/"],["\\(","("],["\\)",")"]];return t===r.Html?e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("(")&&-1===e.indexOf(")")})):e.filter((function(t){var e=t[0];t[1];return-1===e.indexOf("/")}))}function a(t,e){return t.replace(new RegExp(e[0],"g"),e[1])}function s(t,e){return t.replace(new RegExp(e[1],"g"),e[0].replace("\\",""))}Object.defineProperty(e,"__esModule",{value:!0}),function(t){t[t.Html=0]="Html",t[t.Url=1]="Url"}(r||(r={})),e.makeStartTag=function(t,e){if(void 0===e&&(e=void 0),!t)return"";var n="";e&&(n=[].concat(e).map((function(t){return t.key+(t.value?'="'+t.value+'"':"")})).join(" "));var r=">";return"img"!==t&&"br"!==t||(r="/>"),n?"<"+t+" "+n+r:"<"+t+r},e.makeEndTag=function(t){return void 0===t&&(t=""),t&&"</"+t+">"||""},e.decodeHtml=i,e.encodeHtml=function(t,e){return void 0===e&&(e=!0),e&&(t=i(t)),o(r.Html).reduce(a,t)},e.encodeLink=function(t){var e=o(r.Url),n=e.reduce(s,t);return e.reduce(a,n)}},143:function(t,e,n){var r=n(229),i=n(58);function o(t,e){i.Object.is(t)&&(t=i.struct(t));var n="subtype"===t.meta.kind;var r={},o=n?t.meta.type:t;if("struct"===o.meta.kind||"interface"===o.meta.kind){var a=o.meta.props;Object.keys(a).forEach((function(t){var e,n=a[t];(e=function(){}).tcomb=n,r[t]=e}))}else 0;return n&&(r.__subtype__=function(){},r.__subtype__.predicate=t.meta.predicate),r}var a=i.irreducible("ReactElement",r.isValidElement),s=i.irreducible("ReactNode",(function(t){return i.Str.is(t)||i.Num.is(t)||a.is(t)||i.list(s).is(t)})),u=i.irreducible("ReactChild",(function(t){return s.is(t)||i.Bool.is(t)||i.Nil.is(t)})),l=i.irreducible("ReactChildren",(function(t){return u.is(t)||i.list(l).is(t)}));i.ReactElement=a,i.ReactNode=s,i.ReactChild=u,i.ReactChildren=l,t.exports={t:i,propTypes:o,props:function(t,e){return function(e){e.propTypes=o(t)}},ReactElement:a,ReactNode:s,ReactChild:u,ReactChildren:l,ReactElementT:a,ReactNodeT:s,ReactChildT:u,ReactChildrenT:l}},149:function(t,e,n){"use strict";(function(t){var r=n(150),i=setTimeout;function o(){}function a(t){if(!(this instanceof a))throw new TypeError("Promises must be constructed via new");if("function"!=typeof t)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],d(t,this)}function s(t,e){for(;3===t._state;)t=t._value;0!==t._state?(t._handled=!0,a._immediateFn((function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null!==n){var r;try{r=n(t._value)}catch(t){return void l(e.promise,t)}u(e.promise,r)}else(1===t._state?u:l)(e.promise,t._value)}))):t._deferreds.push(e)}function u(t,e){try{if(e===t)throw new TypeError("A promise cannot be resolved with itself.");if(e&&("object"==typeof e||"function"==typeof e)){var n=e.then;if(e instanceof a)return t._state=3,t._value=e,void c(t);if("function"==typeof n)return void d((r=n,i=e,function(){r.apply(i,arguments)}),t)}t._state=1,t._value=e,c(t)}catch(e){l(t,e)}var r,i}function l(t,e){t._state=2,t._value=e,c(t)}function c(t){2===t._state&&0===t._deferreds.length&&a._immediateFn((function(){t._handled||a._unhandledRejectionFn(t._value)}));for(var e=0,n=t._deferreds.length;e<n;e++)s(t,t._deferreds[e]);t._deferreds=null}function f(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function d(t,e){var n=!1;try{t((function(t){n||(n=!0,u(e,t))}),(function(t){n||(n=!0,l(e,t))}))}catch(t){if(n)return;n=!0,l(e,t)}}a.prototype.catch=function(t){return this.then(null,t)},a.prototype.then=function(t,e){var n=new this.constructor(o);return s(this,new f(t,e,n)),n},a.prototype.finally=r.a,a.all=function(t){return new a((function(e,n){if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var r=Array.prototype.slice.call(t);if(0===r.length)return e([]);var i=r.length;function o(t,a){try{if(a&&("object"==typeof a||"function"==typeof a)){var s=a.then;if("function"==typeof s)return void s.call(a,(function(e){o(t,e)}),n)}r[t]=a,0==--i&&e(r)}catch(t){n(t)}}for(var a=0;a<r.length;a++)o(a,r[a])}))},a.resolve=function(t){return t&&"object"==typeof t&&t.constructor===a?t:new a((function(e){e(t)}))},a.reject=function(t){return new a((function(e,n){n(t)}))},a.race=function(t){return new a((function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)}))},a._immediateFn="function"==typeof t&&function(e){t(e)}||function(t){i(t,0)},a._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},e.a=a}).call(this,n(208).setImmediate)},150:function(t,e,n){"use strict";e.a=function(t){var e=this.constructor;return this.then((function(n){return e.resolve(t()).then((function(){return n}))}),(function(n){return e.resolve(t()).then((function(){return e.reject(n)}))}))}},151:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(8),i={currentWorkspaceId:r.a,getContentStateId:r.a,isInPlaceEditingActive:r.a,isComparisonActive:r.a,translate:r.a,startLinkResolutionFor:r.b,finishLinkResolutionFor:r.b,retrieveObj:r.b,retrieveObjQuery:r.b,retrieveFacetQuery:r.b,retrieveBinaryMetadata:r.b,retrieveBinaryUrls:r.b,retrieveObjFieldDiffs:r.b,copyBinary:r.b,uploadBinary:r.b,insertWidget:r.b,navigateToExternalUrl:r.b,openInNewUiWindow:r.b,configureContentBrowser:r.b,openContentBrowser:r.b,updateMenu:r.b,openCustomDialog:r.b,setAppAdapter:r.b,configureTenant:r.b,showWidgetMenu:r.b,showWidgetlistMenu:r.b,showChildListMenu:r.b,registerEmptyWidgetlistDropZoneInDom:r.b,registerWidgetDropZoneInDom:r.b,startDrag:r.b,endDrag:r.b,dragTo:r.b,drop:r.b}},152:function(t,e,n){var r,i,o,a,s,u;i=n(211),r=n(212),o=i.extensions.anchor.extend({name:"scrivito_anchor",proxy:null,contentDefault:'<i class="scrivito_customer_icon sci_link"></i>',init:function(){var t;return i.extensions.anchor.prototype.init.apply(this,arguments),this.targetCheckbox=null!=(t=this.getEditorOption("anchor"))?t.targetCheckbox:void 0},showForm:function(t){return i.extensions.anchor.prototype.showForm.call(this,t),this.updateRelUi(t)},handleClick:function(t){var e,n,r,o,a,s;return t.preventDefault(),t.stopPropagation(),this.proxy.edQuery(".scrivito_medium_link_collapse").removeClass("show"),this.isDisplayed()||(a=i.selection.getSelectionRange(this.document),o=i.selection.getSelectedParentElement(a),e=s=r=null,(n=i.util.getClosestTag(o,"a"))&&(e=(n=this.proxy.edQuery(n)).attr("href")||null,s=n.attr("target")||null,r=n.attr("rel")||null),this.showForm({value:e,target:s,rel:r})),!1},getTemplate:function(){var t,e;return e="",t="scrivito_target_checkbox_not_available",this.targetCheckbox&&(e="<div class='medium-editor-toolbar-form-row medium-editor-toolbar-anchor-target-toggle'>\n <label>\n <input type='checkbox' class='medium-editor-toolbar-anchor-target'>\n <i class='scrivito_icon scrivito_link_icon scrivito_icon_new_window scrivito_active_open_in_new_tab ' title='Open link in new tab'></i>\n <i class='scrivito_icon scrivito_link_icon scrivito_icon_new_window' title='Open link in new tab'></i>\n </label>\n</div>",t=""),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection' title='Open Content Browser'></i>\n<input type='text' class='medium-editor-toolbar-input "+t+"' placeholder='"+this.placeholderText+"'>\n<div class='medium-editor-toolbar-form-wrapper'>\n "+e+"\n <i class='scrivito_icon scrivito_icon_gear' data-scrivito-medium-editor=\"rel_button\" title='SEO settings'></i>\n <span class='medium-editor-toolbar-save'>Save</span>\n <i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross' style='display: none'></i>\n</div>\n<div class='scrivito_medium_link_collapse'>\n <div class='scrivito_medium_link_collapse_body'>\n <div class='scrivito_medium_detail_label'>Rel attribute value</div>\n <div class='scrivito_medium_notice_body'>\n Search engines use a link's rel attribute to determine how to handle the linked document or resource.\n </div>\n <ul class='scrivito_enum_attribute scrivito_multi'>\n <li data-scrivito-rel=\"noindex\">noindex</li>\n <li data-scrivito-rel=\"nofollow\">nofollow</li>\n <li data-scrivito-rel=\"noarchive\">noarchive</li>\n <li data-scrivito-rel=\"nosnippet\">nosnippet</li>\n <li data-scrivito-rel=\"noopener\">noopener</li>\n <li data-scrivito-rel=\"noreferrer\">noreferrer</li>\n <li data-scrivito-rel=\"notranslate\">notranslate</li>\n </ul>\n </div>\n</div>").replace(/\n\s*/g,"")},attachFormEvents:function(t){var e,n;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find("[data-scrivito-rel]").on("click",(n=this,function(t){return n.onRelSelectionButtonClick(t)})),t.find(".scrivito_icon_gear").on("click",function(e){return function(){return e.onToggleRelPanelButtonClick(t)}}(this)),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){return t.onContentBrowserButtonClick(e)}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?(this.execAction(this.action,t),this.updateRelAttribute(t)):this.execAction("unlink"),this.base.checkSelection()},getFormOpts:function(){var t;return(t=i.extensions.anchor.prototype.getFormOpts.call(this)).rel=this.selectedRelValues(),t},relButtons:function(){return this.proxy.edQuery(this.getForm()).find(".scrivito_enum_attribute.scrivito_multi [data-scrivito-rel]")},selectedRelValues:function(){return this.relButtons().filter(".scrivito_enum_attribute_active").toArray().map((function(t){return t.attributes["data-scrivito-rel"].value})).join(" ")},updateRelIndicator:function(){var t;return t=this.proxy.edQuery(this.getForm().querySelector(".scrivito_icon_gear")),"scrivito_active_rel_selected",this.relButtons().hasClass("scrivito_enum_attribute_active")?t.addClass("scrivito_active_rel_selected"):t.removeClass("scrivito_active_rel_selected")},updateRelAttribute:function(t){var e,n,r,o;return o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=this.proxy.edQuery(i.util.getClosestTag(r,"a")),t.rel?n.attr("rel",t.rel):n.removeAttr("rel"),e=this.getEditorElements()[0],this.base.trigger("editableInput",{},e)},updateRelUi:function(t){var e,n;return e=null!=(n=t.rel)?n.split(/\s+/):void 0,this.relButtons().each((function(t,n){return e&&-1!==e.indexOf(n.getAttribute("data-scrivito-rel"))?n.className="scrivito_enum_attribute_active":n.className=""})),this.updateRelIndicator()},onToggleRelPanelButtonClick:function(t){return this.proxy.edQuery(t.find(".scrivito_medium_link_collapse")).toggleClass("show")},onRelSelectionButtonClick:function(t){return this.proxy.edQuery(t.target).toggleClass("scrivito_enum_attribute_active"),this.updateRelIndicator()},onContentBrowserButtonClick:function(t){var e,n,r;return n=(e=this.proxy.idFromPath(t.val()))?[e]:[],scrivito.openContentBrowser({selection:n,selectionMode:"single"}).catch((function(e){throw t.focus(),e})).then((r=this,function(e){var n,i;return n=e.isSelected,i=e.selection,n&&(t.focus(),i.length?t.val(r.proxy.pathForId(i[0])):t.val("")),!1}))}}),s=function(){var t,e;return t=["bold","italic","scrivito_anchor","h2","h3","unorderedlist","orderedlist"],("undefined"!=typeof ScrivitoEditors&&null!==ScrivitoEditors&&null!=(e=ScrivitoEditors._config)?e.showHtmlEditorCodeButton:void 0)&&t.splice(2,0,"scrivito_code"),t},u=function(){return{anchor:{targetCheckbox:!0},anchorPreview:!1,extensions:{scrivito_anchor:new o,scrivito_code:new r({label:'<i class="scrivito_customer_icon sci_code"></i>',start:"<code>",end:"</code>"}),imageDragging:{}},placeholder:!1,toolbar:{buttons:s(),standardizeSelectionStart:!0}}},a=function(t){var e,n,r;return e=t.jQueryElement(),null!=(r=(n=u()).extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",(function(){return t.save(e.html())}))},t.exports=a},153:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(217);e.QuillDeltaToHtmlConverter=r.QuillDeltaToHtmlConverter;var i=n(73);e.InlineGroup=i.InlineGroup,e.VideoItem=i.VideoItem,e.BlockGroup=i.BlockGroup,e.ListGroup=i.ListGroup,e.ListItem=i.ListItem,e.BlotBlock=i.BlotBlock;var o=n(98);e.DeltaInsertOp=o.DeltaInsertOp;var a=n(99);e.InsertDataQuill=a.InsertDataQuill,e.InsertDataCustom=a.InsertDataCustom;var s=n(55);e.NewLine=s.NewLine,e.ListType=s.ListType,e.ScriptType=s.ScriptType,e.DirectionType=s.DirectionType,e.AlignType=s.AlignType,e.DataType=s.DataType,e.GroupType=s.GroupType},154:function(t,e,n){"use strict";n.d(e,"a",(function(){return Q}));var r=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){return!1},t.prototype.onClick=function(t){},t.prototype.contentDidChange=function(){},t.prototype.editorWillBeActivated=function(){},t.prototype.editorWillBeDeactivated=function(){},t.prototype.editorDomWasMounted=function(t){},t.prototype.editorDomWasUnmounted=function(){},t}(),i=n(152),o=n.n(i),a=n(20),s=n.n(a),u=n(153);var l,c=(l=function(t,e){return(l=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}l(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});var f=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return c(e,t),e.create=function(e){var n=t.create.call(this,e);return n.removeAttribute("target"),n},e.prototype.format=function(e,n){return e!==this.statics.blotName||n||this.domNode.removeAttribute("target"),t.prototype.format.call(this,e,n)},e}(s.a.import("formats/link")),d=function(t){var e=this,n=t.getModule("scrivitoApi").getTooltip(),r=n.hide.bind(n);n.hide=function(){var i=!n.root.classList.contains("ql-hidden"),o=n.root.classList.contains("ql-editing"),a=n.linkRange||e.lastActiveRange;i&&o&&a&&(n.textbox.value&&t.formatText(a.index,a.length,"link",n.textbox.value,"user"),p(t,a)),delete e.lastActiveRange,r()};var i=n.root.querySelector("a.ql-svt-browse"),o=n.root.querySelector("a.ql-svt-target");i.addEventListener("click",(function(e){t.getModule("scrivitoInternalLink").fromContentBrowser(),e.preventDefault()})),o.addEventListener("click",(function(e){var r=n.root.getAttribute("data-svt-target")?"":"_blank";n.root.setAttribute("data-svt-target",r),p(t,n.linkRange),e.preventDefault()})),t.on("selection-change",(function(r){if(r){e.lastActiveRange=r;var i=t.getFormat(r).link,o=t.getModule("scrivitoApi").getLinkRange(r);if(o&&i){var a=t.getFormat(o).target||"";!function(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}(n,o,a)}else!function(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}(n)}}))};function p(t,e){if(e&&t.getFormat(e).link){var n=t.getModule("scrivitoApi").getTooltip().root.getAttribute("data-svt-target");t.formatText(e.index,e.length,"target",n||"","user")}}s.a.register("modules/scrivitoLinkTooltip",d);var h=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),v=s.a.import("core/module"),m=s.a.import("formats/link"),y=function(t){function e(e){var n=t.call(this,e)||this;return n.setHtml=function(t){var n=0===e.history.stack.undo.length,r=e.clipboard;e.setContents(r.convert(t),"silent"),n&&e.history.clear()},n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(m,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return h(e,t),e}(v);var g=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),b=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return function(t){scrivito.openContentBrowser({selection:[],selectionMode:"single"}).then((function(e){if(e.isSelected&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}}))}(e)},n}return g(e,t),e}(s.a.import("core/module"));s.a.register("modules/scrivitoInternalLink",b);var w=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_=s.a.import("themes/bubble"),O=s.a.import("themes/snow"),k=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new O(e,n),r}return w(e,t),e.prototype.extendToolbar=function(e){this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip.root.classList.add("ql-svt-tooltip-bubble"),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",x),this.tooltip.textbox.insertAdjacentHTML("afterend",C)},e}(_),x='\n <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',C='\n <a class="ql-svt ql-svt-target" title="Open link in new tab">\n <i class="scrivito_icon scrivito_icon_new_window"></i>\n <i class="scrivito_icon scrivito_icon_ok"></i>\n </a>\n';s.a.register("themes/scrivito",k);var E,j,S=function(t){t.on("selection-change",(function(e){if(t.root.parentElement){var n=!t.getModule("scrivitoApi").getTooltip().root.classList.contains("ql-hidden"),r=e&&e.length>0;t.root.parentElement.setAttribute("data-scrivito-ql-tools",r||n?"visible":"")}}))};s.a.register({"formats/target":(E=s.a.import("parchment"),j=new E.Attributor.Attribute("target","target",{scope:E.Scope.INLINE}),j)}),s.a.register(f,!0),s.a.register("modules/scrivitoApi",y),s.a.register("modules/scrivitoZIndex",S);var T=function(t,e){var n=document.createElement("div");n.classList.add("ql-svt-container"),t.appendChild(n);var r=new s.a(n,{formats:["blockquote","bold","code","code-block","header","image","indent","italic","link","list","script","strike","target","underline","video"],modules:{scrivitoApi:!0,scrivitoInternalLink:!0,scrivitoLinkTooltip:!0,scrivitoZIndex:!0,toolbar:{container:["bold","italic",window.ScrivitoEditors&&window.ScrivitoEditors._config&&window.ScrivitoEditors._config.showHtmlEditorCodeButton?"code":void 0,"link",{header:2},{header:3},{list:"bullet"},{list:"ordered"}]}},placeholder:"Click to edit",theme:"scrivito"});return r.getModule("scrivitoApi").setHtml(e.getContent()),r.on("text-change",(function(){return e.setContent(function(t){if("\n"===t.getText())return"";var e=t.getContents().ops;return new u.QuillDeltaToHtmlConverter(e,{linkTarget:"",multiLineParagraph:!1}).convert()}(r))})),r};var A=function(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")},P=n(53),N=n.n(P),L=function(){function t(t,e){this.domNode=t,this.controller=e}return t.prototype.content=function(){return this.controller.getContent()},t.prototype.idFromPath=function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")},t.prototype.edQuery=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return N.a.apply(void 0,t)},t.prototype.jQueryElement=function(){return this.edQuery(this.domNode)},t.prototype.pathForId=function(t){return"objid:"+t},t.prototype.save=function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e},t.prototype.trigger=function(){},t}(),I=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),D=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return I(e,t),e.canEdit=function(t){return"html"===t.type},e.prototype.contentDidChange=function(){this._updateContent&&this._updateContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){var e=this;if(A(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=T(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.getModule("scrivitoApi").setHtml(e._controller.getContent()),n.hasFocus()&&n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new L(t,this._controller),i=o()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}},e.prototype.editorDomWasUnmounted=function(){this._updateContent=void 0},e}(r),R=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),M=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return R(e,t),e.canEdit=function(t){return"reference"===t.type},e.prototype.onClick=function(t){var e=this;scrivito.openContentBrowser({selection:this.currentSelection(),selectionMode:"single",validObjClasses:this._controller.validObjClasses()}).then((function(t){t.isSelected&&e._controller.setContent(t.selection[0]||null)}))},e.prototype.currentSelection=function(){var t=this._controller.getContent();return t?[t.id()]:[]},e}(r);function B(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:U(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function q(t){!function(t){var e=document.getSelection();if(!e.anchorNode||!e.focusNode)return;t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0])}(t.jQueryElement())}function F(t){var e,n=(z(e=t.jQueryElement()),e[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,""));return t.save(n).done((function(){return t.trigger("scrivito_editors:save")}))}function z(t){var e=function(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings();if(!e||n.filter(e).length<e.length)return t.data("scrivito_editors_siblings_before_edit",n);return t.siblings().addBack().not(e)}(t),n=e.not(t);n.length>0&&(n.remove(),t.text(e.text()))}function U(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function H(t){if(U(t)&&!t.data("scrivito_editors_prepared_for_editing")){t.data("scrivito_editors_prepared_for_editing",!0);var e=t.html(),n=e.replace(/\r?\n/g,"<br />");e!==n&&t.html(n)}}var W=function(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur((function(){return function(t){F(t).done((function(){return t.trigger("scrivito_editors:blur")})),function(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}(t),H(t.jQueryElement())}(t)})).click((function(){return q(t)})).focus((function(){return function(t){H(t.jQueryElement())}(t)})).keypress((function(e){return B(e,t)})).keyup((function(e){return B(e,t)})),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",(function(){return function(t){F(t)}(t)})),H(e),e.on("click",(function(t){e.attr("contenteditable","true"),z(e),t.timeStamp-e.data("scrivito_editors_last_click")>=300&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)}))},V=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return V(e,t),e.canEdit=function(t){return"string"===t.type},e.prototype.contentDidChange=function(){this._setCurrentContent()},e.prototype.editorWillBeActivated=function(){this._controller.setDomMode("Replace")},e.prototype.editorDomWasMounted=function(t){this._currentDomNode=t,A(t);var e=new L(t,this._controller);this._setCurrentContent(),W(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(r);function Q(){scrivito.registerEditor(D),scrivito.registerEditor(M),scrivito.registerEditor(K)}},155:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(84);function i(){var t=function(){if(window.parent!==window){var t;try{t=window.parent.connectAppDocument}catch(t){}return t?t(window.document):void 0}}();return t?t.installRailsApi():function(){window.scrivito||(window.scrivito={});var t=window.scrivito;t.on||(t.on=function(t,e){"content"===t&&Object(r.a)(document,(function(){return e(window.document)}))});t.in_editable_view||(t.in_editable_view=function(){return!1})}(),t}},17:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=window),t.devicePixelRatio||1}function i(){return window.location}function o(t){window.location.assign(t)}function a(){return window.history}function s(){return window.screen}function u(){return document}function l(){return window.innerHeight}function c(){return window.pageXOffset}function f(){return window.pageYOffset}function d(t,e){window.scrollTo(t,e)}function p(){return window.document.body.scrollHeight}n.d(e,"a",(function(){return r})),n.d(e,"f",(function(){return i})),n.d(e,"i",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"j",(function(){return s})),n.d(e,"b",(function(){return u})),n.d(e,"e",(function(){return l})),n.d(e,"g",(function(){return c})),n.d(e,"h",(function(){return f})),n.d(e,"k",(function(){return d})),n.d(e,"c",(function(){return p}))},18:function(t,e,n){"use strict";n.d(e,"a",(function(){return u})),n.d(e,"c",(function(){return l})),n.d(e,"b",(function(){return c}));var r=n(0),i=n(3),o=n(17),a=!1,s=!1;function u(){var t=o.f().href,e=Object(i.queryParametersFromUrl)(t),n=e._scrivito_workspace_id||"published";"string"==typeof n?(Object(i.setCurrentWorkspaceId)(n),"published"!==n&&(a=e.hasOwnProperty("_scrivito_editing"),s=!a&&e.hasOwnProperty("_scrivito_comparison"))):Object(r.Q)(new r.g("Expected value of _scrivito_workspace_id to be a string, but it is "+typeof n))}function l(){return a}function c(){return s}},185:function(t,e,n){
/*! @preserve
* * tcomb.js - Type checking and DDD for JavaScript * * The MIT License (MIT) * * Copyright (c) 2014-2016 Giulio Canti * */
var r=n(21);r.Any=n(91),r.Array=n(187),r.Boolean=n(127),r.Date=n(188),r.Error=n(189),r.Function=n(72),r.Nil=n(128),r.Number=n(129),r.Integer=n(190),r.IntegerT=r.Integer,r.Object=n(191),r.RegExp=n(192),r.String=n(94),r.Type=n(193),r.TypeT=r.Type,r.Arr=r.Array,r.Bool=r.Boolean,r.Dat=r.Date,r.Err=r.Error,r.Func=r.Function,r.Num=r.Number,r.Obj=r.Object,r.Re=r.RegExp,r.Str=r.String,r.dict=n(95),r.declare=n(194),r.enums=n(195),r.irreducible=n(36),r.list=n(131),r.maybe=n(196),r.refinement=n(93),r.struct=n(198),r.tuple=n(134),r.union=n(202),r.func=n(203),r.intersection=n(204),r.subtype=r.refinement,r.inter=n(205),r.interface=r.inter,r.assert=r,r.update=n(206),r.mixin=n(96),r.isType=n(34),r.is=n(50),r.getTypeName=n(29),r.match=n(207),t.exports=r},186:function(t,e){t.exports=function(t){throw new TypeError(“ ”+t)}},187:function(t,e,n){var r=n(36),i=n(47);t.exports=r(“Array”,i)},188:function(t,e,n){var r=n(36);t.exports=r(“Date”,(function(t){return t instanceof Date}))},189:function(t,e,n){var r=n(36);t.exports=r(“Error”,(function(t){return t instanceof Error}))},190:function(t,e,n){var r=n(93),i=n(129);t.exports=r(i,(function(t){return t%1==0}),“Integer”)},191:function(t,e,n){var r=n(36),i=n(46);t.exports=r(“Object”,i)},192:function(t,e,n){var r=n(36);t.exports=r(“RegExp”,(function(t){return t instanceof RegExp}))},193:function(t,e,n){var r=n(36),i=n(34);t.exports=r(“Type”,i)},194:function(t,e,n){n(21),n(38),n(34),n(45);var r=n(96),i=n(29),o=n(130),a=1;t.exports=function(t){var e;function n(t,n){return e(t,n)}return n.define=function(i){return o(i)&&n.hasOwnProperty(“dispatch”)&&(i.dispatch=n.dispatch),r(n,e=i,!0),t&&(e.displayName=n.displayName=t,n.meta.name=t),n.meta.identity=e.meta.identity,n.prototype=e.prototype,n},n.displayName=t||i(n)+“$”a+
,n.meta={identity:!1},n.prototype=null,n}},195:function(t,e,n){var r=n(21),i=(n(38),n(64),n(92)),o=n(70);n(46);function a(t){return Object.keys(t).map((function(t){return r.stringify(t)})).join(“ | ”)}function s(t,e){var n=e||a(t);function r(t,e){return t}return r.meta={kind:“enums”,map:t,name:e,identity:!0},r.displayName=n,r.is=function(e){return(o(e)||i(e))&&t.hasOwnProperty(e)},r}s.of=function(t,e){t=o(t)?t.split(“ ”):t;var n={};return t.forEach((function(t){n=t})),s(n,e)},s.getDefaultName=a,t.exports=s},196:function(t,e,n){n(21),n(38),n(33);var r=n(197),i=n(48),o=n(91),a=n(49),s=n(128),u=(n(64),n(50)),l=n(29);function c(t){return“?”+l(t)}function f(t,e){if(r(t)||t===o||t===s)return t;var n=e||c(t),l=i(t);function f(e,n){return s.is(e)?e:a(t,e,n)}return f.meta={kind:“maybe”,type:t,name:e,identity:l},f.displayName=n,f.is=function(e){return s.is(e)||u(e,t)},f}f.getDefaultName=c,t.exports=f},197:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)&&“maybe”===t.meta.kind}},198:function(t,e,n){var r=n(21),i=(n(38),n(94),n(72),n(71),n(46)),o=n(45),a=n(49),s=(n(29),n(95),n(132)),u=n(133);function l(t){return“Struct”+s(t)}function c(t,e){return u(d,t,e)}function f(t){return i(t)||(t=o(t)?{}:{name:t}),t.hasOwnProperty(“strict”)||(t.strict=d.strict),t.hasOwnProperty(“defaultProps”)||(t.defaultProps={}),t}function d(t,e){var n=(e=f(e)).name,i=e.strict,o=e.defaultProps;var s=n||l(t);function u(e,n){if(u.is(e))return e;if(!(this instanceof u))return new u(e,n);for(var r in t)if(t.hasOwnProperty®){var i=t,s=e;void 0===s&&(s=o),this=a(i,s,null)}}return u.meta={kind:“struct”,props:t,name:n,identity:!1,strict:i,defaultProps:o},u.displayName=s,u.is=function(t){return t instanceof u},u.update=function(t,e){return new u(r.update(t,e))},u.extend=function(t,e){return c(.concat(t),e)},u}d.strict=!1,d.getOptions=f,d.getDefaultName=l,d.extend=c,t.exports=d},199:function(t,e,n){var r=n(34);t.exports=function(t){return r(t)&&“struct”===t.meta.kind}},2:function(t,e,n){(function(t,n){var r;!function(){var i=“object”==typeof self&&self.self===self&&self||“object”==typeof t&&t.global===t&&t||this||{},o=i._,a=Array.prototype,s=Object.prototype,u=“undefined”!=typeof Symbol?Symbol.prototype:null,l=a.push,c=a.slice,f=s.toString,d=s.hasOwnProperty,p=Array.isArray,h=Object.keys,v=Object.create,m=function(){},y=function(t){return t instanceof y?t:this instanceof y?void(this._wrapped=t):new y(t)};e.nodeType?i._=y:(!n.nodeType&&n.exports&&(e=n.exports=y),e._=y),y.VERSION=“1.9.1”;var g,b=function(t,e,n){if(void 0===e)return t;switch(null==n?3:n){case 1:return function(n){return t.call(e,n)};case 3:return function(n,r,i){return t.call(e,n,r,i)};case 4:return function(n,r,i,o){return t.call(e,n,r,i,o)}}return function(){return t.apply(e,arguments)}},w=function(t,e,n){return y.iteratee!==g?y.iteratee(t,e):null==t?y.identity:y.isFunction(t)?b(t,e,n):y.isObject(t)&&!y.isArray(t)?y.matcher(t):y.property(t)};y.iteratee=g=function(t,e){return w(t,e,1/0)};var _=function(t,e){return e=null==e?t.length-1:+e,function(){for(var n=Math.max(arguments.length-e,0),r=Array(n),i=0;i===i)return o;return-1}};y.indexOf=I(1,y.findIndex,y.sortedIndex),y.lastIndexOf=I(-1,y.findLastIndex),y.range=function(t,e,n){null==e&&(e=t||0,t=0),n||(n=e<t?-1:1);for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array®,o=0;ot
“]”}})),y.isArguments(arguments)||(y.isArguments=function(t){return x(t,“callee”)});var H=i.document&&i.document.childNodes;“object”!=typeof Int8Array&&“function”!=typeof H&&(y.isFunction=function(t){return“function”==typeof t||!1}),y.isFinite=function(t){return!y.isSymbol(t)&&isFinite(t)&&!isNaN(parseFloat(t))},y.isNaN=function(t){return y.isNumber(t)&&isNaN(t)},y.isBoolean=function(t){return!0===t||!1===t||“[object Boolean]”===f.call(t)},y.isNull=function(t){return null===t},y.isUndefined=function(t){return void 0===t},y.has=function(t,e){if(!y.isArray(e))return x(t,e);for(var n=e.length,r=0;r<n;r++){var i=e;if(null==t||!d.call(t,i))return!1;t=t}return!!n},y.noConflict=function(){return i._=o,this},y.identity=function(t){return t},y.constant=function(t){return function(){return t}},y.noop=function(){},y.property=function(t){return y.isArray(t)?function(e){return C(e,t)}:k(t)},y.propertyOf=function(t){return null==t?function(){}:function(e){return y.isArray(e)?C(t,e):t}},y.matcher=y.matches=function(t){return t=y.extendOwn({},t),function(e){return y.isMatch(e,t)}},y.times=function(t,e,n){var r=Array(Math.max(0,t));e=b(e,n,1);for(var i=0;i+Q
”“;return t?t+e:e},y.templateSettings={evaluate:/<%(+?)%>/g,interpolate:/<%=(+?)%>/g,escape:/<%-(+?)%>/g};var $=/(.)^/,G={”’“:”‘“,”\“:”\“,”r“:”r“,”n“:”n“,”u2028“:”u2028“,”u2029“:”u2029“},Y=/\|’|r|n|u2028|u2029/g,Z=function(t){return”\“+G};y.template=function(t,e,n){!e&&n&&(e=n),e=y.defaults({},e,y.templateSettings);var r,i=RegExp(.join(”|“)+”|$“,”g“),o=0,a=”__p+=‘“;t.replace(i,(function(e,n,r,i,s){return a+=t.slice(o,s).replace(Y,Z),o=s+e.length,n?a+=”’+n((__t=(“n
”))==null?”:_.escape(__t))+n‘“:r?a+=”’+n((__t=(“r
”))==null?”:__t)+n‘“:i&&(a+=”’;n“i
”n__p+=‘“),e})),a+=”’;n“,e.variable||(a=”with(obj||{}){n“a
”}n“),a=”var __t,__p=”,__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,”);};n“a
”return __p;n“;try{r=new Function(e.variable||”obj“,”_“,a)}catch(t){throw t.source=a,t}var s=function(t){return r.call(this,t,y)},u=e.variable||”obj“;return s.source=”function(“u
”){n“a
”}“,s},y.chain=function(t){var e=y(t);return e._chain=!0,e};var X=function(t,e){return t._chain?y(e).chain():e};y.mixin=function(t){return y.each(y.functions(t),(function(e){var n=y=t;y.prototype=function(){var t=;return l.apply(t,arguments),X(this,n.apply(y,t))}})),y},y.mixin(y),y.each(,(function(t){var e=a;y.prototype=function(){var n=this._wrapped;return e.apply(n,arguments),”shift“!==t&&”splice“!==t||0!==n.length||delete n,X(this,n)}})),y.each(,(function(t){var e=a;y.prototype=function(){return X(this,e.apply(this._wrapped,arguments))}})),y.prototype.value=function(){return this._wrapped},y.prototype.valueOf=y.prototype.toJSON=y.prototype.value,y.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return y}.apply(e,[]))||(n.exports=r)}()}).call(this,n(41),n(79)(t))},20:function(t,e,n){(function(e){ /*!
* Quill Editor v1.3.7 * https://quilljs.com/ * Copyright (c) 2014, Jason Chen * Copyright (c) 2013, salesforce.com */
var n;“undefined”!=typeof self&&self,n=function(){return function(t){var e={};function n®{if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,“a”,e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p=“”,n(n.s=109)}([function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(17),i=n(18),o=n(19),a=n(45),s=n(46),u=n(47),l=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),v=n(1),m={Scope:v.Scope,create:v.create,find:v.find,query:v.query,register:v.register,Container:r.default,Format:i.default,Leaf:o.default,Embed:l.default,Scroll:a.default,Block:u.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};e.default=m},function(t,e,n){“use strict”;var r,i=this&&this.__extends||(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)});Object.defineProperty(e,“__esModule”,{value:!0});var o=function(t){function e(e){var n=this;return e=“[Parchment] ”+e,(n=t.call(this,e)||this).message=e,n.name=n.constructor.name,n}return i(e,t),e}(Error);e.ParchmentError=o;var a,s={},u={},l={},c={};function f(t,e){var n;if(void 0===e&&(e=a.ANY),“string”==typeof t)n=c[t]||s[t];else if(t instanceof Text||t.nodeType===Node.TEXT_NODE)n=c.text;else if(“number”==typeof t)t&a.LEVEL&a.BLOCK?n=c.block:t&a.LEVEL&a.INLINE&&(n=c.inline);else if(t instanceof HTMLElement){var r=(t.getAttribute(“class”)||“”).split(/s+/);for(var i in r)if(n=u[r[i]])break;n=n||l[t.tagName]}return null==n?null:e&a.LEVEL&n.scope&&e&a.TYPE&n.scope?n:null}e.DATA_KEY=“__blot”,function(t){t[t.TYPE=3]=“TYPE”,t[t.LEVEL=12]=“LEVEL”,t[t.ATTRIBUTE=13]=“ATTRIBUTE”,t[t.BLOT=14]=“BLOT”,t[t.INLINE=7]=“INLINE”,t[t.BLOCK=11]=“BLOCK”,t[t.BLOCK_BLOT=10]=“BLOCK_BLOT”,t[t.INLINE_BLOT=6]=“INLINE_BLOT”,t[t.BLOCK_ATTRIBUTE=9]=“BLOCK_ATTRIBUTE”,t[t.INLINE_ATTRIBUTE=5]=“INLINE_ATTRIBUTE”,t[t.ANY=15]=“ANY”}(a=e.Scope||(e.Scope={})),e.create=function(t,e){var n=f(t);if(null==n)throw new o(“Unable to create ” “===n)return e.execCommand(”outdent“,!1,n);if((a.isFF||a.isEdge)&&”p“===n)return Array.prototype.slice.call(r.childNodes).some((function(t){return!a.isBlockContainer(t)}))&&e.execCommand(”formatBlock“,!1,n),e.execCommand(”outdent“,!1,n)}return e.execCommand(”formatBlock“,!1,n)},setTargetBlank:function(t,e){var n,r=e||!1;if(”a“===t.nodeName.toLowerCase())t.target=”_blank“,t.rel=”noopener noreferrer“;else for(t=t.getElementsByTagName(”a“),n=0;n “+t.util.htmlEntities(i ,[[new RegExp(/^*<“>RegExp(/<*“>RegExp(/<\/b>( ”+t.split(“ ”)+“ var r=n(214),i=n(215),o=n(216);function a(){return u.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function s(t,e){if(a()<e)throw new RangeError(“Invalid typed array length”);return u.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e)).__proto__=u.prototype:(null===t&&(t=new u(e)),t.length=e),t}function u(t,e,n){if(!(u.TYPED_ARRAY_SUPPORT||this instanceof u))return new u(t,e,n);if(“number”==typeof t){if(“string”==typeof e)throw new Error(“If encoding is specified then the first argument must be a string”);return f(this,t)}return l(this,t,e,n)}function l(t,e,n,r){if(“number”==typeof e)throw new TypeError(‘“value” argument must not be a number’);return“undefined”!=typeof ArrayBuffer&&e instanceof ArrayBuffer?function(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError(“‘offset’ is out of bounds”);if(e.byteLength<n+(r||0))throw new RangeError(“‘length’ is out of bounds”);e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r);u.TYPED_ARRAY_SUPPORT?(t=e).__proto__=u.prototype:t=d(t,e);return t}(t,e,n,r):“string”==typeof e?function(t,e,n){“string”==typeof n&&“”!==n||(n=“utf8”);if(!u.isEncoding(n))throw new TypeError(‘“encoding” must be a valid string encoding’);var r=0|h(e,n),i=(t=s(t,r)).write(e,n);i!==r&&(t=t.slice(0,i));return t}(t,e,n):function(t,e){if(u.isBuffer(e)){var n=0|p(e.length);return 0===(t=s(t,n)).length||e.copy(t,0,0,n),t}if(e){if(“undefined”!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||“length”in e)return“number”!=typeof e.length||(r=e.length)!=r?s(t,0):d(t,e);if(“Buffer”===e.type&&o(e.data))return d(t,e.data)}var r;throw new TypeError(“First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.”)}(t,e)}function c(t){if(“number”!=typeof t)throw new TypeError(‘“size” argument must be a number’);if(t<0)throw new RangeError(‘“size” argument must not be negative’)}function f(t,e){if(c(e),t=s(t,e<0?0:0|p(e)),!u.TYPED_ARRAY_SUPPORT)for(var n=0;n /** @license React v16.6.1 /** @license React v0.11.3 Object.defineProperty(e,“__esModule”,{value:!0});var n=null,r=!1,i=3,o=-1,a=-1,s=!1,u=!1;function l(){if(!s){var t=n.expirationTime;u?k():u=!0,O(d,t)}}function c(){var t=n,e=n.next;if(n===e)n=null;else{var r=n.previous;n=r.next=e,e.previous=r}t.next=t.previous=null,r=t.callback,e=t.expirationTime,t=t.priorityLevel;var o=i,s=a;i=t,a=e;try{var u=r()}finally{i=o,a=s}if(“function”==typeof u)if(u={callback:u,priorityLevel:t,expirationTime:e,next:null,previous:null},null===n)n=u.next=u.previous=u;else{r=null,t=n;do{if(t.expirationTime>=e){r=t;break}t=t.next}while(t!==n);null===r?r=n:r===n&&(n=u,l()),(e=r.previous).next=r.previous=u,u.next=r,u.previous=e}}function f(){if(-1===o&&null!==n&&1===n.priorityLevel){s=!0;try{do{c()}while(null!==n&&1===n.priorityLevel)}finally{s=!1,null!==n?l():u=!1}}}function d(t){s=!0;var i=r;r=t;try{if(t)for(;null!==n;){var o=e.unstable_now();if(!(n.expirationTime<=o))break;do{c()}while(null!==n&&n.expirationTime<=o)}else if(null!==n)do{c()}while(null!==n&&!x())}finally{s=!1,r=i,null!==n?l():u=!1,f()}}var p,h,v=Date,m=“function”==typeof setTimeout?setTimeout:void 0,y=“function”==typeof clearTimeout?clearTimeout:void 0,g=“function”==typeof requestAnimationFrame?requestAnimationFrame:void 0,b=“function”==typeof cancelAnimationFrame?cancelAnimationFrame:void 0;function w(t){p=g((function(e){y(h),t(e)})),h=m((function(){b(p),t(e.unstable_now())}),100)}if(“object”==typeof performance&&“function”==typeof performance.now){var _=performance;e.unstable_now=function(){return _.now()}}else e.unstable_now=function(){return v.now()};var O,k,x,C=null;if(“undefined”!=typeof window?C=window:void 0!==t&&(C=t),C&&C._schedMock){var E=C._schedMock;O=E,k=E,x=E,e.unstable_now=E}else if(“undefined”==typeof window||“function”!=typeof MessageChannel){var j=null,S=function(t){if(null!==j)try{j(t)}finally{j=null}};O=function(t){null!==j?setTimeout(O,0,t):(j=t,setTimeout(S,0,!1))},k=function(){j=null},x=function(){return!1}}else{“undefined”!=typeof console&&(“function”!=typeof g&&console.error(“This browser doesn’t support requestAnimationFrame. Make sure that you load a polyfill in older browsers. fb.me/react-polyfills”),“function”!=typeof b&&console.error(“This browser doesn’t support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. fb.me/react-polyfills”));var T=null,A=!1,P=-1,N=!1,L=!1,I=0,D=33,R=33;x=function(){return I<=e.unstable_now()};var M=new MessageChannel,B=M.port2;M.port1.onmessage=function(){A=!1;var t=T,n=P;T=null,P=-1;var r=e.unstable_now(),i=!1;if(0>=I-r){if(!(-1!==n&&n<=r))return N||(N=!0,w(q)),T=t,void(P=n);i=!0}if(null!==t){L=!0;try{t(i)}finally{L=!1}}};var q=function(t){if(null!==T){w(q);var e=t-I+R;e<R&&D<R?(8>e&&(e=8),R=e<D?D:e):D=e,I=t+R,A||(A=!0,B.postMessage(void 0))}else N=!1};O=function(t,e){T=t,P=e,L||0>e?B.postMessage(void 0):N||(N=!0,w(q))},k=function(){T=null,A=!1,P=-1}}e.unstable_ImmediatePriority=1,e.unstable_UserBlockingPriority=2,e.unstable_NormalPriority=3,e.unstable_IdlePriority=5,e.unstable_LowPriority=4,e.unstable_runWithPriority=function(t,n){switch(t){case 1:case 2:case 3:case 4:case 5:break;default:t=3}var r=i,a=o;i=t,o=e.unstable_now();try{return n()}finally{i=r,o=a,f()}},e.unstable_scheduleCallback=function(t,r){var a=-1!==o?o:e.unstable_now();if(“object”==typeof r&&null!==r&&“number”==typeof r.timeout)r=a+r.timeout;else switch(i){case 1:r=a+-1;break;case 2:r=a+250;break;case 5:r=a+1073741823;break;case 4:r=a+1e4;break;default:r=a+5e3}if(t={callback:t,priorityLevel:i,expirationTime:r,next:null,previous:null},null===n)n=t.next=t.previous=t,l();else{a=null;var s=n;do{if(s.expirationTime>r){a=s;break}s=s.next}while(s!==n);null===a?a=n:a===n&&(n=t,l()),(r=a.previous).next=a.previous=t,t.next=a,t.previous=r}return t},e.unstable_cancelCallback=function(t){var e=t.next;if(null!==e){if(e===t)n=null;else{t===n&&(n=e);var r=t.previous;r.next=e,e.previous=r}t.next=t.previous=null}},e.unstable_wrapCallback=function(t){var n=i;return function(){var r=i,a=o;i=n,o=e.unstable_now();try{return t.apply(this,arguments)}finally{i=r,o=a,f()}}},e.unstable_getCurrentPriorityLevel=function(){return i},e.unstable_shouldYield=function(){return!r&&(null!==n&&n.expirationTime<a||x())}}).call(this,n(41))},229:function(t,e,n){“use strict”;t.exports=n(230)},23:function(t,e,n){“use strict”;n.d(e,“m”,(function(){return h})),n.d(e,“n”,(function(){return l})),n.d(e,“o”,(function(){return w})),n.d(e,“p”,(function(){return gt})),n.d(e,“q”,(function(){return bt})),n.d(e,“r”,(function(){return kt})),n.d(e,“a”,(function(){return $t})),n.d(e,“b”,(function(){return be})),n.d(e,“c”,(function(){return Ke})),n.d(e,“d”,(function(){return Ge})),n.d(e,“e”,(function(){return on})),n.d(e,“f”,(function(){return an})),n.d(e,“j”,(function(){return sn})),n.d(e,“g”,(function(){return fe})),n.d(e,“h”,(function(){return ln})),n.d(e,“i”,(function(){return Z})),n.d(e,“k”,(function(){return ht})),n.d(e,“l”,(function(){return ut}));var r=n(1),i=n.n®,o=n(5),a=n(0),s=n(7),u=n(106);var l=function(t){return t.displayName||t.name};function c(t){if(r.isValidElement(t))return t.props.__scrivitoForwardElementType||t.type}var f,d=(f=function(t,e){return(f=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(t,e)},function(t,e){function n(){this.constructor=t}f(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),p=function(){return(p=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)};function h(t){if(“function”!=typeof t)throw new a.a(“Scrivito.connect expects either a plain function or a subclass of React.Component”);return function(t){return!0===t._isScrivitoConnectedComponent}(t)?t:function(t){return“function”==typeof t&&t.prototype&&t.prototype.isReactComponent}(t)?v(t):v((e=t,(n=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return d(n,t),n.prototype.render=function(){return e(this.props)},n}(r.Component)).displayName=l(e),n));var e,n}function v(t){var e,n=((e=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new y(n),n}return d(e,t),e.prototype.componentDidMount=function(){this._scrivitoPrivateConnector.componentDidMount(),t.prototype.componentDidMount&&t.prototype.componentDidMount.call(this)},e.prototype.componentWillUnmount=function(){this._scrivitoPrivateConnector.componentWillUnmount(),t.prototype.componentWillUnmount&&t.prototype.componentWillUnmount.call(this)},e.prototype.render=function(){var e=this;return this._scrivitoPrivateConnector.render((function(){return t.prototype.render.call(e)}))},e}(t))._isScrivitoConnectedComponent=!0,e);return n.displayName=l(t),n}var m=r.createContext(0),y=function(){function t(t){this.component=t,this.isMounted=!1,this.loadingSubscriber=new o.LoadingSubscriber}return t.prototype.componentDidMount=function(){var t=this;if(void 0===this.hierachyLevel)throw new a.g;if(this.stateSubscriber=Object(s.f)((function(){return t.component.forceUpdate()}),this.hierachyLevel),this.isMounted=!0,this.onMount){var e=this.onMount.bind(this);delete this.onMount,e()}},t.prototype.componentWillUnmount=function(){this.stateSubscriber&&this.stateSubscriber.unsubscribe(),this.unregisterLoadingActivity(),this.isMounted=!1,this.loadingSubscriber.unsubscribe()},t.prototype.render=function(t){var e=this,n=this.renderLoadingAware(t);return r.createElement(m.Consumer,p({},{__scrivitoForwardElementType:c(n)}),(function(t){return e.grabHierarchyLevel(t,r.createElement(m.Provider,{value:t+1},n))}))},t.prototype.grabHierarchyLevel=function(t,e){return this.hierachyLevel=t,e},t.prototype.renderLoadingAware=function(t){var e=this;if(Object(o.isCurrentlyCapturing)())return g(t);var n=Object(o.capture)((function(){return Object(s.o)((function(){return g(t)}))})),r=n.result,i=r.accessedState,l=r.result;return this.whenMounted((function(){if(!e.stateSubscriber)throw new a.g;e.stateSubscriber.subscribeChanges(i),n.subscribeLoading(e.loadingSubscriber),n.isAllDataLoaded()?e.unregisterLoadingActivity():e.unregisterLoadingActivityCallback||(e.unregisterLoadingActivityCallback=Object(u.b)())})),n.isAllDataLoaded()?l:this.handleLoading(l)},t.prototype.whenMounted=function(t){this.isMounted?t():this.onMount=t},t.prototype.handleLoading=function(t){return this.component._scrivitoRenderWhileLoading?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}();function g(t){var e=Object(o.runAndCatchErrorsWhileLoading)((function(){return Object(s.s)({contextName:“React.Component#render”,message:“Use one of the React lifecycle hooks.”},t)}));return e.success?e.result:null}var b=n(3);function w(t){if(t instanceof b.BasicObj)return t.id();if(t instanceof b.BasicWidget)return t.obj().id()+“|”+t.id();var e=Object(a.I)(t).substr(0,100);throw new a.g(‘keyForBasicContent called with “’ /*! /*! function(t){var e,n,r,i,o,a,s,u,l,c,f,d,p,h,v,m,y,g,b,w=“sizzle”+-new Date,_=t.document,O=0,k=0,x=rt(),C=rt(),E=rt(),j=function(t,e){return t===e&&(f=!0),0},S={}.hasOwnProperty,T=[],A=T.pop,P=T.push,N=T.push,L=T.slice,I=T.indexOf||function(t){for(var e=0,n=this.length;et
“ blot”);var r=n,i=t instanceof Node||t.nodeType===Node.TEXT_NODE?t:r.create(e);return new r(i,e)},e.find=function t(n,r){return void 0===r&&(r=!1),null==n?null:null!=n[e.DATA_KEY]?n[e.DATA_KEY].blot:r?t(n.parentNode,r):null},e.query=f,e.register=function t(){for(var e=[],n=0;ni
“t
“. Are you sure it was registered?”),this.imports[t]}},{key:“register”,value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(“string”!=typeof t){var i=t.attrName||t.blotName;“string”==typeof i?this.register(“formats/”+i,t,e):Object.keys(t).forEach((function®{n.register(r,t[r],e)}))}else null==this.imports[t]||r||b.warn(“Overwriting ”t
“ with”,e),this.imports[t]=e,(t.startsWith(“blots/”)||t.startsWith(“formats/”))&&“abstract”!==e.blotName?c.default.register(e):t.startsWith(“modules”)&&“function”==typeof e.register&&e.register()}}]),o(t,[{key:“addContainer”,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(“string”==typeof t){var n=t;(t=document.createElement(“div”)).classList.add(n)}return this.container.insertBefore(t,e),t}},{key:“blur”,value:function(){this.selection.setRange(null)}},{key:“deleteText”,value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],O.call(this,(function(){return r.editor.deleteText(t,e)}),n,t,-1*e)}},{key:“disable”,value:function(){this.enable(!1)}},{key:“enable”,value:function(){var t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(t),this.container.classList.toggle(“ql-disabled”,!t)}},{key:“focus”,value:function(){var t=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=t,this.scrollIntoView()}},{key:“format”,value:function(t,e){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;return O.call(this,(function(){var r=n.getSelection(!0),i=new a.default;if(null==r)return i;if(c.default.query(t,c.default.Scope.BLOCK))i=n.editor.formatLine(r.index,r.length,y({},t,e));else{if(0===r.length)return n.selection.format(t,e),i;i=n.editor.formatText(r.index,r.length,y({},t,e))}return n.setSelection(r,u.default.sources.SILENT),i}),r)}},{key:“formatLine”,value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],O.call(this,(function(){return s.editor.formatLine(t,e,a)}),o,t,0)}},{key:“formatText”,value:function(t,e,n,r,o){var a,s=this,u=k(t,e,n,r,o),l=i(u,4);return t=l[0],e=l[1],a=l[2],o=l[3],O.call(this,(function(){return s.editor.formatText(t,e,a)}),o,t,0)}},{key:“getBounds”,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n=“number”==typeof t?this.selection.getBounds(t,e):this.selection.getBounds(t.index,t.length);var r=this.container.getBoundingClientRect();return{bottom:n.bottom-r.top,height:n.height,left:n.left-r.left,right:n.right-r.left,top:n.top-r.top,width:n.width}}},{key:“getContents”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getContents(t,e)}},{key:“getFormat”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return“number”==typeof t?this.editor.getFormat(t,e):this.editor.getFormat(t.index,t.length)}},{key:“getIndex”,value:function(t){return t.offset(this.scroll)}},{key:“getLength”,value:function(){return this.scroll.length()}},{key:“getLeaf”,value:function(t){return this.scroll.leaf(t)}},{key:“getLine”,value:function(t){return this.scroll.line(t)}},{key:“getLines”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return“number”!=typeof t?this.scroll.lines(t.index,t.length):this.scroll.lines(t,e)}},{key:“getModule”,value:function(t){return this.theme.modules[t]}},{key:“getSelection”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return t&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:“getText”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-t,n=k(t,e),r=i(n,2);return t=r[0],e=r[1],this.editor.getText(t,e)}},{key:“hasFocus”,value:function(){return this.selection.hasFocus()}},{key:“insertEmbed”,value:function(e,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t.sources.API;return O.call(this,(function(){return i.editor.insertEmbed(e,n,r)}),o,e)}},{key:“insertText”,value:function(t,e,n,r,o){var a,s=this,u=k(t,0,n,r,o),l=i(u,4);return t=l[0],a=l[2],o=l[3],O.call(this,(function(){return s.editor.insertText(t,e,a)}),o,t,e.length)}},{key:“isEnabled”,value:function(){return!this.container.classList.contains(“ql-disabled”)}},{key:“off”,value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:“on”,value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:“once”,value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:“pasteHTML”,value:function(t,e,n){this.clipboard.dangerouslyPasteHTML(t,e,n)}},{key:“removeFormat”,value:function(t,e,n){var r=this,o=k(t,e,n),a=i(o,4);return t=a[0],e=a[1],n=a[3],O.call(this,(function(){return r.editor.removeFormat(t,e)}),n,t)}},{key:“scrollIntoView”,value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:“setContents”,value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return O.call(this,(function(){t=new a.default(t);var n=e.getLength(),r=e.editor.deleteText(0,n),i=e.editor.applyDelta(t),o=i.ops[i.ops.length-1];return null!=o&&“string”==typeof o.insert&&“n”===o.insert[o.insert.length-1]&&(e.editor.deleteText(e.getLength()-1,1),i.delete(1)),r.compose(i)}),n)}},{key:“setSelection”,value:function(e,n,r){if(null==e)this.selection.setRange(null,n||t.sources.API);else{var o=k(e,n,r),a=i(o,4);e=a[0],n=a[1],r=a[3],this.selection.setRange(new f.Range(e,n),r),r!==u.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:“setText”,value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API,n=(new a.default).insert(t);return this.setContents(n,e)}},{key:“update”,value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.default.sources.USER,e=this.scroll.update(t);return this.selection.update(t),e}},{key:“updateContents”,value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:u.default.sources.API;return O.call(this,(function(){return t=new a.default(t),e.editor.applyDelta(t,n)}),n,!0)}}]),t}();function _(t,e){if((e=(0,p.default)(!0,{container:t,modules:{clipboard:!0,keyboard:!0,history:!0}},e)).theme&&e.theme!==w.DEFAULTS.theme){if(e.theme=w.import(“themes/”+e.theme),null==e.theme)throw new Error(“Invalid theme ”e.theme
“. Did you register it?”)}else e.theme=v.default;var n=(0,p.default)(!0,{},e.theme.DEFAULTS);[n,e].forEach((function(t){t.modules=t.modules||{},Object.keys(t.modules).forEach((function(e){!0===t.modules[e]&&(t.modules[e]={})}))}));var r=Object.keys(n.modules).concat(Object.keys(e.modules)).reduce((function(t,e){var n=w.import(“modules/”+e);return null==n?b.error(“Cannot load ”e
“ module. Are you sure you registered it?”):t[e]=n.DEFAULTS||{},t}),{});return null!=e.modules&&e.modules.toolbar&&e.modules.toolbar.constructor!==Object&&(e.modules.toolbar={container:e.modules.toolbar}),e=(0,p.default)(!0,{},w.DEFAULTS,{modules:r},n,e),[“bounds”,“container”,“scrollingContainer”].forEach((function(t){“string”==typeof e[t]&&(e[t]=document.querySelector(e[t]))})),e.modules=Object.keys(e.modules).reduce((function(t,n){return e.modules[n]&&(t[n]=e.modules[n]),t}),{}),e}function O(t,e,n,r){if(this.options.strict&&!this.isEnabled()&&e===u.default.sources.USER)return new a.default;var i=null==n?null:this.getSelection(),o=this.editor.delta,s=t();if(null!=i&&(!0===n&&(n=i.index),null==r?i=x(i,s,e):0!==r&&(i=x(i,n,r,e)),this.setSelection(i,u.default.sources.SILENT)),s.length()>0){var l,c,f=[u.default.events.TEXT_CHANGE,s,o,e];(l=this.emitter).emit.apply(l,[u.default.events.EDITOR_CHANGE].concat(f)),e!==u.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function k(t,e,n,i,o){var a={};return“number”==typeof t.index&&“number”==typeof t.length?“number”!=typeof e?(o=i,i=n,n=e,e=t.length,t=t.index):(e=t.length,t=t.index):“number”!=typeof e&&(o=i,i=n,n=e,e=0),“object”===(void 0===n?“undefined”:r(n))?(a=n,o=i):“string”==typeof n&&(null!=i?a[n]=i:o=n),[t,e,a,o=o||u.default.sources.API]}function x(t,e,n,r){if(null==t)return null;var o=void 0,s=void 0;if(e instanceof a.default){var l=[t.index,t.index+t.length].map((function(t){return e.transformPosition(t,r!==u.default.sources.USER)})),c=i(l,2);o=c[0],s=c[1]}else{var d=[t.index,t.index+t.length].map((function(t){return te[2]
”?showinfo=0“:(e=t.match(/^(?:(https?)://)?(?:www.)?vimeo.com/(d+)/))?(e[1]||”https“)+”://player.vimeo.com/video/“e[2]
2&&void 0!==arguments[2]&&arguments[2];e.forEach((function(e){var r=document.createElement(”option“);e===n?r.setAttribute(”selected“,”selected“):r.setAttribute(”value“,e),t.appendChild®}))}e.BaseTooltip=k,e.default=O},function(t,e,n){”use strict“;Object.defineProperty(e,”__esModule“,{value:!0});var r=function(){function t(){this.head=this.tail=null,this.length=0}return t.prototype.append=function(){for(var t=[],e=0;en)h+=2;else if(w>i)p+=2;else if(d&&(k=a+f-g)>=0&&k=_)return r(t,e,C,w)}}for(var O=-y+v;O<=y-m;O+=2){for(var k=a+O,x=(_=O==-y||O!=y&&l[k-1]=(_=n-_))return r(t,e,C,w)}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-u),e=e.substring(0,e.length-u));return l&&f.unshift([0,l]),c&&f.push([0,c]),function t(e){e.push([0,”“]);for(var n,r=0,a=0,s=0,u=”“,l=”“;rn)h+=2;else if(w>i)p+=2;else if(d&&(k=a+f-g)>=0&&k=_)return r(t,e,C,w)}}for(var O=-y+v;O<=y-m;O+=2){for(var k=a+O,x=(_=O==-y||O!=y&&l[k-1]=(_=n-_))return r(t,e,C,w)}}}return[[-1,t],[1,e]]}(t,e)}(t=t.substring(0,t.length-u),e=e.substring(0,e.length-u));return l&&f.unshift([0,l]),c&&f.push([0,c]),function t(e){e.push([0,”“]);for(var n,r=0,a=0,s=0,u=”“,l=”“;ru
’”]‘)}null==s?(a.value=“”,a.selectedIndex=-1):s.selected=!0}else if(null==t)a.classList.remove(“ql-active”);else if(a.hasAttribute(“value”)){var l=e[o]===a.getAttribute(“value”)||null!=e[o]&&e[o].toString()===a.getAttribute(“value”)||null==e[o]&&!a.getAttribute(“value”);a.classList.toggle(“ql-active”,l)}else a.classList.toggle(“ql-active”,null!=e[o])}))}}]),e}(l.default);function h(t,e,n){var r=document.createElement(“button”);r.setAttribute(“type”,“button”),r.classList.add(“ql-”+e),null!=n&&(r.value=n),t.appendChild®}function v(t,e){Array.isArray(e[0])||(e=[e]),e.forEach((function(e){var n=document.createElement(“span”);n.classList.add(“ql-formats”),e.forEach((function(t){if(“string”==typeof t)h(n,t);else{var e=Object.keys(t)[0],r=t[e];Array.isArray®?function(t,e,n){var r=document.createElement(“select”);r.classList.add(“ql-”+e),n.forEach((function(t){var e=document.createElement(“option”);!1!==t?e.setAttribute(“value”,t):e.setAttribute(“selected”,“selected”),r.appendChild(e)})),t.appendChild®}(n,e,r):h(n,e,r)}})),t.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var t=this,e=this.quill.getSelection();if(null!=e)if(0==e.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(e){null!=a.default.query(e,a.default.Scope.INLINE)&&t.quill.format(e,!1)}))}else this.quill.removeFormat(e,s.default.sources.USER)},direction:function(t){var e=this.quill.getFormat().align;“rtl”===t&&null==e?this.quill.format(“align”,“right”,s.default.sources.USER):t||“right”!==e||this.quill.format(“align”,!1,s.default.sources.USER),this.quill.format(“direction”,t,s.default.sources.USER)},indent:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e),r=parseInt(n.indent||0);if(“+1”===t||“-1”===t){var i=“+1”===t?1:-1;“rtl”===n.direction&&(i*=-1),this.quill.format(“indent”,r+i,s.default.sources.USER)}},link:function(t){!0===t&&(t=prompt(“Enter link URL:”)),this.quill.format(“link”,t,s.default.sources.USER)},list:function(t){var e=this.quill.getSelection(),n=this.quill.getFormat(e);“check”===t?“checked”===n.list||“unchecked”===n.list?this.quill.format(“list”,!1,s.default.sources.USER):this.quill.format(“list”,“unchecked”,s.default.sources.USER):this.quill.format(“list”,t,s.default.sources.USER)}}},e.default=p,e.addControls=v},function(t,e){t.exports=’‘},function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r,i=function(){function t(t,e){for(var n=0;nP
“_-]”,“g”),E);return r&&(j=j.replace(/(w)(S*)/g,(function(t,e,n){var r=e.toUpperCase()+(null!==n?n:“”);return Object.keys(A).indexOf(r.toLowerCase())<0?r:r.toLowerCase()}))),j=j.replace(/\s+/g,E).replace(new RegExp("\\"E
“+”,“g”),E).replace(new RegExp(“(^\”E
“+|\”E
“+$)”,“g”),“”),d&&j.length>d&&(w=j.charAt(d)===E,j=j.slice(0,d),w||(j=j.slice(0,j.lastIndexOf(E)))),n||r||(j=j.toLowerCase()),j},p=function(t){return t.replace(/[-\^$*+?.()|[]{}/]/g,“\$&”)},h=function(t,e){for(var n in e)if(e[n]===t)return!0};t.exports?(t.exports=d,t.exports.createSlug=function(t){return function(e){return d(e,t)}}):void 0===(r=function(){return d}.apply(e,[]))||(t.exports=r)}()},211:function(t,e,n){(function®{var i; /*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */“classList”in document.createElement(“_”)||function(t){“use strict”;if(“Element”in t){var e=t.Element.prototype,n=Object,r=String.prototype.trim||function(){return this.replace(/^s+|s+$/g,“”)},i=Array.prototype.indexOf||function(t){for(var e=0,n=this.length;en
”>“),r&&”blockquote“===r.nodeName.toLowerCase()){if(a.isIE&&”A“,contentFA:’‘},superscript:{name:”superscript“,action:”superscript“,aria:”superscript“,tagNames:[”sup“],contentDefault:”x<sup>1</sup>“,contentFA:’‘},subscript:{name:”subscript“,action:”subscript“,aria:”subscript“,tagNames:[”sub“],contentDefault:”x<sub>1</sub>“,contentFA:’‘},image:{name:”image“,action:”image“,aria:”image“,tagNames:[”img“],contentDefault:”image“,contentFA:’‘},html:{name:”html“,action:”html“,aria:”evaluate html“,tagNames:[”iframe“,”object“],contentDefault:”html“,contentFA:’‘},orderedlist:{name:”orderedlist“,action:”insertorderedlist“,aria:”ordered list“,tagNames:[”ol“],useQueryState:!0,contentDefault:”1.“,contentFA:’‘},unorderedlist:{name:”unorderedlist“,action:”insertunorderedlist“,aria:”unordered list“,tagNames:[”ul“],useQueryState:!0,contentDefault:”•“,contentFA:’‘},indent:{name:”indent“,action:”indent“,aria:”indent“,tagNames:[],contentDefault:”→“,contentFA:’‘},outdent:{name:”outdent“,action:”outdent“,aria:”outdent“,tagNames:[],contentDefault:”←“,contentFA:’‘},justifyCenter:{name:”justifyCenter“,action:”justifyCenter“,aria:”center justify“,tagNames:[],style:{prop:”text-align“,value:”center“},contentDefault:”C“,contentFA:’‘},justifyFull:{name:”justifyFull“,action:”justifyFull“,aria:”full justify“,tagNames:[],style:{prop:”text-align“,value:”justify“},contentDefault:”J“,contentFA:’‘},justifyLeft:{name:”justifyLeft“,action:”justifyLeft“,aria:”left justify“,tagNames:[],style:{prop:”text-align“,value:”left“},contentDefault:”L“,contentFA:’‘},justifyRight:{name:”justifyRight“,action:”justifyRight“,aria:”right justify“,tagNames:[],style:{prop:”text-align“,value:”right“},contentDefault:”R“,contentFA:’‘},removeFormat:{name:”removeFormat“,aria:”remove formatting“,action:”removeFormat“,contentDefault:”X“,contentFA:’‘},quote:{name:”quote“,action:”append-blockquote“,aria:”blockquote“,tagNames:[”blockquote“],contentDefault:”““,contentFA:’‘},pre:{name:”pre“,action:”append-pre“,aria:”preformatted text“,tagNames:[”pre“],contentDefault:”0101“,contentFA:’‘},h1:{name:”h1“,action:”append-h1“,aria:”header type one“,tagNames:[”h1“],contentDefault:”H1“,contentFA:’1’},h2:{name:”h2“,action:”append-h2“,aria:”header type two“,tagNames:[”h2“],contentDefault:”H2“,contentFA:‘2’},h3:{name:”h3“,action:”append-h3“,aria:”header type three“,tagNames:[”h3“],contentDefault:”H3“,contentFA:‘3’},h4:{name:”h4“,action:”append-h4“,aria:”header type four“,tagNames:[”h4“],contentDefault:”H4“,contentFA:‘4’},h5:{name:”h5“,action:”append-h5“,aria:”header type five“,tagNames:[”h5“],contentDefault:”H5“,contentFA:‘5’},h6:{name:”h6“,action:”append-h6“,aria:”header type six“,tagNames:[”h6“],contentDefault:”H6“,contentFA:‘6’}},r=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:”✓“,formCloseLabel:”ד,activeClass:”medium-editor-toolbar-form-active“,hasForm:!0,getForm:function(){},isDisplayed:function(){return!!this.hasForm&&this.getForm().classList.contains(this.activeClass)},showForm:function(){this.hasForm&&this.getForm().classList.add(this.activeClass)},hideForm:function(){this.hasForm&&this.getForm().classList.remove(this.activeClass)},showToolbarDefaultActions:function(){var t=this.base.getExtensionByName(”toolbar“);t&&t.showToolbarDefaultActions()},hideToolbarDefaultActions:function(){var t=this.base.getExtensionByName(”toolbar“);t&&t.hideToolbarDefaultActions()},setToolbarPosition:function(){var t=this.base.getExtensionByName(”toolbar“);t&&t.setToolbarPosition()}}),t.extensions.form=r,i=t.extensions.form.extend({customClassOption:null,customClassOptionText:”Button“,linkValidation:!1,placeholderText:”Paste or type a link“,targetCheckbox:!1,targetCheckboxText:”Open in new window“,name:”anchor“,action:”createLink“,aria:”link“,tagNames:[”a“],contentDefault:”#“,contentFA:‘’,init:function(){t.extensions.form.prototype.init.apply(this,arguments),this.subscribe(”editableKeydown“,this.handleKeydown.bind(this))},handleClick:function(e){e.preventDefault(),e.stopPropagation();var n=t.selection.getSelectionRange(this.document);return”a“===n.startContainer.nodeName.toLowerCase()||”a“===n.endContainer.nodeName.toLowerCase()||t.util.getClosestTag(t.selection.getSelectedParentElement(n),”a“)?this.execAction(”unlink“):(this.isDisplayed()||this.showForm(),!1)},handleKeydown:function(e){t.util.isKey(e,t.util.keyCode.K)&&t.util.isMetaCtrlKey(e)&&!e.shiftKey&&this.handleClick(e)},getForm:function(){return this.form||(this.form=this.createForm()),this.form},getTemplate:function(){var t=[‘’];return t.push(‘’,”fontawesome“===this.getEditorOption(”buttonLabels“)?‘’:this.formSaveLabel,”“),t.push(‘’,”fontawesome“===this.getEditorOption(”buttonLabels“)?‘’:this.formCloseLabel,”“),this.targetCheckbox&&t.push(‘ “),this.customClassOption&&t.push(‘ “),t.join(”“)},isDisplayed:function(){return t.extensions.form.prototype.isDisplayed.apply(this)},hideForm:function(){t.extensions.form.prototype.hideForm.apply(this),this.getInput().value=”“},showForm:function(e){var n=this.getInput(),r=this.getAnchorTargetCheckbox(),i=this.getAnchorButtonCheckbox();if(”string“==typeof(e=e||{value:”“})&&(e={value:e}),this.base.saveSelection(),this.hideToolbarDefaultActions(),t.extensions.form.prototype.showForm.apply(this),this.setToolbarPosition(),n.value=e.value,n.focus(),r&&(r.checked=”_blank“===e.target),i){var o=e.buttonClass?e.buttonClass.split(” “):[];i.checked=-1!==o.indexOf(this.customClassOption)}},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},getFormOpts:function(){var t=this.getAnchorTargetCheckbox(),e=this.getAnchorButtonCheckbox(),n={value:this.getInput().value.trim()};return this.linkValidation&&(n.value=this.checkLinkFormat(n.value)),n.target=”_self“,t&&t.checked&&(n.target=”_blank“),e&&e.checked&&(n.buttonClass=this.customClassOption),n},doFormSave:function(){var t=this.getFormOpts();this.completeFormSave(t)},completeFormSave:function(t){this.base.restoreSelection(),this.execAction(this.action,t),this.base.checkSelection()},ensureEncodedUri:function(t){return t===decodeURI(t)?encodeURI(t):t},ensureEncodedUriComponent:function(t){return t===decodeURIComponent(t)?encodeURIComponent(t):t},ensureEncodedParam:function(t){var e=t.split(”=“),n=e[0],r=e[1];return n+(void 0===r?”“:”=“+this.ensureEncodedUriComponent®)},ensureEncodedQuery:function(t){return t.split(”&“).map(this.ensureEncodedParam.bind(this)).join(”&“)},checkLinkFormat:function(t){var e=/^([a-z]+:)?//|^(mailto|tel|maps):|^#/i.test(t),n=”“,r=t.match(/^(.*?)(?:?(.*?))?(?:#(.*))?$/),i=r[1],o=r[2],a=r[3];if(/^+?s?(?(?:ds?-?)?){3,20}$/.test(t))return”tel:“+t;if(!e){var s=i.split(”/“)[0];(s.match(/.+(.|:).+/)||”localhost“===s)&&(n=”http://“)}return n+this.ensureEncodedUri(i)+(void 0===o?”“:”?“+this.ensureEncodedQuery(o))+(void 0===a?”“:”#“+a)},doFormCancel:function(){this.base.restoreSelection(),this.base.checkSelection()},attachFormEvents:function(t){var e=t.querySelector(”.medium-editor-toolbar-close“),n=t.querySelector(”.medium-editor-toolbar-save“),r=t.querySelector(”.medium-editor-toolbar-input“);this.on(t,”click“,this.handleFormClick.bind(this)),this.on(r,”keyup“,this.handleTextboxKeyup.bind(this)),this.on(e,”click“,this.handleCloseClick.bind(this)),this.on(n,”click“,this.handleSaveClick.bind(this),!0)},createForm:function(){var t=this.document.createElement(”div“);return t.className=”medium-editor-toolbar-form“,t.id=”medium-editor-toolbar-form-anchor-“+this.getEditorId(),t.innerHTML=this.getTemplate(),this.attachFormEvents(t),t},getInput:function(){return this.getForm().querySelector(”input.medium-editor-toolbar-input“)},getAnchorTargetCheckbox:function(){return this.getForm().querySelector(”.medium-editor-toolbar-anchor-target“)},getAnchorButtonCheckbox:function(){return this.getForm().querySelector(”.medium-editor-toolbar-anchor-button“)},handleTextboxKeyup:function(e){if(e.keyCode===t.util.keyCode.ENTER)return e.preventDefault(),void this.doFormSave();e.keyCode===t.util.keyCode.ESCAPE&&(e.preventDefault(),this.doFormCancel())},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}}),t.extensions.anchor=i,o=t.Extension.extend({name:”anchor-preview“,hideDelay:500,previewValueSelector:”a“,showWhenToolbarIsVisible:!1,showOnEmptyLinks:!0,init:function(){this.anchorPreview=this.createPreview(),this.getEditorOption(”elementsContainer“).appendChild(this.anchorPreview),this.attachToEditables()},getInteractionElements:function(){return this.getPreviewElement()},getPreviewElement:function(){return this.anchorPreview},createPreview:function(){var t=this.document.createElement(”div“);return t.id=”medium-editor-anchor-preview-“+this.getEditorId(),t.className=”medium-editor-anchor-preview“,t.innerHTML=this.getTemplate(),this.on(t,”click“,this.handleClick.bind(this)),t},getTemplate:function(){return’ ‘},destroy:function(){this.anchorPreview&&(this.anchorPreview.parentNode&&this.anchorPreview.parentNode.removeChild(this.anchorPreview),delete this.anchorPreview)},hidePreview:function(){this.anchorPreview&&this.anchorPreview.classList.remove(”medium-editor-anchor-preview-active“),this.activeAnchor=null},showPreview:function(t){return!(!this.anchorPreview.classList.contains(”medium-editor-anchor-preview-active“)&&!t.getAttribute(”data-disable-preview“))||(this.previewValueSelector&&(this.anchorPreview.querySelector(this.previewValueSelector).textContent=t.attributes.href.value,this.anchorPreview.querySelector(this.previewValueSelector).href=t.attributes.href.value),this.anchorPreview.classList.add(”medium-toolbar-arrow-over“),this.anchorPreview.classList.remove(”medium-toolbar-arrow-under“),this.anchorPreview.classList.contains(”medium-editor-anchor-preview-active“)||this.anchorPreview.classList.add(”medium-editor-anchor-preview-active“),this.activeAnchor=t,this.positionPreview(),this.attachPreviewHandlers(),this)},positionPreview:function(t){t=t||this.activeAnchor;var e,n,r,i,o,a=this.window.innerWidth,s=this.anchorPreview.offsetHeight,u=t.getBoundingClientRect(),l=this.diffLeft,c=this.diffTop,f=this.getEditorOption(”elementsContainer“),d=[”absolute“,”fixed“].indexOf(window.getComputedStyle(f).getPropertyValue(”position“))>-1,p={};e=this.anchorPreview.offsetWidth/2;var h=this.base.getExtensionByName(”toolbar“);h&&(l=h.diffLeft,c=h.diffTop),n=l-e,d?(i=f.getBoundingClientRect(),[”top“,”left“].forEach((function(t){p[t]=u[t]-i[t]})),p.width=u.width,p.height=u.height,u=p,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-c-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+”px“,this.anchorPreview.style.right=”initial“,rn
”)$“,”i“),i=new RegExp(”(((?:(https?://|ftps?://|nntp://)|www\d{0,3}[.]|[a-z0-9.\-]+(com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw)\/)\S+(?:[^\s`!\{};:’".,?«»“”‘’])))|(([a-z0-9\-]+\.)?+\.(com|net|org|edu|gov|mil|aero|asia|biz|cat|coop|info|int|jobs|mobi|museum|name|post|pro|tel|travel|xxx|ac|ad|ae|af|ag|ai|al|am|an|ao|aq|ar|as|at|au|aw|ax|az|ba|bb|bd|be|bf|bg|bh|bi|bj|bm|bn|bo|br|bs|bt|bv|bw|by|bz|ca|cc|cd|cf|cg|ch|ci|ck|cl|cm|cn|co|cr|cs|cu|cv|cx|cy|cz|dd|de|dj|dk|dm|do|dz|ec|ee|eg|eh|er|es|et|eu|fi|fj|fk|fm|fo|fr|ga|gb|gd|ge|gf|gg|gh|gi|gl|gm|gn|gp|gq|gr|gs|gt|gu|gw|gy|hk|hm|hn|hr|ht|hu|id|ie|il|im|in|io|iq|ir|is|it|je|jm|jo|jp|ke|kg|kh|ki|km|kn|kp|kr|kw|ky|kz|la|lb|lc|li|lk|lr|ls|lt|lu|lv|ly|ma|mc|md|me|mg|mh|mk|ml|mm|mn|mo|mp|mq|mr|ms|mt|mu|mv|mw|mx|my|mz|na|nc|ne|nf|ng|ni|nl|no|np|nr|nu|nz|om|pa|pe|pf|pg|ph|pk|pl|pm|pn|pr|ps|pt|pw|py|qa|re|ro|rs|ru|rw|sa|sb|sc|sd|se|sg|sh|si|sj|ja|sk|sl|sm|sn|so|sr|ss|st|su|sv|sx|sy|sz|tc|td|tf|tg|th|tj|tk|tl|tm|tn|to|tp|tr|tt|tv|tw|tz|ua|ug|uk|us|uy|uz|va|vc|ve|vg|vi|vn|vu|wf|ws|ye|yt|yu|za|zm|zw))“,”gi“);var o=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.disableEventHandling=!1,this.subscribe(”editableKeypress“,this.onKeypress.bind(this)),this.subscribe(”editableBlur“,this.onBlur.bind(this)),this.document.execCommand(”AutoUrlDetect“,!1,!1)},isLastInstance:function(){for(var t=0,e=0;e<this.window._mediumEditors.length;e++){var n=this.window._mediumEditors;null!==n&&void 0!==n.getExtensionByName(”autoLink“)&&t++}return 1===t},destroy:function(){this.document.queryCommandSupported(”AutoUrlDetect“)&&this.isLastInstance()&&this.document.execCommand(”AutoUrlDetect“,!1,!0)},onBlur:function(t,e){this.performLinking(e)},onKeypress:function(e){this.disableEventHandling||t.util.isKey(e,)&&(clearTimeout(this.performLinkingTimeout),this.performLinkingTimeout=setTimeout(function(){try{var t=this.base.exportSelection();this.performLinking(e.target)&&this.base.importSelection(t,!0)}catch(t){window.console&&window.console.error(”Failed to perform linking“,t),this.disableEventHandling=!0}}.bind(this),0))},performLinking:function(e){var n=t.util.splitByBlockElements(e),r=!1;0===n.length&&(n=);for(var i=0;is
”px; width: 10px; height: 10px; overflow: hidden; opacity: 0“),u.setAttribute(”contentEditable“,!0),u.innerHTML=”%ME_PASTEBIN%“,this.document.body.appendChild(u),this.on(u,”focus“,r),this.on(u,”focusin“,r),this.on(u,”focusout“,r),u.focus(),t.selection.selectNode(u,this.document),this.boundHandlePaste||(this.boundHandlePaste=this.handlePasteBinPaste.bind(this)),this.on(u,”paste“,this.boundHandlePaste)},removePasteBin:function(){null!==e&&(t.selection.selectRange(this.document,e),e=null),null!==n&&(n=null);var i=this.getPasteBin();i&&i&&(this.off(i,”focus“,r),this.off(i,”focusin“,r),this.off(i,”focusout“,r),this.off(i,”paste“,this.boundHandlePaste),i.parentElement.removeChild(i))},getPasteBin:function(){return this.document.getElementById(this.pasteBinId)},getPasteBinHtml:function(){var t=this.getPasteBin();if(!t)return!1;if(t.firstChild&&”mcepastebin“===t.firstChild.id)return!1;var e=t.innerHTML;return!(!e||”%ME_PASTEBIN%“===e)&&e},cleanPaste:function(t){var e,n,r,i,o=/
*>)?$/gi),”“],[new RegExp(/<span class=”Apple-converted-space“>s+</span>/g),” “],[new RegExp(/<br class=”Apple-interchange-newline“>/g),”
“],[new “>font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)*>/gi),‘<span class=”replace-with italic bold“>’],[new “>font-style:italic*>/gi),‘<span class=”replace-with italic“>’],[new “>font-weight:(bold|700)*>/gi),‘<span class=”replace-with bold“>’],[new RegExp(/<(/?)(i|b|a)>/gi),”<$1$2>“],[new RegExp(/<a(?:(?!href).)+href=(?:"|”|“|”|“|”)(((?!"|”|“|“|“|”).)*)(?:"|”|“|”|“|”)(?:(?!>).)*>/gi),‘<a href=“$1”>’],[new RegExp(/</p>n+/gi),“</p>”],[new RegExp(/n+<p/gi),“<p”],[new RegExp(/<\/?o:*>/gi),“”],[new RegExp(/<![if !supportLists]>(((?!>/gi),“$1”]],this.cleanReplacements||[]);for(e=0;e
”).join(“r.innerHTML
“”:i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll(“span”),n=0;n<o.length;n+=1){if(r=o,t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=o}(),l=t.Extension.extend({name:“placeholder”,text:“Type your text”,hideOnClick:!0,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initPlaceholders(),this.attachEventHandlers()},initPlaceholders:function(){this.getEditorElements().forEach(this.initElement,this)},handleAddElement:function(t,e){this.initElement(e)},initElement:function(t){t.getAttribute(“data-placeholder”)||t.setAttribute(“data-placeholder”,this.text),this.updatePlaceholder(t)},destroy:function(){this.getEditorElements().forEach(this.cleanupElement,this)},handleRemoveElement:function(t,e){this.cleanupElement(e)},cleanupElement:function(t){t.getAttribute(“data-placeholder”)===this.text&&t.removeAttribute(“data-placeholder”)},showPlaceholder:function(e){e&&(t.util.isFF&&0===e.childNodes.length?(e.classList.add(“medium-editor-placeholder-relative”),e.classList.remove(“medium-editor-placeholder”)):(e.classList.add(“medium-editor-placeholder”),e.classList.remove(“medium-editor-placeholder-relative”)))},hidePlaceholder:function(t){t&&(t.classList.remove(“medium-editor-placeholder”),t.classList.remove(“medium-editor-placeholder-relative”))},updatePlaceholder:function(t,e){if(t.querySelector(“img, blockquote, ul, ol, table”)||“”!==t.textContent.replace(/^s+|s+$/g,“”))return this.hidePlaceholder(t);e||this.showPlaceholder(t)},attachEventHandlers:function(){this.hideOnClick&&this.subscribe(“focus”,this.handleFocus.bind(this)),this.subscribe(“editableInput”,this.handleInput.bind(this)),this.subscribe(“blur”,this.handleBlur.bind(this)),this.subscribe(“addElement”,this.handleAddElement.bind(this)),this.subscribe(“removeElement”,this.handleRemoveElement.bind(this))},handleInput:function(t,e){var n=this.hideOnClick&&e===this.base.getFocusedElement();this.updatePlaceholder(e,n)},handleFocus:function(t,e){this.hidePlaceholder(e)},handleBlur:function(t,e){this.updatePlaceholder(e)}}),t.extensions.placeholder=l,c=t.Extension.extend({name:“toolbar”,align:“center”,allowMultiParagraphSelection:!0,buttons:,diffLeft:0,diffTop:-10,firstButtonClass:“medium-editor-button-first”,lastButtonClass:“medium-editor-button-last”,standardizeSelectionStart:!1,static:!1,sticky:!1,stickyTopOffset:0,updateOnEmptySelection:!1,relativeContainer:null,init:function(){t.Extension.prototype.init.apply(this,arguments),this.initThrottledMethods(),this.relativeContainer?this.relativeContainer.appendChild(this.getToolbarElement()):this.getEditorOption(“elementsContainer”).appendChild(this.getToolbarElement())},forEachExtension:function(t,e){return this.base.extensions.forEach((function(n){if(n!==this)return t.apply(e||this,arguments)}),this)},createToolbar:function(){var t=this.document.createElement(“div”);return t.id=“medium-editor-toolbar-”+this.getEditorId(),t.className=“medium-editor-toolbar”,this.static?t.className+=“ static-toolbar”:this.relativeContainer?t.className+=“ medium-editor-relative-toolbar”:t.className+=“ medium-editor-stalker-toolbar”,t.appendChild(this.createToolbarButtons()),this.forEachExtension((function(e){e.hasForm&&t.appendChild(e.getForm())})),this.attachEventHandlers(),t},createToolbarButtons:function(){var e,n,r,i,o,a,s=this.document.createElement(“ul”);return s.id=“medium-editor-toolbar-actions”+this.getEditorId(),s.className=“medium-editor-toolbar-actions”,s.style.display=“block”,this.buttons.forEach((function®{“string”==typeof r?(o=r,a=null):(o=r.name,a=r),(i=this.base.addBuiltInExtension(o,a))&&“function”==typeof i.getButton&&(n=i.getButton(this.base),e=this.document.createElement(“li”),t.util.isElement(n)?e.appendChild(n):e.innerHTML=n,s.appendChild(e))}),this),(r=s.querySelectorAll(“button”)).length>0&&(r.classList.add(this.firstButtonClass),r.classList.add(this.lastButtonClass)),s},destroy:function(){this.toolbar&&(this.toolbar.parentNode&&this.toolbar.parentNode.removeChild(this.toolbar),delete this.toolbar)},getInteractionElements:function(){return this.getToolbarElement()},getToolbarElement:function(){return this.toolbar||(this.toolbar=this.createToolbar()),this.toolbar},getToolbarActionsElement:function(){return this.getToolbarElement().querySelector(“.medium-editor-toolbar-actions”)},initThrottledMethods:function(){this.throttledPositionToolbar=t.util.throttle(function(){this.base.isActive&&this.positionToolbarIfShown()}.bind(this))},attachEventHandlers:function(){this.subscribe(“blur”,this.handleBlur.bind(this)),this.subscribe(“focus”,this.handleFocus.bind(this)),this.subscribe(“editableClick”,this.handleEditableClick.bind(this)),this.subscribe(“editableKeyup”,this.handleEditableKeyup.bind(this)),this.on(this.document.documentElement,“mouseup”,this.handleDocumentMouseup.bind(this)),this.static&&this.sticky&&this.on(this.window,“scroll”,this.handleWindowScroll.bind(this),!0),this.on(this.window,“resize”,this.handleWindowResize.bind(this))},handleWindowScroll:function(){this.positionToolbarIfShown()},handleWindowResize:function(){this.throttledPositionToolbar()},handleDocumentMouseup:function(e){if(e&&e.target&&t.util.isDescendant(this.getToolbarElement(),e.target))return!1;this.checkState()},handleEditableClick:function(){setTimeout(function(){this.checkState()}.bind(this),0)},handleEditableKeyup:function(){this.checkState()},handleBlur:function(){clearTimeout(this.hideTimeout),clearTimeout(this.delayShowTimeout),this.hideTimeout=setTimeout(function(){this.hideToolbar()}.bind(this),1)},handleFocus:function(){this.checkState()},isDisplayed:function(){return this.getToolbarElement().classList.contains(“medium-editor-toolbar-active”)},showToolbar:function(){clearTimeout(this.hideTimeout),this.isDisplayed()||(this.getToolbarElement().classList.add(“medium-editor-toolbar-active”),this.trigger(“showToolbar”,{},this.base.getFocusedElement()))},hideToolbar:function(){this.isDisplayed()&&(this.getToolbarElement().classList.remove(“medium-editor-toolbar-active”),this.trigger(“hideToolbar”,{},this.base.getFocusedElement()))},isToolbarDefaultActionsDisplayed:function(){return“block”===this.getToolbarActionsElement().style.display},hideToolbarDefaultActions:function(){this.isToolbarDefaultActionsDisplayed()&&(this.getToolbarActionsElement().style.display=“none”)},showToolbarDefaultActions:function(){this.hideExtensionForms(),this.isToolbarDefaultActionsDisplayed()||(this.getToolbarActionsElement().style.display=“block”),this.delayShowTimeout=this.base.delay(function(){this.showToolbar()}.bind(this))},hideExtensionForms:function(){this.forEachExtension((function(t){t.hasForm&&t.isDisplayed()&&t.hideForm()}))},multipleBlockElementsSelected:function(){var e=new *>“,”r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth/2,l=this.diffLeft-u,c=this.getEditorOption(“elementsContainer”),f=.indexOf(window.getComputedStyle©.getPropertyValue(“position”))>-1,d={},p={};f?(i=c.getBoundingClientRect(),.forEach((function(t){p=n-i})),p.width=n.width,p.height=n.height,n=p,o=i.width,d.top=c.scrollTop):d.top=this.window.pageYOffset,r=n.left+n.width/2,d.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),d.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),d.top+=this.diffTop),r.forEach((function(t){a.style=d+(isNaN(d)?“”:“px”)}))}}),t.extensions.toolbar=c,f=t.Extension.extend({init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe(“editableDrag”,this.handleDrag.bind(this)),this.subscribe(“editableDrop”,this.handleDrop.bind(this))},handleDrag:function(t){t.preventDefault(),t.dataTransfer.dropEffect=“copy”,“dragover”===t.type?t.target.classList.add(“medium-editor-dragover”):“dragleave”===t.type&&t.target.classList.remove(“medium-editor-dragover”)},handleDrop:function(e){e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&Array.prototype.slice.call(e.dataTransfer.files,0).some(function(e){var n,r;e.type.match(“image”)&&((n=new FileReader).readAsDataURL(e),r=“medium-img-”+ +new Date,t.util.insertHTMLCommand(this.document,‘<img class=“medium-editor-image-loading” id=“’r
‘” />’),n.onload=function(){var t=this.document.getElementById®;t&&(t.removeAttribute(“id”),t.removeAttribute(“class”),t.src=n.result)}.bind(this))}.bind(this)),e.target.classList.remove(“medium-editor-dragover”)}}),t.extensions.imageDragging=f,function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r||“”===r.trim()||void 0!==r&&“”===r.trim())&&e.preventDefault()}function n(e,n){if(this.options.disableReturn||n.getAttribute(“data-disable-return”))e.preventDefault();else if(this.options.disableDoubleReturn||n.getAttribute(“data-disable-double-return”)){var r=t.selection.getSelectionStart(this.options.ownerDocument);(r&&“”===r.textContent.trim()&&“li”!==r.nodeName.toLowerCase()||r.previousElementSibling&&“br”!==r.previousElementSibling.nodeName.toLowerCase()&&“”===r.previousElementSibling.textContent.trim())&&e.preventDefault()}}function r(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);“pre”===(n&&n.nodeName.toLowerCase())&&(e.preventDefault(),t.util.insertHTMLCommand(this.options.ownerDocument,“ ”)),t.util.isListItem(n)&&(e.preventDefault(),e.shiftKey?this.options.ownerDocument.execCommand(“outdent”,!1,null):this.options.ownerDocument.execCommand(“indent”,!1,null))}function i(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument),i=r.nodeName.toLowerCase(),o=/^(s+|
)?$/i,a=/hd/i;t.util.isKey(e,)&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets®.left?t.util.isKey(e,t.util.keyCode.BACKSPACE)&&o.test(r.previousElementSibling.innerHTML)?(r.previousElementSibling.parentNode.removeChild(r.previousElementSibling),e.preventDefault()):!this.options.disableDoubleReturn&&t.util.isKey(e,t.util.keyCode.ENTER)&&((n=this.options.ownerDocument.createElement(“p”)).innerHTML=“
”,r.previousElementSibling.parentNode.insertBefore(n,r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.DELETE)&&r.nextElementSibling&&r.previousElementSibling&&!a.test(i)&&o.test(r.innerHTML)&&a.test(r.nextElementSibling.nodeName.toLowerCase())?(t.selection.moveCursor(this.options.ownerDocument,r.nextElementSibling),r.previousElementSibling.parentNode.removeChild®,e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&“li”===i&&o.test(r.innerHTML)&&!r.previousElementSibling&&!r.parentElement.previousElementSibling&&r.nextElementSibling&&“li”===r.nextElementSibling.nodeName.toLowerCase()?((n=this.options.ownerDocument.createElement(“p”)).innerHTML=“
”,r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild®,e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,“blockquote”)&&0===t.selection.getCaretOffsets®.left?(e.preventDefault(),t.util.execFormatBlock(this.options.ownerDocument,“p”)):t.util.isKey(e,t.util.keyCode.ENTER)&&!1!==t.util.getClosestTag(r,“blockquote”)&&0===t.selection.getCaretOffsets®.right?((n=this.options.ownerDocument.createElement(“p”)).innerHTML=“
”,r.parentElement.insertBefore(n,r.nextSibling),t.selection.moveCursor(this.options.ownerDocument,n),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&t.util.isMediumEditorElement(r.parentElement)&&!r.previousElementSibling&&r.nextElementSibling&&o.test(r.innerHTML)&&(e.preventDefault(),t.selection.moveCursor(this.options.ownerDocument,r.nextSibling),r.parentElement.removeChild®)}function o(e){var n=t.selection.getSelectionStart(this.options.ownerDocument);n&&(t.util.isMediumEditorElement(n)&&0===n.children.length&&!t.util.isBlockContainer(n)&&this.options.ownerDocument.execCommand(“formatBlock”,!1,“p”),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(n)||t.util.isBlockContainer(n)||(“a”===n.nodeName.toLowerCase()?this.options.ownerDocument.execCommand(“unlink”,!1,null):e.shiftKey||e.ctrlKey||this.options.ownerDocument.execCommand(“formatBlock”,!1,“p”)))}function a(t,e){var n=e.parentNode.querySelector(‘textarea’);n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=),this.id||(this.id=t._mediumEditors.length),t._mediumEditors=this}function u(t){t._mediumEditors&&t._mediumEditors&&(t._mediumEditors=null)}function l(e,n,r){var i=[];if(e||(e=),“string”==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=),r)for(var o=0;o<e.length;o++){var a=e;!t.util.isElement(a)||a.getAttribute(“data-medium-editor-element”)||a.getAttribute(“medium-editor-textarea-id”)||i.push(a)}else i=Array.prototype.slice.apply(e);return i}function c(t){var e=t.parentNode.querySelector(‘textarea’);e&&(e.classList.remove(“medium-editor-hidden”),e.removeAttribute(“medium-editor-textarea-id”)),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e,n){return“function”==typeof(t=function(t,e){return Object.keys(e).forEach((function(n){void 0===t&&(t=e)})),t}(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n})).init&&t.init(),t.name||(t.name=e),t}function d(){return!this.elements.every((function(t){return!!t.getAttribute(“data-disable-toolbar”)}))&&!1!==this.options.toolbar}function p(){return!!d.call(this)&&!1!==this.options.anchorPreview}function h(){return!1!==this.options.placeholder}function v(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function y(){return!1!==this.options.keyboardCommands}function g(){return!this.options.extensions.imageDragging}function b(t){for(var e=this.options.ownerDocument.createElement(“div”),n=Date.now(),r=“medium-editor-”+n,i=t.attributes;this.options.ownerDocument.getElementById®;)n++,r=“medium-editor-”+n;e.className=t.className,e.id=r,e.innerHTML=t.value,t.setAttribute(“medium-editor-textarea-id”,r);for(var o=0,a=i.length;o.nodeName)||e.setAttribute(i.nodeName,i.nodeValue);return t.form&&this.on(t.form,“reset”,function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById®)}.bind(this)),t.classList.add(“medium-editor-hidden”),t.parentNode.insertBefore(e,t),e}function w(e,r){if(!e.getAttribute(“data-medium-editor-element”)){“textarea”===e.nodeName.toLowerCase()&&(e=b.call(this,e),this.instanceHandleEditableInput||(this.instanceHandleEditableInput=a.bind(this),this.subscribe(“editableInput”,this.instanceHandleEditableInput))),this.options.disableEditing||e.getAttribute(“data-disable-editing”)||(e.setAttribute(“contentEditable”,!0),e.setAttribute(“spellcheck”,this.options.spellcheck)),this.instanceHandleEditableKeydownEnter||(e.getAttribute(“data-disable-return”)||e.getAttribute(“data-disable-double-return”))&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe(“editableKeydownEnter”,this.instanceHandleEditableKeydownEnter)),this.options.disableReturn||e.getAttribute(“data-disable-return”)||this.on(e,“keyup”,o.bind(this));var i=t.util.guid();e.setAttribute(“data-medium-editor-element”,!0),e.classList.add(“medium-editor-element”),e.setAttribute(“role”,“textbox”),e.setAttribute(“aria-multiline”,!0),e.setAttribute(“data-medium-editor-editor-index”,r),e.setAttribute(“medium-editor-index”,i),E=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function _(){this.subscribe(“editableKeydownTab”,r.bind(this)),this.subscribe(“editableKeydownDelete”,i.bind(this)),this.subscribe(“editableKeydownEnter”,i.bind(this)),this.options.disableExtraSpaces&&this.subscribe(“editableKeydownSpace”,e.bind(this)),this.instanceHandleEditableKeydownEnter||(this.options.disableReturn||this.options.disableDoubleReturn)&&(this.instanceHandleEditableKeydownEnter=n.bind(this),this.subscribe(“editableKeydownEnter”,this.instanceHandleEditableKeydownEnter))}function O(){if(this.extensions=[],Object.keys(this.options.extensions).forEach((function(t){“toolbar”!==t&&this.options.extensions&&this.extensions.push(f(this.options.extensions,t,this))}),this),g.call(this)){var e=this.options.fileDragging;e||(e={},m.call(this)||(e.allowedTypes=[])),this.addBuiltInExtension(“fileDragging”,e)}var n={paste:!0,“anchor-preview”:p.call(this),autoLink:v.call(this),keyboardCommands:y.call(this),placeholder:h.call(this)};Object.keys(n).forEach((function(t){n&&this.addBuiltInExtension(t)}),this);var r=this.options.extensions.toolbar;if(!r&&d.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(f(r,“toolbar”,this))}function k(e,n){return n&&[].forEach((function(e){n.hasOwnProperty(e)&&void 0!==n[e]&&t.util.deprecated(e,e,“v6.0.0”)})),t.util.defaults({},n,e)}function x(e,n){var r,i;if(r=/^append-(.+)$/gi.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r);if(“fontSize”===e)return n.size&&t.util.deprecated(“.size option for fontSize command”,“.value”,“6.0.0”),i=n.value||n.size,this.options.ownerDocument.execCommand(“fontSize”,!1,i);if(“fontName”===e)return n.name&&t.util.deprecated(“.name option for fontName command”,“.value”,“6.0.0”),i=n.value||n.name,this.options.ownerDocument.execCommand(“fontName”,!1,i);if(“createLink”===e)return this.createLink(n);if(“image”===e){var o=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand(“insertImage”,!1,o)}if(“html”===e){var a=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,a)}if(/justify(*)$/g.exec(e)){var s=this.options.ownerDocument.execCommand(e,!1,null),u=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return u&&C.call(this,t.util.getTopBlockContainer(u)),s}return i=n&&n.value,this.options.ownerDocument.execCommand(e,!1,i)}function C(e){if(e){var n,r=Array.prototype.slice.call(e.childNodes).filter((function(t){var e=“div”===t.nodeName.toLowerCase();return e&&!n&&(n=t.style.textAlign),e}));r.length&&(this.saveSelection(),r.forEach((function(e){if(e.style.textAlign===n){var r=e.lastChild;if®{t.util.unwrap(e,this.options.ownerDocument);var i=this.options.ownerDocument.createElement(“BR”);r.parentNode.insertBefore(i,r.nextSibling)}}}),this),e.style.textAlign=n,this.restoreSelection())}}var E={};t.prototype={init:function(t,e){return this.options=k.call(this,this.defaults,e),this.origElements=t,this.options.elementsContainer||(this.options.elementsContainer=this.options.ownerDocument.body),this.setup()},setup:function(){this.isActive||(s.call(this,this.options.contentWindow),this.events=new t.Events(this),this.elements=[],this.addElements(this.origElements),0!==this.elements.length&&(this.isActive=!0,O.call(this),_.call(this)))},destroy:function(){this.isActive&&(this.isActive=!1,this.extensions.forEach((function(t){“function”==typeof t.destroy&&t.destroy()}),this),this.events.destroy(),this.elements.forEach((function(t){this.options.spellcheck&&(t.innerHTML=t.innerHTML),t.removeAttribute(“contentEditable”),t.removeAttribute(“spellcheck”),t.removeAttribute(“data-medium-editor-element”),t.classList.remove(“medium-editor-element”),t.removeAttribute(“role”),t.removeAttribute(“aria-multiline”),t.removeAttribute(“medium-editor-index”),t.removeAttribute(“data-medium-editor-editor-index”),t.getAttribute(“medium-editor-textarea-id”)&&c(t)}),this),this.elements=[],this.instanceHandleEditableKeydownEnter=null,this.instanceHandleEditableInput=null,u.call(this,this.options.contentWindow))},on:function(t,e,n,r){return this.events.attachDOMEvent(t,e,n,r),this},off:function(t,e,n,r){return this.events.detachDOMEvent(t,e,n,r),this},subscribe:function(t,e){return this.events.attachCustomEvent(t,e),this},unsubscribe:function(t,e){return this.events.detachCustomEvent(t,e),this},trigger:function(t,e,n){return this.events.triggerCustomEvent(t,e,n),this},delay:function(t){var e=this;return setTimeout((function(){e.isActive&&t()}),this.options.delay)},serialize:function(){var t,e={},n=this.elements.length;for(t=0;t* The buffer module from node.js, for the browser.
*
* @author Feross Aboukhadijeh <http://feross.org>
* @license MIT
*/
t
“>”},u.prototype.compare=function(t,e,n,r,i){if(!u.isBuffer(t))throw new TypeError(“Argument must be a Buffer”);if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError(“out of range index”);if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(this===t)return 0;for(var o=(i>>>=0)-(r>>>=0),a=(n>>>=0)-(e>>>=0),s=Math.min(o,a),l=this.slice(r,i),c=t.slice(e,n),f=0;f!==c){o=l,a=c;break}return o<a?-1:a<o?1:0},u.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},u.prototype.indexOf=function(t,e,n){return y(this,t,e,n,!0)},u.prototype.lastIndexOf=function(t,e,n){return y(this,t,e,n,!1)},u.prototype.write=function(t,e,n,r){if(void 0===e)r=“utf8”,n=this.length,e=0;else if(void 0===n&&“string”==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error(“Buffer.write(string, encoding, offset[, length]) is no longer supported”);e|=0,isFinite(n)?(n|=0,void 0===r&&(r=“utf8”)):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError(“Attempt to write outside buffer bounds”);r||(r=“utf8”);for(var o=!1;;)switch®{case“hex”:return b(this,t,e,n);case“utf8”:case“utf-8”:return w(this,t,e,n);case“ascii”:return _(this,t,e,n);case“latin1”:case“binary”:return O(this,t,e,n);case“base64”:return k(this,t,e,n);case“ucs2”:case“ucs-2”:case“utf16le”:case“utf-16le”:return x(this,t,e,n);default:if(o)throw new TypeError(“Unknown encoding: ”+r);r=(“”+r).toLowerCase(),o=!0}},u.prototype.toJSON=function(){return{type:“Buffer”,data:Array.prototype.slice.call(this._arr||this,0)}};function j(t,e,n){var r=“”;n=Math.min(t.length,n);for(var i=e;is?s:a+16383));1===i?(e=t,r+”==“)):2===i&&(e=(t<<8)+t,>4&63“>r+r+”=“));return o.join(”“)};for(var r=[],i=,o=”undefined“!=typeof Uint8Array?Uint8Array:Array,a=”ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/“,s=0,u=a.length;s=a,i=s;function l(t){var e=t.length;if(e%4>0)throw new Error(”Invalid string. Length must be a multiple of 4“);var n=t.indexOf(”=“);return-1===n&&(n=e),}function c(t,e,n){for(var i,o,a=[],s=e;s>1,c=-7,f=n?i-1:0,d=n?-1:1,p=t;for(f+=d,o=p&(1<<-c)-1,p>>=-c,c+=s;c>0;o=256*o+t,f+=d,c-=8);for(a=o&(1<<-c)-1,o>>=-c,c+=r;c>0;a=256*a+t,f+=d,c-=8);if(0===o)o=1-l;else{if(o===u)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),o-=l}return(p?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,l=8*o-i-1,c=(1<t:t
“”},t.prototype.getHtml=function(){var t=this.getHtmlParts();return t.openingTag+t.content+t.closingTag},t.prototype.getHtmlParts=function(){if(this.op.isJustNewline()&&!this.op.isContainerBlock())return{openingTag:“”,closingTag:“”,content:i.NewLine};var t=this.getTags(),e=this.getTagAttributes();!t.length&&e.length&&t.push(“span”);for(var n=[],o=,a=0,s=t;a<s.length;a++){var u=s;n.push(r.makeStartTag(u,e)),o.push(“img”===u?“”:r.makeEndTag(u)),e=[]}return o.reverse(),{openingTag:n.join(“”),content:this.getContent(),closingTag:o.join(“”)}},t.prototype.getContent=function(){if(this.op.isContainerBlock())return“”;if(this.op.isMentions())return this.op.insert.value;var t=this.op.isFormula()||this.op.isText()?this.op.insert.value:“”;return this.options.encodeHtml&&r.encodeHtml(t)||t},t.prototype.getCssClasses=function(){var t=this.op.attributes,e=;return this.options.allowBackgroundClasses&&e.push(“background”),e.filter((function(e){return!!t})).filter((function(e){return“background”!==e||u.OpAttributeSanitizer.IsValidColorLiteral(t)})).map((function(e){return e+“-”+t})).concat(this.op.isFormula()?“formula”:[]).concat(this.op.isVideo()?“video”:).concat(this.op.isImage()?“image”:[]).map(this.prefixClass.bind(this))},t.prototype.getCssStyles=function(){var t=this.op.attributes,e=[];return this.options.allowBackgroundClasses||e.push(),e.filter((function(e){return!!t[e]})).map((function(e){return s.preferSecond(e)+“:”+t[e]}))},t.prototype.getTagAttributes=function(){if(this.op.attributes.code&&!this.op.isLink())return[];var e=function(t,e){return{key:t,value:e}},n=this.getCssClasses(),i=n.length?[e(“class”,n.join(“ ”))]:[];if(this.op.isImage())return this.op.attributes.width&&(i=i.concat(e(“width”,this.op.attributes.width))),i.concat(e(“src”,o.sanitize(this.op.insert.value+“”)+“”));if(this.op.isACheckList())return i.concat(e(“data-checked”,this.op.isCheckedList()?“true”:“false”));if(this.op.isFormula()||this.op.isContainerBlock())return i;if(this.op.isVideo())return i.concat(e(“frameborder”,“0”),e(“allowfullscreen”,“true”),e(“src”,o.sanitize(this.op.insert.value+“”)+“”));if(this.op.isMentions()){var a=this.op.attributes.mention;return a.class&&(i=i.concat(e(“class”,a.class))),i=a&&a.slug?i.concat(e(“href”,r.encodeLink(a+“/”+a.slug))):i.concat(e(“href”,“about:blank”)),a.target&&(i=i.concat(e(“target”,a.target))),i}var s=this.getCssStyles(),u=s.length?:[];if(i=i.concat(u),this.op.isLink()){var l=this.op.attributes.target||this.options.linkTarget;i=i.concat(e(“href”,r.encodeLink(this.op.attributes.link))).concat(l?e(“target”,l):[]),this.options.linkRel&&t.IsValidRel(this.options.linkRel)&&i.push(e(“rel”,this.options.linkRel))}return i},t.prototype.getTags=function(){var t=this.op.attributes;if(!this.op.isText())return;for(var e=this.options.paragraphTag||“p”,n=0,r=[,[“code-block”,“pre”],,[“header”],,[“direction”,e],];n<r.length;n++){var o=r,a=o;if(t)return“header”===a?[“h”+t]:[s.preferSecond(o)]}return[,[“mentions”,“a”],,[“bold”,“strong”],,[“strike”,“s”],,[“code”]].filter((function(e){return!!t[e]})).map((function(e){return“script”===e?t[e]===i.ScriptType.Sub?“sub”:“sup”:s.preferSecond(e)}))},t.IsValidRel=function(t){return!!t.match(/^{1,50}$/i)},t}();e.OpToHtmlConverter=l},223:function(t,e,n){“use strict”;Object.defineProperty(e,“__esModule”,{value:!0});var r=n(98),i=n(102),o=n(73),a=function(){function t(){}return t.pairOpsWithTheirBlock=function(t){for(var e,n=[],r=function(t){return!(t.isJustNewline()||t.isCustomBlock()||t.isVideo()||t.isContainerBlock())},a=function(t){return t.isInline()},s=t.length-1;s>=0;s–){var u=t;u.isVideo()?n.push(new o.VideoItem(u)):u.isCustomBlock()?n.push(new o.BlotBlock(u)):u.isContainerBlock()?(e=i.sliceFromReverseWhile(t,s-1,r),n.push(new o.BlockGroup(u,e.elements)),s=e.sliceStartsAt>-1?e.sliceStartsAt:s):(e=i.sliceFromReverseWhile(t,s-1,a),n.push(new o.InlineGroup(e.elements.concat(u))),s=e.sliceStartsAt>-1?e.sliceStartsAt:s)}return n.reverse(),n},t.groupConsecutiveSameStyleBlocks=function(e,n){return void 0===n&&(n={header:!0,codeBlocks:!0,blockquotes:!0}),i.groupConsecutiveElementsWhile(e,(function(e,r){return e instanceof o.BlockGroup&&r instanceof o.BlockGroup&&(n.codeBlocks&&t.areBothCodeblocks(e,r)||n.blockquotes&&t.areBothBlockquotesWithSameAdi(e,r)||n.header&&t.areBothSameHeadersWithSameAdi(e,r))}))},t.reduceConsecutiveSameStyleBlocksToOne=function(t){var e=r.DeltaInsertOp.createNewLineOp();return t.map((function(t){if(!Array.isArray(t))return t instanceof o.BlockGroup&&!t.ops.length&&t.ops.push(e),t;var n=t.length-1;return t.ops=i.flatten(t.map((function(t,r){return t.ops.length?t.ops.concat(r* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(80),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.concurrent_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112,h=i?Symbol.for("react.suspense"):60113,v=i?Symbol.for("react.memo"):60115,m=i?Symbol.for("react.lazy"):60116,y="function"==typeof Symbol&&Symbol.iterator;function g(t,e,n,r,i,o,a,s){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;(t=Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw t.framesToPop=1,t}}function b(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);g(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}var w={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},_={};function O(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||w}function k(){}function x(t,e,n){this.props=t,this.context=e,this.refs=_,this.updater=n||w}O.prototype.isReactComponent={},O.prototype.setState=function(t,e){"object"!=typeof t&&"function"!=typeof t&&null!=t&&b("85"),this.updater.enqueueSetState(this,t,e,"setState")},O.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},k.prototype=O.prototype;var C=x.prototype=new k;C.constructor=x,r(C,O.prototype),C.isPureReactComponent=!0;var E={current:null,currentDispatcher:null},j=Object.prototype.hasOwnProperty,S={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,n){var r=void 0,i={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)j.call(e,r)&&!S.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:E.current}}function A(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var P=/\/+/g,N=[];function L(t,e,n,r){if(N.length){var i=N.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function I(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>N.length&&N.push(t)}function D(t,e,n){return null==t?0:function t(e,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return r(i,e,""===n?"."+R(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=n+R(s=e[l],l);u+=t(s,c,r,i)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=y&&e[y]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=t(s=s.value,c=n+R(s,l++),r,i);else"object"===s&&b("31","[object Object]"===(r=""+e)?"object with keys {"+Object.keys(e).join(", ")+"}":r,"");return u}(t,"",e,n)}function R(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function M(t,e){t.func.call(t.context,e,t.count++)}function B(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?q(t,r,n,(function(t){return t})):null!=t&&(A(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(P,"$&/")+"/")+n)),r.push(t))}function q(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(P,"$&/")+"/"),D(t,B,e=L(e,o,r,i)),I(e)}var F={Children:{map:function(t,e,n){if(null==t)return t;var r=[];return q(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;D(t,M,e=L(null,null,e,n)),I(e)},count:function(t){return D(t,(function(){return null}),null)},toArray:function(t){var e=[];return q(t,e,null,(function(t){return t})),e},only:function(t){return A(t)||b("143"),t}},createRef:function(){return{current:null}},Component:O,PureComponent:x,createContext:function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},forwardRef:function(t){return{$$typeof:p,render:t}},lazy:function(t){return{$$typeof:m,_ctor:t,_status:-1,_result:null}},memo:function(t,e){return{$$typeof:v,type:t,compare:void 0===e?null:e}},Fragment:s,StrictMode:u,Suspense:h,createElement:T,cloneElement:function(t,e,n){null==t&&b("267",t);var i=void 0,a=r({},t.props),s=t.key,u=t.ref,l=t._owner;if(null!=e){void 0!==e.ref&&(u=e.ref,l=E.current),void 0!==e.key&&(s=""+e.key);var c=void 0;for(i in t.type&&t.type.defaultProps&&(c=t.type.defaultProps),e)j.call(e,i)&&!S.hasOwnProperty(i)&&(a[i]=void 0===e[i]&&void 0!==c?c[i]:e[i])}if(1===(i=arguments.length-2))a.children=n;else if(1<i){c=Array(i);for(var f=0;f<i;f++)c[f]=arguments[f+2];a.children=c}return{$$typeof:o,type:t.type,key:s,ref:u,props:a,_owner:l}},createFactory:function(t){var e=T.bind(null,t);return e.type=t,e},isValidElement:A,version:"16.6.3",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:E,assign:r}};F.unstable_ConcurrentMode=d,F.unstable_Profiler=l;var z={default:F},U=z&&F||z;t.exports=U.default||U},226:function(t,e,n){"use strict";
* react-dom.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(1),i=n(80),o=n(227);function a(t,e,n,r,i,o,a,s){if(!t){if(t=void 0,void 0===e)t=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var u=[n,r,i,o,a,s],l=0;(t=Error(e.replace(/%s/g,(function(){return u[l++]})))).name="Invariant Violation"}throw t.framesToPop=1,t}}function s(t){for(var e=arguments.length-1,n="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=0;r<e;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);a(!1,"Minified React error #"+t+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",n)}function u(t,e,n,r,i,o,a,s,u){var l=Array.prototype.slice.call(arguments,3);try{e.apply(n,l)}catch(t){this.onError(t)}}r||s("227");var l=!1,c=null,f=!1,d=null,p={onError:function(t){l=!0,c=t}};function h(t,e,n,r,i,o,a,s,f){l=!1,c=null,u.apply(p,arguments)}var v=null,m={};function y(){if(v)for(var t in m){var e=m[t],n=v.indexOf(t);if(-1<n||s("96",t),!b[n])for(var r in e.extractEvents||s("97",t),b[n]=e,n=e.eventTypes){var i=void 0,o=n[r],a=e,u=r;w.hasOwnProperty(u)&&s("99",u),w[u]=o;var l=o.phasedRegistrationNames;if(l){for(i in l)l.hasOwnProperty(i)&&g(l[i],a,u);i=!0}else o.registrationName?(g(o.registrationName,a,u),i=!0):i=!1;i||s("98",r,t)}}}function g(t,e,n){_[t]&&s("100",t),_[t]=e,O[t]=e.eventTypes[n].dependencies}var b=[],w={},_={},O={},k=null,x=null,C=null;function E(t,e,n){var r=t.type||"unknown-event";t.currentTarget=C(n),function(t,e,n,r,i,o,a,u,p){if(h.apply(this,arguments),l){if(l){var v=c;l=!1,c=null}else s("198"),v=void 0;f||(f=!0,d=v)}}(r,e,void 0,t),t.currentTarget=null}function j(t,e){return null==e&&s("30"),null==t?e:Array.isArray(t)?Array.isArray(e)?(t.push.apply(t,e),t):(t.push(e),t):Array.isArray(e)?[t].concat(e):[t,e]}function S(t,e,n){Array.isArray(t)?t.forEach(e,n):t&&e.call(n,t)}var T=null;function A(t){if(t){var e=t._dispatchListeners,n=t._dispatchInstances;if(Array.isArray(e))for(var r=0;r<e.length&&!t.isPropagationStopped();r++)E(t,e[r],n[r]);else e&&E(t,e,n);t._dispatchListeners=null,t._dispatchInstances=null,t.isPersistent()||t.constructor.release(t)}}var P={injectEventPluginOrder:function(t){v&&s("101"),v=Array.prototype.slice.call(t),y()},injectEventPluginsByName:function(t){var e,n=!1;for(e in t)if(t.hasOwnProperty(e)){var r=t[e];m.hasOwnProperty(e)&&m[e]===r||(m[e]&&s("102",e),m[e]=r,n=!0)}n&&y()}};function N(t,e){var n=t.stateNode;if(!n)return null;var r=k(n);if(!r)return null;n=r[e];t:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":(r=!r.disabled)||(r=!("button"===(t=t.type)||"input"===t||"select"===t||"textarea"===t)),t=!r;break t;default:t=!1}return t?null:(n&&"function"!=typeof n&&s("231",e,typeof n),n)}function L(t){if(null!==t&&(T=j(T,t)),t=T,T=null,t&&(S(t,A),T&&s("95"),f))throw t=d,f=!1,d=null,t}var I=Math.random().toString(36).slice(2),D="__reactInternalInstance$"+I,R="__reactEventHandlers$"+I;function M(t){if(t[D])return t[D];for(;!t[D];){if(!t.parentNode)return null;t=t.parentNode}return 5===(t=t[D]).tag||6===t.tag?t:null}function B(t){return!(t=t[D])||5!==t.tag&&6!==t.tag?null:t}function q(t){if(5===t.tag||6===t.tag)return t.stateNode;s("33")}function F(t){return t[R]||null}function z(t){do{t=t.return}while(t&&5!==t.tag);return t||null}function U(t,e,n){(e=N(t,n.dispatchConfig.phasedRegistrationNames[e]))&&(n._dispatchListeners=j(n._dispatchListeners,e),n._dispatchInstances=j(n._dispatchInstances,t))}function H(t){if(t&&t.dispatchConfig.phasedRegistrationNames){for(var e=t._targetInst,n=[];e;)n.push(e),e=z(e);for(e=n.length;0<e--;)U(n[e],"captured",t);for(e=0;e<n.length;e++)U(n[e],"bubbled",t)}}function W(t,e,n){t&&n&&n.dispatchConfig.registrationName&&(e=N(t,n.dispatchConfig.registrationName))&&(n._dispatchListeners=j(n._dispatchListeners,e),n._dispatchInstances=j(n._dispatchInstances,t))}function V(t){t&&t.dispatchConfig.registrationName&&W(t._targetInst,null,t)}function K(t){S(t,H)}var Q=!("undefined"==typeof window||!window.document||!window.document.createElement);function $(t,e){var n={};return n[t.toLowerCase()]=e.toLowerCase(),n["Webkit"+t]="webkit"+e,n["Moz"+t]="moz"+e,n}var G={animationend:$("Animation","AnimationEnd"),animationiteration:$("Animation","AnimationIteration"),animationstart:$("Animation","AnimationStart"),transitionend:$("Transition","TransitionEnd")},Y={},Z={};function X(t){if(Y[t])return Y[t];if(!G[t])return t;var e,n=G[t];for(e in n)if(n.hasOwnProperty(e)&&e in Z)return Y[t]=n[e];return t}Q&&(Z=document.createElement("div").style,"AnimationEvent"in window||(delete G.animationend.animation,delete G.animationiteration.animation,delete G.animationstart.animation),"TransitionEvent"in window||delete G.transitionend.transition);var J=X("animationend"),tt=X("animationiteration"),et=X("animationstart"),nt=X("transitionend"),rt="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),it=null,ot=null,at=null;function st(){if(at)return at;var t,e,n=ot,r=n.length,i="value"in it?it.value:it.textContent,o=i.length;for(t=0;t<r&&n[t]===i[t];t++);var a=r-t;for(e=1;e<=a&&n[r-e]===i[o-e];e++);return at=i.slice(t,1<e?1-e:void 0)}function ut(){return!0}function lt(){return!1}function ct(t,e,n,r){for(var i in this.dispatchConfig=t,this._targetInst=e,this.nativeEvent=n,t=this.constructor.Interface)t.hasOwnProperty(i)&&((e=t[i])?this[i]=e(n):"target"===i?this.target=r:this[i]=n[i]);return this.isDefaultPrevented=(null!=n.defaultPrevented?n.defaultPrevented:!1===n.returnValue)?ut:lt,this.isPropagationStopped=lt,this}function ft(t,e,n,r){if(this.eventPool.length){var i=this.eventPool.pop();return this.call(i,t,e,n,r),i}return new this(t,e,n,r)}function dt(t){t instanceof this||s("279"),t.destructor(),10>this.eventPool.length&&this.eventPool.push(t)}function pt(t){t.eventPool=[],t.getPooled=ft,t.release=dt}i(ct.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():"unknown"!=typeof t.returnValue&&(t.returnValue=!1),this.isDefaultPrevented=ut)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():"unknown"!=typeof t.cancelBubble&&(t.cancelBubble=!0),this.isPropagationStopped=ut)},persist:function(){this.isPersistent=ut},isPersistent:lt,destructor:function(){var t,e=this.constructor.Interface;for(t in e)this[t]=null;this.nativeEvent=this._targetInst=this.dispatchConfig=null,this.isPropagationStopped=this.isDefaultPrevented=lt,this._dispatchInstances=this._dispatchListeners=null}}),ct.Interface={type:null,target:null,currentTarget:function(){return null},eventPhase:null,bubbles:null,cancelable:null,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:null,isTrusted:null},ct.extend=function(t){function e(){}function n(){return r.apply(this,arguments)}var r=this;e.prototype=r.prototype;var o=new e;return i(o,n.prototype),n.prototype=o,n.prototype.constructor=n,n.Interface=i({},r.Interface,t),n.extend=r.extend,pt(n),n},pt(ct);var ht=ct.extend({data:null}),vt=ct.extend({data:null}),mt=[9,13,27,32],yt=Q&&"CompositionEvent"in window,gt=null;Q&&"documentMode"in document&&(gt=document.documentMode);var bt=Q&&"TextEvent"in window&&!gt,wt=Q&&(!yt||gt&&8<gt&&11>=gt),_t=String.fromCharCode(32),Ot={beforeInput:{phasedRegistrationNames:{bubbled:"onBeforeInput",captured:"onBeforeInputCapture"},dependencies:["compositionend","keypress","textInput","paste"]},compositionEnd:{phasedRegistrationNames:{bubbled:"onCompositionEnd",captured:"onCompositionEndCapture"},dependencies:"blur compositionend keydown keypress keyup mousedown".split(" ")},compositionStart:{phasedRegistrationNames:{bubbled:"onCompositionStart",captured:"onCompositionStartCapture"},dependencies:"blur compositionstart keydown keypress keyup mousedown".split(" ")},compositionUpdate:{phasedRegistrationNames:{bubbled:"onCompositionUpdate",captured:"onCompositionUpdateCapture"},dependencies:"blur compositionupdate keydown keypress keyup mousedown".split(" ")}},kt=!1;function xt(t,e){switch(t){case"keyup":return-1!==mt.indexOf(e.keyCode);case"keydown":return 229!==e.keyCode;case"keypress":case"mousedown":case"blur":return!0;default:return!1}}function Ct(t){return"object"==typeof(t=t.detail)&&"data"in t?t.data:null}var Et=!1;var jt={eventTypes:Ot,extractEvents:function(t,e,n,r){var i=void 0,o=void 0;if(yt)t:{switch(t){case"compositionstart":i=Ot.compositionStart;break t;case"compositionend":i=Ot.compositionEnd;break t;case"compositionupdate":i=Ot.compositionUpdate;break t}i=void 0}else Et?xt(t,n)&&(i=Ot.compositionEnd):"keydown"===t&&229===n.keyCode&&(i=Ot.compositionStart);return i?(wt&&"ko"!==n.locale&&(Et||i!==Ot.compositionStart?i===Ot.compositionEnd&&Et&&(o=st()):(ot="value"in(it=r)?it.value:it.textContent,Et=!0)),i=ht.getPooled(i,e,n,r),o?i.data=o:null!==(o=Ct(n))&&(i.data=o),K(i),o=i):o=null,(t=bt?function(t,e){switch(t){case"compositionend":return Ct(e);case"keypress":return 32!==e.which?null:(kt=!0,_t);case"textInput":return(t=e.data)===_t&&kt?null:t;default:return null}}(t,n):function(t,e){if(Et)return"compositionend"===t||!yt&&xt(t,e)?(t=st(),at=ot=it=null,Et=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return wt&&"ko"!==e.locale?null:e.data;default:return null}}(t,n))?((e=vt.getPooled(Ot.beforeInput,e,n,r)).data=t,K(e)):e=null,null===o?e:null===e?o:[o,e]}},St=null,Tt=null,At=null;function Pt(t){if(t=x(t)){"function"!=typeof St&&s("280");var e=k(t.stateNode);St(t.stateNode,t.type,e)}}function Nt(t){Tt?At?At.push(t):At=[t]:Tt=t}function Lt(){if(Tt){var t=Tt,e=At;if(At=Tt=null,Pt(t),e)for(t=0;t<e.length;t++)Pt(e[t])}}function It(t,e){return t(e)}function Dt(t,e,n){return t(e,n)}function Rt(){}var Mt=!1;function Bt(t,e){if(Mt)return t(e);Mt=!0;try{return It(t,e)}finally{Mt=!1,(null!==Tt||null!==At)&&(Rt(),Lt())}}var qt={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ft(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return"input"===e?!!qt[t.type]:"textarea"===e}function zt(t){return(t=t.target||t.srcElement||window).correspondingUseElement&&(t=t.correspondingUseElement),3===t.nodeType?t.parentNode:t}function Ut(t){if(!Q)return!1;var e=(t="on"+t)in document;return e||((e=document.createElement("div")).setAttribute(t,"return;"),e="function"==typeof e[t]),e}function Ht(t){var e=t.type;return(t=t.nodeName)&&"input"===t.toLowerCase()&&("checkbox"===e||"radio"===e)}function Wt(t){t._valueTracker||(t._valueTracker=function(t){var e=Ht(t)?"checked":"value",n=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),r=""+t[e];if(!t.hasOwnProperty(e)&&void 0!==n&&"function"==typeof n.get&&"function"==typeof n.set){var i=n.get,o=n.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return i.call(this)},set:function(t){r=""+t,o.call(this,t)}}),Object.defineProperty(t,e,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(t){r=""+t},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}(t))}function Vt(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var n=e.getValue(),r="";return t&&(r=Ht(t)?t.checked?"true":"false":t.value),(t=r)!==n&&(e.setValue(t),!0)}var Kt=r.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qt=/^(.*)[\\\/]/,$t="function"==typeof Symbol&&Symbol.for,Gt=$t?Symbol.for("react.element"):60103,Yt=$t?Symbol.for("react.portal"):60106,Zt=$t?Symbol.for("react.fragment"):60107,Xt=$t?Symbol.for("react.strict_mode"):60108,Jt=$t?Symbol.for("react.profiler"):60114,te=$t?Symbol.for("react.provider"):60109,ee=$t?Symbol.for("react.context"):60110,ne=$t?Symbol.for("react.concurrent_mode"):60111,re=$t?Symbol.for("react.forward_ref"):60112,ie=$t?Symbol.for("react.suspense"):60113,oe=$t?Symbol.for("react.memo"):60115,ae=$t?Symbol.for("react.lazy"):60116,se="function"==typeof Symbol&&Symbol.iterator;function ue(t){return null===t||"object"!=typeof t?null:"function"==typeof(t=se&&t[se]||t["@@iterator"])?t:null}function le(t){if(null==t)return null;if("function"==typeof t)return t.displayName||t.name||null;if("string"==typeof t)return t;switch(t){case ne:return"ConcurrentMode";case Zt:return"Fragment";case Yt:return"Portal";case Jt:return"Profiler";case Xt:return"StrictMode";case ie:return"Suspense"}if("object"==typeof t)switch(t.$$typeof){case ee:return"Context.Consumer";case te:return"Context.Provider";case re:var e=t.render;return e=e.displayName||e.name||"",t.displayName||(""!==e?"ForwardRef("+e+")":"ForwardRef");case oe:return le(t.type);case ae:if(t=1===t._status?t._result:null)return le(t)}return null}function ce(t){var e="";do{t:switch(t.tag){case 2:case 16:case 0:case 1:case 5:case 8:case 13:var n=t._debugOwner,r=t._debugSource,i=le(t.type),o=null;n&&(o=le(n.type)),n=i,i="",r?i=" (at "+r.fileName.replace(Qt,"")+":"+r.lineNumber+")":o&&(i=" (created by "+o+")"),o="\n in "+(n||"Unknown")+i;break t;default:o=""}e+=o,t=t.return}while(t);return e}var fe=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,de=Object.prototype.hasOwnProperty,pe={},he={};function ve(t,e,n,r,i){this.acceptsBooleans=2===e||3===e||4===e,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=t,this.type=e}var me={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(t){me[t]=new ve(t,0,!1,t,null)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(t){var e=t[0];me[e]=new ve(e,1,!1,t[1],null)})),["contentEditable","draggable","spellCheck","value"].forEach((function(t){me[t]=new ve(t,2,!1,t.toLowerCase(),null)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(t){me[t]=new ve(t,2,!1,t,null)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(t){me[t]=new ve(t,3,!1,t.toLowerCase(),null)})),["checked","multiple","muted","selected"].forEach((function(t){me[t]=new ve(t,3,!0,t,null)})),["capture","download"].forEach((function(t){me[t]=new ve(t,4,!1,t,null)})),["cols","rows","size","span"].forEach((function(t){me[t]=new ve(t,6,!1,t,null)})),["rowSpan","start"].forEach((function(t){me[t]=new ve(t,5,!1,t.toLowerCase(),null)}));var ye=/[\-:]([a-z])/g;function ge(t){return t[1].toUpperCase()}function be(t,e,n,r){var i=me.hasOwnProperty(e)?me[e]:null;(null!==i?0===i.type:!r&&(2<e.length&&("o"===e[0]||"O"===e[0])&&("n"===e[1]||"N"===e[1])))||(function(t,e,n,r){if(null==e||function(t,e,n,r){if(null!==n&&0===n.type)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return!r&&(null!==n?!n.acceptsBooleans:"data-"!==(t=t.toLowerCase().slice(0,5))&&"aria-"!==t);default:return!1}}(t,e,n,r))return!0;if(r)return!1;if(null!==n)switch(n.type){case 3:return!e;case 4:return!1===e;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}(e,n,i,r)&&(n=null),r||null===i?function(t){return!!de.call(he,t)||!de.call(pe,t)&&(fe.test(t)?he[t]=!0:(pe[t]=!0,!1))}(e)&&(null===n?t.removeAttribute(e):t.setAttribute(e,""+n)):i.mustUseProperty?t[i.propertyName]=null===n?3!==i.type&&"":n:(e=i.attributeName,r=i.attributeNamespace,null===n?t.removeAttribute(e):(n=3===(i=i.type)||4===i&&!0===n?"":""+n,r?t.setAttributeNS(r,e,n):t.setAttribute(e,n))))}function we(t){switch(typeof t){case"boolean":case"number":case"object":case"string":case"undefined":return t;default:return""}}function _e(t,e){var n=e.checked;return i({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:null!=n?n:t._wrapperState.initialChecked})}function Oe(t,e){var n=null==e.defaultValue?"":e.defaultValue,r=null!=e.checked?e.checked:e.defaultChecked;n=we(null!=e.value?e.value:n),t._wrapperState={initialChecked:r,initialValue:n,controlled:"checkbox"===e.type||"radio"===e.type?null!=e.checked:null!=e.value}}function ke(t,e){null!=(e=e.checked)&&be(t,"checked",e,!1)}function xe(t,e){ke(t,e);var n=we(e.value),r=e.type;if(null!=n)"number"===r?(0===n&&""===t.value||t.value!=n)&&(t.value=""+n):t.value!==""+n&&(t.value=""+n);else if("submit"===r||"reset"===r)return void t.removeAttribute("value");e.hasOwnProperty("value")?Ee(t,e.type,n):e.hasOwnProperty("defaultValue")&&Ee(t,e.type,we(e.defaultValue)),null==e.checked&&null!=e.defaultChecked&&(t.defaultChecked=!!e.defaultChecked)}function Ce(t,e,n){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var r=e.type;if(!("submit"!==r&&"reset"!==r||void 0!==e.value&&null!==e.value))return;e=""+t._wrapperState.initialValue,n||e===t.value||(t.value=e),t.defaultValue=e}""!==(n=t.name)&&(t.name=""),t.defaultChecked=!t.defaultChecked,t.defaultChecked=!!t._wrapperState.initialChecked,""!==n&&(t.name=n)}function Ee(t,e,n){"number"===e&&t.ownerDocument.activeElement===t||(null==n?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+n&&(t.defaultValue=""+n))}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(t){var e=t.replace(ye,ge);me[e]=new ve(e,1,!1,t,null)})),"xlink:actuate xlink:arcrole xlink:href xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(t){var e=t.replace(ye,ge);me[e]=new ve(e,1,!1,t,"http://www.w3.org/1999/xlink")})),["xml:base","xml:lang","xml:space"].forEach((function(t){var e=t.replace(ye,ge);me[e]=new ve(e,1,!1,t,"http://www.w3.org/XML/1998/namespace")})),me.tabIndex=new ve("tabIndex",1,!1,"tabindex",null);var je={change:{phasedRegistrationNames:{bubbled:"onChange",captured:"onChangeCapture"},dependencies:"blur change click focus input keydown keyup selectionchange".split(" ")}};function Se(t,e,n){return(t=ct.getPooled(je.change,t,e,n)).type="change",Nt(n),K(t),t}var Te=null,Ae=null;function Pe(t){L(t)}function Ne(t){if(Vt(q(t)))return t}function Le(t,e){if("change"===t)return e}var Ie=!1;function De(){Te&&(Te.detachEvent("onpropertychange",Re),Ae=Te=null)}function Re(t){"value"===t.propertyName&&Ne(Ae)&&Bt(Pe,t=Se(Ae,t,zt(t)))}function Me(t,e,n){"focus"===t?(De(),Ae=n,(Te=e).attachEvent("onpropertychange",Re)):"blur"===t&&De()}function Be(t){if("selectionchange"===t||"keyup"===t||"keydown"===t)return Ne(Ae)}function qe(t,e){if("click"===t)return Ne(e)}function Fe(t,e){if("input"===t||"change"===t)return Ne(e)}Q&&(Ie=Ut("input")&&(!document.documentMode||9<document.documentMode));var ze={eventTypes:je,_isInputEventSupported:Ie,extractEvents:function(t,e,n,r){var i=e?q(e):window,o=void 0,a=void 0,s=i.nodeName&&i.nodeName.toLowerCase();if("select"===s||"input"===s&&"file"===i.type?o=Le:Ft(i)?Ie?o=Fe:(o=Be,a=Me):(s=i.nodeName)&&"input"===s.toLowerCase()&&("checkbox"===i.type||"radio"===i.type)&&(o=qe),o&&(o=o(t,e)))return Se(o,n,r);a&&a(t,i,e),"blur"===t&&(t=i._wrapperState)&&t.controlled&&"number"===i.type&&Ee(i,"number",i.value)}},Ue=ct.extend({view:null,detail:null}),He={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function We(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):!!(t=He[t])&&!!e[t]}function Ve(){return We}var Ke=0,Qe=0,$e=!1,Ge=!1,Ye=Ue.extend({screenX:null,screenY:null,clientX:null,clientY:null,pageX:null,pageY:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,getModifierState:Ve,button:null,buttons:null,relatedTarget:function(t){return t.relatedTarget||(t.fromElement===t.srcElement?t.toElement:t.fromElement)},movementX:function(t){if("movementX"in t)return t.movementX;var e=Ke;return Ke=t.screenX,$e?"mousemove"===t.type?t.screenX-e:0:($e=!0,0)},movementY:function(t){if("movementY"in t)return t.movementY;var e=Qe;return Qe=t.screenY,Ge?"mousemove"===t.type?t.screenY-e:0:(Ge=!0,0)}}),Ze=Ye.extend({pointerId:null,width:null,height:null,pressure:null,tangentialPressure:null,tiltX:null,tiltY:null,twist:null,pointerType:null,isPrimary:null}),Xe={mouseEnter:{registrationName:"onMouseEnter",dependencies:["mouseout","mouseover"]},mouseLeave:{registrationName:"onMouseLeave",dependencies:["mouseout","mouseover"]},pointerEnter:{registrationName:"onPointerEnter",dependencies:["pointerout","pointerover"]},pointerLeave:{registrationName:"onPointerLeave",dependencies:["pointerout","pointerover"]}},Je={eventTypes:Xe,extractEvents:function(t,e,n,r){var i="mouseover"===t||"pointerover"===t,o="mouseout"===t||"pointerout"===t;if(i&&(n.relatedTarget||n.fromElement)||!o&&!i)return null;if(i=r.window===r?r:(i=r.ownerDocument)?i.defaultView||i.parentWindow:window,o?(o=e,e=(e=n.relatedTarget||n.toElement)?M(e):null):o=null,o===e)return null;var a=void 0,s=void 0,u=void 0,l=void 0;"mouseout"===t||"mouseover"===t?(a=Ye,s=Xe.mouseLeave,u=Xe.mouseEnter,l="mouse"):"pointerout"!==t&&"pointerover"!==t||(a=Ze,s=Xe.pointerLeave,u=Xe.pointerEnter,l="pointer");var c=null==o?i:q(o);if(i=null==e?i:q(e),(t=a.getPooled(s,o,n,r)).type=l+"leave",t.target=c,t.relatedTarget=i,(n=a.getPooled(u,e,n,r)).type=l+"enter",n.target=i,n.relatedTarget=c,r=e,o&&r)t:{for(i=r,l=0,a=e=o;a;a=z(a))l++;for(a=0,u=i;u;u=z(u))a++;for(;0<l-a;)e=z(e),l--;for(;0<a-l;)i=z(i),a--;for(;l--;){if(e===i||e===i.alternate)break t;e=z(e),i=z(i)}e=null}else e=null;for(i=e,e=[];o&&o!==i&&(null===(l=o.alternate)||l!==i);)e.push(o),o=z(o);for(o=[];r&&r!==i&&(null===(l=r.alternate)||l!==i);)o.push(r),r=z(r);for(r=0;r<e.length;r++)W(e[r],"bubbled",t);for(r=o.length;0<r--;)W(o[r],"captured",n);return[t,n]}},tn=Object.prototype.hasOwnProperty;function en(t,e){return t===e?0!==t||0!==e||1/t==1/e:t!=t&&e!=e}function nn(t,e){if(en(t,e))return!0;if("object"!=typeof t||null===t||"object"!=typeof e||null===e)return!1;var n=Object.keys(t),r=Object.keys(e);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++)if(!tn.call(e,n[r])||!en(t[n[r]],e[n[r]]))return!1;return!0}function rn(t){var e=t;if(t.alternate)for(;e.return;)e=e.return;else{if(0!=(2&e.effectTag))return 1;for(;e.return;)if(0!=(2&(e=e.return).effectTag))return 1}return 3===e.tag?2:3}function on(t){2!==rn(t)&&s("188")}function an(t){if(!(t=function(t){var e=t.alternate;if(!e)return 3===(e=rn(t))&&s("188"),1===e?null:t;for(var n=t,r=e;;){var i=n.return,o=i?i.alternate:null;if(!i||!o)break;if(i.child===o.child){for(var a=i.child;a;){if(a===n)return on(i),t;if(a===r)return on(i),e;a=a.sibling}s("188")}if(n.return!==r.return)n=i,r=o;else{a=!1;for(var u=i.child;u;){if(u===n){a=!0,n=i,r=o;break}if(u===r){a=!0,r=i,n=o;break}u=u.sibling}if(!a){for(u=o.child;u;){if(u===n){a=!0,n=o,r=i;break}if(u===r){a=!0,r=o,n=i;break}u=u.sibling}a||s("189")}}n.alternate!==r&&s("190")}return 3!==n.tag&&s("188"),n.stateNode.current===n?t:e}(t)))return null;for(var e=t;;){if(5===e.tag||6===e.tag)return e;if(e.child)e.child.return=e,e=e.child;else{if(e===t)break;for(;!e.sibling;){if(!e.return||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}}return null}var sn=ct.extend({animationName:null,elapsedTime:null,pseudoElement:null}),un=ct.extend({clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),ln=Ue.extend({relatedTarget:null});function cn(t){var e=t.keyCode;return"charCode"in t?0===(t=t.charCode)&&13===e&&(t=13):t=e,10===t&&(t=13),32<=t||13===t?t:0}var fn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},dn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},pn=Ue.extend({key:function(t){if(t.key){var e=fn[t.key]||t.key;if("Unidentified"!==e)return e}return"keypress"===t.type?13===(t=cn(t))?"Enter":String.fromCharCode(t):"keydown"===t.type||"keyup"===t.type?dn[t.keyCode]||"Unidentified":""},location:null,ctrlKey:null,shiftKey:null,altKey:null,metaKey:null,repeat:null,locale:null,getModifierState:Ve,charCode:function(t){return"keypress"===t.type?cn(t):0},keyCode:function(t){return"keydown"===t.type||"keyup"===t.type?t.keyCode:0},which:function(t){return"keypress"===t.type?cn(t):"keydown"===t.type||"keyup"===t.type?t.keyCode:0}}),hn=Ye.extend({dataTransfer:null}),vn=Ue.extend({touches:null,targetTouches:null,changedTouches:null,altKey:null,metaKey:null,ctrlKey:null,shiftKey:null,getModifierState:Ve}),mn=ct.extend({propertyName:null,elapsedTime:null,pseudoElement:null}),yn=Ye.extend({deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:null,deltaMode:null}),gn=[["abort","abort"],[J,"animationEnd"],[tt,"animationIteration"],[et,"animationStart"],["canplay","canPlay"],["canplaythrough","canPlayThrough"],["drag","drag"],["dragenter","dragEnter"],["dragexit","dragExit"],["dragleave","dragLeave"],["dragover","dragOver"],["durationchange","durationChange"],["emptied","emptied"],["encrypted","encrypted"],["ended","ended"],["error","error"],["gotpointercapture","gotPointerCapture"],["load","load"],["loadeddata","loadedData"],["loadedmetadata","loadedMetadata"],["loadstart","loadStart"],["lostpointercapture","lostPointerCapture"],["mousemove","mouseMove"],["mouseout","mouseOut"],["mouseover","mouseOver"],["playing","playing"],["pointermove","pointerMove"],["pointerout","pointerOut"],["pointerover","pointerOver"],["progress","progress"],["scroll","scroll"],["seeking","seeking"],["stalled","stalled"],["suspend","suspend"],["timeupdate","timeUpdate"],["toggle","toggle"],["touchmove","touchMove"],[nt,"transitionEnd"],["waiting","waiting"],["wheel","wheel"]],bn={},wn={};function _n(t,e){var n=t[0],r="on"+((t=t[1])[0].toUpperCase()+t.slice(1));e={phasedRegistrationNames:{bubbled:r,captured:r+"Capture"},dependencies:[n],isInteractive:e},bn[t]=e,wn[n]=e}[["blur","blur"],["cancel","cancel"],["click","click"],["close","close"],["contextmenu","contextMenu"],["copy","copy"],["cut","cut"],["auxclick","auxClick"],["dblclick","doubleClick"],["dragend","dragEnd"],["dragstart","dragStart"],["drop","drop"],["focus","focus"],["input","input"],["invalid","invalid"],["keydown","keyDown"],["keypress","keyPress"],["keyup","keyUp"],["mousedown","mouseDown"],["mouseup","mouseUp"],["paste","paste"],["pause","pause"],["play","play"],["pointercancel","pointerCancel"],["pointerdown","pointerDown"],["pointerup","pointerUp"],["ratechange","rateChange"],["reset","reset"],["seeked","seeked"],["submit","submit"],["touchcancel","touchCancel"],["touchend","touchEnd"],["touchstart","touchStart"],["volumechange","volumeChange"]].forEach((function(t){_n(t,!0)})),gn.forEach((function(t){_n(t,!1)}));var On={eventTypes:bn,isInteractiveTopLevelEventType:function(t){return void 0!==(t=wn[t])&&!0===t.isInteractive},extractEvents:function(t,e,n,r){var i=wn[t];if(!i)return null;switch(t){case"keypress":if(0===cn(n))return null;case"keydown":case"keyup":t=pn;break;case"blur":case"focus":t=ln;break;case"click":if(2===n.button)return null;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":t=Ye;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":t=hn;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":t=vn;break;case J:case tt:case et:t=sn;break;case nt:t=mn;break;case"scroll":t=Ue;break;case"wheel":t=yn;break;case"copy":case"cut":case"paste":t=un;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":t=Ze;break;default:t=ct}return K(e=t.getPooled(i,e,n,r)),e}},kn=On.isInteractiveTopLevelEventType,xn=[];function Cn(t){var e=t.targetInst,n=e;do{if(!n){t.ancestors.push(n);break}var r;for(r=n;r.return;)r=r.return;if(!(r=3!==r.tag?null:r.stateNode.containerInfo))break;t.ancestors.push(n),n=M(r)}while(n);for(n=0;n<t.ancestors.length;n++){e=t.ancestors[n];var i=zt(t.nativeEvent);r=t.topLevelType;for(var o=t.nativeEvent,a=null,s=0;s<b.length;s++){var u=b[s];u&&(u=u.extractEvents(r,e,o,i))&&(a=j(a,u))}L(a)}}var En=!0;function jn(t,e){if(!e)return null;var n=(kn(t)?Tn:An).bind(null,t);e.addEventListener(t,n,!1)}function Sn(t,e){if(!e)return null;var n=(kn(t)?Tn:An).bind(null,t);e.addEventListener(t,n,!0)}function Tn(t,e){Dt(An,t,e)}function An(t,e){if(En){var n=zt(e);if(null===(n=M(n))||"number"!=typeof n.tag||2===rn(n)||(n=null),xn.length){var r=xn.pop();r.topLevelType=t,r.nativeEvent=e,r.targetInst=n,t=r}else t={topLevelType:t,nativeEvent:e,targetInst:n,ancestors:[]};try{Bt(Cn,t)}finally{t.topLevelType=null,t.nativeEvent=null,t.targetInst=null,t.ancestors.length=0,10>xn.length&&xn.push(t)}}}var Pn={},Nn=0,Ln="_reactListenersID"+(""+Math.random()).slice(2);function In(t){return Object.prototype.hasOwnProperty.call(t,Ln)||(t[Ln]=Nn++,Pn[t[Ln]]={}),Pn[t[Ln]]}function Dn(t){if(void 0===(t=t||("undefined"!=typeof document?document:void 0)))return null;try{return t.activeElement||t.body}catch(e){return t.body}}function Rn(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Mn(t,e){var n,r=Rn(t);for(t=0;r;){if(3===r.nodeType){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}t:{for(;r;){if(r.nextSibling){r=r.nextSibling;break t}r=r.parentNode}r=void 0}r=Rn(r)}}function Bn(){for(var t=window,e=Dn();e instanceof t.HTMLIFrameElement;){try{t=e.contentDocument.defaultView}catch(t){break}e=Dn(t.document)}return e}function qn(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&("input"===e&&("text"===t.type||"search"===t.type||"tel"===t.type||"url"===t.type||"password"===t.type)||"textarea"===e||"true"===t.contentEditable)}var Fn=Q&&"documentMode"in document&&11>=document.documentMode,zn={select:{phasedRegistrationNames:{bubbled:"onSelect",captured:"onSelectCapture"},dependencies:"blur contextmenu dragend focus keydown keyup mousedown mouseup selectionchange".split(" ")}},Un=null,Hn=null,Wn=null,Vn=!1;function Kn(t,e){var n=e.window===e?e.document:9===e.nodeType?e:e.ownerDocument;return Vn||null==Un||Un!==Dn(n)?null:("selectionStart"in(n=Un)&&qn(n)?n={start:n.selectionStart,end:n.selectionEnd}:n={anchorNode:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset},Wn&&nn(Wn,n)?null:(Wn=n,(t=ct.getPooled(zn.select,Hn,t,e)).type="select",t.target=Un,K(t),t))}var Qn={eventTypes:zn,extractEvents:function(t,e,n,r){var i,o=r.window===r?r.document:9===r.nodeType?r:r.ownerDocument;if(!(i=!o)){t:{o=In(o),i=O.onSelect;for(var a=0;a<i.length;a++){var s=i[a];if(!o.hasOwnProperty(s)||!o[s]){o=!1;break t}}o=!0}i=!o}if(i)return null;switch(o=e?q(e):window,t){case"focus":(Ft(o)||"true"===o.contentEditable)&&(Un=o,Hn=e,Wn=null);break;case"blur":Wn=Hn=Un=null;break;case"mousedown":Vn=!0;break;case"contextmenu":case"mouseup":case"dragend":return Vn=!1,Kn(n,r);case"selectionchange":if(Fn)break;case"keydown":case"keyup":return Kn(n,r)}return null}};function $n(t,e){return t=i({children:void 0},e),(e=function(t){var e="";return r.Children.forEach(t,(function(t){null!=t&&(e+=t)})),e}(e.children))&&(t.children=e),t}function Gn(t,e,n,r){if(t=t.options,e){e={};for(var i=0;i<n.length;i++)e["$"+n[i]]=!0;for(n=0;n<t.length;n++)i=e.hasOwnProperty("$"+t[n].value),t[n].selected!==i&&(t[n].selected=i),i&&r&&(t[n].defaultSelected=!0)}else{for(n=""+we(n),e=null,i=0;i<t.length;i++){if(t[i].value===n)return t[i].selected=!0,void(r&&(t[i].defaultSelected=!0));null!==e||t[i].disabled||(e=t[i])}null!==e&&(e.selected=!0)}}function Yn(t,e){return null!=e.dangerouslySetInnerHTML&&s("91"),i({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Zn(t,e){var n=e.value;null==n&&(n=e.defaultValue,null!=(e=e.children)&&(null!=n&&s("92"),Array.isArray(e)&&(1>=e.length||s("93"),e=e[0]),n=e),null==n&&(n="")),t._wrapperState={initialValue:we(n)}}function Xn(t,e){var n=we(e.value),r=we(e.defaultValue);null!=n&&((n=""+n)!==t.value&&(t.value=n),null==e.defaultValue&&t.defaultValue!==n&&(t.defaultValue=n)),null!=r&&(t.defaultValue=""+r)}function Jn(t){var e=t.textContent;e===t._wrapperState.initialValue&&(t.value=e)}P.injectEventPluginOrder("ResponderEventPlugin SimpleEventPlugin EnterLeaveEventPlugin ChangeEventPlugin SelectEventPlugin BeforeInputEventPlugin".split(" ")),k=F,x=B,C=q,P.injectEventPluginsByName({SimpleEventPlugin:On,EnterLeaveEventPlugin:Je,ChangeEventPlugin:ze,SelectEventPlugin:Qn,BeforeInputEventPlugin:jt});var tr="http://www.w3.org/1999/xhtml",er="http://www.w3.org/2000/svg";function nr(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function rr(t,e){return null==t||"http://www.w3.org/1999/xhtml"===t?nr(e):"http://www.w3.org/2000/svg"===t&&"foreignObject"===e?"http://www.w3.org/1999/xhtml":t}var ir=void 0,or=function(t){return"undefined"!=typeof MSApp&&MSApp.execUnsafeLocalFunction?function(e,n,r,i){MSApp.execUnsafeLocalFunction((function(){return t(e,n)}))}:t}((function(t,e){if(t.namespaceURI!==er||"innerHTML"in t)t.innerHTML=e;else{for((ir=ir||document.createElement("div")).innerHTML="<svg>"+e+"</svg>",e=ir.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}}));function ar(t,e){if(e){var n=t.firstChild;if(n&&n===t.lastChild&&3===n.nodeType)return void(n.nodeValue=e)}t.textContent=e}var sr={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},ur=["Webkit","ms","Moz","O"];function lr(t,e,n){return null==e||"boolean"==typeof e||""===e?"":n||"number"!=typeof e||0===e||sr.hasOwnProperty(t)&&sr[t]?(""+e).trim():e+"px"}function cr(t,e){for(var n in t=t.style,e)if(e.hasOwnProperty(n)){var r=0===n.indexOf("--"),i=lr(n,e[n],r);"float"===n&&(n="cssFloat"),r?t.setProperty(n,i):t[n]=i}}Object.keys(sr).forEach((function(t){ur.forEach((function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),sr[e]=sr[t]}))}));var fr=i({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function dr(t,e){e&&(fr[t]&&(null!=e.children||null!=e.dangerouslySetInnerHTML)&&s("137",t,""),null!=e.dangerouslySetInnerHTML&&(null!=e.children&&s("60"),"object"==typeof e.dangerouslySetInnerHTML&&"__html"in e.dangerouslySetInnerHTML||s("61")),null!=e.style&&"object"!=typeof e.style&&s("62",""))}function pr(t,e){if(-1===t.indexOf("-"))return"string"==typeof e.is;switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}function hr(t,e){var n=In(t=9===t.nodeType||11===t.nodeType?t:t.ownerDocument);e=O[e];for(var r=0;r<e.length;r++){var i=e[r];if(!n.hasOwnProperty(i)||!n[i]){switch(i){case"scroll":Sn("scroll",t);break;case"focus":case"blur":Sn("focus",t),Sn("blur",t),n.blur=!0,n.focus=!0;break;case"cancel":case"close":Ut(i)&&Sn(i,t);break;case"invalid":case"submit":case"reset":break;default:-1===rt.indexOf(i)&&jn(i,t)}n[i]=!0}}}function vr(){}var mr=null,yr=null;function gr(t,e){switch(t){case"button":case"input":case"select":case"textarea":return!!e.autoFocus}return!1}function br(t,e){return"textarea"===t||"option"===t||"noscript"===t||"string"==typeof e.children||"number"==typeof e.children||"object"==typeof e.dangerouslySetInnerHTML&&null!==e.dangerouslySetInnerHTML&&null!=e.dangerouslySetInnerHTML.__html}var wr="function"==typeof setTimeout?setTimeout:void 0,_r="function"==typeof clearTimeout?clearTimeout:void 0;function Or(t){for(t=t.nextSibling;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}function kr(t){for(t=t.firstChild;t&&1!==t.nodeType&&3!==t.nodeType;)t=t.nextSibling;return t}new Set;var xr=[],Cr=-1;function Er(t){0>Cr||(t.current=xr[Cr],xr[Cr]=null,Cr--)}function jr(t,e){Cr++,xr[Cr]=t.current,t.current=e}var Sr={},Tr={current:Sr},Ar={current:!1},Pr=Sr;function Nr(t,e){var n=t.type.contextTypes;if(!n)return Sr;var r=t.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===e)return r.__reactInternalMemoizedMaskedChildContext;var i,o={};for(i in n)o[i]=e[i];return r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Lr(t){return null!=(t=t.childContextTypes)}function Ir(t){Er(Ar),Er(Tr)}function Dr(t){Er(Ar),Er(Tr)}function Rr(t,e,n){Tr.current!==Sr&&s("168"),jr(Tr,e),jr(Ar,n)}function Mr(t,e,n){var r=t.stateNode;if(t=e.childContextTypes,"function"!=typeof r.getChildContext)return n;for(var o in r=r.getChildContext())o in t||s("108",le(e)||"Unknown",o);return i({},n,r)}function Br(t){var e=t.stateNode;return e=e&&e.__reactInternalMemoizedMergedChildContext||Sr,Pr=Tr.current,jr(Tr,e),jr(Ar,Ar.current),!0}function qr(t,e,n){var r=t.stateNode;r||s("169"),n?(e=Mr(t,e,Pr),r.__reactInternalMemoizedMergedChildContext=e,Er(Ar),Er(Tr),jr(Tr,e)):Er(Ar),jr(Ar,n)}var Fr=null,zr=null;function Ur(t){return function(e){try{return t(e)}catch(t){}}}function Hr(t,e,n,r){this.tag=t,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.firstContextDependency=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.effectTag=0,this.lastEffect=this.firstEffect=this.nextEffect=null,this.childExpirationTime=this.expirationTime=0,this.alternate=null}function Wr(t,e,n,r){return new Hr(t,e,n,r)}function Vr(t){return!(!(t=t.prototype)||!t.isReactComponent)}function Kr(t,e){var n=t.alternate;return null===n?((n=Wr(t.tag,e,t.key,t.mode)).elementType=t.elementType,n.type=t.type,n.stateNode=t.stateNode,n.alternate=t,t.alternate=n):(n.pendingProps=e,n.effectTag=0,n.nextEffect=null,n.firstEffect=null,n.lastEffect=null),n.childExpirationTime=t.childExpirationTime,n.expirationTime=t.expirationTime,n.child=t.child,n.memoizedProps=t.memoizedProps,n.memoizedState=t.memoizedState,n.updateQueue=t.updateQueue,n.firstContextDependency=t.firstContextDependency,n.sibling=t.sibling,n.index=t.index,n.ref=t.ref,n}function Qr(t,e,n,r,i,o){var a=2;if(r=t,"function"==typeof t)Vr(t)&&(a=1);else if("string"==typeof t)a=5;else t:switch(t){case Zt:return $r(n.children,i,o,e);case ne:return Gr(n,3|i,o,e);case Xt:return Gr(n,2|i,o,e);case Jt:return(t=Wr(12,n,e,4|i)).elementType=Jt,t.type=Jt,t.expirationTime=o,t;case ie:return(t=Wr(13,n,e,i)).elementType=ie,t.type=ie,t.expirationTime=o,t;default:if("object"==typeof t&&null!==t)switch(t.$$typeof){case te:a=10;break t;case ee:a=9;break t;case re:a=11;break t;case oe:a=14;break t;case ae:a=16,r=null;break t}s("130",null==t?t:typeof t,"")}return(e=Wr(a,n,e,i)).elementType=t,e.type=r,e.expirationTime=o,e}function $r(t,e,n,r){return(t=Wr(7,t,r,e)).expirationTime=n,t}function Gr(t,e,n,r){return t=Wr(8,t,r,e),e=0==(1&e)?Xt:ne,t.elementType=e,t.type=e,t.expirationTime=n,t}function Yr(t,e,n){return(t=Wr(6,t,null,e)).expirationTime=n,t}function Zr(t,e,n){return(e=Wr(4,null!==t.children?t.children:[],t.key,e)).expirationTime=n,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Xr(t,e){t.didError=!1;var n=t.earliestPendingTime;0===n?t.earliestPendingTime=t.latestPendingTime=e:n<e?t.earliestPendingTime=e:t.latestPendingTime>e&&(t.latestPendingTime=e),ei(e,t)}function Jr(t,e){t.didError=!1;var n=t.latestPingedTime;0!==n&&n>=e&&(t.latestPingedTime=0),n=t.earliestPendingTime;var r=t.latestPendingTime;n===e?t.earliestPendingTime=r===e?t.latestPendingTime=0:r:r===e&&(t.latestPendingTime=n),n=t.earliestSuspendedTime,r=t.latestSuspendedTime,0===n?t.earliestSuspendedTime=t.latestSuspendedTime=e:n<e?t.earliestSuspendedTime=e:r>e&&(t.latestSuspendedTime=e),ei(e,t)}function ti(t,e){var n=t.earliestPendingTime;return n>e&&(e=n),(t=t.earliestSuspendedTime)>e&&(e=t),e}function ei(t,e){var n=e.earliestSuspendedTime,r=e.latestSuspendedTime,i=e.earliestPendingTime,o=e.latestPingedTime;0===(i=0!==i?i:o)&&(0===t||r<t)&&(i=r),0!==(t=i)&&n>t&&(t=n),e.nextExpirationTimeToWorkOn=i,e.expirationTime=t}var ni=!1;function ri(t){return{baseState:t,firstUpdate:null,lastUpdate:null,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function ii(t){return{baseState:t.baseState,firstUpdate:t.firstUpdate,lastUpdate:t.lastUpdate,firstCapturedUpdate:null,lastCapturedUpdate:null,firstEffect:null,lastEffect:null,firstCapturedEffect:null,lastCapturedEffect:null}}function oi(t){return{expirationTime:t,tag:0,payload:null,callback:null,next:null,nextEffect:null}}function ai(t,e){null===t.lastUpdate?t.firstUpdate=t.lastUpdate=e:(t.lastUpdate.next=e,t.lastUpdate=e)}function si(t,e){var n=t.alternate;if(null===n){var r=t.updateQueue,i=null;null===r&&(r=t.updateQueue=ri(t.memoizedState))}else r=t.updateQueue,i=n.updateQueue,null===r?null===i?(r=t.updateQueue=ri(t.memoizedState),i=n.updateQueue=ri(n.memoizedState)):r=t.updateQueue=ii(i):null===i&&(i=n.updateQueue=ii(r));null===i||r===i?ai(r,e):null===r.lastUpdate||null===i.lastUpdate?(ai(r,e),ai(i,e)):(ai(r,e),i.lastUpdate=e)}function ui(t,e){var n=t.updateQueue;null===(n=null===n?t.updateQueue=ri(t.memoizedState):li(t,n)).lastCapturedUpdate?n.firstCapturedUpdate=n.lastCapturedUpdate=e:(n.lastCapturedUpdate.next=e,n.lastCapturedUpdate=e)}function li(t,e){var n=t.alternate;return null!==n&&e===n.updateQueue&&(e=t.updateQueue=ii(e)),e}function ci(t,e,n,r,o,a){switch(n.tag){case 1:return"function"==typeof(t=n.payload)?t.call(a,r,o):t;case 3:t.effectTag=-2049&t.effectTag|64;case 0:if(null==(o="function"==typeof(t=n.payload)?t.call(a,r,o):t))break;return i({},r,o);case 2:ni=!0}return r}function fi(t,e,n,r,i){ni=!1;for(var o=(e=li(t,e)).baseState,a=null,s=0,u=e.firstUpdate,l=o;null!==u;){var c=u.expirationTime;c<i?(null===a&&(a=u,o=l),s<c&&(s=c)):(l=ci(t,0,u,l,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastEffect?e.firstEffect=e.lastEffect=u:(e.lastEffect.nextEffect=u,e.lastEffect=u))),u=u.next}for(c=null,u=e.firstCapturedUpdate;null!==u;){var f=u.expirationTime;f<i?(null===c&&(c=u,null===a&&(o=l)),s<f&&(s=f)):(l=ci(t,0,u,l,n,r),null!==u.callback&&(t.effectTag|=32,u.nextEffect=null,null===e.lastCapturedEffect?e.firstCapturedEffect=e.lastCapturedEffect=u:(e.lastCapturedEffect.nextEffect=u,e.lastCapturedEffect=u))),u=u.next}null===a&&(e.lastUpdate=null),null===c?e.lastCapturedUpdate=null:t.effectTag|=32,null===a&&null===c&&(o=l),e.baseState=o,e.firstUpdate=a,e.firstCapturedUpdate=c,t.expirationTime=s,t.memoizedState=l}function di(t,e,n){null!==e.firstCapturedUpdate&&(null!==e.lastUpdate&&(e.lastUpdate.next=e.firstCapturedUpdate,e.lastUpdate=e.lastCapturedUpdate),e.firstCapturedUpdate=e.lastCapturedUpdate=null),pi(e.firstEffect,n),e.firstEffect=e.lastEffect=null,pi(e.firstCapturedEffect,n),e.firstCapturedEffect=e.lastCapturedEffect=null}function pi(t,e){for(;null!==t;){var n=t.callback;if(null!==n){t.callback=null;var r=e;"function"!=typeof n&&s("191",n),n.call(r)}t=t.nextEffect}}function hi(t,e){return{value:t,source:e,stack:ce(e)}}var vi={current:null},mi=null,yi=null,gi=null;function bi(t,e){var n=t.type._context;jr(vi,n._currentValue),n._currentValue=e}function wi(t){var e=vi.current;Er(vi),t.type._context._currentValue=e}function _i(t){mi=t,gi=yi=null,t.firstContextDependency=null}function Oi(t,e){return gi!==t&&!1!==e&&0!==e&&("number"==typeof e&&1073741823!==e||(gi=t,e=1073741823),e={context:t,observedBits:e,next:null},null===yi?(null===mi&&s("293"),mi.firstContextDependency=yi=e):yi=yi.next=e),t._currentValue}var ki={},xi={current:ki},Ci={current:ki},Ei={current:ki};function ji(t){return t===ki&&s("174"),t}function Si(t,e){jr(Ei,e),jr(Ci,t),jr(xi,ki);var n=e.nodeType;switch(n){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:rr(null,"");break;default:e=rr(e=(n=8===n?e.parentNode:e).namespaceURI||null,n=n.tagName)}Er(xi),jr(xi,e)}function Ti(t){Er(xi),Er(Ci),Er(Ei)}function Ai(t){ji(Ei.current);var e=ji(xi.current),n=rr(e,t.type);e!==n&&(jr(Ci,t),jr(xi,n))}function Pi(t){Ci.current===t&&(Er(xi),Er(Ci))}function Ni(t,e){if(t&&t.defaultProps)for(var n in e=i({},e),t=t.defaultProps)void 0===e[n]&&(e[n]=t[n]);return e}var Li=Kt.ReactCurrentOwner,Ii=(new r.Component).refs;function Di(t,e,n,r){n=null==(n=n(r,e=t.memoizedState))?e:i({},e,n),t.memoizedState=n,null!==(r=t.updateQueue)&&0===t.expirationTime&&(r.baseState=n)}var Ri={isMounted:function(t){return!!(t=t._reactInternalFiber)&&2===rn(t)},enqueueSetState:function(t,e,n){t=t._reactInternalFiber;var r=xa(),i=oi(r=Go(r,t));i.payload=e,null!=n&&(i.callback=n),Wo(),si(t,i),Xo(t,r)},enqueueReplaceState:function(t,e,n){t=t._reactInternalFiber;var r=xa(),i=oi(r=Go(r,t));i.tag=1,i.payload=e,null!=n&&(i.callback=n),Wo(),si(t,i),Xo(t,r)},enqueueForceUpdate:function(t,e){t=t._reactInternalFiber;var n=xa(),r=oi(n=Go(n,t));r.tag=2,null!=e&&(r.callback=e),Wo(),si(t,r),Xo(t,n)}};function Mi(t,e,n,r,i,o,a){return"function"==typeof(t=t.stateNode).shouldComponentUpdate?t.shouldComponentUpdate(r,o,a):!e.prototype||!e.prototype.isPureReactComponent||(!nn(n,r)||!nn(i,o))}function Bi(t,e,n){var r=!1,i=Sr,o=e.contextType;return"object"==typeof o&&null!==o?o=Li.currentDispatcher.readContext(o):(i=Lr(e)?Pr:Tr.current,o=(r=null!=(r=e.contextTypes))?Nr(t,i):Sr),e=new e(n,o),t.memoizedState=null!==e.state&&void 0!==e.state?e.state:null,e.updater=Ri,t.stateNode=e,e._reactInternalFiber=t,r&&((t=t.stateNode).__reactInternalMemoizedUnmaskedChildContext=i,t.__reactInternalMemoizedMaskedChildContext=o),e}function qi(t,e,n,r){t=e.state,"function"==typeof e.componentWillReceiveProps&&e.componentWillReceiveProps(n,r),"function"==typeof e.UNSAFE_componentWillReceiveProps&&e.UNSAFE_componentWillReceiveProps(n,r),e.state!==t&&Ri.enqueueReplaceState(e,e.state,null)}function Fi(t,e,n,r){var i=t.stateNode;i.props=n,i.state=t.memoizedState,i.refs=Ii;var o=e.contextType;"object"==typeof o&&null!==o?i.context=Li.currentDispatcher.readContext(o):(o=Lr(e)?Pr:Tr.current,i.context=Nr(t,o)),null!==(o=t.updateQueue)&&(fi(t,o,n,i,r),i.state=t.memoizedState),"function"==typeof(o=e.getDerivedStateFromProps)&&(Di(t,e,o,n),i.state=t.memoizedState),"function"==typeof e.getDerivedStateFromProps||"function"==typeof i.getSnapshotBeforeUpdate||"function"!=typeof i.UNSAFE_componentWillMount&&"function"!=typeof i.componentWillMount||(e=i.state,"function"==typeof i.componentWillMount&&i.componentWillMount(),"function"==typeof i.UNSAFE_componentWillMount&&i.UNSAFE_componentWillMount(),e!==i.state&&Ri.enqueueReplaceState(i,i.state,null),null!==(o=t.updateQueue)&&(fi(t,o,n,i,r),i.state=t.memoizedState)),"function"==typeof i.componentDidMount&&(t.effectTag|=4)}var zi=Array.isArray;function Ui(t,e,n){if(null!==(t=n.ref)&&"function"!=typeof t&&"object"!=typeof t){if(n._owner){n=n._owner;var r=void 0;n&&(1!==n.tag&&s("289"),r=n.stateNode),r||s("147",t);var i=""+t;return null!==e&&null!==e.ref&&"function"==typeof e.ref&&e.ref._stringRef===i?e.ref:((e=function(t){var e=r.refs;e===Ii&&(e=r.refs={}),null===t?delete e[i]:e[i]=t})._stringRef=i,e)}"string"!=typeof t&&s("284"),n._owner||s("290",t)}return t}function Hi(t,e){"textarea"!==t.type&&s("31","[object Object]"===Object.prototype.toString.call(e)?"object with keys {"+Object.keys(e).join(", ")+"}":e,"")}function Wi(t){function e(e,n){if(t){var r=e.lastEffect;null!==r?(r.nextEffect=n,e.lastEffect=n):e.firstEffect=e.lastEffect=n,n.nextEffect=null,n.effectTag=8}}function n(n,r){if(!t)return null;for(;null!==r;)e(n,r),r=r.sibling;return null}function r(t,e){for(t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(t,e,n){return(t=Kr(t,e)).index=0,t.sibling=null,t}function o(e,n,r){return e.index=r,t?null!==(r=e.alternate)?(r=r.index)<n?(e.effectTag=2,n):r:(e.effectTag=2,n):n}function a(e){return t&&null===e.alternate&&(e.effectTag=2),e}function u(t,e,n,r){return null===e||6!==e.tag?((e=Yr(n,t.mode,r)).return=t,e):((e=i(e,n)).return=t,e)}function l(t,e,n,r){return null!==e&&e.elementType===n.type?((r=i(e,n.props)).ref=Ui(t,e,n),r.return=t,r):((r=Qr(n.type,n.key,n.props,null,t.mode,r)).ref=Ui(t,e,n),r.return=t,r)}function c(t,e,n,r){return null===e||4!==e.tag||e.stateNode.containerInfo!==n.containerInfo||e.stateNode.implementation!==n.implementation?((e=Zr(n,t.mode,r)).return=t,e):((e=i(e,n.children||[])).return=t,e)}function f(t,e,n,r,o){return null===e||7!==e.tag?((e=$r(n,t.mode,r,o)).return=t,e):((e=i(e,n)).return=t,e)}function d(t,e,n){if("string"==typeof e||"number"==typeof e)return(e=Yr(""+e,t.mode,n)).return=t,e;if("object"==typeof e&&null!==e){switch(e.$$typeof){case Gt:return(n=Qr(e.type,e.key,e.props,null,t.mode,n)).ref=Ui(t,null,e),n.return=t,n;case Yt:return(e=Zr(e,t.mode,n)).return=t,e}if(zi(e)||ue(e))return(e=$r(e,t.mode,n,null)).return=t,e;Hi(t,e)}return null}function p(t,e,n,r){var i=null!==e?e.key:null;if("string"==typeof n||"number"==typeof n)return null!==i?null:u(t,e,""+n,r);if("object"==typeof n&&null!==n){switch(n.$$typeof){case Gt:return n.key===i?n.type===Zt?f(t,e,n.props.children,r,i):l(t,e,n,r):null;case Yt:return n.key===i?c(t,e,n,r):null}if(zi(n)||ue(n))return null!==i?null:f(t,e,n,r,null);Hi(t,n)}return null}function h(t,e,n,r,i){if("string"==typeof r||"number"==typeof r)return u(e,t=t.get(n)||null,""+r,i);if("object"==typeof r&&null!==r){switch(r.$$typeof){case Gt:return t=t.get(null===r.key?n:r.key)||null,r.type===Zt?f(e,t,r.props.children,i,r.key):l(e,t,r,i);case Yt:return c(e,t=t.get(null===r.key?n:r.key)||null,r,i)}if(zi(r)||ue(r))return f(e,t=t.get(n)||null,r,i,null);Hi(e,r)}return null}function v(i,a,s,u){for(var l=null,c=null,f=a,v=a=0,m=null;null!==f&&v<s.length;v++){f.index>v?(m=f,f=null):m=f.sibling;var y=p(i,f,s[v],u);if(null===y){null===f&&(f=m);break}t&&f&&null===y.alternate&&e(i,f),a=o(y,a,v),null===c?l=y:c.sibling=y,c=y,f=m}if(v===s.length)return n(i,f),l;if(null===f){for(;v<s.length;v++)(f=d(i,s[v],u))&&(a=o(f,a,v),null===c?l=f:c.sibling=f,c=f);return l}for(f=r(i,f);v<s.length;v++)(m=h(f,i,v,s[v],u))&&(t&&null!==m.alternate&&f.delete(null===m.key?v:m.key),a=o(m,a,v),null===c?l=m:c.sibling=m,c=m);return t&&f.forEach((function(t){return e(i,t)})),l}function m(i,a,u,l){var c=ue(u);"function"!=typeof c&&s("150"),null==(u=c.call(u))&&s("151");for(var f=c=null,v=a,m=a=0,y=null,g=u.next();null!==v&&!g.done;m++,g=u.next()){v.index>m?(y=v,v=null):y=v.sibling;var b=p(i,v,g.value,l);if(null===b){v||(v=y);break}t&&v&&null===b.alternate&&e(i,v),a=o(b,a,m),null===f?c=b:f.sibling=b,f=b,v=y}if(g.done)return n(i,v),c;if(null===v){for(;!g.done;m++,g=u.next())null!==(g=d(i,g.value,l))&&(a=o(g,a,m),null===f?c=g:f.sibling=g,f=g);return c}for(v=r(i,v);!g.done;m++,g=u.next())null!==(g=h(v,i,m,g.value,l))&&(t&&null!==g.alternate&&v.delete(null===g.key?m:g.key),a=o(g,a,m),null===f?c=g:f.sibling=g,f=g);return t&&v.forEach((function(t){return e(i,t)})),c}return function(t,r,o,u){var l="object"==typeof o&&null!==o&&o.type===Zt&&null===o.key;l&&(o=o.props.children);var c="object"==typeof o&&null!==o;if(c)switch(o.$$typeof){case Gt:t:{for(c=o.key,l=r;null!==l;){if(l.key===c){if(7===l.tag?o.type===Zt:l.elementType===o.type){n(t,l.sibling),(r=i(l,o.type===Zt?o.props.children:o.props)).ref=Ui(t,l,o),r.return=t,t=r;break t}n(t,l);break}e(t,l),l=l.sibling}o.type===Zt?((r=$r(o.props.children,t.mode,u,o.key)).return=t,t=r):((u=Qr(o.type,o.key,o.props,null,t.mode,u)).ref=Ui(t,r,o),u.return=t,t=u)}return a(t);case Yt:t:{for(l=o.key;null!==r;){if(r.key===l){if(4===r.tag&&r.stateNode.containerInfo===o.containerInfo&&r.stateNode.implementation===o.implementation){n(t,r.sibling),(r=i(r,o.children||[])).return=t,t=r;break t}n(t,r);break}e(t,r),r=r.sibling}(r=Zr(o,t.mode,u)).return=t,t=r}return a(t)}if("string"==typeof o||"number"==typeof o)return o=""+o,null!==r&&6===r.tag?(n(t,r.sibling),(r=i(r,o)).return=t,t=r):(n(t,r),(r=Yr(o,t.mode,u)).return=t,t=r),a(t);if(zi(o))return v(t,r,o,u);if(ue(o))return m(t,r,o,u);if(c&&Hi(t,o),void 0===o&&!l)switch(t.tag){case 1:case 0:s("152",(u=t.type).displayName||u.name||"Component")}return n(t,r)}}var Vi=Wi(!0),Ki=Wi(!1),Qi=null,$i=null,Gi=!1;function Yi(t,e){var n=Wr(5,null,null,0);n.elementType="DELETED",n.type="DELETED",n.stateNode=e,n.return=t,n.effectTag=8,null!==t.lastEffect?(t.lastEffect.nextEffect=n,t.lastEffect=n):t.firstEffect=t.lastEffect=n}function Zi(t,e){switch(t.tag){case 5:var n=t.type;return null!==(e=1!==e.nodeType||n.toLowerCase()!==e.nodeName.toLowerCase()?null:e)&&(t.stateNode=e,!0);case 6:return null!==(e=""===t.pendingProps||3!==e.nodeType?null:e)&&(t.stateNode=e,!0);default:return!1}}function Xi(t){if(Gi){var e=$i;if(e){var n=e;if(!Zi(t,e)){if(!(e=Or(n))||!Zi(t,e))return t.effectTag|=2,Gi=!1,void(Qi=t);Yi(Qi,n)}Qi=t,$i=kr(e)}else t.effectTag|=2,Gi=!1,Qi=t}}function Ji(t){for(t=t.return;null!==t&&5!==t.tag&&3!==t.tag;)t=t.return;Qi=t}function to(t){if(t!==Qi)return!1;if(!Gi)return Ji(t),Gi=!0,!1;var e=t.type;if(5!==t.tag||"head"!==e&&"body"!==e&&!br(e,t.memoizedProps))for(e=$i;e;)Yi(t,e),e=Or(e);return Ji(t),$i=Qi?Or(t.stateNode):null,!0}function eo(){$i=Qi=null,Gi=!1}var no=Kt.ReactCurrentOwner;function ro(t,e,n,r){e.child=null===t?Ki(e,null,n,r):Vi(e,t.child,n,r)}function io(t,e,n,r,i){n=n.render;var o=e.ref;return _i(e),r=n(r,o),e.effectTag|=1,ro(t,e,r,i),e.child}function oo(t,e,n,r,i,o){if(null===t){var a=n.type;return"function"!=typeof a||Vr(a)||void 0!==a.defaultProps||null!==n.compare?((t=Qr(n.type,null,r,null,e.mode,o)).ref=e.ref,t.return=e,e.child=t):(e.tag=15,e.type=a,ao(t,e,a,r,i,o))}return a=t.child,i<o&&(i=a.memoizedProps,(n=null!==(n=n.compare)?n:nn)(i,r)&&t.ref===e.ref)?ho(t,e,o):(e.effectTag|=1,(t=Kr(a,r)).ref=e.ref,t.return=e,e.child=t)}function ao(t,e,n,r,i,o){return null!==t&&i<o&&nn(t.memoizedProps,r)&&t.ref===e.ref?ho(t,e,o):uo(t,e,n,r,o)}function so(t,e){var n=e.ref;(null===t&&null!==n||null!==t&&t.ref!==n)&&(e.effectTag|=128)}function uo(t,e,n,r,i){var o=Lr(n)?Pr:Tr.current;return o=Nr(e,o),_i(e),n=n(r,o),e.effectTag|=1,ro(t,e,n,i),e.child}function lo(t,e,n,r,i){if(Lr(n)){var o=!0;Br(e)}else o=!1;if(_i(e),null===e.stateNode)null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),Bi(e,n,r),Fi(e,n,r,i),r=!0;else if(null===t){var a=e.stateNode,s=e.memoizedProps;a.props=s;var u=a.context,l=n.contextType;"object"==typeof l&&null!==l?l=Li.currentDispatcher.readContext(l):l=Nr(e,l=Lr(n)?Pr:Tr.current);var c=n.getDerivedStateFromProps,f="function"==typeof c||"function"==typeof a.getSnapshotBeforeUpdate;f||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&qi(e,a,r,l),ni=!1;var d=e.memoizedState;u=a.state=d;var p=e.updateQueue;null!==p&&(fi(e,p,r,a,i),u=e.memoizedState),s!==r||d!==u||Ar.current||ni?("function"==typeof c&&(Di(e,n,c,r),u=e.memoizedState),(s=ni||Mi(e,n,s,r,d,u,l))?(f||"function"!=typeof a.UNSAFE_componentWillMount&&"function"!=typeof a.componentWillMount||("function"==typeof a.componentWillMount&&a.componentWillMount(),"function"==typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"==typeof a.componentDidMount&&(e.effectTag|=4)):("function"==typeof a.componentDidMount&&(e.effectTag|=4),e.memoizedProps=r,e.memoizedState=u),a.props=r,a.state=u,a.context=l,r=s):("function"==typeof a.componentDidMount&&(e.effectTag|=4),r=!1)}else a=e.stateNode,s=e.memoizedProps,a.props=e.type===e.elementType?s:Ni(e.type,s),u=a.context,"object"==typeof(l=n.contextType)&&null!==l?l=Li.currentDispatcher.readContext(l):l=Nr(e,l=Lr(n)?Pr:Tr.current),(f="function"==typeof(c=n.getDerivedStateFromProps)||"function"==typeof a.getSnapshotBeforeUpdate)||"function"!=typeof a.UNSAFE_componentWillReceiveProps&&"function"!=typeof a.componentWillReceiveProps||(s!==r||u!==l)&&qi(e,a,r,l),ni=!1,u=e.memoizedState,d=a.state=u,null!==(p=e.updateQueue)&&(fi(e,p,r,a,i),d=e.memoizedState),s!==r||u!==d||Ar.current||ni?("function"==typeof c&&(Di(e,n,c,r),d=e.memoizedState),(c=ni||Mi(e,n,s,r,u,d,l))?(f||"function"!=typeof a.UNSAFE_componentWillUpdate&&"function"!=typeof a.componentWillUpdate||("function"==typeof a.componentWillUpdate&&a.componentWillUpdate(r,d,l),"function"==typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,d,l)),"function"==typeof a.componentDidUpdate&&(e.effectTag|=4),"function"==typeof a.getSnapshotBeforeUpdate&&(e.effectTag|=256)):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),e.memoizedProps=r,e.memoizedState=d),a.props=r,a.state=d,a.context=l,r=c):("function"!=typeof a.componentDidUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=4),"function"!=typeof a.getSnapshotBeforeUpdate||s===t.memoizedProps&&u===t.memoizedState||(e.effectTag|=256),r=!1);return co(t,e,n,r,o,i)}function co(t,e,n,r,i,o){so(t,e);var a=0!=(64&e.effectTag);if(!r&&!a)return i&&qr(e,n,!1),ho(t,e,o);r=e.stateNode,no.current=e;var s=a&&"function"!=typeof n.getDerivedStateFromError?null:r.render();return e.effectTag|=1,null!==t&&a?(e.child=Vi(e,t.child,null,o),e.child=Vi(e,null,s,o)):ro(t,e,s,o),e.memoizedState=r.state,i&&qr(e,n,!0),e.child}function fo(t){var e=t.stateNode;e.pendingContext?Rr(0,e.pendingContext,e.pendingContext!==e.context):e.context&&Rr(0,e.context,!1),Si(t,e.containerInfo)}function po(t,e,n){var r=e.mode,i=e.pendingProps,o=e.memoizedState;if(0==(64&e.effectTag)){o=null;var a=!1}else o={timedOutAt:null!==o?o.timedOutAt:0},a=!0,e.effectTag&=-65;return null===t?a?(a=i.fallback,i=$r(null,r,0,null),0==(1&e.mode)&&(i.child=null!==e.memoizedState?e.child.child:e.child),r=$r(a,r,n,null),i.sibling=r,(n=i).return=r.return=e):n=r=Ki(e,null,i.children,n):null!==t.memoizedState?(t=(r=t.child).sibling,a?(n=i.fallback,i=Kr(r,r.pendingProps),0==(1&e.mode)&&((a=null!==e.memoizedState?e.child.child:e.child)!==r.child&&(i.child=a)),r=i.sibling=Kr(t,n,t.expirationTime),n=i,i.childExpirationTime=0,n.return=r.return=e):n=r=Vi(e,r.child,i.children,n)):(t=t.child,a?(a=i.fallback,(i=$r(null,r,0,null)).child=t,0==(1&e.mode)&&(i.child=null!==e.memoizedState?e.child.child:e.child),(r=i.sibling=$r(a,r,n,null)).effectTag|=2,n=i,i.childExpirationTime=0,n.return=r.return=e):r=n=Vi(e,t,i.children,n)),e.memoizedState=o,e.child=n,r}function ho(t,e,n){if(null!==t&&(e.firstContextDependency=t.firstContextDependency),e.childExpirationTime<n)return null;if(null!==t&&e.child!==t.child&&s("153"),null!==e.child){for(n=Kr(t=e.child,t.pendingProps,t.expirationTime),e.child=n,n.return=e;null!==t.sibling;)t=t.sibling,(n=n.sibling=Kr(t,t.pendingProps,t.expirationTime)).return=e;n.sibling=null}return e.child}function vo(t,e,n){var r=e.expirationTime;if(null!==t&&t.memoizedProps===e.pendingProps&&!Ar.current&&r<n){switch(e.tag){case 3:fo(e),eo();break;case 5:Ai(e);break;case 1:Lr(e.type)&&Br(e);break;case 4:Si(e,e.stateNode.containerInfo);break;case 10:bi(e,e.memoizedProps.value);break;case 13:if(null!==e.memoizedState)return 0!==(r=e.child.childExpirationTime)&&r>=n?po(t,e,n):null!==(e=ho(t,e,n))?e.sibling:null}return ho(t,e,n)}switch(e.expirationTime=0,e.tag){case 2:r=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),t=e.pendingProps;var i=Nr(e,Tr.current);if(_i(e),i=r(t,i),e.effectTag|=1,"object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof){if(e.tag=1,Lr(r)){var o=!0;Br(e)}else o=!1;e.memoizedState=null!==i.state&&void 0!==i.state?i.state:null;var a=r.getDerivedStateFromProps;"function"==typeof a&&Di(e,r,a,t),i.updater=Ri,e.stateNode=i,i._reactInternalFiber=e,Fi(e,r,t,n),e=co(null,e,r,!0,o,n)}else e.tag=0,ro(null,e,i,n),e=e.child;return e;case 16:switch(i=e.elementType,null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),o=e.pendingProps,t=function(t){var e=t._result;switch(t._status){case 1:return e;case 2:case 0:throw e;default:throw t._status=0,(e=(e=t._ctor)()).then((function(e){0===t._status&&(e=e.default,t._status=1,t._result=e)}),(function(e){0===t._status&&(t._status=2,t._result=e)})),t._result=e,e}}(i),e.type=t,i=e.tag=function(t){if("function"==typeof t)return Vr(t)?1:0;if(null!=t){if((t=t.$$typeof)===re)return 11;if(t===oe)return 14}return 2}(t),o=Ni(t,o),a=void 0,i){case 0:a=uo(null,e,t,o,n);break;case 1:a=lo(null,e,t,o,n);break;case 11:a=io(null,e,t,o,n);break;case 14:a=oo(null,e,t,Ni(t.type,o),r,n);break;default:s("283",t)}return a;case 0:return r=e.type,i=e.pendingProps,uo(t,e,r,i=e.elementType===r?i:Ni(r,i),n);case 1:return r=e.type,i=e.pendingProps,lo(t,e,r,i=e.elementType===r?i:Ni(r,i),n);case 3:return fo(e),null===(r=e.updateQueue)&&s("282"),i=null!==(i=e.memoizedState)?i.element:null,fi(e,r,e.pendingProps,null,n),(r=e.memoizedState.element)===i?(eo(),e=ho(t,e,n)):(i=e.stateNode,(i=(null===t||null===t.child)&&i.hydrate)&&($i=kr(e.stateNode.containerInfo),Qi=e,i=Gi=!0),i?(e.effectTag|=2,e.child=Ki(e,null,r,n)):(ro(t,e,r,n),eo()),e=e.child),e;case 5:return Ai(e),null===t&&Xi(e),r=e.type,i=e.pendingProps,o=null!==t?t.memoizedProps:null,a=i.children,br(r,i)?a=null:null!==o&&br(r,o)&&(e.effectTag|=16),so(t,e),1!==n&&1&e.mode&&i.hidden?(e.expirationTime=1,e=null):(ro(t,e,a,n),e=e.child),e;case 6:return null===t&&Xi(e),null;case 13:return po(t,e,n);case 4:return Si(e,e.stateNode.containerInfo),r=e.pendingProps,null===t?e.child=Vi(e,null,r,n):ro(t,e,r,n),e.child;case 11:return r=e.type,i=e.pendingProps,io(t,e,r,i=e.elementType===r?i:Ni(r,i),n);case 7:return ro(t,e,e.pendingProps,n),e.child;case 8:case 12:return ro(t,e,e.pendingProps.children,n),e.child;case 10:t:{if(r=e.type._context,i=e.pendingProps,a=e.memoizedProps,bi(e,o=i.value),null!==a){var u=a.value;if(0===(o=u===o&&(0!==u||1/u==1/o)||u!=u&&o!=o?0:0|("function"==typeof r._calculateChangedBits?r._calculateChangedBits(u,o):1073741823))){if(a.children===i.children&&!Ar.current){e=ho(t,e,n);break t}}else for(null!==(a=e.child)&&(a.return=e);null!==a;){if(null!==(u=a.firstContextDependency))do{if(u.context===r&&0!=(u.observedBits&o)){if(1===a.tag){var l=oi(n);l.tag=2,si(a,l)}a.expirationTime<n&&(a.expirationTime=n),null!==(l=a.alternate)&&l.expirationTime<n&&(l.expirationTime=n);for(var c=a.return;null!==c;){if(l=c.alternate,c.childExpirationTime<n)c.childExpirationTime=n,null!==l&&l.childExpirationTime<n&&(l.childExpirationTime=n);else{if(!(null!==l&&l.childExpirationTime<n))break;l.childExpirationTime=n}c=c.return}}l=a.child,u=u.next}while(null!==u);else l=10===a.tag&&a.type===e.type?null:a.child;if(null!==l)l.return=a;else for(l=a;null!==l;){if(l===e){l=null;break}if(null!==(a=l.sibling)){a.return=l.return,l=a;break}l=l.return}a=l}}ro(t,e,i.children,n),e=e.child}return e;case 9:return i=e.type,r=(o=e.pendingProps).children,_i(e),r=r(i=Oi(i,o.unstable_observedBits)),e.effectTag|=1,ro(t,e,r,n),e.child;case 14:return oo(t,e,i=e.type,o=Ni(i.type,e.pendingProps),r,n);case 15:return ao(t,e,e.type,e.pendingProps,r,n);case 17:return r=e.type,i=e.pendingProps,i=e.elementType===r?i:Ni(r,i),null!==t&&(t.alternate=null,e.alternate=null,e.effectTag|=2),e.tag=1,Lr(r)?(t=!0,Br(e)):t=!1,_i(e),Bi(e,r,i),Fi(e,r,i,n),co(null,e,r,!0,t,n);default:s("156")}}function mo(t){t.effectTag|=4}var yo,go,bo;function wo(t,e){var n=e.source,r=e.stack;null===r&&null!==n&&(r=ce(n)),null!==n&&le(n.type),e=e.value,null!==t&&1===t.tag&&le(t.type);try{console.error(e)}catch(t){setTimeout((function(){throw t}))}}function _o(t){var e=t.ref;if(null!==e)if("function"==typeof e)try{e(null)}catch(e){$o(t,e)}else e.current=null}function Oo(t){switch("function"==typeof zr&&zr(t),t.tag){case 0:case 11:case 14:case 15:var e=t.updateQueue;if(null!==e&&null!==(e=e.lastEffect)){var n=e=e.next;do{var r=n.destroy;if(null!==r){var i=t;try{r()}catch(t){$o(i,t)}}n=n.next}while(n!==e)}break;case 1:if(_o(t),"function"==typeof(e=t.stateNode).componentWillUnmount)try{e.props=t.memoizedProps,e.state=t.memoizedState,e.componentWillUnmount()}catch(e){$o(t,e)}break;case 5:_o(t);break;case 4:Co(t)}}function ko(t){return 5===t.tag||3===t.tag||4===t.tag}function xo(t){t:{for(var e=t.return;null!==e;){if(ko(e)){var n=e;break t}e=e.return}s("160"),n=void 0}var r=e=void 0;switch(n.tag){case 5:e=n.stateNode,r=!1;break;case 3:case 4:e=n.stateNode.containerInfo,r=!0;break;default:s("161")}16&n.effectTag&&(ar(e,""),n.effectTag&=-17);t:e:for(n=t;;){for(;null===n.sibling;){if(null===n.return||ko(n.return)){n=null;break t}n=n.return}for(n.sibling.return=n.return,n=n.sibling;5!==n.tag&&6!==n.tag;){if(2&n.effectTag)continue e;if(null===n.child||4===n.tag)continue e;n.child.return=n,n=n.child}if(!(2&n.effectTag)){n=n.stateNode;break t}}for(var i=t;;){if(5===i.tag||6===i.tag)if(n)if(r){var o=e,a=i.stateNode,u=n;8===o.nodeType?o.parentNode.insertBefore(a,u):o.insertBefore(a,u)}else e.insertBefore(i.stateNode,n);else r?(a=e,u=i.stateNode,8===a.nodeType?(o=a.parentNode).insertBefore(u,a):(o=a).appendChild(u),null!=(a=a._reactRootContainer)||null!==o.onclick||(o.onclick=vr)):e.appendChild(i.stateNode);else if(4!==i.tag&&null!==i.child){i.child.return=i,i=i.child;continue}if(i===t)break;for(;null===i.sibling;){if(null===i.return||i.return===t)return;i=i.return}i.sibling.return=i.return,i=i.sibling}}function Co(t){for(var e=t,n=!1,r=void 0,i=void 0;;){if(!n){n=e.return;t:for(;;){switch(null===n&&s("160"),n.tag){case 5:r=n.stateNode,i=!1;break t;case 3:case 4:r=n.stateNode.containerInfo,i=!0;break t}n=n.return}n=!0}if(5===e.tag||6===e.tag){t:for(var o=e,a=o;;)if(Oo(a),null!==a.child&&4!==a.tag)a.child.return=a,a=a.child;else{if(a===o)break;for(;null===a.sibling;){if(null===a.return||a.return===o)break t;a=a.return}a.sibling.return=a.return,a=a.sibling}i?(o=r,a=e.stateNode,8===o.nodeType?o.parentNode.removeChild(a):o.removeChild(a)):r.removeChild(e.stateNode)}else if(4===e.tag?(r=e.stateNode.containerInfo,i=!0):Oo(e),null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break;for(;null===e.sibling;){if(null===e.return||e.return===t)return;4===(e=e.return).tag&&(n=!1)}e.sibling.return=e.return,e=e.sibling}}function Eo(t,e){switch(e.tag){case 0:case 11:case 14:case 15:case 1:break;case 5:var n=e.stateNode;if(null!=n){var r=e.memoizedProps,i=null!==t?t.memoizedProps:r;t=e.type;var o=e.updateQueue;if(e.updateQueue=null,null!==o){for(n[R]=r,"input"===t&&"radio"===r.type&&null!=r.name&&ke(n,r),pr(t,i),e=pr(t,r),i=0;i<o.length;i+=2){var a=o[i],u=o[i+1];"style"===a?cr(n,u):"dangerouslySetInnerHTML"===a?or(n,u):"children"===a?ar(n,u):be(n,a,u,e)}switch(t){case"input":xe(n,r);break;case"textarea":Xn(n,r);break;case"select":e=n._wrapperState.wasMultiple,n._wrapperState.wasMultiple=!!r.multiple,null!=(t=r.value)?Gn(n,!!r.multiple,t,!1):e!==!!r.multiple&&(null!=r.defaultValue?Gn(n,!!r.multiple,r.defaultValue,!0):Gn(n,!!r.multiple,r.multiple?[]:"",!1))}}}break;case 6:null===e.stateNode&&s("162"),e.stateNode.nodeValue=e.memoizedProps;break;case 3:case 12:break;case 13:if(t=e,null===(n=e.memoizedState)?r=!1:(r=!0,t=e.child,0===n.timedOutAt&&(n.timedOutAt=xa())),null!==t)t:for(e=n=t;;){if(5===e.tag)t=e.stateNode,r?t.style.display="none":(t=e.stateNode,o=null!=(o=e.memoizedProps.style)&&o.hasOwnProperty("display")?o.display:null,t.style.display=lr("display",o));else if(6===e.tag)e.stateNode.nodeValue=r?"":e.memoizedProps;else{if(13===e.tag&&null!==e.memoizedState){(t=e.child.sibling).return=e,e=t;continue}if(null!==e.child){e.child.return=e,e=e.child;continue}}if(e===n)break t;for(;null===e.sibling;){if(null===e.return||e.return===n)break t;e=e.return}e.sibling.return=e.return,e=e.sibling}break;case 17:break;default:s("163")}}function jo(t,e,n){(n=oi(n)).tag=3,n.payload={element:null};var r=e.value;return n.callback=function(){Ia(r),wo(t,e)},n}function So(t,e,n){(n=oi(n)).tag=3;var r=t.type.getDerivedStateFromError;if("function"==typeof r){var i=e.value;n.payload=function(){return r(i)}}var o=t.stateNode;return null!==o&&"function"==typeof o.componentDidCatch&&(n.callback=function(){"function"!=typeof r&&(null===Uo?Uo=new Set([this]):Uo.add(this));var n=e.value,i=e.stack;wo(t,e),this.componentDidCatch(n,{componentStack:null!==i?i:""})}),n}function To(t){switch(t.tag){case 1:Lr(t.type)&&Ir();var e=t.effectTag;return 2048&e?(t.effectTag=-2049&e|64,t):null;case 3:return Ti(),Dr(),0!=(64&(e=t.effectTag))&&s("285"),t.effectTag=-2049&e|64,t;case 5:return Pi(t),null;case 13:return 2048&(e=t.effectTag)?(t.effectTag=-2049&e|64,t):null;case 4:return Ti(),null;case 10:return wi(t),null;default:return null}}yo=function(t,e){for(var n=e.child;null!==n;){if(5===n.tag||6===n.tag)t.appendChild(n.stateNode);else if(4!==n.tag&&null!==n.child){n.child.return=n,n=n.child;continue}if(n===e)break;for(;null===n.sibling;){if(null===n.return||n.return===e)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},go=function(t,e,n,r,o){var a=t.memoizedProps;if(a!==r){var s=e.stateNode;switch(ji(xi.current),t=null,n){case"input":a=_e(s,a),r=_e(s,r),t=[];break;case"option":a=$n(s,a),r=$n(s,r),t=[];break;case"select":a=i({},a,{value:void 0}),r=i({},r,{value:void 0}),t=[];break;case"textarea":a=Yn(s,a),r=Yn(s,r),t=[];break;default:"function"!=typeof a.onClick&&"function"==typeof r.onClick&&(s.onclick=vr)}dr(n,r),s=n=void 0;var u=null;for(n in a)if(!r.hasOwnProperty(n)&&a.hasOwnProperty(n)&&null!=a[n])if("style"===n){var l=a[n];for(s in l)l.hasOwnProperty(s)&&(u||(u={}),u[s]="")}else"dangerouslySetInnerHTML"!==n&&"children"!==n&&"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&"autoFocus"!==n&&(_.hasOwnProperty(n)?t||(t=[]):(t=t||[]).push(n,null));for(n in r){var c=r[n];if(l=null!=a?a[n]:void 0,r.hasOwnProperty(n)&&c!==l&&(null!=c||null!=l))if("style"===n)if(l){for(s in l)!l.hasOwnProperty(s)||c&&c.hasOwnProperty(s)||(u||(u={}),u[s]="");for(s in c)c.hasOwnProperty(s)&&l[s]!==c[s]&&(u||(u={}),u[s]=c[s])}else u||(t||(t=[]),t.push(n,u)),u=c;else"dangerouslySetInnerHTML"===n?(c=c?c.__html:void 0,l=l?l.__html:void 0,null!=c&&l!==c&&(t=t||[]).push(n,""+c)):"children"===n?l===c||"string"!=typeof c&&"number"!=typeof c||(t=t||[]).push(n,""+c):"suppressContentEditableWarning"!==n&&"suppressHydrationWarning"!==n&&(_.hasOwnProperty(n)?(null!=c&&hr(o,n),t||l===c||(t=[])):(t=t||[]).push(n,c))}u&&(t=t||[]).push("style",u),o=t,(e.updateQueue=o)&&mo(e)}},bo=function(t,e,n,r){n!==r&&mo(e)};var Ao={readContext:Oi},Po=Kt.ReactCurrentOwner,No=1073741822,Lo=0,Io=!1,Do=null,Ro=null,Mo=0,Bo=-1,qo=!1,Fo=null,zo=!1,Uo=null;function Ho(){if(null!==Do)for(var t=Do.return;null!==t;){var e=t;switch(e.tag){case 1:var n=e.type.childContextTypes;null!=n&&Ir();break;case 3:Ti(),Dr();break;case 5:Pi(e);break;case 4:Ti();break;case 10:wi(e)}t=t.return}Ro=null,Mo=0,Bo=-1,qo=!1,Do=null}function Wo(){}function Vo(t){for(;;){var e=t.alternate,n=t.return,r=t.sibling;if(0==(1024&t.effectTag)){Do=t;t:{var o=e,a=Mo,u=(e=t).pendingProps;switch(e.tag){case 2:case 16:break;case 15:case 0:break;case 1:Lr(e.type)&&Ir();break;case 3:Ti(),Dr(),(u=e.stateNode).pendingContext&&(u.context=u.pendingContext,u.pendingContext=null),null!==o&&null!==o.child||(to(e),e.effectTag&=-3);break;case 5:Pi(e);var l=ji(Ei.current);if(a=e.type,null!==o&&null!=e.stateNode)go(o,e,a,u,l),o.ref!==e.ref&&(e.effectTag|=128);else if(u){var c=ji(xi.current);if(to(e)){o=(u=e).stateNode;var f=u.type,d=u.memoizedProps,p=l;switch(o[D]=u,o[R]=d,a=void 0,l=f){case"iframe":case"object":jn("load",o);break;case"video":case"audio":for(f=0;f<rt.length;f++)jn(rt[f],o);break;case"source":jn("error",o);break;case"img":case"image":case"link":jn("error",o),jn("load",o);break;case"form":jn("reset",o),jn("submit",o);break;case"details":jn("toggle",o);break;case"input":Oe(o,d),jn("invalid",o),hr(p,"onChange");break;case"select":o._wrapperState={wasMultiple:!!d.multiple},jn("invalid",o),hr(p,"onChange");break;case"textarea":Zn(o,d),jn("invalid",o),hr(p,"onChange")}for(a in dr(l,d),f=null,d)d.hasOwnProperty(a)&&(c=d[a],"children"===a?"string"==typeof c?o.textContent!==c&&(f=["children",c]):"number"==typeof c&&o.textContent!==""+c&&(f=["children",""+c]):_.hasOwnProperty(a)&&null!=c&&hr(p,a));switch(l){case"input":Wt(o),Ce(o,d,!0);break;case"textarea":Wt(o),Jn(o);break;case"select":case"option":break;default:"function"==typeof d.onClick&&(o.onclick=vr)}a=f,u.updateQueue=a,(u=null!==a)&&mo(e)}else{d=e,o=a,p=u,f=9===l.nodeType?l:l.ownerDocument,c===tr&&(c=nr(o)),c===tr?"script"===o?((o=f.createElement("div")).innerHTML="<script><\/script>",f=o.removeChild(o.firstChild)):"string"==typeof p.is?f=f.createElement(o,{is:p.is}):(f=f.createElement(o),"select"===o&&p.multiple&&(f.multiple=!0)):f=f.createElementNS(c,o),(o=f)[D]=d,o[R]=u,yo(o,e),p=o;var h=l,v=pr(f=a,d=u);switch(f){case"iframe":case"object":jn("load",p),l=d;break;case"video":case"audio":for(l=0;l<rt.length;l++)jn(rt[l],p);l=d;break;case"source":jn("error",p),l=d;break;case"img":case"image":case"link":jn("error",p),jn("load",p),l=d;break;case"form":jn("reset",p),jn("submit",p),l=d;break;case"details":jn("toggle",p),l=d;break;case"input":Oe(p,d),l=_e(p,d),jn("invalid",p),hr(h,"onChange");break;case"option":l=$n(p,d);break;case"select":p._wrapperState={wasMultiple:!!d.multiple},l=i({},d,{value:void 0}),jn("invalid",p),hr(h,"onChange");break;case"textarea":Zn(p,d),l=Yn(p,d),jn("invalid",p),hr(h,"onChange");break;default:l=d}dr(f,l),c=void 0;var m=f,y=p,g=l;for(c in g)if(g.hasOwnProperty(c)){var b=g[c];"style"===c?cr(y,b):"dangerouslySetInnerHTML"===c?null!=(b=b?b.__html:void 0)&&or(y,b):"children"===c?"string"==typeof b?("textarea"!==m||""!==b)&&ar(y,b):"number"==typeof b&&ar(y,""+b):"suppressContentEditableWarning"!==c&&"suppressHydrationWarning"!==c&&"autoFocus"!==c&&(_.hasOwnProperty(c)?null!=b&&hr(h,c):null!=b&&be(y,c,b,v))}switch(f){case"input":Wt(p),Ce(p,d,!1);break;case"textarea":Wt(p),Jn(p);break;case"option":null!=d.value&&p.setAttribute("value",""+we(d.value));break;case"select":(l=p).multiple=!!d.multiple,null!=(p=d.value)?Gn(l,!!d.multiple,p,!1):null!=d.defaultValue&&Gn(l,!!d.multiple,d.defaultValue,!0);break;default:"function"==typeof l.onClick&&(p.onclick=vr)}(u=gr(a,u))&&mo(e),e.stateNode=o}null!==e.ref&&(e.effectTag|=128)}else null===e.stateNode&&s("166");break;case 6:o&&null!=e.stateNode?bo(0,e,o.memoizedProps,u):("string"!=typeof u&&(null===e.stateNode&&s("166")),o=ji(Ei.current),ji(xi.current),to(e)?(a=(u=e).stateNode,o=u.memoizedProps,a[D]=u,(u=a.nodeValue!==o)&&mo(e)):(a=e,(u=(9===o.nodeType?o:o.ownerDocument).createTextNode(u))[D]=e,a.stateNode=u));break;case 11:break;case 13:if(u=e.memoizedState,0!=(64&e.effectTag)){e.expirationTime=a,Do=e;break t}u=null!==u,a=null!==o&&null!==o.memoizedState,null!==o&&!u&&a&&(null!==(o=o.child.sibling)&&(null!==(l=e.firstEffect)?(e.firstEffect=o,o.nextEffect=l):(e.firstEffect=e.lastEffect=o,o.nextEffect=null),o.effectTag=8)),(u!==a||0==(1&e.effectTag)&&u)&&(e.effectTag|=4);break;case 7:case 8:case 12:break;case 4:Ti();break;case 10:wi(e);break;case 9:case 14:break;case 17:Lr(e.type)&&Ir();break;default:s("156")}Do=null}if(e=t,1===Mo||1!==e.childExpirationTime){for(u=0,a=e.child;null!==a;)(o=a.expirationTime)>u&&(u=o),(l=a.childExpirationTime)>u&&(u=l),a=a.sibling;e.childExpirationTime=u}if(null!==Do)return Do;null!==n&&0==(1024&n.effectTag)&&(null===n.firstEffect&&(n.firstEffect=t.firstEffect),null!==t.lastEffect&&(null!==n.lastEffect&&(n.lastEffect.nextEffect=t.firstEffect),n.lastEffect=t.lastEffect),1<t.effectTag&&(null!==n.lastEffect?n.lastEffect.nextEffect=t:n.firstEffect=t,n.lastEffect=t))}else{if(null!==(t=To(t)))return t.effectTag&=1023,t;null!==n&&(n.firstEffect=n.lastEffect=null,n.effectTag|=1024)}if(null!==r)return r;if(null===n)break;t=n}return null}function Ko(t){var e=vo(t.alternate,t,Mo);return t.memoizedProps=t.pendingProps,null===e&&(e=Vo(t)),Po.current=null,e}function Qo(t,e){Io&&s("243"),Io=!0,Po.currentDispatcher=Ao;var n=t.nextExpirationTimeToWorkOn;n===Mo&&t===Ro&&null!==Do||(Ho(),Mo=n,Do=Kr((Ro=t).current,null),t.pendingCommitExpirationTime=0);for(var r=!1;;){try{if(e)for(;null!==Do&&!Sa();)Do=Ko(Do);else for(;null!==Do;)Do=Ko(Do)}catch(e){if(gi=yi=mi=null,null===Do)r=!0,Ia(e);else{null===Do&&s("271");var i=Do,o=i.return;if(null!==o){t:{var a=t,u=o,l=i,c=e;if(o=Mo,l.effectTag|=1024,l.firstEffect=l.lastEffect=null,null!==c&&"object"==typeof c&&"function"==typeof c.then){var f=c;c=u;var d=-1,p=-1;do{if(13===c.tag){var h=c.alternate;if(null!==h&&null!==(h=h.memoizedState)){p=10*(1073741822-h.timedOutAt);break}"number"==typeof(h=c.pendingProps.maxDuration)&&(0>=h?d=0:(-1===d||h<d)&&(d=h))}c=c.return}while(null!==c);c=u;do{if((h=13===c.tag)&&(h=void 0!==c.memoizedProps.fallback&&null===c.memoizedState),h){if(u=Yo.bind(null,a,c,l,0==(1&c.mode)?1073741823:o),f.then(u,u),0==(1&c.mode)){c.effectTag|=64,l.effectTag&=-1957,1===l.tag&&null===l.alternate&&(l.tag=17),l.expirationTime=o;break t}-1===d?a=1073741823:(-1===p&&(p=10*(1073741822-ti(a,o))-5e3),a=p+d),0<=a&&Bo<a&&(Bo=a),c.effectTag|=2048,c.expirationTime=o;break t}c=c.return}while(null!==c);c=Error((le(l.type)||"A React component")+" suspended while rendering, but no fallback UI was specified.\n\nAdd a <Suspense fallback=...> component higher in the tree to provide a loading indicator or placeholder to display."+ce(l))}qo=!0,c=hi(c,l),a=u;do{switch(a.tag){case 3:l=c,a.effectTag|=2048,a.expirationTime=o,ui(a,o=jo(a,l,o));break t;case 1:if(l=c,u=a.type,f=a.stateNode,0==(64&a.effectTag)&&("function"==typeof u.getDerivedStateFromError||null!==f&&"function"==typeof f.componentDidCatch&&(null===Uo||!Uo.has(f)))){a.effectTag|=2048,a.expirationTime=o,ui(a,o=So(a,l,o));break t}}a=a.return}while(null!==a)}Do=Vo(i);continue}r=!0,Ia(e)}}break}if(Io=!1,gi=yi=mi=Po.currentDispatcher=null,r)Ro=null,t.finishedWork=null;else if(null!==Do)t.finishedWork=null;else{if(null===(r=t.current.alternate)&&s("281"),Ro=null,qo){if(i=t.latestPendingTime,o=t.latestSuspendedTime,a=t.latestPingedTime,0!==i&&i<n||0!==o&&o<n||0!==a&&a<n)return Jr(t,n),void Oa(t,r,n,t.expirationTime,-1);if(!t.didError&&e)return t.didError=!0,n=t.nextExpirationTimeToWorkOn=n,e=t.expirationTime=1073741823,void Oa(t,r,n,e,-1)}e&&-1!==Bo?(Jr(t,n),(e=10*(1073741822-ti(t,n)))<Bo&&(Bo=e),e=10*(1073741822-xa()),e=Bo-e,Oa(t,r,n,t.expirationTime,0>e?0:e)):(t.pendingCommitExpirationTime=n,t.finishedWork=r)}}function $o(t,e){for(var n=t.return;null!==n;){switch(n.tag){case 1:var r=n.stateNode;if("function"==typeof n.type.getDerivedStateFromError||"function"==typeof r.componentDidCatch&&(null===Uo||!Uo.has(r)))return si(n,t=So(n,t=hi(e,t),1073741823)),void Xo(n,1073741823);break;case 3:return si(n,t=jo(n,t=hi(e,t),1073741823)),void Xo(n,1073741823)}n=n.return}3===t.tag&&(si(t,n=jo(t,n=hi(e,t),1073741823)),Xo(t,1073741823))}function Go(t,e){return 0!==Lo?t=Lo:Io?t=zo?1073741823:Mo:1&e.mode?(t=da?1073741822-10*(1+((1073741822-t+15)/10|0)):1073741822-25*(1+((1073741822-t+500)/25|0)),null!==Ro&&t===Mo&&--t):t=1073741823,da&&(0===sa||t<sa)&&(sa=t),t}function Yo(t,e,n,r){var i=t.earliestSuspendedTime,o=t.latestSuspendedTime;if(0!==i&&r<=i&&r>=o){o=i=r,t.didError=!1;var a=t.latestPingedTime;(0===a||a>o)&&(t.latestPingedTime=o),ei(o,t)}else Xr(t,i=Go(i=xa(),e));0!=(1&e.mode)&&t===Ro&&Mo===r&&(Ro=null),Zo(e,i),0==(1&e.mode)&&(Zo(n,i),1===n.tag&&null!==n.stateNode&&((e=oi(i)).tag=2,si(n,e))),0!==(n=t.expirationTime)&&Ca(t,n)}function Zo(t,e){t.expirationTime<e&&(t.expirationTime=e);var n=t.alternate;null!==n&&n.expirationTime<e&&(n.expirationTime=e);var r=t.return,i=null;if(null===r&&3===t.tag)i=t.stateNode;else for(;null!==r;){if(n=r.alternate,r.childExpirationTime<e&&(r.childExpirationTime=e),null!==n&&n.childExpirationTime<e&&(n.childExpirationTime=e),null===r.return&&3===r.tag){i=r.stateNode;break}r=r.return}return i}function Xo(t,e){null!==(t=Zo(t,e))&&(!Io&&0!==Mo&&e>Mo&&Ho(),Xr(t,e),Io&&!zo&&Ro===t||Ca(t,t.expirationTime),ga>ya&&(ga=0,s("185")))}function Jo(t,e,n,r,i){var o=Lo;Lo=1073741823;try{return t(e,n,r,i)}finally{Lo=o}}var ta=null,ea=null,na=0,ra=void 0,ia=!1,oa=null,aa=0,sa=0,ua=!1,la=null,ca=!1,fa=!1,da=!1,pa=null,ha=o.unstable_now(),va=1073741822-(ha/10|0),ma=va,ya=50,ga=0,ba=null;function wa(){va=1073741822-((o.unstable_now()-ha)/10|0)}function _a(t,e){if(0!==na){if(e<na)return;null!==ra&&o.unstable_cancelCallback(ra)}na=e,t=o.unstable_now()-ha,ra=o.unstable_scheduleCallback(Ta,{timeout:10*(1073741822-e)-t})}function Oa(t,e,n,r,i){t.expirationTime=r,0!==i||Sa()?0<i&&(t.timeoutHandle=wr(ka.bind(null,t,e,n),i)):(t.pendingCommitExpirationTime=n,t.finishedWork=e)}function ka(t,e,n){t.pendingCommitExpirationTime=n,t.finishedWork=e,wa(),ma=va,Pa(t,n)}function xa(){return ia||(Ea(),0!==aa&&1!==aa||(wa(),ma=va)),ma}function Ca(t,e){null===t.nextScheduledRoot?(t.expirationTime=e,null===ea?(ta=ea=t,t.nextScheduledRoot=t):(ea=ea.nextScheduledRoot=t).nextScheduledRoot=ta):e>t.expirationTime&&(t.expirationTime=e),ia||(ca?fa&&(oa=t,aa=1073741823,Na(t,1073741823,!1)):1073741823===e?Aa(1073741823,!1):_a(t,e))}function Ea(){var t=0,e=null;if(null!==ea)for(var n=ea,r=ta;null!==r;){var i=r.expirationTime;if(0===i){if((null===n||null===ea)&&s("244"),r===r.nextScheduledRoot){ta=ea=r.nextScheduledRoot=null;break}if(r===ta)ta=i=r.nextScheduledRoot,ea.nextScheduledRoot=i,r.nextScheduledRoot=null;else{if(r===ea){(ea=n).nextScheduledRoot=ta,r.nextScheduledRoot=null;break}n.nextScheduledRoot=r.nextScheduledRoot,r.nextScheduledRoot=null}r=n.nextScheduledRoot}else{if(i>t&&(t=i,e=r),r===ea)break;if(1073741823===t)break;n=r,r=r.nextScheduledRoot}}oa=e,aa=t}var ja=!1;function Sa(){return!!ja||!!o.unstable_shouldYield()&&(ja=!0)}function Ta(){try{if(!Sa()&&null!==ta){wa();var t=ta;do{var e=t.expirationTime;0!==e&&va<=e&&(t.nextExpirationTimeToWorkOn=va),t=t.nextScheduledRoot}while(t!==ta)}Aa(0,!0)}finally{ja=!1}}function Aa(t,e){if(Ea(),e)for(wa(),ma=va;null!==oa&&0!==aa&&t<=aa&&!(ja&&va>aa);)Na(oa,aa,va>aa),Ea(),wa(),ma=va;else for(;null!==oa&&0!==aa&&t<=aa;)Na(oa,aa,!1),Ea();if(e&&(na=0,ra=null),0!==aa&&_a(oa,aa),ga=0,ba=null,null!==pa)for(t=pa,pa=null,e=0;e<t.length;e++){var n=t[e];try{n._onComplete()}catch(t){ua||(ua=!0,la=t)}}if(ua)throw t=la,la=null,ua=!1,t}function Pa(t,e){ia&&s("253"),oa=t,aa=e,Na(t,e,!1),Aa(1073741823,!1)}function Na(t,e,n){if(ia&&s("245"),ia=!0,n){var r=t.finishedWork;null!==r?La(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,_r(r)),Qo(t,n),null!==(r=t.finishedWork)&&(Sa()?t.finishedWork=r:La(t,r,e)))}else null!==(r=t.finishedWork)?La(t,r,e):(t.finishedWork=null,-1!==(r=t.timeoutHandle)&&(t.timeoutHandle=-1,_r(r)),Qo(t,n),null!==(r=t.finishedWork)&&La(t,r,e));ia=!1}function La(t,e,n){var r=t.firstBatch;if(null!==r&&r._expirationTime>=n&&(null===pa?pa=[r]:pa.push(r),r._defer))return t.finishedWork=e,void(t.expirationTime=0);t.finishedWork=null,t===ba?ga++:(ba=t,ga=0),zo=Io=!0,t.current===e&&s("177"),0===(n=t.pendingCommitExpirationTime)&&s("261"),t.pendingCommitExpirationTime=0,r=e.expirationTime;var i=e.childExpirationTime;if(r=i>r?i:r,t.didError=!1,0===r?(t.earliestPendingTime=0,t.latestPendingTime=0,t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0):(0!==(i=t.latestPendingTime)&&(i>r?t.earliestPendingTime=t.latestPendingTime=0:t.earliestPendingTime>r&&(t.earliestPendingTime=t.latestPendingTime)),0===(i=t.earliestSuspendedTime)?Xr(t,r):r<t.latestSuspendedTime?(t.earliestSuspendedTime=0,t.latestSuspendedTime=0,t.latestPingedTime=0,Xr(t,r)):r>i&&Xr(t,r)),ei(0,t),Po.current=null,1<e.effectTag?null!==e.lastEffect?(e.lastEffect.nextEffect=e,r=e.firstEffect):r=e:r=e.firstEffect,mr=En,qn(i=Bn())){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else t:{var a=(o=(o=i.ownerDocument)&&o.defaultView||window).getSelection&&o.getSelection();if(a&&0!==a.rangeCount){o=a.anchorNode;var u=a.anchorOffset,l=a.focusNode;a=a.focusOffset;try{o.nodeType,l.nodeType}catch(t){o=null;break t}var c=0,f=-1,d=-1,p=0,h=0,v=i,m=null;e:for(;;){for(var y;v!==o||0!==u&&3!==v.nodeType||(f=c+u),v!==l||0!==a&&3!==v.nodeType||(d=c+a),3===v.nodeType&&(c+=v.nodeValue.length),null!==(y=v.firstChild);)m=v,v=y;for(;;){if(v===i)break e;if(m===o&&++p===u&&(f=c),m===l&&++h===a&&(d=c),null!==(y=v.nextSibling))break;m=(v=m).parentNode}v=y}o=-1===f||-1===d?null:{start:f,end:d}}else o=null}o=o||{start:0,end:0}}else o=null;for(yr={focusedElem:i,selectionRange:o},En=!1,Fo=r;null!==Fo;){i=!1,o=void 0;try{for(;null!==Fo;){if(256&Fo.effectTag)t:{var g=Fo.alternate;switch((u=Fo).tag){case 0:case 11:case 15:break t;case 1:if(256&u.effectTag&&null!==g){var b=g.memoizedProps,w=g.memoizedState,_=u.stateNode,O=_.getSnapshotBeforeUpdate(u.elementType===u.type?b:Ni(u.type,b),w);_.__reactInternalSnapshotBeforeUpdate=O}break t;case 3:case 5:case 6:case 4:case 17:break t;default:s("163")}}Fo=Fo.nextEffect}}catch(t){i=!0,o=t}i&&(null===Fo&&s("178"),$o(Fo,o),null!==Fo&&(Fo=Fo.nextEffect))}for(Fo=r;null!==Fo;){g=!1,b=void 0;try{for(;null!==Fo;){var k=Fo.effectTag;if(16&k&&ar(Fo.stateNode,""),128&k){var x=Fo.alternate;if(null!==x){var C=x.ref;null!==C&&("function"==typeof C?C(null):C.current=null)}}switch(14&k){case 2:xo(Fo),Fo.effectTag&=-3;break;case 6:xo(Fo),Fo.effectTag&=-3,Eo(Fo.alternate,Fo);break;case 4:Eo(Fo.alternate,Fo);break;case 8:Co(w=Fo),w.return=null,w.child=null,w.alternate&&(w.alternate.child=null,w.alternate.return=null)}Fo=Fo.nextEffect}}catch(t){g=!0,b=t}g&&(null===Fo&&s("178"),$o(Fo,b),null!==Fo&&(Fo=Fo.nextEffect))}if(C=yr,x=Bn(),k=C.focusedElem,b=C.selectionRange,x!==k&&k&&k.ownerDocument&&function t(e,n){return!(!e||!n)&&(e===n||(!e||3!==e.nodeType)&&(n&&3===n.nodeType?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}(k.ownerDocument.documentElement,k)){null!==b&&qn(k)&&(x=b.start,void 0===(C=b.end)&&(C=x),"selectionStart"in k?(k.selectionStart=x,k.selectionEnd=Math.min(C,k.value.length)):(C=(x=k.ownerDocument||document)&&x.defaultView||window).getSelection&&(C=C.getSelection(),w=k.textContent.length,g=Math.min(b.start,w),b=void 0===b.end?g:Math.min(b.end,w),!C.extend&&g>b&&(w=b,b=g,g=w),w=Mn(k,g),_=Mn(k,b),w&&_&&(1!==C.rangeCount||C.anchorNode!==w.node||C.anchorOffset!==w.offset||C.focusNode!==_.node||C.focusOffset!==_.offset)&&((x=x.createRange()).setStart(w.node,w.offset),C.removeAllRanges(),g>b?(C.addRange(x),C.extend(_.node,_.offset)):(x.setEnd(_.node,_.offset),C.addRange(x))))),x=[];for(C=k;C=C.parentNode;)1===C.nodeType&&x.push({element:C,left:C.scrollLeft,top:C.scrollTop});for("function"==typeof k.focus&&k.focus(),k=0;k<x.length;k++)(C=x[k]).element.scrollLeft=C.left,C.element.scrollTop=C.top}for(yr=null,En=!!mr,mr=null,t.current=e,Fo=r;null!==Fo;){r=!1,k=void 0;try{for(x=n;null!==Fo;){var E=Fo.effectTag;if(36&E){var j=Fo.alternate;switch(g=x,(C=Fo).tag){case 0:case 11:case 15:break;case 1:var S=C.stateNode;if(4&C.effectTag)if(null===j)S.componentDidMount();else{var T=C.elementType===C.type?j.memoizedProps:Ni(C.type,j.memoizedProps);S.componentDidUpdate(T,j.memoizedState,S.__reactInternalSnapshotBeforeUpdate)}var A=C.updateQueue;null!==A&&di(0,A,S);break;case 3:var P=C.updateQueue;if(null!==P){if(b=null,null!==C.child)switch(C.child.tag){case 5:b=C.child.stateNode;break;case 1:b=C.child.stateNode}di(0,P,b)}break;case 5:var N=C.stateNode;null===j&&4&C.effectTag&&gr(C.type,C.memoizedProps)&&N.focus();break;case 6:case 4:case 12:case 13:case 17:break;default:s("163")}}if(128&E){var L=Fo.ref;if(null!==L){var I=Fo.stateNode;switch(Fo.tag){case 5:var D=I;break;default:D=I}"function"==typeof L?L(D):L.current=D}}Fo=Fo.nextEffect}}catch(t){r=!0,k=t}r&&(null===Fo&&s("178"),$o(Fo,k),null!==Fo&&(Fo=Fo.nextEffect))}Io=zo=!1,"function"==typeof Fr&&Fr(e.stateNode),E=e.expirationTime,0===(e=(e=e.childExpirationTime)>E?e:E)&&(Uo=null),t.expirationTime=e,t.finishedWork=null}function Ia(t){null===oa&&s("246"),oa.expirationTime=0,ua||(ua=!0,la=t)}function Da(t,e){var n=ca;ca=!0;try{return t(e)}finally{(ca=n)||ia||Aa(1073741823,!1)}}function Ra(t,e){if(ca&&!fa){fa=!0;try{return t(e)}finally{fa=!1}}return t(e)}function Ma(t,e,n){if(da)return t(e,n);ca||ia||0===sa||(Aa(sa,!1),sa=0);var r=da,i=ca;ca=da=!0;try{return t(e,n)}finally{da=r,(ca=i)||ia||Aa(1073741823,!1)}}function Ba(t,e,n,r,i){var o=e.current;t:if(n){e:{2===rn(n=n._reactInternalFiber)&&1===n.tag||s("170");var a=n;do{switch(a.tag){case 3:a=a.stateNode.context;break e;case 1:if(Lr(a.type)){a=a.stateNode.__reactInternalMemoizedMergedChildContext;break e}}a=a.return}while(null!==a);s("171"),a=void 0}if(1===n.tag){var u=n.type;if(Lr(u)){n=Mr(n,u,a);break t}}n=a}else n=Sr;return null===e.context?e.context=n:e.pendingContext=n,e=i,(i=oi(r)).payload={element:t},null!==(e=void 0===e?null:e)&&(i.callback=e),si(o,i),Xo(o,r),r}function qa(t,e,n,r){var i=e.current;return Ba(t,e,n,i=Go(xa(),i),r)}function Fa(t){if(!(t=t.current).child)return null;switch(t.child.tag){case 5:default:return t.child.stateNode}}function za(t,e,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:Yt,key:null==r?null:""+r,children:t,containerInfo:e,implementation:n}}function Ua(t){var e=1073741822-25*(1+((1073741822-xa()+500)/25|0));e>=No&&(e=No-1),this._expirationTime=No=e,this._root=t,this._callbacks=this._next=null,this._hasChildren=this._didComplete=!1,this._children=null,this._defer=!0}function Ha(){this._callbacks=null,this._didCommit=!1,this._onCommit=this._onCommit.bind(this)}function Wa(t,e,n){t={current:e=Wr(3,null,null,e?3:0),containerInfo:t,pendingChildren:null,earliestPendingTime:0,latestPendingTime:0,earliestSuspendedTime:0,latestSuspendedTime:0,latestPingedTime:0,didError:!1,pendingCommitExpirationTime:0,finishedWork:null,timeoutHandle:-1,context:null,pendingContext:null,hydrate:n,nextExpirationTimeToWorkOn:0,expirationTime:0,firstBatch:null,nextScheduledRoot:null},this._internalRoot=e.stateNode=t}function Va(t){return!(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType&&(8!==t.nodeType||" react-mount-point-unstable "!==t.nodeValue))}function Ka(t,e,n,r,i){Va(n)||s("200");var o=n._reactRootContainer;if(o){if("function"==typeof i){var a=i;i=function(){var t=Fa(o._internalRoot);a.call(t)}}null!=t?o.legacy_renderSubtreeIntoContainer(t,e,i):o.render(e,i)}else{if(o=n._reactRootContainer=function(t,e){if(e||(e=!(!(e=t?9===t.nodeType?t.documentElement:t.firstChild:null)||1!==e.nodeType||!e.hasAttribute("data-reactroot"))),!e)for(var n;n=t.lastChild;)t.removeChild(n);return new Wa(t,!1,e)}(n,r),"function"==typeof i){var u=i;i=function(){var t=Fa(o._internalRoot);u.call(t)}}Ra((function(){null!=t?o.legacy_renderSubtreeIntoContainer(t,e,i):o.render(e,i)}))}return Fa(o._internalRoot)}function Qa(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;return Va(e)||s("200"),za(t,e,null,n)}St=function(t,e,n){switch(e){case"input":if(xe(t,n),e=n.name,"radio"===n.type&&null!=e){for(n=t;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<n.length;e++){var r=n[e];if(r!==t&&r.form===t.form){var i=F(r);i||s("90"),Vt(r),xe(r,i)}}}break;case"textarea":Xn(t,n);break;case"select":null!=(e=n.value)&&Gn(t,!!n.multiple,e,!1)}},Ua.prototype.render=function(t){this._defer||s("250"),this._hasChildren=!0,this._children=t;var e=this._root._internalRoot,n=this._expirationTime,r=new Ha;return Ba(t,e,null,n,r._onCommit),r},Ua.prototype.then=function(t){if(this._didComplete)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Ua.prototype.commit=function(){var t=this._root._internalRoot,e=t.firstBatch;if(this._defer&&null!==e||s("251"),this._hasChildren){var n=this._expirationTime;if(e!==this){this._hasChildren&&(n=this._expirationTime=e._expirationTime,this.render(this._children));for(var r=null,i=e;i!==this;)r=i,i=i._next;null===r&&s("251"),r._next=i._next,this._next=e,t.firstBatch=this}this._defer=!1,Pa(t,n),e=this._next,this._next=null,null!==(e=t.firstBatch=e)&&e._hasChildren&&e.render(e._children)}else this._next=null,this._defer=!1},Ua.prototype._onComplete=function(){if(!this._didComplete){this._didComplete=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++)(0,t[e])()}},Ha.prototype.then=function(t){if(this._didCommit)t();else{var e=this._callbacks;null===e&&(e=this._callbacks=[]),e.push(t)}},Ha.prototype._onCommit=function(){if(!this._didCommit){this._didCommit=!0;var t=this._callbacks;if(null!==t)for(var e=0;e<t.length;e++){var n=t[e];"function"!=typeof n&&s("191",n),n()}}},Wa.prototype.render=function(t,e){var n=this._internalRoot,r=new Ha;return null!==(e=void 0===e?null:e)&&r.then(e),qa(t,n,null,r._onCommit),r},Wa.prototype.unmount=function(t){var e=this._internalRoot,n=new Ha;return null!==(t=void 0===t?null:t)&&n.then(t),qa(null,e,null,n._onCommit),n},Wa.prototype.legacy_renderSubtreeIntoContainer=function(t,e,n){var r=this._internalRoot,i=new Ha;return null!==(n=void 0===n?null:n)&&i.then(n),qa(e,r,t,i._onCommit),i},Wa.prototype.createBatch=function(){var t=new Ua(this),e=t._expirationTime,n=this._internalRoot,r=n.firstBatch;if(null===r)n.firstBatch=t,t._next=null;else{for(n=null;null!==r&&r._expirationTime>=e;)n=r,r=r._next;t._next=r,null!==n&&(n._next=t)}return t},It=Da,Dt=Ma,Rt=function(){ia||0===sa||(Aa(sa,!1),sa=0)};var $a,Ga,Ya={createPortal:Qa,findDOMNode:function(t){if(null==t)return null;if(1===t.nodeType)return t;var e=t._reactInternalFiber;return void 0===e&&("function"==typeof t.render?s("188"):s("268",Object.keys(t))),t=null===(t=an(e))?null:t.stateNode},hydrate:function(t,e,n){return Ka(null,t,e,!0,n)},render:function(t,e,n){return Ka(null,t,e,!1,n)},unstable_renderSubtreeIntoContainer:function(t,e,n,r){return(null==t||void 0===t._reactInternalFiber)&&s("38"),Ka(t,e,n,!1,r)},unmountComponentAtNode:function(t){return Va(t)||s("40"),!!t._reactRootContainer&&(Ra((function(){Ka(null,null,t,!1,(function(){t._reactRootContainer=null}))})),!0)},unstable_createPortal:function(){return Qa.apply(void 0,arguments)},unstable_batchedUpdates:Da,unstable_interactiveUpdates:Ma,flushSync:function(t,e){ia&&s("187");var n=ca;ca=!0;try{return Jo(t,e)}finally{ca=n,Aa(1073741823,!1)}},unstable_flushControlled:function(t){var e=ca;ca=!0;try{Jo(t)}finally{(ca=e)||ia||Aa(1073741823,!1)}},__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{Events:[B,q,F,P.injectEventPluginsByName,w,K,function(t){S(t,V)},Nt,Lt,An,L]},unstable_createRoot:function(t,e){return Va(t)||s("299","unstable_createRoot"),new Wa(t,!0,null!=e&&!0===e.hydrate)}};Ga=($a={findFiberByHostInstance:M,bundleType:0,version:"16.6.3",rendererPackageName:"react-dom"}).findFiberByHostInstance,function(t){if("undefined"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__)return!1;var e=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(e.isDisabled||!e.supportsFiber)return!0;try{var n=e.inject(t);Fr=Ur((function(t){return e.onCommitFiberRoot(n,t)})),zr=Ur((function(t){return e.onCommitFiberUnmount(n,t)}))}catch(t){}}(i({},$a,{findHostInstanceByFiber:function(t){return null===(t=an(t))?null:t.stateNode},findFiberByHostInstance:function(t){return Ga?Ga(t):null}}));var Za={default:Ya},Xa=Za&&Ya||Za;t.exports=Xa.default||Xa},227:function(t,e,n){"use strict";t.exports=n(228)},228:function(t,e,n){"use strict";(function(t){
* scheduler.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
e
‘”. Expected an instance of BasicObj or BasicWidget.’)}var _={};function O(t,e){_=e}function k(t){return _||null}function x(t){return k(C(t))}function C(t){return“appClass-”+t}var E,j=n(2),S=0,T={};var A=n(110),P=n(66),N=n(78),L=n(111),I=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function D(t){var e;return(e=function(e){function n(t){var n=e.call(this,t)||this;return n.registeredElement=new q,n}return I(n,e),n.prototype.render=function(){return r.createElement(t,Object(a.n)({},this.props,{registeredElement:this.registeredElement}))},n}(r.Component)).displayName=l(t)+“WithRegisteredElement”,e}function R(t,e){var n;return(n=function(n){function i(t){var e=n.call(this,t)||this;return e.registeredElement=new q,e}return I(i,n),i.prototype.componentDidMount=function(){this.unregisterContentZone=Object(L.b)(this.registeredElement.id(),t(this.props),this.context)},i.prototype.componentWillUnmount=function(){this.unregisterContentZone&&this.unregisterContentZone()},i.prototype.render=function(){return r.createElement(B.Provider,{value:this.registeredElement.id()},r.createElement(e,Object(a.n)({},this.props,{registeredElement:this.registeredElement})))},i}(r.Component)).displayName=l(e)+“WithContentZone”,n.contextType=B,n}var M,B=r.createContext(void 0),q=function(){function t(){this.elementId=t.generateId()}return t.generateId=function(){return this.currentId++,this.currentId},t.prototype.id=function(){return this.elementId},t.prototype.set=function(t){t?Object(N.b)(this.elementId,t):Object(N.c)(this.elementId)},t.currentId=0,t}(),F=n(37),z=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),U=D(h(((M=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n.onDragStart=n.onDragStart.bind(n),n.onDragEnd=n.onDragEnd.bind(n),n}return z(e,t),e.prototype.render=function(){var t=this;return r.createElement(“span”,{ref:function(e){return t.props.registeredElement.set(e)},className:“scrivito_editing_marker”,onClick:this.onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,draggable:!0,onDragStart:this.onDragStart,onDragEnd:this.onDragEnd},r.createElement(“i”,{className:“scrivito_icon”}),r.createElement(“span”,{className:“scrivito_editing_marker_title”},this.title()))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),Object(F.a)().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e.prototype.onDragStart=function(t){Object(A.a)(t),Object(F.a)().startDrag(this.props.widget.obj().id(),this.props.widget.id()),this.props.setDragState(!0)},e.prototype.onDragEnd=function(){Object(F.a)().endDrag(),this.props.setDragState(!1)},e.prototype.title=function(){return Object(P.a)(this.props.widget.obj().id(),this.props.widget.id())},e}(r.Component)).displayName=“Scrivito.ContentTag.EditingMenuMarker”,M))),H=n(14);var W,V=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),K=D(h(((W=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return V(e,t),e.prototype.render=function(){var t,e=this,n=function(t,e){var n={iconClassName:“scrivito_icon”,markerClassName:“scrivito_editing_marker”};switch(t){case“new”:n.iconClassName+=“ scrivito_icon_inv_plus”,n.tooltip=Q(“widget_is_new”);break;case“edited”:switch(n.iconClassName+=“ scrivito_icon_edited”,e){case“new”:n.markerClassName+=“ scrivito_widget_moved_icon”,n.tooltip=Q(“widget_is_edited_and_dragged_here”);break;case“deleted”:n.markerClassName+=“ scrivito_widget_moved_icon”,n.tooltip=Q(“widget_is_edited_and_dragged_away”),n.disableMenu=!0;break;default:n.tooltip=Q(“widget_is_edited”)}break;case“deleted”:n.iconClassName+=“ scrivito_icon_trash”,n.tooltip=Q(“widget_is_deleted”);break;default:switch(n.iconClassName+=“ scrivito_icon_moved”,e){case“new”:n.tooltip=Q(“widget_is_dragged_here”);break;case“deleted”:n.tooltip=Q(“widget_is_dragged_away”),n.disableMenu=!0}}return n}(this.props.modification,this.props.placementModification),i=n.iconClassName,o=n.markerClassName,a=n.tooltip,s=n.disableMenu?void 0:this.onClick;return r.createElement(“span”,{ref:function(t){return e.props.registeredElement.set(t)},className:s?o:o+“ scrivito_disabled”,title:a,onClick:s,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},r.createElement(“i”,{className:i}),r.createElement(“span”,{className:“scrivito_editing_marker_title”},(t=this.props.widget,Object(P.b)(t.workspaceId(),t.obj().id(),t.id())||“”)))},e.prototype.onClick=function(t){t.preventDefault(),t.stopPropagation(),Object(F.a)().showWidgetMenu(this.props.registeredElement.id(),this.props.widget.obj().id(),this.props.widget.id())},e}(r.Component)).displayName=“Scrivito.ContentTag.ComparisonMenuMarker”,W)));function Q(t){return function(t){if(H.b)return H.b.translate(t)}(“widget_marker.”+t)}var $=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),G=function(t){function e(e){var n=t.call(this,e)||this;return n._onClick=n._onClick.bind(n),n}return $(e,t),e.prototype.render=function(){var t=“scrivito_option_marker scrivito_”+this.props.position;return this.props.isAlwaysShown&&(t+=“ scrivito_visible”),i.a.createElement(“span”,{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},i.a.createElement(“i”,{className:“scrivito_icon scrivito_icon_marker_plus”}))},e.prototype._onClick=function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)},e}(i.a.Component);G.displayName=“Scrivito.OptionMarker”;var Y,Z=h(G),X=n(10);var J,tt,et,nt,rt=(et=!0,(Y={Provider:(nt=r.createContext(et)).Provider,Consumer:(J=nt.Consumer,tt=h((function(t){return(0,t.callback)(t.value)})),function(t){var e=t.children;return r.createElement(J,null,(function(t){return r.createElement(tt,{callback:e,value:t})}))})}).Consumer),it=Y.Provider,ot=n(18),at=n(24),st=!1;function ut(){st=!0}var lt,ct=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ft=function(){return(ft=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},dt=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);iWidget
component.”);return t},e.prototype.forwardedProps=function(){var t=this.props;t.tag,t.widget,t.placementModification,t.registeredElement;return dt(t,)},e.prototype.forwardedPropsWithMarker=function(){var t=this.forwardedProps();t.className,t.style;return dt(t,)},e.prototype.setDragState=function(t){this.setState({isDragging:t})},e.prototype.className=function(){var t=this.props.className||“”;return Object(ot.c)()&&this.hasVisibleFocus()&&(t+=“ scrivito_active scrivito_entered”),Object(ot.b)()&&this.isDeleted()&&(t+=“ scrivito_modification_opacity”),t},e.prototype.hasVisibleFocus=function(){return this.state.hasFocus&&!this.state.isFocusFadedOut},e.prototype.isDeleted=function(){return“deleted”===this.props.placementModification||“deleted”===this.getWidget().modification()},e.prototype.dataProps=function(t){var e={“data-scrivito-private-widget”:“true”,“data-scrivito-private-dropzone”:“true”};return this.isStructureWidget()&&(e=“true”),t&&(e=t),e},e.prototype.style=function(){return this.state.isDragging?this.props.style?ft({},this.props.style,{opacity:.5}):{opacity:.5}:this.props.style},e.prototype.isStructureWidget=function(){var t=Object(at.a)(),e=this.getWidget();if(e){var n=t.widgetClassFor(e.objClass()),r=X.b.forClass(n);if®return Object(j.some)(r.attributes,(function(t,e){return“widgetlist”===t}))}return!1},e.prototype.onMouseOver=function(t){var e,n;t.stopPropagation(),e=this.focusToken,(n=T)&&n.onFocus()},e.prototype.onMouseOut=function(t){t.stopPropagation(),function(t){if(t===E){var e=T;e&&e.onBlur()}}(this.focusToken)},e.prototype.onWidgetFocus=function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this.fadeOutFocusTimeout&&window.clearTimeout(this.fadeOutFocusTimeout),this.isStructureWidget()||(this.fadeOutFocusTimeout=window.setTimeout((function(){return t.fadeOutFocus()}),1e3))},e.prototype.fadeOutFocus=function(){this.state.isFocusFadedOut||this.isFocusLocked||this.setState({isFocusFadedOut:!0})},e.prototype.lockFocus=function(){this.isFocusLocked=!0},e.prototype.unlockFocus=function(){this.isFocusLocked=!1},e.prototype.onWidgetBlur=function(){this.setState({hasFocus:!1})},e.prototype.renderOptionMarker=function(t){return r.createElement(Z,{key:“optionMarker-”+t,position:t,widget:this.getWidget(),insertWidget:mt,isAlwaysShown:st,onMouseOver:this.lockFocus,onMouseOut:this.unlockFocus})},e}(r.Component)).displayName=“Scrivito.WidgetTag”,lt.defaultProps={tag:“div”},lt)));function mt(t,e){H.b.insertWidget(t.obj().id(),t.id(),e)}var yt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}();function gt(t,e){!function(t){if(“function”!=typeof t)throw new a.a(“Scrivito.provideComponent expected a valid React component, but received ”+Object(a.I)(t))}(e),function(t){return!(t.displayName||t.name&&“_class”!==t.name&&“class_”!==t.name.substring(0,6))}(e)&&(e.displayName=t),function(t,e){O(C(t),e)}(t,function(t){var e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return yt(e,t),e.prototype.render=function(){if(this.props.widget){var e=t.prototype.render.call(this);return c(e)!==ht?i.a.createElement(ht,{children:e}):e}return t.prototype.render.call(this)},e}(t);return e.displayName=l(t),e}(h(e)))}function bt(t,e){O(t,h(e))}var wt,_t=n(13),Ot=n(17);function kt(t,e){var n=k(t);!function(t,e){if(!t)throw new a.a(‘Component with ID “’e
‘” not found. Please make sure you registered it using “Scrivito.registerComponent”.’)}(n,t);var r=function(t){if(t.widgetId)return function(t){var e=b.BasicObj.get(t.objId).widget(t.widgetId);return{widget:Object(X.f)(Object(at.a)(),e)}}(t);if(t.objId)return function(t){var e=b.BasicObj.get(t.objId),n=Object(X.f)(Object(at.a)(),e);return{obj:n,page:n}}(t)}(e);wt?Object(_t.render)(i.a.createElement(n,r),wt):wt=function(t,e,n){var r=t.createElement(“div”);return t.body.innerHTML=“”,t.body.appendChild®,Object(_t.render)(i.a.createElement(e,n),r),r}(Object(Ot.b)(),n,r)}var xt=n(51),Ct=n(112),Et=n(39),jt=n(143);function St(t){var e=new Image
;return Tt(e)?function(t,e){if(!Tt(t))throw new Error(“Browser does not support decode!”);return t.src=e,function(t){return t.decode&&t.decode.bind(t)}(t)().then((function(){return t}))}(e,t):function(t,e){return new a.j((function(n,r){t.onload=function(){return n(t)},t.onerror=function(t){return r(t)},t.src=e}))}(e,t)}function Tt(t){return!!t.decode}function At(t,e,n,r){if(!Pt())throw new Error(“Browser does not support getCSSCanvasContext!”);return Pt()(t,e,n,r)}function Pt(){return document.getCSSCanvasContext&&document.getCSSCanvasContext.bind(document)}function Nt(){return!!Lt()}function Lt(){return document.mozSetImageElement&&document.mozSetImageElement.bind(document)}function It(t){var e=document.createElement(“canvas”);return e.height=t.height,e.width=t.width,Dt(t,e.getContext(“2d”)),e}function Dt(t,e){e.drawImage(t,0,0)}function Rt(t){return St(t).then((function(e){return Nt()?function(t){var e=It(t),n=“ScrivitoBackgroundImage”+Bt();return function(t,e){if(!Nt())throw new Error(“Browser does not support mozSetImageElement!”);Lt()(t,e)}(n,e),{decodedBackgroundUrl:“-moz-element(#”n
“)”,clear:function(){return function(t){if(!Nt())throw new Error(“Browser does not support mozSetImageElement!”);Lt()(t,null)}(n)}}}(e):Pt()?function(t){var e=“ScrivitoBackgroundImage”+Bt(),n=At(“2d”,e,t.width,t.height);return Dt(t,n),{decodedBackgroundUrl:“-webkit-canvas(”e
“)”,clear:function(){At(“2d”,e,0,0)}}}(e):Tt(e)?{decodedBackgroundUrl:“url(”t
“)”}:function(t){return It(t),{decodedBackgroundUrl:“url(”t.src
“)”}}(e)})).catch((function(){return{decodedBackgroundUrl:“url(”t
“)”}}))}var Mt=0;function Bt(){return Mt+=1}var qt=function(){function t(t){this.onUpdateCallback=t,this.decodedUrls={},this.loadingRegistry={},this.clears=[]}return t.prototype.getBackgroundImage=function(t){var e=this.decodedUrls;return e||this.ensureLoading(t),e},t.prototype.clear=function(){this.clears.map((function(t){return t()}))},t.prototype.ensureLoading=function(t){var e=this;if(!this.decodedUrls&&!this.loadingRegistry){var n=Rt(t).then((function(n){var r=n.decodedBackgroundUrl,i=n.clear;i&&e.clears.push(i),e.decodedUrls=r,e.onUpdateCallback()}));this.loadingRegistry=Object(a.J)(n,(function(){return delete e.loadingRegistry}))}},t}(),Ft=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),zt=function(){return(zt=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},Ut=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);ir
‘”. Expected property “background” alongside with any non-background propertiesFor further details, see www.scrivito.com/js-sdk/background-image-tag’))}}(e),r.createElement(o,zt({},i,{style:Gt(e,this.binaryToUrl)}))},e.prototype.binaryToUrl=function(t){var e=Object(Ct.a)(t),n=e.initialUrl,r=e.highResUrlToDecode;return r&&this.decoder.getBackgroundImage®||“url(”n
“)”},e.displayName=“Scrivito.BackgroundImageTag”,e.propTypes=Object(jt.propTypes)({tag:a.O.maybe(a.O.String),style:a.O.maybe(a.O.interface({background:a.O.maybe(Qt)},{strict:!1}))},{strict:!1}),e.defaultProps={tag:“div”,style:{}},e}(r.Component));function Gt(t,e){if(Object(j.isObject)(t)){var n=t,r=n.background,i=Ut(n,);return zt({},i,function(t,e){if(void 0===t)return{};if(Object(j.isArray)(t))return{backgroundImage:Yt(n=t.map((function(t){return Xt(t,e)})),“backgroundImage”),backgroundAttachment:Yt(n,“backgroundAttachment”),backgroundClip:Yt(n,“backgroundClip”),backgroundOrigin:Yt(n,“backgroundOrigin”),backgroundPosition:Yt(n,“backgroundPosition”),backgroundRepeat:Yt(n,“backgroundRepeat”),backgroundSize:Yt(n,“backgroundSize”),backgroundColor:Zt(n)};var n;return Xt(t,e)}(r,e))}return{}}function Yt(t,e){return t.map((function(t){return t})).join(“, ”)}function Zt(t){var e=Object(j.last)(t);if(e)return e.backgroundColor}function Xt(t,e){return ee(t)?Jt(t):function(t,e){var n=t.image;if(n instanceof b.Binary)return te(n,t,e);if(n instanceof Object(Et.a)().Obj){var r=Object(X.e)(n);if(Object(xt.a)®){var i=r.get(“blob”,);if(i)return te(i,t,e)}}return Jt({image:“none”})}(t,e)}function Jt(t){return{backgroundImage:t.image,backgroundAttachment:t.attachment||“scroll”,backgroundClip:t.clip||“border-box”,backgroundColor:t.color||“transparent”,backgroundOrigin:t.origin||“padding-box”,backgroundPosition:t.position||“0% 0%”,backgroundRepeat:t.repeat||“repeat”,backgroundSize:t.size||“auto”}}function te(t,e,n){return{backgroundImage:n(t),backgroundAttachment:e.attachment||“scroll”,backgroundClip:e.clip||“border-box”,backgroundColor:e.color||“transparent”,backgroundOrigin:e.origin||“padding-box”,backgroundPosition:e.position||“center center”,backgroundRepeat:e.repeat||“no-repeat”,backgroundSize:e.size||“cover”}}function ee(t){return Object(j.isString)(t.image)}var ne=n(43),re=n(76);function ie(t){return t.ctrlKey||t.metaKey||t.shiftKey||2===t.which}var oe=n(59),ae=n(42),se=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ue=function(){return(ue=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},le=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);it
‘”’);return e},e.prototype.getAppWidgetProps=function(){var t={widget:Object(X.f)(Object(at.a)(),this.props.widget)};if(this.props.widgetProps&&this.props.widgetProps.hasOwnProperty(“widget”)){Object(a.Q)(new a.a(‘The prop “widget” is not allowed inside “widgetProps”’));var e=this.props.widgetProps,n=(e.widget,ke(e,));return Oe({},t,n)}return Oe({},t,this.props.widgetProps)},e}(r.Component);function Ee(t,e,n){return r.createElement(pt.Provider,{value:{widget:t,placementModification:n},children:e})}var je,Se=h(xe),Te=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ae=function(){return(Ae=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},Pe=R((function(t){return Ae({type:“widgetlist”},Ne(t.field))}),h(((je=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return Te(e,t),e.prototype.render=function(){var t=this;return r.createElement(“div”,{ref:function(e){t.widgetlistPlaceholder=e,t.props.registeredElement.set(e)},className:“scrivito_empty_widget_field”,“data-scrivito-private-dropzone”:“true”,onClick:this.onClick})},e.prototype.onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this.widgetlistPlaceholder){var e=Ne(this.props.field),n=e.objId,r=e.widgetId,i=e.attributeName;Object(F.a)().showWidgetlistMenu(this.props.registeredElement.id(),Object(a.r)(t,this.widgetlistPlaceholder),n,i,r)}},e}(r.Component)).displayName=“Scrivito.ContentTag.WidgetlistPlaceholder”,je)));function Ne(t){var e=t.getContainer();return e instanceof b.BasicObj?{objId:e.id(),attributeName:t.name()}:{objId:e.obj().id(),widgetId:e.id(),attributeName:t.name()}}var Le=n(12),Ie=n(25);function De(t){return function t(e,n,r){if(e===n)return null;if(a=e,“A”===a.nodeName){var i=e.href,o=Le(i);return Object(Ie.e)(o)?r||“_blank”===e.getAttribute(“target”)?{openInNewWindow:i}:{openInCurrentWindow:o.resource()}:null}var a;if(!e.parentNode)return null;return t(e.parentNode,n,r)}(t.target,t.currentTarget,ie(t))}var Re,Me=n(67),Be=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),qe=h(((Re=function(t){function e(e){var n=t.call(this,e)||this;return n.onClick=n.onClick.bind(n),n}return Be(e,t),e.prototype.render=function(){switch(this.props.field.type()){case“html”:return this.renderHtml();case“string”:return this.renderString();case“float”:case“integer”:return this.renderNumber();case“widgetlist”:return this.renderWidgetlist();default:return this.renderContent({children:this.props.children})}},e.prototype.renderHtml=function(){if(this.props.children)return this.renderContent({children:this.props.children});var t=this.attributeValue();return this.renderContent({props:{dangerouslySetInnerHTML:{__html:Object(Me.a)(Object(ot.b)()&&this.getHtmlDiffContent()||t)},onClick:this.onClick}})},e.prototype.renderString=function(){if(this.props.children)return this.renderContent({children:this.props.children});if(Object(ot.b)()){var t=this.getHtmlDiffContent();if(t)return this.renderContent({props:{dangerouslySetInnerHTML:{__html:t}}})}return this.renderContent({children:this.attributeValue()})},e.prototype.renderNumber=function(){var t=this.props.children||this.attributeValue();return this.renderContent({children:t})},e.prototype.renderWidgetlist=function(){return this.renderContent({children:this.widgetlistChildren()})},e.prototype.widgetlistChildren=function(){var t=this;if(Object(ot.b)()&&“published”!==this.props.field.workspaceId())return this.widgetlistChildrenForComparison();var e=this.attributeValue();return e.length?e.map((function(e){return r.createElement(Se,{key:e.id(),widget:e,widgetProps:t.props.widgetProps})})):this.renderPlaceholderIfEditable()},e.prototype.widgetlistChildrenForComparison=function(){var t=this,e=Object(b.getPlacementModificationInfos)(this.props.field);if(e.length)return e.map((function(e){return r.createElement(Se,{key:e.widget.id()+“-”+e.modification,widget:e.widget,widgetProps:t.props.widgetProps,placementModification:e.modification})}))},e.prototype.renderPlaceholderIfEditable=function(){var t=this;if(Object(ot.c)())return r.createElement(rt,null,(function(e){return e&&r.createElement(Pe,{field:t.props.field})}))},e.prototype.renderContent=function(t){var e=Object(j.extend)({},this.props.customProps,t.props,this.editingProps());return t.children&&(e.children=t.children),r.createElement(this.props.tag,e)},e.prototype.onClick=function(t){var e,n=De(t);n&&((e=n)&&e.openInNewWindow?this.openInNewWindow(t,n):this.openInCurrentWindow(t,n))},e.prototype.openInNewWindow=function(t,e){var n=e.openInNewWindow;H.b&&(t.preventDefault(),t.stopPropagation(),Object(ae.b)(n))},e.prototype.openInCurrentWindow=function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),we.d(n)},e.prototype.editingProps=function(){return this.props.onClick?{onClick:this.props.onClick,“data-scrivito-is-clickable”:!0}:{}},e.prototype.attributeValue=function(){return this.props.field.get()},e.prototype.getHtmlDiffContent=function(){var t=this.props.field.getDiff();if(t&&“html”===t.format)return t.content},e}(r.Component)).displayName=“Scrivito.ContentTag.AttributeValue”,Re)),Fe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),ze=function(){return(ze=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},Ue=h(function(t){function e(e){var n=t.call(this,e)||this;n._field=n.props.field,n.state={domMode:“None”},n._isPendingUpdate=!1;var r=n.props.editorClass;if®{var i={getContent:n._getContent.bind(n),setContent:n._setContent.bind(n),setDomMode:n._setDomMode.bind(n),validObjClasses:n.validObjClasses.bind(n)};n._editor=new r({controller:i})}return n}return Fe(e,t),e.prototype.componentDidMount=function(){var t=this;this._editorWillBeActivated();var e=Object(s.l)((function(){return t._getContent()}),(function(e){if(t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()}));this._unsubscribe=e.unsubscribe,“Replace”===this.state.domMode&&this._editorDomWasMounted()},e.prototype.componentDidUpdate=function(t,e){var n=e.domMode,r=this.state.domMode;n!==r&&(“Replace”===r?this._editorDomWasMounted():this._editorDomWasUnmounted())},e.prototype.componentWillUnmount=function(){this._editorWillBeDeactivated(),this._unsubscribe&&this._unsubscribe()},e.prototype.render=function(){var t,e=this;if(“Replace”===this.state.domMode)return r.createElement(this.props.tag,ze({},Object(j.omit)(this.props.customProps,“children”),{ref:function(t){e._editorComponent=t}}));var n=this._editor;n&&n.onClick&&(t=function(t){var e={stopPropagation:t.stopPropagation.bind(t),preventDefault:t.preventDefault.bind(t)};n.onClick(e)});var i={ref:function(t){e._editorComponent=t},children:this.props.children,widgetProps:this.props.widgetProps,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:t};return r.createElement(qe,i)},e.prototype._contentDidChange=function(){this._editor&&this._editor.contentDidChange()},e.prototype._editorWillBeActivated=function(){this._editor&&this._editor.editorWillBeActivated()},e.prototype._editorWillBeDeactivated=function(){this._editor&&this._editor.editorWillBeDeactivated()},e.prototype._editorDomWasMounted=function(){if(this._editor&&this._editorComponent){var t=Object(_t.findDOMNode)(this._editorComponent);this._editor.editorDomWasMounted(t)}},e.prototype._editorDomWasUnmounted=function(){this._editor&&this._editor.editorDomWasUnmounted()},e.prototype._setDomMode=function(t){this.setState({domMode:t})},e.prototype._getContent=function(){var t=this;return Object(o.capture)((function(){var e=t._field.get();if(“html”===t._field.type()){var n=e;e=Object(Me.a)(n)}return e})).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.prototype.validObjClasses=function(){return this._field.validClasses()},e.displayName=“Scrivito.ContentTag.Editor”,e}(r.Component)),He=n(108),We=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),Ve=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);il
‘” is not defined for content specified in prop “content”.’)),null}var c=u.type();return r.createElement(rt,null,(function(e){if(Object(ot.c)()&&e){var i=void 0,a=void 0,l=Object(He.a)({type:c,tag:o});if(l)return i=l.id,a=l.editorClass,r.createElement(Ue,{key:t.editorKey(i),field:u,editorClass:a,tag:o,widgetProps:t.widgetProps©,customProps:s,content:n},t.props.children)}return r.createElement(qe,{field:u,tag:o,widgetProps:t.widgetProps©,customProps:s},t.props.children)}))},e.prototype.widgetProps=function(t){if(this.props.widgetProps){if(“widgetlist”===t)return this.props.widgetProps;Object(a.Q)(new a.a(‘The prop “widgetProps” is only allowed for widgetlist attributes’))}},e.prototype.editorKey=function(t){var e=Object(X.e)(this.props.content);return.join(“|”)},e.displayName=“Scrivito.ContentTag”,e.defaultProps={tag:“div”},e}(r.Component)),Qe=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),$e=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Qe(e,t),e.prototype.render=function(){var t=Object(ne.a)(),e=Object(ne.c)();if(!t)return null;var n=t.objClass(),r=x(n);if(!r)throw new a.a(‘No component registered for obj class “’n
‘”’);return i.a.createElement(r,{page:t,params:e})},e}(i.a.Component);$e.displayName=“Scrivito.CurrentPage”;var Ge=h($e);var Ye=new a.d,Ze=1448;function Xe(t){return t.isRaw()||t.isExplicitlyTransformed()?t.url():Ye.current()?Je(t).url():function(t){var e=(n=function(){return Je(t).urlWithoutPlaceholder()},Object(o.capture)(n).result);var n;if(e&&function(t){var e=tn;void 0===e&&(e=function(t){var e=new Image
;return e.src=t,e.complete}(t),tn=e);return e}(e))return e}(t)||function(t){return t.optimizeFor({width:Object(Ot.j)().width*Object(Ot.a)()}).url()}(t)}function Je(t){return t.optimizeFor({width:Ze})}var tn={};var en=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t=e)})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),nn=function(){return(nn=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments)Object.prototype.hasOwnProperty.call(e,i)&&(t=e);return t}).apply(this,arguments)},rn=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf®<0&&(n=t);if(null!=t&&“function”==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);ie
‘”.’));var o=i;if(“binary”===o)return r.get(e,“binary”);if(“reference”===o)return function(t){if(t){var e=t.get(“blob”,“binary”);if(e)return e}return null}(r.get(e,“reference”));Object(a.Q)(new a.a(‘Component “Scrivito.ImageTag” received prop “content” with an object, whose attribute “’e
‘” is of unexpected type “’o
‘”. Valid attribute types are “binary” and “reference”.’))}(e,n);return void 0===s?null:(null===s?(o=“data:image/gif;base64,R0lGODlhyADIAIAAAP///wAAACH/C1hNUCBEYXRhWE1QPD94cGFja2V0IGJlZ2luPSLvu78iIGlkPSJXNU0wTXBDZWhpSHpyZVN6TlRjemtjOWQiPz4gPHg6eG1wbWV0YSB4bWxuczp4PSJhZG9iZTpuczptZXRhLyIgeDp4bXB0az0iQWRvYmUgWE1QIENvcmUgNS41LWMwMjEgNzkuMTU0OTExLCAyMDEzLzEwLzI5LTExOjQ3OjE2ICAgICAgICAiPiA8cmRmOlJERiB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiPiA8cmRmOkRlc2NyaXB0aW9uIHJkZjphYm91dD0iIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1wOkNyZWF0b3JUb29sPSJBZG9iZSBQaG90b3Nob3AgQ0MgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MDBEQjBEMDdFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MDBEQjBEMDhFODMzMTFFNTg0QzY4MUNBMUVCQUU2MjciPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDowMERCMEQwNUU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDowMERCMEQwNkU4MzMxMUU1ODRDNjgxQ0ExRUJBRTYyNyIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PgH//v38+/r5+Pf29fTz8vHw7+7t7Ovq6ejn5uXk4+Lh4N/e3dzb2tnY19bV1NPS0dDPzs3My8rJyMfGxcTDwsHAv769vLu6ubi3trW0s7KxsK+urayrqqmop6alpKOioaCfnp2cm5qZmJeWlZSTkpGQj46NjIuKiYiHhoWEg4KBgH9+fXx7enl4d3Z1dHNycXBvbm1sa2ppaGdmZWRjYmFgX15dXFtaWVhXVlVUU1JRUE9OTUxLSklIR0ZFRENCQUA/Pj08Ozo5ODc2NTQzMjEwLy4tLCsqKSgnJiUkIyIhIB8eHRwbGhkYFxYVFBMSERAPDg0MCwoJCAcGBQQDAgEAACH5BAEAAAAALAAAAADIAMgAAAL/hI+py+0Po5y02ouz3rz7D4biSJbmiabqyrbuC8fyTNf2jef6zvf+DwwKh8Si8YhMKpfMpvMJjUqn1Kr1is1qt9yu9wsOi8fksvmMTqvX7Lb7DY/L5/S6/Y7P6/f8vv8PGCg4SFhoeIiYqLjI2Oj4CBkpOUlZaXmJmam5ydnp+QkaKjpKWmp6ipqqusra6voKGys7S1tre4ubq7vL2+v7CxwsPExcbHyMnKy8zNzs/AwdLT1NXW19jZ2tvc3d7f0NHi4+Tl5ufo6err7O3u7+Dh8vP09fb3+Pn6+/z9/v/w8woMCBBAsaPIgwocKFDBs6fAgxosSJFCtavIgxo8aNBhw7eixTAAA7”,i=!0):o=Xe(s),r.createElement(Ke,nn({attribute:n,content:e,tag:“img”,src:o},i)))},e.displayName=“Scrivito.ImageTag”,e.defaultProps={attribute:“blob”},e}(r.Component)),an=function(t){var e=t.children;return Object(ot.c)()?r.createElement(it,{children:e,value:!1}):e},sn=function(t){var e=t.children;return Object(ot.c)()?r.createElement(it,{children:e,value:!0}):e},un=function(t){var e=t.children;return Object(ne.b)()?e?r.createElement(“div”,null,e):r.createElement(“div”,null,r.createElement(“h1”,null,“The page you were looking for doesn’t exist.”),r.createElement(“p”,null,“You may have mistyped the address or the page may have moved.”)):null};un.displayName=“Scrivito.NotFoundErrorPage”;var ln=h(un)},230:function(t,e,n){“use strict”; /** @license React v16.13.1* react.production.min.js
*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/var r=n(80),i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,a=i?Symbol.for("react.portal"):60106,s=i?Symbol.for("react.fragment"):60107,u=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,c=i?Symbol.for("react.provider"):60109,f=i?Symbol.for("react.context"):60110,d=i?Symbol.for("react.forward_ref"):60112,p=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,m="function"==typeof Symbol&&Symbol.iterator;function y(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,n=1;n<arguments.length;n++)e+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var g={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b={};function w(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||g}function _(){}function O(t,e,n){this.props=t,this.context=e,this.refs=b,this.updater=n||g}w.prototype.isReactComponent={},w.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error(y(85));this.updater.enqueueSetState(this,t,e,"setState")},w.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},_.prototype=w.prototype;var k=O.prototype=new _;k.constructor=O,r(k,w.prototype),k.isPureReactComponent=!0;var x={current:null},C=Object.prototype.hasOwnProperty,E={key:!0,ref:!0,__self:!0,__source:!0};function j(t,e,n){var r,i={},a=null,s=null;if(null!=e)for(r in void 0!==e.ref&&(s=e.ref),void 0!==e.key&&(a=""+e.key),e)C.call(e,r)&&!E.hasOwnProperty(r)&&(i[r]=e[r]);var u=arguments.length-2;if(1===u)i.children=n;else if(1<u){for(var l=Array(u),c=0;c<u;c++)l[c]=arguments[c+2];i.children=l}if(t&&t.defaultProps)for(r in u=t.defaultProps)void 0===i[r]&&(i[r]=u[r]);return{$$typeof:o,type:t,key:a,ref:s,props:i,_owner:x.current}}function S(t){return"object"==typeof t&&null!==t&&t.$$typeof===o}var T=/\/+/g,A=[];function P(t,e,n,r){if(A.length){var i=A.pop();return i.result=t,i.keyPrefix=e,i.func=n,i.context=r,i.count=0,i}return{result:t,keyPrefix:e,func:n,context:r,count:0}}function N(t){t.result=null,t.keyPrefix=null,t.func=null,t.context=null,t.count=0,10>A.length&&A.push(t)}function L(t,e,n){return null==t?0:function t(e,n,r,i){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var u=!1;if(null===e)u=!0;else switch(s){case"string":case"number":u=!0;break;case"object":switch(e.$$typeof){case o:case a:u=!0}}if(u)return r(i,e,""===n?"."+I(e,0):n),1;if(u=0,n=""===n?".":n+":",Array.isArray(e))for(var l=0;l<e.length;l++){var c=n+I(s=e[l],l);u+=t(s,c,r,i)}else if(null===e||"object"!=typeof e?c=null:c="function"==typeof(c=m&&e[m]||e["@@iterator"])?c:null,"function"==typeof c)for(e=c.call(e),l=0;!(s=e.next()).done;)u+=t(s=s.value,c=n+I(s,l++),r,i);else if("object"===s)throw r=""+e,Error(y(31,"[object Object]"===r?"object with keys {"+Object.keys(e).join(", ")+"}":r,""));return u}(t,"",e,n)}function I(t,e){return"object"==typeof t&&null!==t&&null!=t.key?function(t){var e={"=":"=0",":":"=2"};return"$"+(""+t).replace(/[=:]/g,(function(t){return e[t]}))}(t.key):e.toString(36)}function D(t,e){t.func.call(t.context,e,t.count++)}function R(t,e,n){var r=t.result,i=t.keyPrefix;t=t.func.call(t.context,e,t.count++),Array.isArray(t)?M(t,r,n,(function(t){return t})):null!=t&&(S(t)&&(t=function(t,e){return{$$typeof:o,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}(t,i+(!t.key||e&&e.key===t.key?"":(""+t.key).replace(T,"$&/")+"/")+n)),r.push(t))}function M(t,e,n,r,i){var o="";null!=n&&(o=(""+n).replace(T,"$&/")+"/"),L(t,R,e=P(e,o,r,i)),N(e)}var B={current:null};function q(){var t=B.current;if(null===t)throw Error(y(321));return t}var F={ReactCurrentDispatcher:B,ReactCurrentBatchConfig:{suspense:null},ReactCurrentOwner:x,IsSomeRendererActing:{current:!1},assign:r};e.Children={map:function(t,e,n){if(null==t)return t;var r=[];return M(t,r,null,e,n),r},forEach:function(t,e,n){if(null==t)return t;L(t,D,e=P(null,null,e,n)),N(e)},count:function(t){return L(t,(function(){return null}),null)},toArray:function(t){var e=[];return M(t,e,null,(function(t){return t})),e},only:function(t){if(!S(t))throw Error(y(143));return t}},e.Component=w,e.Fragment=s,e.Profiler=l,e.PureComponent=O,e.StrictMode=u,e.Suspense=p,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=F,e.cloneElement=function(t,e,n){if(null==t)throw Error(y(267,t));var i=r({},t.props),a=t.key,s=t.ref,u=t._owner;if(null!=e){if(void 0!==e.ref&&(s=e.ref,u=x.current),void 0!==e.key&&(a=""+e.key),t.type&&t.type.defaultProps)var l=t.type.defaultProps;for(c in e)C.call(e,c)&&!E.hasOwnProperty(c)&&(i[c]=void 0===e[c]&&void 0!==l?l[c]:e[c])}var c=arguments.length-2;if(1===c)i.children=n;else if(1<c){l=Array(c);for(var f=0;f<c;f++)l[f]=arguments[f+2];i.children=l}return{$$typeof:o,type:t.type,key:a,ref:s,props:i,_owner:u}},e.createContext=function(t,e){return void 0===e&&(e=null),(t={$$typeof:f,_calculateChangedBits:e,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null}).Provider={$$typeof:c,_context:t},t.Consumer=t},e.createElement=j,e.createFactory=function(t){var e=j.bind(null,t);return e.type=t,e},e.createRef=function(){return{current:null}},e.forwardRef=function(t){return{$$typeof:d,render:t}},e.isValidElement=S,e.lazy=function(t){return{$$typeof:v,_ctor:t,_status:-1,_result:null}},e.memo=function(t,e){return{$$typeof:h,type:t,compare:void 0===e?null:e}},e.useCallback=function(t,e){return q().useCallback(t,e)},e.useContext=function(t,e){return q().useContext(t,e)},e.useDebugValue=function(){},e.useEffect=function(t,e){return q().useEffect(t,e)},e.useImperativeHandle=function(t,e,n){return q().useImperativeHandle(t,e,n)},e.useLayoutEffect=function(t,e){return q().useLayoutEffect(t,e)},e.useMemo=function(t,e){return q().useMemo(t,e)},e.useReducer=function(t,e,n){return q().useReducer(t,e,n)},e.useRef=function(t){return q().useRef(t)},e.useState=function(t){return q().useState(t)},e.version="16.13.1"},24:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(39);function i(){return Object(r.a)()._privateRealm._registry}},25:function(t,e,n){"use strict";n.d(e,"d",(function(){return f})),n.d(e,"c",(function(){return d})),n.d(e,"b",(function(){return p})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return v})),n.d(e,"e",(function(){return m})),n.d(e,"a",(function(){return b}));var r=n(12),i=n(2),o=n(69),a=n(61),s=n(17),u=n(0),l=(n(3),""),c=!1;function f(t){var e=void 0===t?{}:t,n=e.routingBasePath,r=e.homepageCallback;c=!0,l=n||"",r&&Object(a.b)(r)}function d(t){var e=t.obj,n=t.queryParameters,r=t.hash,i=t.origin;y("generateUrl");var a=g({path:o.a(e),queryParameters:n,hash:r});return i&&a.origin(i),a.toString()}function p(t){var e=t.path;return y("generatePath"),g({path:e})}function h(t){y("recognize");var e="string"==typeof t?r(t):t,n=function(t){if(m(t))return function(t){var e=t.path();if(e.substring(0,l.length)!==l)return null;return e.substring(l.length)}(t);return null}(e),a=e.query(!0),s=function(t){var e=t.hash();if(""===e)return null;return e}(e);return Object(i.isString)(n)?{path:n,obj:o.b(n),queryParameters:a,hash:s}:{path:n,obj:null,queryParameters:a,hash:s}}function v(t){return m(r(t))}function m(t){return!t.is("absolute")||t.origin()===b()}function y(t){if(!c)throw Object(u.F)("Error from Scrivito SDK: No application configured, cannot initialize routing."),new u.g(t+" can't be called before init.")}function g(t){var e=t.path,n=t.queryParameters,i=t.hash,o=("/"+l+"/"+e).replace(/\/+/g,"/"),a=r("").pathname(o);return n&&a.query(n),i&&a.hash(i),a}function b(){return r(s.f()).origin()}},26:function(t,e,n){"use strict";t.exports=function(){}},29:function(t,e,n){var r=n(34),i=n(63);t.exports=function(t){return r(t)?t.displayName:i(t)}},3:function(t,e,n){"use strict";n.r(e),n.d(e,"AnyNormalizedSingleTypeInfo",(function(){return i.AnyNormalizedSingleTypeInfo})),n.d(e,"AnyNormalizedTypeInfo",(function(){return i.AnyNormalizedTypeInfo})),n.d(e,"AnyNormalizedTypeOptions",(function(){return i.AnyNormalizedTypeOptions})),n.d(e,"AnyTypeInfo",(function(){return i.AnyTypeInfo})),n.d(e,"AnyTypeOptions",(function(){return i.AnyTypeOptions})),n.d(e,"NormalizedTypeInfo",(function(){return i.NormalizedTypeInfo})),n.d(e,"AttributeType",(function(){return o.AttributeType})),n.d(e,"BasicAttributeDict",(function(){return o.BasicAttributeDict})),n.d(e,"BasicAttributeValue",(function(){return o.BasicAttributeValue})),n.d(e,"BasicAttributeValueForUpdate",(function(){return o.BasicAttributeValueForUpdate})),n.d(e,"SystemAttributeValue",(function(){return o.SystemAttributeValue})),n.d(e,"BasicField",(function(){return s})),n.d(e,"BasicLink",(function(){return Tt})),n.d(e,"BasicLinkAttributes",(function(){})),n.d(e,"BasicObjFacetValue",(function(){return v})),n.d(e,"ObjSearchParams",(function(){})),n.d(e,"BasicObjSearch",(function(){return w})),n.d(e,"OPERATORS",(function(){return m})),n.d(e,"BasicSearchValue",(function(){})),n.d(e,"SearchField",(function(){})),n.d(e,"SearchOperator",(function(){})),n.d(e,"Boost",(function(){})),n.d(e,"BasicObj",(function(){return Ot})),n.d(e,"MaybeBasicObj",(function(){})),n.d(e,"setLinkHandler",(function(){return Et})),n.d(e,"LinkHandler",(function(){})),n.d(e,"BasicWidget",(function(){return ut})),n.d(e,"TransformationDefinition",(function(){})),n.d(e,"Binary",(function(){return K})),n.d(e,"BlobMock",(function(){})),n.d(e,"FutureBinary",(function(){return q})),n.d(e,"FutureBinaryOptions",(function(){})),n.d(e,"IdToCopySource",(function(){})),n.d(e,"SourceSource",(function(){})),n.d(e,"setBinaryHandler",(function(){return D})),n.d(e,"BinaryHandler",(function(){})),n.d(e,"MetadataCollection",(function(){return H})),n.d(e,"BinaryMetadataValue",(function(){})),n.d(e,"ObjSearchType",(function(){return A})),n.d(e,"LinkType",(function(){return T})),n.d(e,"ObjType",(function(){return j})),n.d(e,"WidgetType",(function(){return S})),n.d(e,"BinaryType",(function(){return P})),n.d(e,"QueryParameters",(function(){})),n.d(e,"parseQuery",(function(){return c})),n.d(e,"queryParametersFromUrl",(function(){return f})),n.d(e,"currentWorkspaceId",(function(){return rt})),n.d(e,"resetCurrentWorkspaceId",(function(){return ot})),n.d(e,"setCurrentWorkspaceId",(function(){return it})),n.d(e,"getPlacementModificationInfos",(function(){return At})),n.d(e,"PlacementModification",(function(){}));var r={};n.r(r),n.d(r,"deserialize",(function(){return Y}));var i=n(54),o=n(57),a=n(11),s=function(){function t(t,e,n){this.container=t,this.attributeName=e,this.typeInfo=n,this.typeOptions=this.typeInfo[1]||{}}return t.prototype.get=function(){return this.container.get(this.attributeName,this.typeInfo)},t.prototype.update=function(t){var e;this.container.update(((e={})[this.attributeName]=[t,this.typeInfo],e))},t.prototype.getContainer=function(){return this.container},t.prototype.obj=function(){return this.container.obj()},t.prototype.name=function(){return this.attributeName},t.prototype.type=function(){return this.typeInfo[0]},t.prototype.workspaceId=function(){return this.obj().workspaceId()},t.prototype.equals=function(e){return e instanceof t&&(this.container.equals(e.getContainer())&&this.attributeName===e.name())},t.prototype.validClasses=function(){return this.typeOptions.validClasses},t.prototype.getDiff=function(){var t=this.obj();return Object(a.h)(this.workspaceId(),this.attributeName,t.id(),this.container===t?void 0:this.container.id())},t.prototype.toString=function(){var t=this.obj(),e=this.attributeName;return this.container===t?"<BasicField name="+e+" objId="+t.id()+">":"<BasicField name="+e+" objId="+t.id()+" widgetId="+this.container.id()+">"},t.prototype.id=function(){var t=this.obj();return this.container===t?this.attributeName+"|"+t.id():this.attributeName+"|"+t.id()+"|"+this.container.id()},t}(),u=n(0),l=n(12);function c(t){return l.parseQuery(t)}function f(t){return new l(t).query(!0)}var d=n(2),p=n.n(d),h=n(107);var v=function(){function t(t){var e=t.name,n=t.count,r=t.includedObjIds;this._name=e,this._count=n,this._includedObjIds=r}return t.prototype.name=function(){return this._name},t.prototype.count=function(){return this._count},t.prototype.includedObjs=function(){return Object(d.compact)(this._includedObjIds.map((function(t){return Ot.get(t)})))},t}(),m=["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan","linksTo","refersTo"],y=["equals","startsWith","isGreaterThan","isLessThan"],g=["contains","containsPrefix"],b={query:[]},w=function(){function t(t){void 0===t&&(t=b);this._query=[].concat(t.query),this._batchSize=t.batchSize,this._offset=t.offset,this._sortBy=t.sortBy,this._sortDirection=t.sortDirection,this._includeDeleted=t.includeDeleted}return t.prototype.and=function(e,n,r,i){if(e instanceof t)this._query=this._query.concat(e._query);else{if(void 0===n)throw new u.a("Missing operator to search with");if(void 0===r)throw new u.a('Missing value to search (specify "null" for missing)');var o=_(e,n,r);i&&(!function(t){if(!Object(d.contains)(g,t))throw new u.a('Boosting operator "'+t+'" is invalid.')}(n),o.boost=function(t){var e={};return Object(d.each)(t,(function(t,n){var r=k(n);e[r]=t})),e}(i)),this._query.push(o)}return this},t.prototype.andNot=function(t,e,n){var r=_(t,e,n);return function(t){if(!Object(d.contains)(y,t))throw new u.a('Negating operator "'+t+'" is invalid.')}(e),r.negate=!0,this._query.push(r),this},t.prototype.offset=function(t){return this._offset=t,this},t.prototype.order=function(t,e){return void 0===e&&(e="asc"),this._sortBy=k(t),this._sortDirection=e,this},t.prototype.batchSize=function(t){return this._batchSize=t,this},t.prototype.includeDeleted=function(){return this._includeDeleted=!0,this},t.prototype.count=function(){return this.getObjDataQuery().count()},t.prototype.first=function(){return this.take(1)[0]||null},t.prototype.take=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];E.apply(void 0,[t].concat(e));var r=this._batchSize;try{return this._batchSize=void 0===t?1e3:t,Object(u.m)(this,t)}finally{this._batchSize=r}},t.prototype.iterator=function(){var t=this.getObjDataQuery().iterator();return{next:function(){var e=t.next(),n=e.done,r=e.value;return n?{done:!0}:{done:!1,value:new Ot(r)}}}},t.prototype.getObjDataQuery=function(){return Object(a.j)(rt(),this.params(),this.getBatchSize())},t.prototype.getBatchSize=function(){return this._batchSize||100},t.prototype.facet=function(t,e){var n;return n=void 0===e?{}:function(t){var e=d.without.apply(void 0,[Object.keys(t)].concat(x));if(e.length)throw new u.a("Invalid facet options: "+Object(u.I)(e)+". Valid options: "+x);return t}(e),new a.a(rt(),k(t),n,this._query).result().map((function(t){return new v(t)}))},t.prototype.store=function(t,e){Object(a.p)(rt(),this.params(),t,e)},t.prototype.params=function(){return Object(d.omit)({query:this._query,offset:this._offset,sortBy:this._sortBy,sortDirection:this._sortDirection,includeDeleted:this._includeDeleted,batchSize:this._batchSize},d.isUndefined)},t}();function _(t,e,n){return{field:function(t){if(Object(d.isArray)(t))return Object(d.map)(t,k);return k(t)}(t),operator:function(t){if(!function(t){return Object(d.contains)(m,t)}(t))throw new u.a('Operator "'+t+'" is invalid.');return Object(u.R)(t)}(e),value:function(t){if(Object(d.isArray)(t))return Object(d.map)(t,O);return O(t)}(n)}}function O(t){return Object(d.isDate)(t)?Object(u.w)(t):t instanceof Ot?t.id():t}function k(t){if(!Object(u.y)(t))throw new u.a('Attribute name "'+t+'" is not camel case.');return Object(u.R)(t)}var x=["limit","includeObjs"];var C=u.O.refinement(u.O.Number,(function(t){return t>=0}),"Number (positive)"),E=Object(u.p)("objSearch.take",[["count",u.O.maybe(C)]],{docPermalink:"js-sdk/ObjSearch-take"}),j=u.O.irreducible("Obj",(function(t){return N(t,Ot)})),S=u.O.irreducible("Widget",(function(t){return N(t,ut)})),T=u.O.irreducible("Link",(function(t){return N(t,Tt)})),A=u.O.irreducible("ObjSearch",(function(t){return N(t,w)})),P=u.O.irreducible("Binary",(function(t){return t instanceof K}));function N(t,e){return!!t&&t._scrivitoPrivateContent instanceof e}var L,I=n(7);function D(t){L=t}var R=function(){function t(t,e){void 0===e&&(e={});var n=e.filename;if(this.contentType=e.contentType,t.idToCopy)this.idToCopy=t.idToCopy;else{var r=t.source;this.source=r,this.contentType||(this.contentType=r.type),n||(n=r.name)}n&&(this.filename=n.replace(/[^\w\-_\.$]/g,"-"))}return t.prototype.into=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return M.apply(void 0,[t].concat(e)),Object(I.g)("Changing CMS content"),this.intoId(t._scrivitoPrivateContent.id())},t.prototype.intoId=function(t){if(!L)throw new u.g("No binaryHandler defined!");var e;if(this.idToCopy)e=L.copyBinary(this.idToCopy,t,this.filename,this.contentType);else{if(!this.source)throw new u.g("Source is not defined!");e=L.uploadBinary(t,this.source,this.filename,this.contentType)}return e.then((function(t){var e=t.id;return new K(e,!1)}))},t}(),M=Object(u.p)("FutureBinary#into",[["target",j]],{docPermalink:"js-sdk/FutureBinary-into"});var B,q=R,F=n(5),z=n(9);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(B||(B={}));var U=new F.LoadableCollection({name:"metadata",state:function(){return I.c.subState("metadataCollection")},loader:function(t){return z.e.retrieveBinaryMetadata(t)}}),H=function(){function t(t){this.binaryId=t,t&&(this.loadableData=U.get(t))}return t.store=function(t,e){W(e),U.get(t).set(e)},t.prototype.get=function(t){Object(a.c)("MetadataCollection#get"),function(t){if(!Object(u.y)(t))throw new u.a('Metadata key "'+t+'" is not in camel case.')}(t);var e=this.getData();if(e){var n=Object(u.R)(t);return e.hasOwnProperty(n)?e[n]:null}return null},t.prototype.keys=function(){var t=this.getData();return t?Object(d.map)(Object(d.keys)(t),u.o):[]},t.prototype.contentLength=function(){var t=this.get("contentLength");return"number"!=typeof t?0:t},t.prototype.contentType=function(){var t=this.get("contentType");return"string"!=typeof t?"":t},t.prototype.getData=function(){if(this.loadableData){var t=this.loadableData.get();if(t)return W(t)}},t}();function W(t){for(var e=t.meta_data,n={},r=0,i=Object.keys(e);r<i.length;r++){var o=i[r],a=e[o],s=a[0],l=a[1];if(null==l)throw new u.g('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var c=void 0;if(s===B.Date){if("string"!=typeof l)throw new u.g('Invalid non-string backend value for a date metadata "'+o+'"');c=Object(u.t)(l)}else c=l;n[o]=c}return n}var V=new F.LoadableCollection({name:"binary",state:function(){return I.c.subState("binary")},loader:function(t){var e=t[0],n=t[1];return z.e.retrieveBinaryUrls(e,n)}}),K=function(){function t(t,e,n){void 0===e&&(e=!0),void 0===n&&(n={}),this._id=t,this._isPublic=!!e,this._transformation=n||void 0,this._loadableData=V.get([t,this._transformation])}return t.upload=function(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(G.apply(void 0,[t,e].concat(n)),!(u.f.is(t)||e&&e.filename))throw new u.a("Expected a filename to be passed with Blob as the source.");return new q({source:t},e)},t.store=function(e,n,r){var i=n.transformation;V.get([e,i]).set(r);var o=new t(e).raw();return i?o.optimizeFor(i):o},t.storeMetadata=function(t,e){H.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new q({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Object(d.extend)({},this._transformation,e))},t.prototype.original=function(){return new t(this._id,this._isPublic,{})},t.prototype.raw=function(){return new t(this._id,this._isPublic,null)},t.prototype.isExplicitlyTransformed=function(){return this.isTransformed()&&!Object(d.isEmpty)(this._transformation)},t.prototype.isRaw=function(){return!this.isTransformed()},t.prototype.url=function(){return Object(a.c)("Binary#url"),this.urlWithoutPlaceholder()||"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7"},t.prototype.urlWithoutPlaceholder=function(){var t=this._loadableData.get();if(t){var e=t[this.accessType()];if(!e)throw new u.g("Missing key "+this.accessType+" in binary data");return e.get.url}},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":l(t).path().split("/").pop()||""},t.prototype.metadata=function(){return this.assertNotTransformed("Metadata"),new H(this._id)},t.prototype.contentType=function(){return this.assertNotTransformed("Content type"),this.metadata().contentType()},t.prototype.contentLength=function(){return this.assertNotTransformed("Content length"),this.metadata().contentLength()},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}return""},t.prototype.equals=function(e){return e instanceof t&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&Object(d.isEqual)(e.definition(),this.definition())},t.prototype.isImage=function(){var t=this.raw().contentType();return!!t&&"image"===t.split("/")[0]},t.prototype.definition=function(){return this._transformation||null},t.prototype.accessType=function(){return this.isPrivate()?"private_access":"public_access"},t.prototype.assertNotTransformed=function(t){if(this.isTransformed())throw new u.i('"'+t+'" is not available for transformed images. Use "Scrivito.Binary#raw" to access the untransformed version of the image.')},t.prototype.isTransformed=function(){return!!this._transformation},t}(),Q=u.O.struct({contentType:u.O.maybe(u.O.String),filename:u.O.maybe(u.O.String)}),$=u.O.refinement(u.O.Object,(function(t){return u.c.is(t)||u.f.is(t)}),"Blob or File"),G=Object(u.p)("Binary.upload",[["source",$],["options",u.O.maybe(Q)]],{docPermalink:"js-sdk/Binary-static-upload"});function Y(t,e,n,r){var i=e[0],o=e[1];switch(n){case"binary":return function(t,e){if("binary"===t&&e){var n=e.id,r="published"===rt();return new K(n,r)}return null}(i,o);case"date":return function(t,e){if("date"!==t)return null;return Object(u.t)(e)}(i,o);case"float":return function(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?Z(e):null;case"number":return Z(e);default:return null}}(i,o);case"enum":return function(t,e,n){var r=n.values;if("string"===t&&p.a.contains(r,e))return e;return null}(i,o,r);case"html":return function(t,e){if(p.a.contains(["html","string"],t)&&p.a.isString(e))return e;return""}(i,o);case"integer":return function(t,e){switch(t){case"string":case"number":return Object(u.u)(e);default:return null}}(i,o);case"link":return function(t,e){if("link"!==t||!p.a.isObject(e))return null;return X(e)}(i,o);case"linklist":return function(t,e){if(!p.a.isArray(e))return[];return p.a.compact(e.map(X))}(0,o);case"multienum":return function(t,e,n){var r=n.values;if("stringlist"!==t||!Array.isArray(e))return[];return p.a.intersection(e,r)}(i,o,r);case"reference":return function(t,e,n){if("reference"===t&&e)return J(e,n);return null}(i,o,t);case"referencelist":return function(t,e,n){if("referencelist"!==t)return[];if(!e)return[];var r=e.map((function(t){return J(t,n)}));return p.a.compact(r)}(i,o,t);case"string":return function(t,e){if(p.a.contains(["html","string"],t)&&p.a.isString(e))return e;return""}(i,o);case"stringlist":return function(t,e){if("stringlist"!==t||!Array.isArray(e))return[];return e}(i,o);case"widgetlist":return function(t,e,n){if("widgetlist"!==t)return[];return p.a.map(e,(function(t){return n.widget(t)}))}(i,o,t);default:return null}}function Z(t){var e=parseFloat(t);return Object(u.B)(e)?e:null}function X(t){var e=p.a.pick(t,"query","rel","target","title","url");"fragment"in t&&(e.hash=t.fragment),"obj_id"in t&&(e.objId=t.obj_id);var n=new Tt(e);return n.isBroken()?null:n}function J(t,e){var n=Ot.getInWorkspace(e.workspaceId(),t);return n||null}var tt=function(){function t(){}return t.prototype.get=function(t,e){var n=Object(u.R)(t),i=this.getAttributeData(n);return i&&d.isArray(i)||(i=[]),"string"==typeof e?Y(this,i,e):Y.apply(r,[this,i].concat(e))},t.prototype.serializeAttributes=function(t){var e=this;return d.mapObject(t,(function(t,n){if(function(t){return d.isArray(t)&&"widgetlist"===t[0]}(t)){var r=Object(u.o)(n);return["widgetlist",d.invoke(e.get(r,["widgetlist"]),"serializeAttributes")]}return t}))},t.prototype.persistWidgets=function(t,e){d.each(e,(function(e){if(function(t){if(!t)return!1;if(!d.isArray(t))return!1;if(t.length<2)return!1;var e=t[1];return d.isArray(e)&&e.length>0&&"widgetlist"===e[0]}(e)){var n=e[0];if(n){var r=d.isArray(n)?n:[n];d.each(r,(function(e){e.isPersisted()||e.persistInObj(t)}))}}}))},t}();function et(t){return d.mapObject(t,(function(t,e){if(Object(u.z)(e))return d.isArray(t)?t:[t];if(!d.isArray(t))throw new u.g("Value for "+e+" should be a tuple: [value, typeInfo]");var n=t[0],r=t[1];return"string"==typeof r?[n,[r]]:[n,r]}))}var nt;function rt(){return nt||"published"}function it(t){nt=t}function ot(){nt=void 0}var at,st=(at=function(t,e){return(at=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}at(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),ut=function(t){function e(e){var n=t.call(this)||this;return n._attributesToBeSaved=et(e),function(t){if(!t)throw new u.a('Please provide a widget class as the "_objClass" property.')}(e._objClass),n}return st(e,t),e.build=function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r},e.newWithSerializedAttributes=function(t){var n={},r={};p.a.each(t,(function(t,i){if("_obj_class"!==i)if(p.a.isArray(t)&&"widgetlist"===p.a.first(t)){var o=p.a.map(p.a.last(t),(function(t){return e.newWithSerializedAttributes(t)})),a=Object(u.o)(i);n[a]=[o,["widgetlist"]]}else r[i]=t;else n._objClass=[t]}));var i=new e(n);return i.preserializedAttributes=r,i},e.prototype.id=function(){return this._failIfNotPersisted(),this._id},e.prototype.objClass=function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]},e.prototype.obj=function(){return this._failIfNotPersisted(),this._obj},e.prototype.widget=function(t){return this.obj().widget(t)},e.prototype.workspaceId=function(){return this.obj().workspaceId()},e.prototype.modification=function(){return Object(a.k)(rt(),this.obj().id(),this.id())},e.prototype.update=function(t){var e=this,n=et(t);Object(I.r)((function(){e.persistWidgets(e.obj(),n);var t=ft(n);e._updateSelf(t)}))},e.prototype.insertBefore=function(t){t.obj().insertWidget(this,{before:t})},e.prototype.insertAfter=function(t){t.obj().insertWidget(this,{after:t})},e.prototype.remove=function(){this.obj().removeWidget(this)},e.prototype.copy=function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()},e.prototype.persistInObj=function(t){this.persistWidgets(t,this._attributesToBeSaved);var e=ft(this._attributesToBeSaved);p.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()},e.prototype.isPersisted=function(){return!!this._obj},e.prototype.onDidPersist=function(t){if(this.isPersisted())throw new u.i('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t},e.prototype.hasOnDidPersistCallback=function(){return!!this._onDidPersistCallback},Object.defineProperty(e.prototype,"attributesToBeSaved",{get:function(){return this._attributesToBeSaved},enumerable:!0,configurable:!0}),e.prototype.finishSaving=function(){return this.obj().finishSaving()},e.prototype.equals=function(t){return t instanceof e&&(this.id()===t.id()&&this.obj().id()===t.obj().id())},e.prototype.containingField=function(){return this.obj().fieldContainingWidget(this)},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'" objId="'+this.obj().id()+'"]'},e.prototype.getAttributeData=function(t){return this.obj().getWidgetAttribute(this.id(),t)},e.prototype.getData=function(){return this.obj().getWidgetData(this.id())},e.prototype.serializeAttributes=function(){return t.prototype.serializeAttributes.call(this,this.getData())},e.prototype._failIfNotPersisted=function(){if(!this.isPersisted())throw new u.i("Can not access a new widget before it has been saved.")},e.prototype._updateSelf=function(t){var e,n={_widgetPool:[(e={},e[this.id()]=t,e)]};this.obj().update(n)},e.prototype._executeDidPersistCallback=function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)},e.prototype._copyPersisted=function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)},e.prototype._copyUnpersisted=function(){var t=new e(p.a.mapObject(this._attributesToBeSaved,(function(t){var e=t[0],n=t[1];return n&&"widgetlist"===n[0]?[p.a.invoke(e,"copy"),n]:[e,n]})));return this._onDidPersistCallback&&t.onDidPersist(this._onDidPersistCallback),t},e}(tt);function lt(t){if(t instanceof Tt)return!0;if(!d.isObject(t))return!1;var e=d.without(d.keys(t),"hash","obj_id","query","rel","target","title","url");return d.isEmpty(e)}function ct(t){var e,n=t instanceof Tt?{rel:(e=t).rel()||void 0,query:e.query(),target:e.target(),title:e.title(),url:e.url(),obj_id:e.objId(),fragment:e.hash()}:function(t){return{obj_id:t.obj_id||null,query:t.query||null,rel:t.rel||void 0,target:t.target||null,title:t.title||null,url:t.url||null,fragment:t.hash||null}}(t);return n.rel||delete n.rel,n}function ft(t){var e={};return p.a.each(t,(function(t,n){var r=t[0],i=t[1],o=function(t){if(!Object(u.y)(t))throw new u.a("Attribute names have to be in camel case.");return Object(u.R)(t)}(n);if(Object(u.z)(o))e[o]=r;else{var a=i[0],s=i[1];e[o]=[dt(a,n),ht(pt(a,s,r,n))]}})),e}function dt(t,e){switch(t){case"enum":return"string";case"float":case"integer":return"number";case"multienum":return"stringlist";case"binary":case"date":case"html":case"link":case"linklist":case"reference":case"referencelist":case"string":case"stringlist":case"widgetlist":return t;default:throw new u.a('Attribute "'+e+'" is of unsupported type "'+t+'".')}}function pt(t,e,n,r){if(null===n)return n;switch(t){case"binary":return function(t,e){if(t instanceof K)return{id:t.id()};vt(t,e,"A Binary.")}(n,r);case"date":return function(t,e){if(p.a.isDate(t))return Object(u.w)(t);if(Object(u.A)(t))return t;vt(t,e,"A Date.")}(n,r);case"enum":return function(t,e,n){var r=t.values;if(p.a.contains(r,e))return e;vt(e,n,'Valid attribute values are contained in its "values" array ['+r+"].")}(e,n,r);case"float":return function(t,e){if(Object(u.B)(t))return t;var n=t;p.a.isNumber(t)&&(n=String(t));vt(n,e,"A Number, that is #isFinite().")}(n,r);case"html":return function(t,e){if(p.a.isString(t))return t;vt(t,e,"A String.")}(n,r);case"integer":return function(t,e){if(Object(u.C)(t))return t;vt(t,e,"A Number, that is #isSafeInteger().")}(n,r);case"link":return function(t,e){if(lt(t))return ct(t);vt(t,e,"A Link instance.")}(n,r);case"linklist":return function(t,e){if(p.a.isArray(t)&&p.a.every(t,lt))return p.a.map(t,ct);vt(t,e,"An array of Link instances.")}(n,r);case"multienum":return function(t,e,n){var r=t.values,i="An array with values from "+Object(u.I)(r)+".";p.a.isArray(e)&&p.a.every(e,p.a.isString)||vt(e,n,i);var o=p.a.difference(e,r);if(o.length){var a=i+" Forbidden values: "+Object(u.I)(o)+".";vt(e,n,a)}return e}(e,n,r);case"reference":return function(t,e){if(yt(t))return mt(t);vt(t,e,"A BasicObj or a String ID.")}(n,r);case"referencelist":return function(t,e){if(function(t){return p.a.isArray(t)&&p.a.every(t,(function(t){return yt(t)}))}(t))return p.a.map(t,mt);vt(t,e,"An array with BasicObjs or String IDs.")}(n,r);case"string":return function(t,e){if(gt(t))return t.toString();vt(t,e,"A String.")}(n,r);case"stringlist":return function(t,e){if(p.a.isArray(t)&&p.a.every(t,(function(t){return gt(t)})))return p.a.invoke(t,"toString");vt(t,e,"An array of strings.")}(n,r);case"widgetlist":return function t(e,n){if(e instanceof ut)return t([e],n);if(p.a.isArray(e)&&p.a.every(e,(function(t){return t instanceof ut})))return p.a.invoke(e,"id");vt(e,n,"An array of BasicWidget instances.")}(n,r);default:throw new u.g('serializeAttributeValue is not implemented for "'+t+'".')}}function ht(t){return(p.a.isString(t)||p.a.isArray(t))&&p.a.isEmpty(t)?null:t}function vt(t,e,n){throw new u.a("Unexpected value "+Object(u.I)(t)+' for attribute "'+e+'". Expected: '+n)}function mt(t){return t instanceof Ot?t.id():t}function yt(t){return p.a.isString(t)||t instanceof Ot}function gt(t){return p.a.isString(t)||p.a.isNumber(t)}var bt,wt=function(){var t=function(e,n){return(t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(e,n)};return function(e,n){function r(){this.constructor=e}t(e,n),e.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}}(),_t=function(t){function e(e){var n=t.call(this)||this;return n.objData=e,n}return wt(e,t),e.get=function(t){var e=this.getIncludingDeleted(t);return!e||e.isDeleted()?null:e},e.getInWorkspace=function(t,e){var n=this.getIncludingDeletedInWorkspace(t,e);return!n||n.isDeleted()?null:n},e.getIncludingDeleted=function(t){return this.getIncludingDeletedInWorkspace(rt(),t)},e.getIncludingDeletedInWorkspace=function(t,n){var r=Object(a.i)(t,n);if(!r)return null;var i=new e(r);return i.isFinallyDeleted()?null:i},e.create=function(t){return this.createInWorkspace(rt(),t)},e.createInWorkspace=function(t,e){var n=et(e);!function(t){if(!t)throw new u.a('Please provide an obj class as the "_objClass" property.')}(n._objClass),n._id||(n._id=[this.generateId()]);var r={_id:n._id,_obj_class:n._objClass};return this.createWithSerializedAttributes(t,d.mapObject(r,(function(t){return t[0]})),d.omit(e,"_objClass","_id"))},e.createFromFile=function(t,e){var n=this.create(e);return K.upload(t).intoId(n.id()).then((function(t){return n.update({blob:[t,["binary"]]}),n.finishSaving().then((function(){return n}))}))},e.addChildWithSerializedAttributes=function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(rt(),d.extend({},n,{_id:r,_path:t+"/"+r}))},e.createWithSerializedAttributes=function(t,n,r){if(!r){var i=function(t){var e={},n={};d.each(t,(function(t,r){if(a=t,d.isArray(a)&&"widgetlist"===d.first(a)){var i=d.map(t[1],kt),o=Object(u.o)(r);n[o]=[i,["widgetlist"]]}else e[r]=t;var a})),e._id||(e._id=_t.generateId());return[e,n]}(n),o=i[0],s=i[1];return this.createWithSerializedAttributes(t,o,s)}var l=Object(a.d)(t,n._id);l.update(n);var c=new e(l);return c.update(r),c},e.generateId=function(){return Object(u.L)()},e.all=function(){return(new w).batchSize(1e3)},e.root=function(){return e.getByPath("/")},e.where=function(t,e,n,r){return(new w).and(t,e,n,r)},e.getByPath=function(t){var e=this.where("_path","equals",t).first();return e||null},e.getByPermalink=function(t){var e=this.where("_permalink","equals",t).first();return e||null},e.getAllByPermalink=function(t){return this.where("_permalink","equals",t).take()},e.generateWidgetId=function(){return Object(u.K)()},e.prototype.id=function(){return this.getAttributeData("_id")},e.prototype.objClass=function(){return this.getAttributeData("_obj_class")},e.prototype.obj=function(){return this},e.prototype.createdAt=function(){return Object(u.H)(this.getAttributeData("_created_at"))},e.prototype.createdBy=function(){return this.getAttributeData("_created_by")||null},e.prototype.lastChanged=function(){var t=this.getAttributeData("_last_changed");return t?Object(u.H)(t):null},e.prototype.lastChangedBy=function(){return this.getAttributeData("_last_changed_by")||null},e.prototype.version=function(){return this.getAttributeData("_version")},e.prototype.workspaceId=function(){return this.objData.workspaceId()},e.prototype.path=function(){return this.getAttributeData("_path")||null},e.prototype.permalink=function(){return this.getAttributeData("_permalink")||null},e.prototype.parentPath=function(){var t=this.path();return t&&"/"!==t?function(t){var e=t.split("/");if(e.pop(),1===e.length)return"/";return e.join("/")}(t):null},e.prototype.parent=function(){var t=this.parentPath();return t?e.getByPath(t):null},e.prototype.hasConflicts=function(){return!!this.getAttributeData("_conflicts")},e.prototype.modification=function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null},e.prototype.isModified=function(){return!!this.modification()},e.prototype.isNew=function(){return"new"===this.modification()},e.prototype.isEdited=function(){return"edited"===this.modification()},e.prototype.isDeleted=function(){return"deleted"===this.modification()},e.prototype.isFinallyDeleted=function(){return this.objData.isNonExistent()},e.prototype.contentLength=function(){return this.metadata().contentLength()},e.prototype.contentType=function(){return this.metadata().contentType()},e.prototype.contentUrl=function(){var t=this.blob();return t?t.url():""},e.prototype.metadata=function(){var t=this.blob();return t?new H(t.id()):new H},e.prototype.children=function(){var t=this.path();return t?xt(t).take():[]},e.prototype.hasChildren=function(){var t=this.path();return!!t&&xt(t).batchSize(0).count()>0},e.prototype.orderedChildren=function(){var t=this.children(),e=this.get("childOrder","referencelist");return d.isArray(e)?d.sortBy(t,(function(t){var n=d.invoke(e,"id").indexOf(t.id());return-1===n?e.length:n})):t},e.prototype.backlinks=function(){return e.where("*","linksTo",this).take()},e.prototype.ancestors=function(){var t=this.parentPath();return t?function(t){var e=["/"];if("/"===t)return e;var n=t.split("/").slice(1),r="";return n.forEach((function(t){r=r+"/"+t,e.push(r)})),e}(t).map((function(t){return e.getByPath(t)})):[]},e.prototype.isRestricted=function(){var t=this.restriction();return!!t&&t.length>0},e.prototype.restriction=function(){return this.getAttributeData("_restriction")||null},e.prototype.restrict=function(){this.isRestricted()||this.update({_restriction:[["_auth"]]})},e.prototype.unrestrict=function(){this.update({_restriction:null})},e.prototype.update=function(t){var e=this,n=et(t);Object(I.r)((function(){e.persistWidgets(e,n);var t=ft(n);e.objData.update(t)})),this.startLinkResolution()},e.prototype.destroy=function(){this.update({_markedDeleted:[!0]})},e.prototype.insertWidget=function(t,e){var n,r=function(t){if(function(t){return!!t.before}(t))return t.before.id();return t.after.id()}(e),i=this._widgetPlacementFor(r);if(i){var o=i.attributeValue,a=i.attributeName,s=i.container,u=i.index,l=e.before?u:u+1,c=o.slice(0,l).concat([t],o.slice(l));s.update(((n={})[a]=[c,["widgetlist"]],n))}},e.prototype.removeWidget=function(t){var e=this.fieldContainingWidget(t);if(e){var n=e.get(),r=d.reject(n,(function(e){return e.equals(t)}));e.update(r)}},e.prototype.siblingWidget=function(t,e){var n=this._widgetPlacementFor(t.id());if(n)return n.attributeValue[n.index+e]},e.prototype.copyAsync=function(t){return void 0===t&&(t={}),function(t){if(d.difference(d.keys(t),["_path"]).length)throw new u.a('Currently only "_path" copy option is supported.')}(t),this._copyAttributes().then((function(n){var r=d.extend(n,t),i=e.createWithSerializedAttributes(rt(),r);return i.objData.finishSaving().then((function(){return i}))}))},e.prototype.moveToAsync=function(t){return this.moveTo(t),this.finishSaving()},e.prototype.moveTo=function(t){this.update({_path:[t+"/"+this.id()]})},e.prototype.markResolvedAsync=function(){return this.update({_conflicts:[null]}),this.finishSaving()},e.prototype.finishSaving=function(){var t=this;return this.finishLinkResolution().then((function(){return t.objData.finishSaving()}))},e.prototype.equals=function(t){return t instanceof e&&this.id()===t.id()},e.prototype.widget=function(t){return this.getWidgetAttribute(t,"_obj_class")?ut.build(t,this):null},e.prototype.getWidgetAttribute=function(t,e){return this.objData.getWidgetAttribute(t,e)},e.prototype.widgets=function(){var t=this.getData();if(!jt(t))return[];var e=t._widget_pool;if(!e)return[];var n=[];return this.collectWidgets(n,t,e,{}),n},e.prototype.fieldContainingWidget=function(t){var e=t.id(),n=this._widgetPlacementFor(e);if(n){var r=n.container,i=n.attributeName;return new s(r,i,["widgetlist"])}},e.prototype.generateWidgetId=function(){for(var t=0;t<10;t++){var n=e.generateWidgetId();if(!this.widget(n))return n}throw new u.g("Could not generate a new unused widget id.")},e.prototype.serializeAttributes=function(){var e=t.prototype.serializeAttributes.call(this,this.getData());return delete e._conflicts,delete e._modification,delete e._created_at,delete e._created_by,delete e._last_changed,delete e._last_changed_by,e},e.prototype.slug=function(){var t,e=this.get("title","string");return"string"!=typeof(t=e)?"":h(t)},e.prototype.getWidgetData=function(t){return this.objData.getWidget(t)},e.prototype.startLinkResolution=function(){Object(a.l)()||Ct().startLinkResolutionFor(rt(),this.id())},e.prototype.finishLinkResolution=function(){return Ct().finishLinkResolutionFor(rt(),this.id())},e.prototype.toPrettyPrint=function(){return"[object "+this.objClass()+' id="'+this.id()+'"]'},e.prototype.getAttributeData=function(t){return this.objData.getAttribute(t)},e.prototype.getData=function(){return this.objData.get()},e.prototype.blob=function(){return this.get("blob",["binary"])},e.prototype._copyAttributes=function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return d.each(n,(function(e,i){if("_"!==i[0]){if(function(t){return"binary"===t[0]&&!!t[1]}(e)){var o=e[1],a=new q({idToCopy:o.id}).intoId(t).then((function(t){return{name:i,binary:t}}));r.push(a)}}else delete n[i]})),n._id=t,n._obj_class=this.objClass(),n._restriction=this.restriction(),this.path()&&(n._path=this.parentPath()+"/"+t),u.j.all(r).then((function(t){return d.each(t,(function(t){var e=t.name,r={id:t.binary.id()};n[e]=["binary",r]})),n}))},e.prototype.collectWidgets=function(t,e,n,r){var i=this;d.map(e,(function(t,e){if(t&&!Object(u.z)(e)){var n=t;return Object(z.h)(n)?n[1]:void 0}})).forEach((function(e){e&&e.forEach((function(e){if(!r[e]){r[e]=!0;var o=i.widget(e);if(o){t.push(o);var a=n[e];i.collectWidgets(t,a,n,r)}}}))}))},e.prototype._widgetPlacementFor=function(t){var e=this.getData();if(jt(e)){var n=Object(a.f)(e,t);if(n){var r,i=Object(u.o)(n.attributeName),o=n.parentWidgetId;if(o){if(!(r=this.widget(o)))return}else r=this;return{container:r,attributeName:i,attributeValue:r.get(i,["widgetlist"]),index:n.index,parentWidgetId:o}}}},e}(tt),Ot=_t;function kt(t){return ut.newWithSerializedAttributes(t)}function xt(t){return _t.all().and("_parentPath","equals",t)}function Ct(){if(!bt)throw new Error("No Link Handler");return bt}function Et(t){bt=t}function jt(t){return!!t&&Object(z.f)(t)}var St=function(){return(St=Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)},Tt=function(){function t(t){this.attributes=St({},t)}return t.prototype.title=function(){return this.attributes.title||null},t.prototype.query=function(){return this.attributes.query||null},t.prototype.hash=function(){return this.attributes.hash||null},t.prototype.rel=function(){return this.attributes.rel||null},t.prototype.target=function(){return this.attributes.target||null},t.prototype.url=function(){return this.attributes.url||null},t.prototype.objId=function(){return this.attributes.objId||null},t.prototype.obj=function(){var t=this.objId();return t?Ot.get(t):null},t.prototype.queryParameters=function(){return c(this.query()||"")},t.prototype.isExternal=function(){return!!this.url()},t.prototype.isInternal=function(){return!this.isExternal()},t.prototype.equals=function(e){return e instanceof t&&(this.isExternal()?this.hash()===e.hash()&&this.query()===e.query()&&this.rel()===e.rel()&&this.target()===e.target()&&this.title()===e.title()&&this.url()===e.url():this.objId()===e.objId()&&this.title()===e.title())},t.prototype.copy=function(e){void 0===e&&(e={});var n=St({},this.attributes,e);if(e.objId&&e.url)throw new u.a('Link#copy refused: both "objId" and "url" have been specified with truthy values');return e.objId?n.url=null:e.url&&(n.objId=null),new t(n)},t.prototype.isBroken=function(){return!this.isExternal()&&!this.obj()},t.prototype.toPrettyPrint=function(){return this.isInternal()?'[object Link objId="'+this.objId()+'"]':'[object Link url="'+this.url()+'"]'},t}();function At(t){var e=t.get(),n=function(t){var e=t.getDiff();if(Object(z.i)(e))return e.content}(t);return n?Object(d.compact)(n.map((function(n){var r,i=n[0],o=n[1];switch(i){case"+":if(r=Pt(e,o))return{widget:r,modification:"new"};break;case"=":if(r=Pt(e,o))return{widget:r,modification:null};break;case"-":if(r=function(t,e){var n=Ot.getInWorkspace("published",t);if(n)return n.widget(e);return null}(t.obj().id(),o))return{widget:r,modification:"deleted"}}}))):e.map((function(t){return{widget:t,modification:null}}))}function Pt(t,e){return Object(d.find)(t,(function(t){return t.id()===e}))||null}},30:function(t,e,n){"use strict";t.exports=function(t,e,n,r,i,o,a,s){if(!t){var u;if(void 0===e)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[n,r,i,o,a,s],c=0;(u=new Error(e.replace(/%s/g,(function(){return l[c++]})))).name="Invariant Violation"}throw u.framesToPop=1,u}}},31:function(t,e,n){"use strict";n.d(e,"f",(function(){return D})),n.d(e,"a",(function(){return R})),n.d(e,"c",(function(){return M})),n.d(e,"b",(function(){return B})),n.d(e,"d",(function(){return q})),n.d(e,"e",(function(){return F}));var r=n(17),i=n(0),o=n(7),a=n(26),s=n.n(a),u=n(30),l=n.n(u);function c(t){return"/"===t.charAt(0)}function f(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}var d=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],r=e&&e.split("/")||[],i=t&&c(t),o=e&&c(e),a=i||o;if(t&&c(t)?r=n:n.length&&(r.pop(),r=r.concat(n)),!r.length)return"/";var s=void 0;if(r.length){var u=r[r.length-1];s="."===u||".."===u||""===u}else s=!1;for(var l=0,d=r.length;d>=0;d--){var p=r[d];"."===p?f(r,d):".."===p?(f(r,d),l++):l&&(f(r,d),l--)}if(!a)for(;l--;l)r.unshift("..");!a||""===r[0]||r[0]&&c(r[0])||r.unshift("");var h=r.join("/");return s&&"/"!==h.substr(-1)&&(h+="/"),h};"function"==typeof Symbol&&Symbol.iterator;var p,h,v=function(t){return"/"===t.charAt(0)?t:"/"+t},m=function(t,e){return new RegExp("^"+e+"(\\/|\\?|#|$)","i").test(t)},y=function(t,e){return m(t,e)?t.substr(e.length):t},g=function(t){return"/"===t.charAt(t.length-1)?t.slice(0,-1):t},b=function(t){var e=t.pathname,n=t.search,r=t.hash,i=e||"/";return n&&"?"!==n&&(i+="?"===n.charAt(0)?n:"?"+n),r&&"#"!==r&&(i+="#"===r.charAt(0)?r:"#"+r),i},w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},_=function(t,e,n,r){var i=void 0;"string"==typeof t?(i=function(t){var e=t||"/",n="",r="",i=e.indexOf("#");-1!==i&&(r=e.substr(i),e=e.substr(0,i));var o=e.indexOf("?");return-1!==o&&(n=e.substr(o),e=e.substr(0,o)),{pathname:e,search:"?"===n?"":n,hash:"#"===r?"":r}}(t)).state=e:(void 0===(i=w({},t)).pathname&&(i.pathname=""),i.search?"?"!==i.search.charAt(0)&&(i.search="?"+i.search):i.search="",i.hash?"#"!==i.hash.charAt(0)&&(i.hash="#"+i.hash):i.hash="",void 0!==e&&void 0===i.state&&(i.state=e));try{i.pathname=decodeURI(i.pathname)}catch(t){throw t instanceof URIError?new URIError('Pathname "'+i.pathname+'" could not be decoded. This is likely caused by an invalid percent-encoding.'):t}return n&&(i.key=n),r?i.pathname?"/"!==i.pathname.charAt(0)&&(i.pathname=d(i.pathname,r.pathname)):i.pathname=r.pathname:i.pathname||(i.pathname="/"),i},O=function(){var t=null,e=[];return{setPrompt:function(e){return s()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},confirmTransitionTo:function(e,n,r,i){if(null!=t){var o="function"==typeof t?t(e,n):t;"string"==typeof o?"function"==typeof r?r(o,i):(s()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),i(!0)):i(!1!==o)}else i(!0)},appendListener:function(t){var n=!0,r=function(){n&&t.apply(void 0,arguments)};return e.push(r),function(){n=!1,e=e.filter((function(t){return t!==r}))}},notifyListeners:function(){for(var t=arguments.length,n=Array(t),r=0;r<t;r++)n[r]=arguments[r];e.forEach((function(t){return t.apply(void 0,n)}))}}},k=!("undefined"==typeof window||!window.document||!window.document.createElement),x=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},C=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},E=function(t,e){return e(window.confirm(t))},j=function(){var t=window.navigator.userAgent;return(-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone"))&&(window.history&&"pushState"in window.history)},S=function(){return-1===window.navigator.userAgent.indexOf("Trident")},T=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")},A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},P=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t},N=function(){try{return window.history.state||{}}catch(t){return{}}},L=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};l()(k,"Browser history needs a DOM");var e=window.history,n=j(),r=!S(),i=t.forceRefresh,o=void 0!==i&&i,a=t.getUserConfirmation,u=void 0===a?E:a,c=t.keyLength,f=void 0===c?6:c,d=t.basename?g(v(t.basename)):"",p=function(t){var e=t||{},n=e.key,r=e.state,i=window.location,o=i.pathname+i.search+i.hash;return s()(!d||m(o,d),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+o+'" to begin with "'+d+'".'),d&&(o=y(o,d)),_(o,r,n)},h=function(){return Math.random().toString(36).substr(2,f)},w=O(),L=function(t){P(X,t),X.length=e.length,w.notifyListeners(X.location,X.action)},I=function(t){T(t)||M(p(t.state))},D=function(){M(p(N()))},R=!1,M=function(t){if(R)R=!1,L();else{w.confirmTransitionTo(t,"POP",u,(function(e){e?L({action:"POP",location:t}):B(t)}))}},B=function(t){var e=X.location,n=F.indexOf(e.key);-1===n&&(n=0);var r=F.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(R=!0,W(i))},q=p(N()),F=[q.key],z=function(t){return d+b(t)},U=function(t,r){s()(!("object"===(void 0===t?"undefined":A(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to push when the 1st argument is a location-like object that already has state; it is ignored");var i=_(t,r,h(),X.location);w.confirmTransitionTo(i,"PUSH",u,(function(t){if(t){var r=z(i),a=i.key,u=i.state;if(n)if(e.pushState({key:a,state:u},null,r),o)window.location.href=r;else{var l=F.indexOf(X.location.key),c=F.slice(0,-1===l?0:l+1);c.push(i.key),F=c,L({action:"PUSH",location:i})}else s()(void 0===u,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}}))},H=function(t,r){s()(!("object"===(void 0===t?"undefined":A(t))&&void 0!==t.state&&void 0!==r),"You should avoid providing a 2nd state argument to replace when the 1st argument is a location-like object that already has state; it is ignored");var i=_(t,r,h(),X.location);w.confirmTransitionTo(i,"REPLACE",u,(function(t){if(t){var r=z(i),a=i.key,u=i.state;if(n)if(e.replaceState({key:a,state:u},null,r),o)window.location.replace(r);else{var l=F.indexOf(X.location.key);-1!==l&&(F[l]=i.key),L({action:"REPLACE",location:i})}else s()(void 0===u,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}}))},W=function(t){e.go(t)},V=function(){return W(-1)},K=function(){return W(1)},Q=0,$=function(t){1===(Q+=t)?(x(window,"popstate",I),r&&x(window,"hashchange",D)):0===Q&&(C(window,"popstate",I),r&&C(window,"hashchange",D))},G=!1,Y=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=w.setPrompt(t);return G||($(1),G=!0),function(){return G&&(G=!1,$(-1)),e()}},Z=function(t){var e=w.appendListener(t);return $(1),function(){$(-1),e()}},X={length:e.length,action:"POP",location:q,createHref:z,push:U,replace:H,go:W,goBack:V,goForward:K,block:Y,listen:Z};return X},I=(Object.assign,"function"==typeof Symbol&&Symbol.iterator,Object.assign,0);function D(t){if("/"!==t.createHref({pathname:"/"}))throw new i.a("Expected a history without a preconfigured basename. For further details, see: https://www.scrivito.com/js-sdk/useHistory");if(t!==p){var e=!p;!function(t){h&&h();h=t.listen(H)}(t),p=t,e||H()}}function R(){var t=U().location;return""+t.pathname+t.search+t.hash}function M(){return""+r.f().origin+R()}function B(){return W().get()||0}function q(t){return U().push(t)}function F(t){return U().replace(t)}function z(){p||D(L())}function U(){return z(),p}function H(){I++,W().set(I)}function W(){return o.b.subState("historyChangesCount")}},32:function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return u}));var r=n(0),i=n(3),o=r.O.list(r.O.union([r.O.Function,r.O.list(r.O.union([r.O.String,r.O.Function,r.O.Object]))]));var a={};function s(t,e){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];h.apply(void 0,[t,e].concat(n)),a[t]=e}function u(t,e){var n=a[t];if(n)return n[e]}var l=r.O.struct({value:r.O.String,title:r.O.String}),c=r.O.dict(r.O.String,r.O.struct({title:r.O.maybe(r.O.String),description:r.O.maybe(r.O.String),values:r.O.maybe(r.O.list(l))})),f=r.O.list(r.O.struct({title:r.O.String,component:r.O.maybe(r.O.String),properties:r.O.maybe(r.O.list(r.O.String))})),d=r.O.dict(r.O.String,r.O.union([i.LinkType,r.O.Date,r.O.Function,r.O.Nil,r.O.Number,r.O.String,r.O.list(i.LinkType),r.O.list(i.WidgetType),r.O.list(r.O.String)])),p=r.O.struct({attributes:r.O.maybe(c),propertiesGroups:r.O.maybe(f),title:r.O.maybe(r.O.String),description:r.O.maybe(r.O.String),thumbnail:r.O.maybe(r.O.String),titleForContent:r.O.maybe(r.O.Function),descriptionForContent:r.O.maybe(r.O.Function),hideInSelectionDialogs:r.O.maybe(r.O.Boolean),properties:r.O.maybe(r.O.list(r.O.String)),initialContent:r.O.maybe(d),validations:r.O.maybe(o)}),h=Object(r.p)("provideEditingConfig",[["className",r.O.String],["editingConfig",p]],{docPermalink:"js-sdk/provideEditingConfig"})},33:function(t,e){t.exports=function(t){return"function"==typeof t}},34:function(t,e,n){var r=n(33),i=n(46);t.exports=function(t){return r(t)&&i(t.meta)}},35:function(t,e,n){"use strict";n.d(e,"d",(function(){return f})),n.d(e,"f",(function(){return d})),n.d(e,"c",(function(){return p})),n.d(e,"e",(function(){return h})),n.d(e,"b",(function(){return v})),n.d(e,"a",(function(){return m}));var r,i,o=n(10),a=n(24),s=n(0),u=n(7),l=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),c=function(t){function e(e){return t.call(this,e)||this}return l(e,t),e}(s.i);function f(t){i=t}function d(){return!!i}function p(t){var e=i(Object(o.f)(Object(a.a)(),t));return"string"==typeof e&&e.length>0?e:null}function h(t){if(!i)throw new c("Scrivito.unstable_selectSiteId is only available in the multi-site mode");if(v())throw new c("Scrivito.unstable_selectSiteId can be called only once");if("string"!=typeof t||!t)throw new c("Scrivito.unstable_selectSiteId can only be called with a non-empty string");y().set(t)}function v(){if(!i)throw new s.g("Calling getSelectedSiteId is only available in multi-site mode");return y().get()||null}function m(t){if(!v())throw new c("Used "+t+" in the multi-site mode, but the site ID is not yet selected. Forgot to use Scrivito.unstable_selectSiteId?")}function y(){return u.b.subState("selectedSiteId")}},36:function(t,e,n){n(21),n(70),n(33),n(64);t.exports=function(t,e){function n(t,e){return t}return n.meta={kind:"irreducible",name:t,predicate:e,identity:!0},n.displayName=t,n.is=e,n}},37:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var r=n(14);function i(){if(!r.b)throw new Error("Not expected to be rendered without UI");return r.b}},38:function(t,e,n){var r=n(45),i=n(70);t.exports=function(t){return r(t)||i(t)}},39:function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var r=n(10),i=n(86),o={};function a(){return o}r.c.init(o).setInitialContentFor(i.a)},41:function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},42:function(t,e,n){"use strict";n.d(e,"a",(function(){return o})),n.d(e,"d",(function(){return a})),n.d(e,"c",(function(){return s})),n.d(e,"b",(function(){return u}));var r=n(14),i=n(25);function o(t){r.b?r.b.navigateToExternalUrl(t):a(t)}function a(t){window.location.assign(t)}function s(t,e){window.open(t,e)}function u(t){r.b&&Object(i.f)(t)?r.b.openInNewUiWindow(t):s(t,"_blank")}},43:function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"c",(function(){return d})),n.d(e,"d",(function(){return p})),n.d(e,"b",(function(){return h}));var r=n(3),i=n(0),o=n(11),a=n(10),s=n(44),u=n(24),l=Object.freeze({}),c=new i.d;function f(){Object(o.c)("Scrivito.currentPage");var t=v();return t.page?Object(a.f)(Object(u.a)(),t.page):null}function d(){return Object(o.c)("Scrivito.currentPageParams"),v().queryParameters||l}function p(t,e){return c.runWith({page:t,queryParameters:l},e)}function h(){return null===v().page}function v(){return c.current()||function(){var t=Object(s.a)();if(void 0===t)return;if(!Object(s.c)(t))return{page:t.page};return{page:r.BasicObj.get(t.objId),queryParameters:t.queryParameters}}()||{}}},44:function(t,e,n){"use strict";n.d(e,"a",(function(){return p})),n.d(e,"c",(function(){return h})),n.d(e,"b",(function(){return v}));var r=n(3),i=n(7),o=n(5),a=n(42),s=n(31),u=n(51),l=n(25),c=function(t,e){var n={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(n[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(t);i<r.length;i++)e.indexOf(r[i])<0&&(n[r[i]]=t[r[i]])}return n},f={type:"not found",page:null},d={type:"not responsible"};function p(){var t=Object(o.loadableWithDefault)(void 0,(function(){return new o.LoadableData({state:i.b.subState("currentPage"),invalidation:function(){return s.b()},loader:m}).get()}));if(t&&h(t)&&!r.BasicObj.get(t.objId))return f;return t}function h(t){return"page"===t.type}function v(t){return"not found"===t.type}function m(){return Object(o.load)((function(){return function(){var t=s.a();return{route:Object(l.g)(t),location:t}}()})).then(y)}function y(t){var e=t.route,n=t.location;if(null===e.path)return d;var r=e.obj;if(!r)return f;if(!Object(u.a)(r)){var i=e.queryParameters,a=(i._scrivito_workspace_id,i._scrivito_editing,i._scrivito_comparison,c(i,["_scrivito_workspace_id","_scrivito_editing","_scrivito_comparison"]));return{type:"page",objId:r.id(),queryParameters:a,location:n}}var s=Object(o.load)((function(){return function(t){var e=t.get("blob",["binary"]),n=e?e.url():null;if(!n)return f;return{type:"binary",objId:t.id(),url:n,page:!1}}(r)}));return s.then(g),s}function g(t){"binary"===t.type&&Object(a.a)(t.url)}},45:function(t,e){t.exports=function(t){return null==t}},46:function(t,e,n){var r=n(45),i=n(47);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},47:function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},48:function(t,e,n){n(21),n(127);var r=n(34);n(29);t.exports=function(t){return!r(t)||t.meta.identity}},49:function(t,e,n){var r=n(34);n(63),n(21),n(126);t.exports=function(t,e,n){return r(t)?t.meta.identity||"object"!=typeof e||null===e?t(e,n):new t(e,n):e}},5:function(t,e,n){"use strict";n.r(e),n.d(e,"loadAllUntil",(function(){return r.default})),n.d(e,"capture",(function(){return s})),n.d(e,"CaptureList",(function(){})),n.d(e,"CaptureReport",(function(){return c})),n.d(e,"isCurrentlyCapturing",(function(){return l})),n.d(e,"LoadingSubscriber",(function(){return f})),n.d(e,"load",(function(){return p})),n.d(e,"LoadableData",(function(){return T})),n.d(e,"reportUsedData",(function(){return N})),n.d(e,"LoaderApi",(function(){})),n.d(e,"LoaderCallback",(function(){})),n.d(e,"LoadableState",(function(){})),n.d(e,"loadableWithDefault",(function(){return L})),n.d(e,"loadWithDefault",(function(){return I})),n.d(e,"mapAndLoadParallel",(function(){return M})),n.d(e,"runAndCatchErrorsWhileLoading",(function(){return B})),n.d(e,"RunResult",(function(){})),n.d(e,"NotLoadedError",(function(){return k})),n.d(e,"DataRecording",(function(){})),n.d(e,"loadRecording",(function(){return z})),n.d(e,"generateRecording",(function(){return H})),n.d(e,"LoadableCollection",(function(){return q})),n.d(e,"LoadableCollectionState",(function(){})),n.d(e,"observeAndLoad",(function(){return V}));var r=n(117),i=n(0),o=new i.d,a=function(){return o.current()};function s(t){var e={subscribes:[],missing:!1,outdated:!1},n=o.runWith(e,t);return new c(e,n)}function u(){throw new i.i("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error")}function l(){return void 0!==a()}var c=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.forwardToCurrent=function(){var t,e,n=a();n?(t=n,e=this.captureList,t.subscribes=t.subscribes.concat(e.subscribes),t.missing=t.missing||e.missing,t.outdated=t.outdated||e.outdated):this.captureList.missing&&u()},t.prototype.isAllDataLoaded=function(){return!this.captureList.missing},t.prototype.isAllDataUpToDate=function(){return!this.captureList.missing&&!this.captureList.outdated},t.prototype.subscribeLoading=function(t){var e=this.captureList.subscribes.map((function(t){return t()}));t.unsubscribe(),t.storeUnsubscribe((function(){e.forEach((function(t){return t()}))}))},t}(),f=function(){function t(){}return t.prototype.storeUnsubscribe=function(t){this.unsubscribeCallback=t},t.prototype.unsubscribe=function(){this.unsubscribeCallback&&this.unsubscribeCallback()},t}();var d=n(7);function p(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];h.apply(void 0,[t].concat(e));var r=new i.e,o=V((function(){return Object(i.M)((function(){return Object(d.s)({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)}))}),(function(t){if(t.allDataUpToDate){o.unsubscribe();var e=t.result;e.errorThrown?r.reject(e.error):r.resolve(e.result)}}));return r.promise}var h=Object(i.p)("load",[["loadableFunction",i.O.Function]],{docPermalink:"js-sdk/load"}),v=function(){function t(t){this.container=t}return t.prototype.reader=function(){return this.container.reader().subState("value")},t.prototype.status=function(){return this.getStateKey("status")||"MISSING"},t.prototype.value=function(){return this.getStateKey("value")},t.prototype.error=function(){return this.getStateKey("error")},t.prototype.version=function(){return this.getStateKey("version")},t.prototype.transitionToMissing=function(){this.setState(void 0)},t.prototype.transitionToAvailable=function(t,e){this.setState({status:"AVAILABLE",value:t,version:e})},t.prototype.transitionToError=function(t,e){this.setState({status:"ERROR",error:t,version:e})},t.prototype.setState=function(t){this.container.set(t)},t.prototype.getStateKey=function(t){return this.container.subState(t).get()},t}(),m={},y={};function g(t,e){var n=!0;b(t,1);var r=m[t];r||(m[t]=e);var i=r||e;return i.notifyDataRequired(),function(){n&&(n=!1,b(t,-1)<1&&i.notifyDataNoLongerRequired())}}function b(t,e){var n=(y[t]||0)+e;return y[t]=n,n}function w(t){var e=m[t];e&&e.notifyDataWasSet()}var _,O=(_=function(t,e){return(_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}_(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),k=function(t){function e(){return t.call(this,"Data is not yet loaded.",!1)||this}return O(e,t),e}(i.i),x=function(){function t(t,e){this.loadableValue=t,this.stream=e,this.streamRequired=!1,this.hasBufferedValue=!1,this.isUpdateEnqueued=!1}return t.prototype.notifyDataRequired=function(){this.streamRequired=!0,this.enqueueUpdate()},t.prototype.notifyDataNoLongerRequired=function(){this.streamRequired=!1,this.enqueueUpdate()},t.prototype.notifyDataWasSet=function(){},t.prototype.enqueueUpdate=function(){var t=this;this.isUpdateEnqueued||(Object(i.G)((function(){return t.update()})),this.isUpdateEnqueued=!0)},t.prototype.update=function(){this.isUpdateEnqueued=!1,this.streamRequired?(this.hasBufferedValue&&(this.loadableValue.transitionToAvailable(this.bufferedValue),this.clearBuffer()),this.ensureStreamIsOpen()):this.ensureStreamIsClosed()},t.prototype.ensureStreamIsOpen=function(){var t=this;this.subscription||(this.subscription=this.stream.subscribe((function(e){t.bufferValue(e),t.enqueueUpdate()})))},t.prototype.ensureStreamIsClosed=function(){this.subscription&&(this.subscription.unsubscribe(),this.subscription=void 0),this.loadableValue.transitionToMissing(),this.clearBuffer()},t.prototype.bufferValue=function(t){this.bufferedValue=t,this.hasBufferedValue=!0},t.prototype.clearBuffer=function(){this.hasBufferedValue=!1,this.bufferedValue=void 0},t}(),C=0,E=function(){function t(t,e,n){this.value=t,this.loader=e,this.invalidation=n}return t.prototype.notifyDataRequired=function(){this.triggerLoading()},t.prototype.notifyDataNoLongerRequired=function(){},t.prototype.notifyDataWasSet=function(){this.currentLoad=void 0},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.hasBeenInvalidated=function(){return j(this.value,this.invalidation)},t.prototype.currentVersion=function(){return S(this.invalidation)},t.prototype.triggerLoading=function(){var t=this;if(!this.isLoading()&&(this.isMissing()||this.hasBeenInvalidated())){var e=this.currentVersion(),n=C++,r=function(){return t.currentLoad===n},i=function(e){r()&&Object(d.a)((function(){e(),t.notifyDataWasSet(),a()}))},o=[],a=function(){return o.forEach((function(t){return t()}))};this.loader({push:function(t){return o.push(t)},isReload:function(){return t.hasBeenInvalidated()},wasCancelled:function(){return!r()}}).then((function(n){return i((function(){return t.value.transitionToAvailable(n,e)}))}),(function(n){return i((function(){return t.value.transitionToError(n,e)}))})),this.currentLoad=n}},t.prototype.isLoading=function(){return void 0!==this.currentLoad},t}();function j(t,e){return!!e&&("MISSING"!==t.status()&&S(e)!==t.version())}function S(t){if(t){var e=t();if("number"==typeof e&&isNaN(e)){var n="invalidation callback returned unsuitable version "+e;throw new i.g(n)}return e}}var T=function(){function t(t){if(!t.state)throw new i.g("LoadableData needs state");this.value=new v(t.state),this.invalidation=t.invalidation,this.throwNotLoaded=t.throwNotLoaded||!1,this.id=t.state.id(),t.stream?this.loaderProcess=new x(this.value,t.stream):this.loaderProcess=new E(this.value,t.loader,t.invalidation)}return t.prototype.ensureAvailable=function(){var t,e,n=this;if(t=function(){return g(n.id,n.loaderProcess)},(e=a())&&e.subscribes.push(t),this.isAvailable())return this.notifyIfOutdated(),!0;if(this.isError())throw this.notifyIfOutdated(),this.value.error();if(l()||(g(this.id,this.loaderProcess),u()),function(){var t=a();t&&(t.missing=!0)}(),this.throwNotLoaded)throw new k;return!1},t.prototype.get=function(){if(this.ensureAvailable())return P(this.id,this),this.value.value()},t.prototype.reader=function(){return P(this.id,this),this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),w(this.id)},t.prototype.setError=function(t){this.transitionToError(t),w(this.id)},t.prototype.reset=function(){this.value.transitionToMissing()},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.numSubscribers=function(){return t=this.id,y[t]||0;var t},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.notifyIfOutdated=function(){var t;j(this.value,this.invalidation)&&(t=a())&&(t.outdated=!0)},t.prototype.currentVersion=function(){return S(this.invalidation)},t}(),A=new i.d;function P(t,e){var n=A.current();n&&(n[t]=e)}function N(t){var e,n={};return{result:A.runWith(n,t),usedData:(e=n,Object.keys(e).map((function(t){return e[t]})))}}function L(t,e){var n=s((function(){return I(t,e)}));return l()&&n.forwardToCurrent(),n.result}function I(t,e){var n=B(e);return n.allDataLoaded?n.result:t}var D=n(2),R=n.n(D);function M(t,e){var n=[];if(R.a.each(t,(function(t){var r=B((function(){return e(t)}));r.success&&n.push(r.result)})),n.length<t.length)throw new k;return n}function B(t){var e=s((function(){return Object(i.M)(t)}));e.forwardToCurrent();var n=e.result,r=e.isAllDataLoaded();if(!n.errorThrown)return{success:!0,result:n.result,allDataLoaded:r};if(!r)return{success:!1,allDataLoaded:!1};throw n.error}var q=function(){function t(t){var e=t.name,n=t.state,r=t.loader,o=t.invalidation;this.name=e,this.state=n,this.loader=r,this.invalidation=o,function(t,e){if(F[t])throw new i.g("collection name registered twice: "+t);F[t]=e}(e,this)}return t.prototype.get=function(t,e){var n=this,r=function(t){if("string"==typeof t)return t;return Object(i.s)(t)}(t),o=this.invalidation,a=new T({state:this.state().subState(r),loader:function(r){return n.loader(t,r,e)},invalidation:o?function(){return o(t)}:void 0});return function(t,e){t.affiliation=e}(a,{collectionName:this.name,key:t}),a},t}();var F={};function z(t){Object(d.r)((function(){return t.forEach(U)}))}function U(t){var e=t[0],n=t[1],r=t[2];(function(t){var e=F[t];if(!e)throw new i.g("collection with name "+t+" not found");return e})(e).get(n).set(r)}function H(t){return t.map(W)}function W(t){var e=function(t){return t.affiliation}(t);if(!e)throw new i.g("Tried to record a LoadableData without affiliation");return[e.collectionName,e.key,t.get()]}function V(t,e){var n=new f,r=Object(d.k)((function(){return s((function(){return Object(i.M)(t)}))}),(function(t){t.subscribeLoading(n);var r=t.result;if(r.errorThrown){if(!t.isAllDataUpToDate())return;throw r.error}e({result:r.result,allDataLoaded:t.isAllDataLoaded(),allDataUpToDate:t.isAllDataUpToDate()})}));return{forceRefresh:function(){return r.forceRefresh()},unsubscribe:function(){r.unsubscribe(),n.unsubscribe()}}}},50:function(t,e,n){var r=n(34);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},51:function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var r=n(10),i=n(39);function o(t){var e=t.objClass();if(!e)return!1;var n=Object(i.a)().getClass(e);return!!n&&r.b.forClass(n).isBinary()}},52:function(t,e,n){"use strict";n.r(e),n.d(e,"ScrivitoError",(function(){return o})),n.d(e,"ArgumentError",(function(){return a})),n.d(e,"InternalError",(function(){return s})),n.d(e,"ResourceNotFoundError",(function(){return u}));var r,i=(r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)},function(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}),o=function(t){function e(e,n){var r=this.constructor;void 0===n&&(n=!0);var i=t.call(this,e)||this,o=r.prototype;if(Object.setPrototypeOf?Object.setPrototypeOf(i,o):i.__proto__=o,i._captureStackTrace=n,n)if(Error.captureStackTrace)Error.captureStackTrace(i,i.constructor);else{var a=void 0;try{throw new Error}catch(t){a=t.stack}Object.defineProperty(i,"stack",{value:a})}return i}return i(e,t),Object.defineProperty(e.prototype,"name",{get:function(){return this.constructor.name},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"captureStackTrace",{get:function(){return!!this._captureStackTrace},enumerable:!0,configurable:!0}),e}(Error),a=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),s=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),u=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o)},53:function(t,e,n){var r,i,o;
* jQuery JavaScript Library v1.11.1
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-05-01T17:42Z
*/i="undefined"!=typeof window?window:this,o=function(n,i){var o=[],a=o.slice,s=o.concat,u=o.push,l=o.indexOf,c={},f=c.toString,d=c.hasOwnProperty,p={},h=function(t,e){return new h.fn.init(t,e)},v=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,m=/^-ms-/,y=/-([\da-z])/gi,g=function(t,e){return e.toUpperCase()};function b(t){var e=t.length,n=h.type(t);return"function"!==n&&!h.isWindow(t)&&(!(1!==t.nodeType||!e)||"array"===n||0===e||"number"==typeof e&&e>0&&e-1 in t)}h.fn=h.prototype={jquery:"1.11.1",constructor:h,selector:"",length:0,toArray:function(){return a.call(this)},get:function(t){return null!=t?t<0?this[t+this.length]:this[t]:a.call(this)},pushStack:function(t){var e=h.merge(this.constructor(),t);return e.prevObject=this,e.context=this.context,e},each:function(t,e){return h.each(this,t,e)},map:function(t){return this.pushStack(h.map(this,(function(e,n){return t.call(e,n,e)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,n=+t+(t<0?e:0);return this.pushStack(n>=0&&n<e?[this[n]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:u,sort:o.sort,splice:o.splice},h.extend=h.fn.extend=function(){var t,e,n,r,i,o,a=arguments[0]||{},s=1,u=arguments.length,l=!1;for("boolean"==typeof a&&(l=a,a=arguments[s]||{},s++),"object"==typeof a||h.isFunction(a)||(a={}),s===u&&(a=this,s--);s<u;s++)if(null!=(i=arguments[s]))for(r in i)t=a[r],a!==(n=i[r])&&(l&&n&&(h.isPlainObject(n)||(e=h.isArray(n)))?(e?(e=!1,o=t&&h.isArray(t)?t:[]):o=t&&h.isPlainObject(t)?t:{},a[r]=h.extend(l,o,n)):void 0!==n&&(a[r]=n));return a},h.extend({expando:"jQuery"+("1.11.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isFunction:function(t){return"function"===h.type(t)},isArray:Array.isArray||function(t){return"array"===h.type(t)},isWindow:function(t){return null!=t&&t==t.window},isNumeric:function(t){return!h.isArray(t)&&t-parseFloat(t)>=0},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},isPlainObject:function(t){var e;if(!t||"object"!==h.type(t)||t.nodeType||h.isWindow(t))return!1;try{if(t.constructor&&!d.call(t,"constructor")&&!d.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}if(p.ownLast)for(e in t)return d.call(t,e);for(e in t);return void 0===e||d.call(t,e)},type:function(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[f.call(t)]||"object":typeof t},globalEval:function(t){t&&h.trim(t)&&(n.execScript||function(t){n.eval.call(n,t)})(t)},camelCase:function(t){return t.replace(m,"ms-").replace(y,g)},nodeName:function(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()},each:function(t,e,n){var r=0,i=t.length,o=b(t);if(n){if(o)for(;r<i&&!1!==e.apply(t[r],n);r++);else for(r in t)if(!1===e.apply(t[r],n))break}else if(o)for(;r<i&&!1!==e.call(t[r],r,t[r]);r++);else for(r in t)if(!1===e.call(t[r],r,t[r]))break;return t},trim:function(t){return null==t?"":(t+"").replace(v,"")},makeArray:function(t,e){var n=e||[];return null!=t&&(b(Object(t))?h.merge(n,"string"==typeof t?[t]:t):u.call(n,t)),n},inArray:function(t,e,n){var r;if(e){if(l)return l.call(e,t,n);for(r=e.length,n=n?n<0?Math.max(0,r+n):n:0;n<r;n++)if(n in e&&e[n]===t)return n}return-1},merge:function(t,e){for(var n=+e.length,r=0,i=t.length;r<n;)t[i++]=e[r++];if(n!=n)for(;void 0!==e[r];)t[i++]=e[r++];return t.length=i,t},grep:function(t,e,n){for(var r=[],i=0,o=t.length,a=!n;i<o;i++)!e(t[i],i)!==a&&r.push(t[i]);return r},map:function(t,e,n){var r,i=0,o=t.length,a=[];if(b(t))for(;i<o;i++)null!=(r=e(t[i],i,n))&&a.push(r);else for(i in t)null!=(r=e(t[i],i,n))&&a.push(r);return s.apply([],a)},guid:1,proxy:function(t,e){var n,r,i;if("string"==typeof e&&(i=t[e],e=t,t=i),h.isFunction(t))return n=a.call(arguments,2),(r=function(){return t.apply(e||this,n.concat(a.call(arguments)))}).guid=t.guid=t.guid||h.guid++,r},now:function(){return+new Date},support:p}),h.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var w=
* Sizzle CSS Selector Engine v1.10.19
* http://sizzlejs.com/
*
* Copyright 2013 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-04-18
*/
R
“*(”M
“)(?:”R
“*(?=)”R
“*(?:‘((?:\\.|)*)’|"((?:\\.|[^\\"])*)"|(”B
“))|)”R
“*\]”,F=“:(”M
“)(?:\(((‘((?:\\.|)*)’|"((?:\\.|[^\\"])*)")|((?:\\.|[^\\()[\]]|”q
“)*)|.*)\)|)”,z=new RegExp(“^”R
“+|((?:^|)(?:\\.)*)”R
“+$”,“g”),U=new RegExp(“^”R
“*,”R
“*”),H=new RegExp(“^”R
”*(‘"]*?)“R
”*\]“,”g“),V=new RegExp(F),K=new RegExp(”^“B
”$“),Q={ID:new RegExp(”^#(“M
”)“),CLASS:new RegExp(”^\.(“M
”)“),TAG:new RegExp(”^(“+M.replace(”w“,”w*“)+”)“),ATTR:new RegExp(”^“+q),PSEUDO:new RegExp(”^“+F),CHILD:new RegExp(”^:(only|first|last|nth|nth-last)-(child|of-type)(?:\(“R
”*(even|odd|((|)(\d*)n|)“R
”*(?:(|)“R
”*(\d+)|))“R
”*\)|)“,”i“),bool:new RegExp(”^(?:“D
”)$“,”i“),needsContext:new RegExp(”^“R
“*\)|)(?=|$)”,“i”)},$=/^(?:input|select|textarea|button)$/i,G=/^hd$/i,Y=/^+{s*[native w/,Z=/^(?:#([w-]+)|(w+)|.([w-]+))$/,X=//,J=/’|\/g,tt=new RegExp(“\\({1,6}”R
“?|(”R
“)|.)”,“ig”),et=function(t,e,n){var r=“0x”+e-65536;return r!=r||n?e:r<0?String.fromCharCode(r+65536):String.fromCharCode(r>>10|55296,1023&r|56320)};try{N.apply(T=L.call(_.childNodes),_.childNodes),T.nodeType}catch(t){N={apply:T.length?function(t,e){P.apply(t,L.call(e))}:function(t,e){for(var n=t.length,r=0;t=e;);t.length=n-1}}}function nt(t,e,r,i){var o,s,l,c,f,h,y,g,O,k;if((e?e.ownerDocument||e:_)!==p&&d(e),r=r||[],!t||“string”!=typeof t)return r;if(1!==(c=(e=e||p).nodeType)&&9!==c)return[];if(v&&!i){if(o=Z.exec(t))if(l=o){if(9===c){if(!(s=e.getElementById(l))||!s.parentNode)return r;if(s.id===l)return r.push(s),r}else if(e.ownerDocument&&(s=e.ownerDocument.getElementById(l))&&b(e,s)&&s.id===l)return r.push(s),r}else{if(o)return N.apply(r,e.getElementsByTagName(t)),r;if((l=o)&&n.getElementsByClassName&&e.getElementsByClassName)return N.apply(r,e.getElementsByClassName(l)),r}if(n.qsa&&(!m||!m.test(t))){if(g=y=w,O=e,k=9===c&&t,1===c&&“object”!==e.nodeName.toLowerCase()){for(h=a(t),(y=e.getAttribute(“id”))?g=y.replace(J,“\$&”):e.setAttribute(“id”,g),g=“[id=‘”g
“’] ”,f=h.length;f–;)h=g+pt(h);O=X.test(t)&&ft(e.parentNode)||e,k=h.join(“,”)}if(k)try{return N.apply(r,O.querySelectorAll(k)),r}catch(t){}finally{y||e.removeAttribute(“id”)}}}return u(t.replace(z,“$1”),e,r,i)}function rt(){var t=[];return function e(n,i){return t.push(n+“ ”)>r.cacheLength&&delete e,e[n+“ ”]=i}}function it(t){return t=!0,t}function ot(t){var e=p.createElement(“div”);try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function at(t,e){for(var n=t.split(“|”),i=t.length;i–;)r.attrHandle[n]=e}function st(t,e){var n=e&&t,r=n&&1===t.nodeType&&1===e.nodeType&&(~e.sourceIndex||1<<31)-(~t.sourceIndex||1<<31);if®return r;if(n)for(;n=n.nextSibling;)if(n===e)return-1;return t?1:-1}function ut(t){return function(e){return“input”===e.nodeName.toLowerCase()&&e.type===t}}function lt(t){return function(e){var n=e.nodeName.toLowerCase();return(“input”===n||“button”===n)&&e.type===t}}function ct(t){return it((function(e){return e=+e,it((function(n,r){for(var i,o=t([],n.length,e),a=o.length;a–;)n[i=o]&&(n=!(r=n))}))}))}function ft(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in n=nt.support={},o=nt.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&“HTML”!==e.nodeName},d=nt.setDocument=function(t){var e,i=t?t.ownerDocument||t:_,a=i.defaultView;return i!==p&&9===i.nodeType&&i.documentElement?(p=i,h=i.documentElement,v=!o(i),a&&a!==a.top&&(a.addEventListener?a.addEventListener(“unload”,(function(){d()}),!1):a.attachEvent&&a.attachEvent(“onunload”,(function(){d()}))),n.attributes=ot((function(t){return t.className=“i”,!t.getAttribute(“className”)})),n.getElementsByTagName=ot((function(t){return t.appendChild(i.createComment(“”)),!t.getElementsByTagName(“*”).length})),n.getElementsByClassName=Y.test(i.getElementsByClassName)&&ot((function(t){return t.innerHTML=“<div class=‘a’></div><div class=‘a i’></div>”,t.firstChild.className=“i”,2===t.getElementsByClassName(“i”).length})),n.getById=ot((function(t){return h.appendChild(t).id=w,!i.getElementsByName||!i.getElementsByName(w).length})),n.getById?(r.find.ID=function(t,e){if(void 0!==e.getElementById&&v){var n=e.getElementById(t);return n&&n.parentNode?:[]}},r.filter.ID=function(t){var e=t.replace(tt,et);return function(t){return t.getAttribute(“id”)===e}}):(delete r.find.ID,r.filter.ID=function(t){var e=t.replace(tt,et);return function(t){var n=void 0!==t.getAttributeNode&&t.getAttributeNode(“id”);return n&&n.value===e}}),r.find.TAG=n.getElementsByTagName?function(t,e){if(void 0!==e.getElementsByTagName)return e.getElementsByTagName(t)}:function(t,e){var n,r=[],i=0,o=e.getElementsByTagName(t);if(“*”===t){for(;n=o;)1===n.nodeType&&r.push(n);return r}return o},r.find.CLASS=n.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&v)return e.getElementsByClassName(t)},y=[],m=,(n.qsa=Y.test(i.querySelectorAll))&&(ot((function(t){t.innerHTML=“<select msallowclip=”><option selected=”>”,t.querySelectorAll(“”).length&&m.push(“=”R
“*(?:”|"")”),t.querySelectorAll(“”).length||m.push(“\[”R
“*(?:value|”D
“)”),t.querySelectorAll(“:checked”).length||m.push(“:checked”)})),ot((function(t){var e=i.createElement(“input”);e.setAttribute(“type”,“hidden”),t.appendChild(e).setAttribute(“name”,“D”),t.querySelectorAll(“”).length&&m.push(“name”R
“[^$|!~]?=”),t.querySelectorAll(“:enabled”).length||m.push(“:enabled”,“:disabled”),t.querySelectorAll(“*,:x”),m.push(“,.*:”)}))),(n.matchesSelector=Y.test(g=h.matches||h.webkitMatchesSelector||h.mozMatchesSelector||h.oMatchesSelector||h.msMatchesSelector))&&ot((function(t){n.disconnectedMatch=g.call(t,“div”),g.call(t,“:x”),y.push(“!=”,F)})),m=m.length&&new RegExp(m.join(“|”)),y=y.length&&new RegExp(y.join(“|”)),e=Y.test(h.compareDocumentPosition),b=e||Y.test(h.contains)?function(t,e){var n=9===t.nodeType?t.documentElement:t,r=e&&e.parentNode;return t===r||!(!r||1!==r.nodeType||!(n.contains?n.contains®:t.compareDocumentPosition&&16&t.compareDocumentPosition®))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},j=e?function(t,e){if(t===e)return f=!0,0;var r=!t.compareDocumentPosition-!e.compareDocumentPosition;return r||(1&(r=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!n.sortDetached&&e.compareDocumentPosition(t)===r?t===i||t.ownerDocument===_&&b(_,t)?-1:e===i||e.ownerDocument===_&&b(_,e)?1:c?I.call(c,t)-I.call(c,e):0:4&r?-1:1)}:function(t,e){if(t===e)return f=!0,0;var n,r=0,o=t.parentNode,a=e.parentNode,s=,u=;if(!o||!a)return t===i?-1:e===i?1:o?-1:a?1:c?I.call(c,t)-I.call(c,e):0;if(o===a)return st(t,e);for(n=t;n=n.parentNode;)s.unshift(n);for(n=e;n=n.parentNode;)u.unshift(n);for(;s===u;)r++;return r?st(s,u):s===_?-1:u===_?1:0},i):p},nt.matches=function(t,e){return nt(t,null,null,e)},nt.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(W,“=‘$1’]”),n.matchesSelector&&v&&(!y||!y.test(e))&&(!m||!m.test(e)))try{var r=g.call(t,e);if(r||n.disconnectedMatch||t.document&&11!==t.document.nodeType)return r}catch(t){}return nt(e,p,null,).length>0},nt.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},nt.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var i=r.attrHandle,o=i&&S.call(r.attrHandle,e.toLowerCase())?i(t,e,!v):void 0;return void 0!==o?o:n.attributes||!v?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},nt.error=function(t){throw new Error(“Syntax error, unrecognized expression: ”+t)},nt.uniqueSort=function(t){var e,r=[],i=0,o=0;if(f=!n.detectDuplicates,c=!n.sortStable&&t.slice(0),t.sort(j),f){for(;e=t;)e===t&&(i=r.push(o));for(;i–;)t.splice(r,1)}return c=null,t},i=nt.getText=function(t){var e,n=“”,r=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if(“string”==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)n+=i(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t;)n+=i(e);return n},(r=nt.selectors={cacheLength:50,createPseudo:it,match:Q,attrHandle:{},find:{},relative:{“>”:{dir:“parentNode”,first:!0},“ ”:{dir:“parentNode”},“+”:{dir:“previousSibling”,first:!0},“~”:{dir:“previousSibling”}},preFilter:{ATTR:function(t){return t=t.replace(tt,et),t=(t||t||t||“”).replace(tt,et),“~=”===t&&(t=“ ”t[3]
“ ”),t.slice(0,4)},CHILD:function(t){return t=t.toLowerCase(),“nth”===t.slice(0,3)?(t||nt.error(t),t=+(t?t+(t||1):2*(“even”===t||“odd”===t)),t=+(t+t||“odd”===t)):t&&nt.error(t),t},PSEUDO:function(t){var e,n=!t&&t;return Q.CHILD.test(t)?null:(t?t=t||t||“”:n&&V.test(n)&&(e=a(n,!0))&&(e=n.indexOf(“)”,n.length-e)-n.length)&&(t=t.slice(0,e),t=n.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(tt,et).toLowerCase();return“*”===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=x[t+“ ”];return e||(e=new RegExp(“(^|”R
“)”t
“(”R
“|$)”))&&x(t,(function(t){return e.test(“string”==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute(“class”)||“”)}))},ATTR:function(t,e,n){return function®{var i=nt.attr(r,t);return null==i?“!=”===e:!e||(i+=“”,“=”===e?i===n:“!=”===e?i!==n:“^=”===e?n&&0===i.indexOf(n):“*=”===e?n&&i.indexOf(n)>-1:“$=”===e?n&&i.slice(-n.length)===n:“~=”===e?(“ ”i
“ ”).indexOf(n)>-1:“|=”===e&&(i===n||i.slice(0,n.length+1)===n+“-”))}},CHILD:function(t,e,n,r,i){var o=“nth”!==t.slice(0,3),a=“last”!==t.slice(-4),s=“of-type”===e;return 1===r&&0===i?function(t){return!!t.parentNode}:function(e,n,u){var l,c,f,d,p,h,v=o!==a?“nextSibling”:“previousSibling”,m=e.parentNode,y=s&&e.nodeName.toLowerCase(),g=!u&&!s;if(m){if(o){for(;v;){for(f=e;f=f;)if(s?f.nodeName.toLowerCase()===y:1===f.nodeType)return!1;h=v=“only”===t&&!h&&“nextSibling”}return!0}if(h=,a&&g){for(p=(l=(c=m||(m={}))[t]||[])===O&&l,d=l===O&&l,f=p&&m.childNodes;f=++p&&f&&f||(d=p=0)||h.pop();)if(1===f.nodeType&&++d&&f===e){c=[O,p,d];break}}else if(g&&(l=(e||(e={}))[t])&&l===O)d=l;else for(;(f=++p&&f&&f||(d=p=0)||h.pop())&&((s?f.nodeName.toLowerCase()!==y:1!==f.nodeType)||!++d||(g&&((f||(f={}))[t]=),f!==e)););return(d-=i)===r||d%r==0&&d/r>=0}}},PSEUDO:function(t,e){var n,i=r.pseudos||r.setFilters||nt.error(“unsupported pseudo: ”+t);return i?i(e):i.length>1?(n=,r.setFilters.hasOwnProperty(t.toLowerCase())?it((function(t,n){for(var r,o=i(t,e),a=o.length;a–;)t[r=I.call(t,o)]=!(n=o)})):function(t){return i(t,0,n)}):i}},pseudos:{not:it((function(t){var e=[],n=,r=s(t.replace(z,“$1”));return r?it((function(t,e,n,i){for(var o,a=r(t,null,i,[]),s=t.length;s–;)(o=a)&&(t=!(e=o))})):function(t,i,o){return e=t,r(e,null,o,n),!n.pop()}})),has:it((function(t){return function(e){return nt(t,e).length>0}})),contains:it((function(t){return function(e){return(e.textContent||e.innerText||i(e)).indexOf(t)>-1}})),lang:it((function(t){return K.test(t||“”)||nt.error(“unsupported lang: ”+t),t=t.replace(tt,et).toLowerCase(),function(e){var n;do{if(n=v?e.lang:e.getAttribute(“xml:lang”)||e.getAttribute(“lang”))return(n=n.toLowerCase())===t||0===n.indexOf(t+“-”)}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var n=t.location&&t.location.hash;return n&&n.slice(1)===e.id},root:function(t){return t===h},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:function(t){return!1===t.disabled},disabled:function(t){return!0===t.disabled},checked:function(t){var e=t.nodeName.toLowerCase();return“input”===e&&!!t.checked||“option”===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!r.pseudos.empty(t)},header:function(t){return G.test(t.nodeName)},input:function(t){return $.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return“input”===e&&“button”===t.type||“button”===e},text:function(t){var e;return“input”===t.nodeName.toLowerCase()&&“text”===t.type&&(null==(e=t.getAttribute(“type”))||“text”===e.toLowerCase())},first:ct((function(){return})),last:ct((function(t,e){return})),eq:ct((function(t,e,n){return})),even:ct((function(t,e){for(var n=0;n<e;n+=2)t.push(n);return t})),odd:ct((function(t,e){for(var n=1;n<e;n+=2)t.push(n);return t})),lt:ct((function(t,e,n){for(var r=n<0?n+e:n;–r>=0;)t.push®;return t})),gt:ct((function(t,e,n){for(var r=n<0?n+e:n;++r<e;)t.push®;return t}))}}).pseudos.nth=r.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos=ut(e);for(e in{submit:!0,reset:!0})r.pseudos=lt(e);function dt(){}function pt(t){for(var e=0,n=t.length,r=“”;et
“)”),1===e.length&&1===r.nodeType?h.find.matchesSelector(r,t)?:[]:h.find.matches(t,h.grep(e,(function(t){return 1===t.nodeType})))},h.fn.extend({find:function(t){var e,n=[],r=this,i=r.length;if(“string”!=typeof t)return this.pushStack(h(t).filter((function(){for(e=0;e,this))return!0})));for(e=0;e,n);return(n=this.pushStack(i>1?h.unique(n):n)).selector=this.selector?this.selector+“ ”+t:t,n},filter:function(t){return this.pushStack(x(this,t||[],!1))},not:function(t){return this.pushStack(x(this,t||[],!0))},is:function(t){return!!x(this,“string”==typeof t&&_.test(t)?h(t):t||[],!1).length}});var C,E=n.document,j=/^(?:s*(<+>)[^>]*|#([w-]*))$/;(h.fn.init=function(t,e){var n,r;if(!t)return this;if(“string”==typeof t){if(!(n=“<"===t.charAt(0)&&">”===t.charAt(t.length-1)&&t.length>=3?:j.exec(t))||!n&&e)return!e||e.jquery?(e||C).find(t):this.constructor(e).find(t);if(n){if(e=e instanceof h?e:e,h.merge(this,h.parseHTML(n,e&&e.nodeType?e.ownerDocument||e:E,!0)),O.test(n)&&h.isPlainObject(e))for(n in e)h.isFunction(this)?this(e):this.attr(n,e);return this}if((r=E.getElementById(n))&&r.parentNode){if(r.id!==n)return C.find(t);this.length=1,this=r}return this.context=E,this.selector=t,this}return t.nodeType?(this.context=this=t,this.length=1,this):h.isFunction(t)?void 0!==C.ready?C.ready(t):t(h):(void 0!==t.selector&&(this.selector=t.selector,this.context=t.context),h.makeArray(t,this))}).prototype=h.fn,C=h(E);var S=/^(?:parents|prev(?:Until|All))/,T={children:!0,contents:!0,next:!0,prev:!0};function A(t,e){do{t=t}while(t&&1!==t.nodeType);return t}h.extend({dir:function(t,e,n){for(var r=[],i=t;i&&9!==i.nodeType&&(void 0===n||1!==i.nodeType||!h(i).is(n));)1===i.nodeType&&r.push(i),i=i;return r},sibling:function(t,e){for(var n=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&n.push(t);return n}}),h.fn.extend({has:function(t){var e,n=h(t,this),r=n.length;return this.filter((function(){for(e=0;e&&h.isFunction(o.promise)?o.promise().done(c(i,r,o)).fail(l.reject).progress(c(i,n,e)):–u;return u||l.resolveWith(r,o),l.promise()}}),h.fn.ready=function(t){return h.ready.promise().done(t),this},h.extend({isReady:!1,readyWait:1,holdReady:function(t){t?h.readyWait++:h.ready(!0)},ready:function(t){if(!(!0===t?–h.readyWait:h.isReady)){if(!E.body)return setTimeout(h.ready);h.isReady=!0,!0!==t&&–h.readyWait>0||(P.resolveWith(E,),h.fn.triggerHandler&&(h(E).triggerHandler(“ready”),h(E).off(“ready”)))}}}),h.ready.promise=function(t){if(!P)if(P=h.Deferred(),“complete”===E.readyState)setTimeout(h.ready);else if(E.addEventListener)E.addEventListener(“DOMContentLoaded”,R,!1),n.addEventListener(“load”,R,!1);else{E.attachEvent(“onreadystatechange”,R),n.attachEvent(“onload”,R);var e=!1;try{e=null==n.frameElement&&E.documentElement}catch(t){}e&&e.doScroll&&function t(){if(!h.isReady){try{e.doScroll(“left”)}catch(e){return setTimeout(t,50)}D(),h.ready()}}()}return P.promise(t)},h(p))break;p.ownLast=“0”!==N,p.inlineBlockNeedsLayout=!1,h((function(){var t,e,n,r;(n=E.getElementsByTagName(“body”))&&n.style&&(e=E.createElement(“div”),(r=E.createElement(“div”)).style.cssText=“position:absolute;border:0;width:0;height:0;top:0;left:-9999px”,n.appendChild®.appendChild(e),void 0!==e.style.zoom&&(e.style.cssText=“display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1”,p.inlineBlockNeedsLayout=t=3===e.offsetWidth,t&&(n.style.zoom=1)),n.removeChild®)})),function(){var t=E.createElement(“div”);if(null==p.deleteExpando){p.deleteExpando=!0;try{delete t.test}catch(t){p.deleteExpando=!1}}t=null}(),h.acceptData=function(t){var e=h.noData[(t.nodeName+“ ”).toLowerCase()],n=+t.nodeType||1;return(1===n||9===n)&&(!e||!0!==e&&t.getAttribute(“classid”)===e)};var M=/^(?:{[wW]*}|[[wW]*])$/,B=/()/g;function q(t,e,n){if(void 0===n&&1===t.nodeType){var r=“data-”+e.replace(B,“-$1”).toLowerCase();if(“string”==typeof(n=t.getAttribute®)){try{n=“true”===n||“false”!==n&&(“null”===n?null:n
“”===n?+n:M.test(n)?h.parseJSON(n):n)}catch(t){}h.data(t,e,n)}else n=void 0}return n}function F(t){var e;for(e in t)if((“data”!==e||!h.isEmptyObject(t))&&“toJSON”!==e)return!1;return!0}function z(t,e,n,r){if(h.acceptData(t)){var i,a,s=h.expando,u=t.nodeType,l=u?h.cache:t,c=u?t:t&&s;if(c&&l&&(r||l.data)||void 0!==n||“string”!=typeof e)return c||(c=u?t=o.pop()||h.guid++:s),l||(l=u?{}:{toJSON:h.noop}),“object”!=typeof e&&“function”!=typeof e||(r?l=h.extend(l,e):l.data=h.extend(l.data,e)),a=l,r||(a.data||(a.data={}),a=a.data),void 0!==n&&(a=n),“string”==typeof e?null==(i=a)&&(i=a):i=a,i}}function U(t,e,n){if(h.acceptData(t)){var r,i,o=t.nodeType,a=o?h.cache:t,s=o?t:h.expando;if(a){if(e&&(r=n?a:a.data)){i=(e=h.isArray(e)?e.concat(h.map(e,h.camelCase)):e in r||(e=h.camelCase(e))in r?:e.split(“ ”)).length;for(;i–;)delete r[e];if(n?!F®:!h.isEmptyObject®)return}(n||(delete a.data,F(a)))&&(o?h.cleanData(,!0):p.deleteExpando||a!=a.window?delete a:a=null)}}}h.extend({cache:{},noData:{“applet ”:!0,“embed ”:!0,“object ”:“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000”},hasData:function(t){return!!(t=t.nodeType?h.cache[t]:t)&&!F(t)},data:function(t,e,n){return z(t,e,n)},removeData:function(t,e){return U(t,e)},_data:function(t,e,n){return z(t,e,n,!0)},_removeData:function(t,e){return U(t,e,!0)}}),h.fn.extend({data:function(t,e){var n,r,i,o=this,a=o&&o.attributes;if(void 0===t){if(this.length&&(i=h.data(o),1===o.nodeType&&!h._data(o,“parsedAttrs”))){for(n=a.length;n–;)a&&0===(r=a.name).indexOf(“data-”)&&q(o,r=h.camelCase(r.slice(5)),i);h._data(o,“parsedAttrs”,!0)}return i}return“object”==typeof t?this.each((function(){h.data(this,t)})):arguments.length>1?this.each((function(){h.data(this,t,e)})):o?q(o,t,h.data(o,t)):void 0},removeData:function(t){return this.each((function(){h.removeData(this,t)}))}}),h.extend({queue:function(t,e,n){var r;if(t)return e=(e||“fx”)+“queue”,r=h._data(t,e),n&&(!r||h.isArray(n)?r=h._data(t,e,h.makeArray(n)):r.push(n)),r||[]},dequeue:function(t,e){e=e||“fx”;var n=h.queue(t,e),r=n.length,i=n.shift(),o=h._queueHooks(t,e);“inprogress”===i&&(i=n.shift(),r–),i&&(“fx”===e&&n.unshift(“inprogress”),delete o.stop,i.call(t,(function(){h.dequeue(t,e)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(t,e){var n=e+“queueHooks”;return h._data(t,n)||h._data(t,n,{empty:h.Callbacks(“once memory”).add((function(){h._removeData(t,e+“queue”),h._removeData(t,n)}))})}}),h.fn.extend({queue:function(t,e){var n=2;return“string”!=typeof t&&(e=t,t=“fx”,n–),arguments.lengthrt
i”),at=/^s+/,st=/<(?!area|br|col|embed|hr|img|input|link|meta|param)((+)[^>]*)/>/gi,ut=/<(+)/,lt=/|=s*.checked.)/i,pt=/^$|/(?:java|ecma)script/i,ht=/^true/(.*)/,vt=/^s*]|–)>s*$/g,mt={option:[1,”<select “,”“”>multiple=‘multiple’>“,”“],legend:,”,“”“>area:,”,“”“>param:,”,“”“>thead:,”,“”“>tr:,”,“ ”“>td:,_default:p.htmlSerialize?:[1,”X<div>“,”</div>“]},yt=nt(E).appendChild(E.createElement(”div“));function gt(t,e){var n,r,i=0,o=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||”*“):void 0!==t.querySelectorAll?t.querySelectorAll(e||”*“):void 0;if(!o)for(o=[],n=t.childNodes||t;null!=(r=n);i++)!e||h.nodeName(r,e)?o.push®:h.merge(o,gt(r,e));return void 0===e||e&&h.nodeName(t,e)?h.merge(,o):o}function bt(t){Q.test(t.type)&&(t.defaultChecked=t.checked)}function wt(t,e){return h.nodeName(t,”table“)&&h.nodeName(11!==e.nodeType?e:e.firstChild,”tr“)?t.getElementsByTagName(”tbody“)||t.appendChild(t.ownerDocument.createElement(”tbody“)):t}function _t(t){return t.type=(null!==h.find.attr(t,”type“))+”/“+t.type,t}function Ot(t){var e=ht.exec(t.type);return e?t.type=e:t.removeAttribute(”type“),t}function kt(t,e){for(var n,r=0;null!=(n=t);r++)h._data(n,”globalEval“,!e||h._data(e,”globalEval“))}function xt(t,e){if(1===e.nodeType&&h.hasData(t)){var n,r,i,o=h._data(t),a=h._data(e,o),s=o.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,i=s.length;r[r]);a.data&&(a.data=h.extend({},a.data))}}function Ct(t,e){var n,r,i;if(1===e.nodeType){if(n=e.nodeName.toLowerCase(),!p.noCloneEvent&&e){for(r in(i=h._data(e)).events)h.removeEvent(e,r,i.handle);e.removeAttribute(h.expando)}”script“===n&&e.text!==t.text?(_t(e).text=t.text,Ot(e)):”object“===n?(e.parentNode&&(e.outerHTML=t.outerHTML),p.html5Clone&&t.innerHTML&&!h.trim(e.innerHTML)&&(e.innerHTML=t.innerHTML)):”input“===n&&Q.test(t.type)?(e.defaultChecked=e.checked=t.checked,e.value!==t.value&&(e.value=t.value)):”option“===n?e.defaultSelected=e.selected=t.defaultSelected:”input“!==n&&”textarea“!==n||(e.defaultValue=t.defaultValue)}}mt.optgroup=mt.option,mt.tbody=mt.tfoot=mt.colgroup=mt.caption=mt.thead,mt.th=mt.td,h.extend({clone:function(t,e,n){var r,i,o,a,s,u=h.contains(t.ownerDocument,t);if(p.html5Clone||h.isXMLDoc(t)||!ot.test(”<"t.nodeName
“>”)?o=t.cloneNode(!0):(yt.innerHTML=t.outerHTML,yt.removeChild(o=yt.firstChild)),!(p.noCloneEvent&&p.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||h.isXMLDoc(t)))for(r=gt(o),s=gt(t),a=0;null!=(i=s);++a)r&&Ct(i,r);if(e)if(n)for(s=s||gt(t),r=r||gt(o),a=0;null!=(i=s);a++)xt(i,r);else xt(t,o);return(r=gt(o,“script”)).length>0&&kt(r,!u&>(t,“script”)),r=s=i=null,o},buildFragment:function(t,e,n,r){for(var i,o,a,s,u,l,c,f=t.length,d=nt(e),v=[],m=0;m