scrivito_sdk 1.14.0.rc2 → 1.14.0.rc3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aac92f26cf0303345e64b30536c9436dbd96f50d91a7cad8d3f2545ed70d1785
4
- data.tar.gz: 9893a56d282760fbe3f94e3b857212d1ae874abe9c875b6f60b685b3446bed28
3
+ metadata.gz: 5b49868f302abaf1010465b0454d0d695b89555d1fe9d6d4c3f3b7f7f93251ae
4
+ data.tar.gz: c17eeeb94ba8982ebb62ce30d6afa7fb4601189d060061b4eef11b4782d4f778
5
5
  SHA512:
6
- metadata.gz: f4dceee13c7c2a7ca1f2a610cf5fb5078ea6b419b279f0e4232f67e2cae3aeea61d4a92656196c5c7112238b24dbfe0e73801bd620be24df9b1e92a7db890c54
7
- data.tar.gz: a1b7e9167bd0626fd1f21454d86dc8d8d7b7a3ead79f3ecd5694977d9688b7192b30256871066566c4bf7f4661dbb08e91b9f37f32d7fb5b737c1ce5f18436d1
6
+ metadata.gz: 74034b665856932f9e8cdafbecae74300122eaad377d6bf981d7a2d793377f9d8db2e8f3a2d63de83e18ef8f897b3afcf4daf2ecd5555a3c92f8fe39d09661fb
7
+ data.tar.gz: 3ee061847c2209b42bc0c31a3eabf3e90b1920d8c207ae63c575e237d0a964ce853e59ff245fd8a168bc09fbe6ec05b87f1ca16c4c740d8f49438f5d35fe5b31
@@ -1,7 +1,7 @@
1
1
  ##
2
2
  ## Bundle of CA Root Certificates
3
3
  ##
4
- ## Certificate data from Mozilla as of: Thu Jun 14 08:08:16 2018 GMT
4
+ ## Certificate data from Mozilla as of: Tue Jun 26 13:11:27 2018 GMT
5
5
  ##
6
6
  ## This is a bundle of X.509 certificates of public Certificate Authorities
7
7
  ## (CA). These were automatically extracted from Mozilla's root certificates
@@ -14,7 +14,7 @@
14
14
  ## Just configure this file as the SSLCACertificateFile.
15
15
  ##
16
16
  ## Conversion done with mk-ca-bundle.pl version 1.27.
17
- ## SHA256: 704f02707ec6b4c4a7597a8c6039b020def11e64f3ef0605a9c3543d48038a57
17
+ ## SHA256: c80f571d9f4ebca4a91e0ad3a546f263153d71afffc845c6f8f52ce9d1a2e8ec
18
18
  ##
19
19
 
20
20
 
@@ -2635,30 +2635,6 @@ kbcFgKyLmZJ956LYBws2J+dIeWCKw9cTXPhyQN9Ky8+ZAAoACxGV2lZFA4gKn2fQ1XmxqI1AbQ3C
2635
2635
  ekD6819kR5LLU7m7Wc5P/dAVUwHY3+vZ5nbv0CO7O6l5s9UCKc2Jo5YPSjXnTkLAdc0Hz+Ys63su
2636
2636
  -----END CERTIFICATE-----
2637
2637
 
2638
- TÜRKTRUST Elektronik Sertifika Hizmet Sağlayıcısı H5
2639
- ====================================================
2640
- -----BEGIN CERTIFICATE-----
2641
- MIIEJzCCAw+gAwIBAgIHAI4X/iQggTANBgkqhkiG9w0BAQsFADCBsTELMAkGA1UEBhMCVFIxDzAN
2642
- BgNVBAcMBkFua2FyYTFNMEsGA1UECgxEVMOcUktUUlVTVCBCaWxnaSDEsGxldGnFn2ltIHZlIEJp
2643
- bGnFn2ltIEfDvHZlbmxpxJ9pIEhpem1ldGxlcmkgQS7Fni4xQjBABgNVBAMMOVTDnFJLVFJVU1Qg
2644
- RWxla3Ryb25payBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSBINTAeFw0xMzA0MzAw
2645
- ODA3MDFaFw0yMzA0MjgwODA3MDFaMIGxMQswCQYDVQQGEwJUUjEPMA0GA1UEBwwGQW5rYXJhMU0w
2646
- SwYDVQQKDERUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnE
2647
- n2kgSGl6bWV0bGVyaSBBLsWeLjFCMEAGA1UEAww5VMOcUktUUlVTVCBFbGVrdHJvbmlrIFNlcnRp
2648
- ZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxIEg1MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
2649
- CgKCAQEApCUZ4WWe60ghUEoI5RHwWrom/4NZzkQqL/7hzmAD/I0Dpe3/a6i6zDQGn1k19uwsu537
2650
- jVJp45wnEFPzpALFp/kRGml1bsMdi9GYjZOHp3GXDSHHmflS0yxjXVW86B8BSLlg/kJK9siArs1m
2651
- ep5Fimh34khon6La8eHBEJ/rPCmBp+EyCNSgBbGM+42WAA4+Jd9ThiI7/PS98wl+d+yG6w8z5UNP
2652
- 9FR1bSmZLmZaQ9/LXMrI5Tjxfjs1nQ/0xVqhzPMggCTTV+wVunUlm+hkS7M0hO8EuPbJbKoCPrZV
2653
- 4jI3X/xml1/N1p7HIL9Nxqw/dV8c7TKcfGkAaZHjIxhT6QIDAQABo0IwQDAdBgNVHQ4EFgQUVpkH
2654
- HtOsDGlktAxQR95DLL4gwPswDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZI
2655
- hvcNAQELBQADggEBAJ5FdnsXSDLyOIspve6WSk6BGLFRRyDN0GSxDsnZAdkJzsiZ3GglE9Rc8qPo
2656
- BP5yCccLqh0lVX6Wmle3usURehnmp349hQ71+S4pL+f5bFgWV1Al9j4uPqrtd3GqqpmWRgqujuwq
2657
- URawXs3qZwQcWDD1YIq9pr1N5Za0/EKJAWv2cMhQOQwt1WbZyNKzMrcbGW3LM/nfpeYVhDfwwvJl
2658
- lpKQd/Ct9JDpEXjXk4nAPQu6KfTomZ1yju2dL+6SfaHx/126M2CFYv4HAqGEVka+lgqaE9chTLd8
2659
- B59OTj+RdPsnnRHM3eaxynFNExc5JsUpISuTKWqW+qtB4Uu2NQvAmxU=
2660
- -----END CERTIFICATE-----
2661
-
2662
2638
  Certinomis - Root CA
2663
2639
  ====================
2664
2640
  -----BEGIN CERTIFICATE-----
@@ -1,2 +1,2 @@
1
1
  /*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */
2
- !function(n){function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=669)}({161:function(n,t,e){"use strict";function i(){if(window.parent!==window){var n=window.parent.connectAppDocument;return n?n(window.document):void 0}}t.a=i},289:function(n,t,e){"use strict";function i(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(n,t){"content"===n&&document.addEventListener("DOMContentLoaded",function(){return t(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}t.a=i},669:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e(289),o=e(161),r=Object(o.a)();r?r.installRailsApi():Object(i.a)()}});
2
+ !function(n){function t(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return n[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var e={};t.m=n,t.c=e,t.d=function(n,e,i){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=670)}({161:function(n,t,e){"use strict";function i(){if(window.parent!==window){var n=window.parent.connectAppDocument;return n?n(window.document):void 0}}t.a=i},289:function(n,t,e){"use strict";function i(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(n,t){"content"===n&&document.addEventListener("DOMContentLoaded",function(){return t(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}t.a=i},670:function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=e(289),o=e(161),r=Object(o.a)();r?r.installRailsApi():Object(i.a)()}});
@@ -1,2 +1,2 @@
1
1
  /*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */
2
- !function(n){function o(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return n[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}var t={};o.m=n,o.c=t,o.d=function(n,t,e){o.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,"a",t),t},o.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},o.p="",o(o.s=672)}({672:function(n,o){!function(){if(window.parent===window){document.open(),document.close();var n=window.location;window.location.assign("/scrivito".concat(n.pathname).concat(n.search).concat(n.hash))}}()}});
2
+ !function(n){function o(e){if(t[e])return t[e].exports;var r=t[e]={i:e,l:!1,exports:{}};return n[e].call(r.exports,r,r.exports,o),r.l=!0,r.exports}var t={};o.m=n,o.c=t,o.d=function(n,t,e){o.o(n,t)||Object.defineProperty(n,t,{configurable:!1,enumerable:!0,get:e})},o.n=function(n){var t=n&&n.__esModule?function(){return n.default}:function(){return n};return o.d(t,"a",t),t},o.o=function(n,o){return Object.prototype.hasOwnProperty.call(n,o)},o.p="",o(o.s=673)}({673:function(n,o){!function(){if(window.parent===window){document.open(),document.close();var n=window.location;window.location.assign("/scrivito".concat(n.pathname).concat(n.search).concat(n.hash))}}()}});
@@ -1,5 +1,5 @@
1
1
  /*! Copyright (c) 2018 Infopark AG (https://scrivito.com) */
2
- !function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=670)}([function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,a){for(;o>=0&&o<a;o+=t){var s=i?i[o]:o;r=n(r,e[s],s,e)}return r}return function(n,r,i,o){r=O(r,o,4);var a=!T(n)&&k.keys(n),s=(a||n).length,u=t>0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=t),e(n,r,i,a,u,s)}}function o(t){return function(e,n,r){n=E(n,r);for(var i=A(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}function a(t,e,n){return function(r,i,o){var a=0,s=A(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(p.call(r,a,s),k.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(r[o]===i)return o;return-1}}function s(t,e){var n=D.length,r=t.constructor,i=k.isFunction(r)&&r.prototype||f,o="constructor";for(k.has(t,o)&&!k.contains(e,o)&&e.push(o);n--;)(o=D[n])in t&&t[o]!==i[o]&&!k.contains(e,o)&&e.push(o)}var u=this,c=u._,l=Array.prototype,f=Object.prototype,d=Function.prototype,h=l.push,p=l.slice,v=f.toString,y=f.hasOwnProperty,m=Array.isArray,b=Object.keys,g=d.bind,w=Object.create,_=function(){},k=function(t){return t instanceof k?t:this instanceof k?void(this._wrapped=t):new k(t)};void 0!==t&&t.exports&&(e=t.exports=k),e._=k,k.VERSION="1.8.3";var O=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 2:return function(n,r){return t.call(e,n,r)};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)}},E=function(t,e,n){return null==t?k.identity:k.isFunction(t)?O(t,e,n):k.isObject(t)?k.matcher(t):k.property(t)};k.iteratee=function(t,e){return E(t,e,1/0)};var x=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var c=a[u];e&&void 0!==n[c]||(n[c]=o[c])}return n}},C=function(t){if(!k.isObject(t))return{};if(w)return w(t);_.prototype=t;var e=new _;return _.prototype=null,e},j=function(t){return function(e){return null==e?void 0:e[t]}},S=Math.pow(2,53)-1,A=j("length"),T=function(t){var e=A(t);return"number"==typeof e&&e>=0&&e<=S};k.each=k.forEach=function(t,e,n){e=O(e,n);var r,i;if(T(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=k.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},k.map=k.collect=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o},k.reduce=k.foldl=k.inject=n(1),k.reduceRight=k.foldr=n(-1),k.find=k.detect=function(t,e,n){var r;if(void 0!==(r=T(t)?k.findIndex(t,e,n):k.findKey(t,e,n))&&-1!==r)return t[r]},k.filter=k.select=function(t,e,n){var r=[];return e=E(e,n),k.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},k.reject=function(t,e,n){return k.filter(t,k.negate(E(e)),n)},k.every=k.all=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},k.some=k.any=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},k.contains=k.includes=k.include=function(t,e,n,r){return T(t)||(t=k.values(t)),("number"!=typeof n||r)&&(n=0),k.indexOf(t,e,n)>=0},k.invoke=function(t,e){var n=p.call(arguments,2),r=k.isFunction(e);return k.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},k.pluck=function(t,e){return k.map(t,k.property(e))},k.where=function(t,e){return k.filter(t,k.matcher(e))},k.findWhere=function(t,e){return k.find(t,k.matcher(e))},k.max=function(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])>o&&(o=r)}else e=E(e,n),k.each(t,function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},k.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])<o&&(o=r)}else e=E(e,n),k.each(t,function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},k.shuffle=function(t){for(var e,n=T(t)?t:k.values(t),r=n.length,i=Array(r),o=0;o<r;o++)e=k.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},k.sample=function(t,e,n){return null==e||n?(T(t)||(t=k.values(t)),t[k.random(t.length-1)]):k.shuffle(t).slice(0,Math.max(0,e))},k.sortBy=function(t,e,n){return e=E(e,n),k.pluck(k.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var N=function(t){return function(e,n,r){var i={};return n=E(n,r),k.each(e,function(r,o){var a=n(r,o,e);t(i,r,a)}),i}};k.groupBy=N(function(t,e,n){k.has(t,n)?t[n].push(e):t[n]=[e]}),k.indexBy=N(function(t,e,n){t[n]=e}),k.countBy=N(function(t,e,n){k.has(t,n)?t[n]++:t[n]=1}),k.toArray=function(t){return t?k.isArray(t)?p.call(t):T(t)?k.map(t,k.identity):k.values(t):[]},k.size=function(t){return null==t?0:T(t)?t.length:k.keys(t).length},k.partition=function(t,e,n){e=E(e,n);var r=[],i=[];return k.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},k.first=k.head=k.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:k.initial(t,t.length-e)},k.initial=function(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},k.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:k.rest(t,Math.max(0,t.length-e))},k.rest=k.tail=k.drop=function(t,e,n){return p.call(t,null==e||n?1:e)},k.compact=function(t){return k.filter(t,k.identity)};var P=function(t,e,n,r){for(var i=[],o=0,a=r||0,s=A(t);a<s;a++){var u=t[a];if(T(u)&&(k.isArray(u)||k.isArguments(u))){e||(u=P(u,e,n));var c=0,l=u.length;for(i.length+=l;c<l;)i[o++]=u[c++]}else n||(i[o++]=u)}return i};k.flatten=function(t,e){return P(t,e,!1)},k.without=function(t){return k.difference(t,p.call(arguments,1))},k.uniq=k.unique=function(t,e,n,r){k.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=E(n,r));for(var i=[],o=[],a=0,s=A(t);a<s;a++){var u=t[a],c=n?n(u,a,t):u;e?(a&&o===c||i.push(u),o=c):n?k.contains(o,c)||(o.push(c),i.push(u)):k.contains(i,u)||i.push(u)}return i},k.union=function(){return k.uniq(P(arguments,!0,!0))},k.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=A(t);r<i;r++){var o=t[r];if(!k.contains(e,o)){for(var a=1;a<n&&k.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},k.difference=function(t){var e=P(arguments,!0,!0,1);return k.filter(t,function(t){return!k.contains(e,t)})},k.zip=function(){return k.unzip(arguments)},k.unzip=function(t){for(var e=t&&k.max(t,A).length||0,n=Array(e),r=0;r<e;r++)n[r]=k.pluck(t,r);return n},k.object=function(t,e){for(var n={},r=0,i=A(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},k.findIndex=o(1),k.findLastIndex=o(-1),k.sortedIndex=function(t,e,n,r){n=E(n,r,1);for(var i=n(e),o=0,a=A(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o},k.indexOf=a(1,k.findIndex,k.sortedIndex),k.lastIndexOf=a(-1,k.findLastIndex),k.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i};var L=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=C(t.prototype),a=t.apply(o,i);return k.isObject(a)?a:o};k.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,p.call(arguments,1));if(!k.isFunction(t))throw new TypeError("Bind must be called on a function");var n=p.call(arguments,2),r=function(){return L(t,r,e,this,n.concat(p.call(arguments)))};return r},k.partial=function(t){var e=p.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===k?arguments[r++]:e[a];for(;r<arguments.length;)o.push(arguments[r++]);return L(t,n,this,this,o)};return n},k.bindAll=function(t){var e,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)n=arguments[e],t[n]=k.bind(t[n],t);return t},k.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return k.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},k.delay=function(t,e){var n=p.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},k.defer=k.partial(k.delay,k,1),k.throttle=function(t,e,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:k.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var c=k.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,l)),o}},k.debounce=function(t,e,n){var r,i,o,a,s,u=function(){var c=k.now()-a;c<e&&c>=0?r=setTimeout(u,e-c):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=k.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(s=t.apply(o,i),o=i=null),s}},k.wrap=function(t,e){return k.partial(e,t)},k.negate=function(t){return function(){return!t.apply(this,arguments)}},k.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},k.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},k.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},k.once=k.partial(k.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];k.keys=function(t){if(!k.isObject(t))return[];if(b)return b(t);var e=[];for(var n in t)k.has(t,n)&&e.push(n);return I&&s(t,e),e},k.allKeys=function(t){if(!k.isObject(t))return[];var e=[];for(var n in t)e.push(n);return I&&s(t,e),e},k.values=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},k.mapObject=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=i.length,a={},s=0;s<o;s++)r=i[s],a[r]=e(t[r],r,t);return a},k.pairs=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},k.invert=function(t){for(var e={},n=k.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},k.functions=k.methods=function(t){var e=[];for(var n in t)k.isFunction(t[n])&&e.push(n);return e.sort()},k.extend=x(k.allKeys),k.extendOwn=k.assign=x(k.keys),k.findKey=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=0,a=i.length;o<a;o++)if(r=i[o],e(t[r],r,t))return r},k.pick=function(t,e,n){var r,i,o={},a=t;if(null==a)return o;k.isFunction(e)?(i=k.allKeys(a),r=O(e,n)):(i=P(arguments,!1,!1,1),r=function(t,e,n){return e in n},a=Object(a));for(var s=0,u=i.length;s<u;s++){var c=i[s],l=a[c];r(l,c,a)&&(o[c]=l)}return o},k.omit=function(t,e,n){if(k.isFunction(e))e=k.negate(e);else{var r=k.map(P(arguments,!1,!1,1),String);e=function(t,e){return!k.contains(r,e)}}return k.pick(t,e,n)},k.defaults=x(k.allKeys,!0),k.create=function(t,e){var n=C(t);return e&&k.extendOwn(n,e),n},k.clone=function(t){return k.isObject(t)?k.isArray(t)?t.slice():k.extend({},t):t},k.tap=function(t,e){return e(t),t},k.isMatch=function(t,e){var n=k.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var q=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof k&&(t=t._wrapped),e instanceof k&&(e=e._wrapped);var i=v.call(t);if(i!==v.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(k.isFunction(a)&&a instanceof a&&k.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!q(t[u],e[u],n,r))return!1}else{var c,l=k.keys(t);if(u=l.length,k.keys(e).length!==u)return!1;for(;u--;)if(c=l[u],!k.has(e,c)||!q(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0};k.isEqual=function(t,e){return q(t,e)},k.isEmpty=function(t){return null==t||(T(t)&&(k.isArray(t)||k.isString(t)||k.isArguments(t))?0===t.length:0===k.keys(t).length)},k.isElement=function(t){return!(!t||1!==t.nodeType)},k.isArray=m||function(t){return"[object Array]"===v.call(t)},k.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},k.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){k["is"+t]=function(e){return v.call(e)==="[object "+t+"]"}}),k.isArguments(arguments)||(k.isArguments=function(t){return k.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(k.isFunction=function(t){return"function"==typeof t||!1}),k.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},k.isNaN=function(t){return k.isNumber(t)&&t!==+t},k.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===v.call(t)},k.isNull=function(t){return null===t},k.isUndefined=function(t){return void 0===t},k.has=function(t,e){return null!=t&&y.call(t,e)},k.noConflict=function(){return u._=c,this},k.identity=function(t){return t},k.constant=function(t){return function(){return t}},k.noop=function(){},k.property=j,k.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},k.matcher=k.matches=function(t){return t=k.extendOwn({},t),function(e){return k.isMatch(e,t)}},k.times=function(t,e,n){var r=Array(Math.max(0,t));e=O(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},k.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},k.now=Date.now||function(){return(new Date).getTime()};var R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},M=k.invert(R),B=function(t){var e=function(e){return t[e]},n="(?:"+k.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};k.escape=B(R),k.unescape=B(M),k.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),k.isFunction(r)?r.call(t):r};var F=0;k.uniqueId=function(t){var e=++F+"";return t?t+e:e},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+U[t]};k.template=function(t,e,n){!e&&n&&(e=n),e=k.defaults({},e,k.templateSettings);var r=RegExp([(e.escape||z).source,(e.interpolate||z).source,(e.evaluate||z).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,a,s){return o+=t.slice(i,s).replace(H,W),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,k)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},k.chain=function(t){var e=k(t);return e._chain=!0,e};var K=function(t,e){return t._chain?k(e).chain():e};k.mixin=function(t){k.each(k.functions(t),function(e){var n=k[e]=t[e];k.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),K(this,n.apply(k,t))}})},k.mixin(k),k.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];k.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],K(this,n)}}),k.each(["concat","join","slice"],function(t){var e=l[t];k.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),k.prototype.value=function(){return this._wrapped},k.prototype.valueOf=k.prototype.toJSON=k.prototype.value,k.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return k}.apply(e,r))&&(t.exports=i)}).call(this)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AccessDeniedError",function(){return s}),n.d(e,"ArgumentError",function(){return u}),n.d(e,"ClientError",function(){return a}),n.d(e,"InternalError",function(){return c}),n.d(e,"InterpolationError",function(){return b}),n.d(e,"CurrentPageNotFoundError",function(){return m}),n.d(e,"NavigateToEmptyBinaryError",function(){return y}),n.d(e,"ResourceNotFoundError",function(){return f}),n.d(e,"RequestFailedError",function(){return l}),n.d(e,"ScrivitoError",function(){return o}),n.d(e,"TransformationSourceInvalidError",function(){return p}),n.d(e,"TransformationSourceTooLargeError",function(){return h}),n.d(e,"TranslationError",function(){return v}),n.d(e,"UnauthorizedError",function(){return d});var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),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,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return i(e,t),e.for=function(t,n,r){return"binary.unprocessable.image.transform.source.too_large"===r?new h(t,n,r):r&&-1!==r.indexOf("binary.unprocessable.image.transform.source.")?new p(t,n,r):new e(t,n,r)},e}(o),s=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),u=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),c=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(o),f=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),d=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return i(e,t),e}(a),h=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),p=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),v=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),y=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),m=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),b=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(v)},,function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return h(t)||d(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function p(t,e){if(!u(t,e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");y(t.prototype,e&&e.prototype),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t,e,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=w(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function w(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function _(t){return(_=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),t}function E(t){if(!t)throw new F.ArgumentError('Please provide an obj class as the "_objClass" property.')}function x(t){var e={},n={};return B.a.each(t,function(t,r){if(B.a.isArray(t)&&"widgetlist"===B.a.first(t)){var i=B.a.map(B.a.last(t),function(t){return D.a.newWithSerializedAttributes(t)}),o=Object(H.a)(r);n[o]=[i,["widgetlist"]]}else e[r]=t}),e._id||(e._id=Y.generateId()),[e,n]}function C(t){return Y.all().and("_parentPath","equals",t)}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"/"===t?["/"].concat(l(e)):j(S(t),[t].concat(l(e)))}function S(t){var e=t.split("/");return e.pop(),1===e.length?"/":e.join("/")}function A(t){var e=["_path"];if(B.a.difference(B.a.keys(t),e).length)throw new F.ArgumentError('Currently only "_path" copy option is supported.')}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return Y});var T=n(155),N=n(211),P=n(48),L=n(58),I=n(116),D=n(32),q=n(54),R=n(117),M=n(0),B=n.n(M),F=n(1),z=n(71),U=n(120),H=n(23),W=n(121),K=n(4),V=n(17),Q={_id:"id",_obj_class:"objClass",_path:"path",_permalink:"permalink",_created_at:"createdAt",_created_by:"createdBy",_last_changed:"lastChanged",_last_changed_by:"lastChangedBy"},Y=function(t){function e(t){var n;return p(this,e),n=m(this,_(e).call(this)),n.objData=t,n}return O(e,null,[{key:"get",value:function(t){var e=this.getIncludingDeleted(t);if(e&&!e.isDeleted())return e}},{key:"getIncludingDeleted",value:function(t){var n=L.b(t);if(n){var r=new e(n);if(!r.isFinallyDeleted())return r}}},{key:"create",value:function(t){var e=scrivito.typeInfo.normalizeAttrs(t);E(e._objClass),e._id||(e._id=[this.generateId()]);var n={_id:e._id,_obj_class:e._objClass};return this.createWithSerializedAttributes(scrivito.typeInfo.unwrapAttributes(n),B.a.omit(t,"_objClass","_id"))}},{key:"addChildWithSerializedAttributes",value:function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(B.a.extend({},n,{_id:r,_path:"".concat(t,"/").concat(r)}))}},{key:"createWithSerializedAttributes",value:function(t,n){if(!n)return this.createWithSerializedAttributes.apply(this,l(x(t)));var r=L.a(t._id);r.update(t);var i=new e(r);return i.update(n),i}},{key:"generateId",value:function(){return Object(U.b)()}},{key:"all",value:function(){return(new q.b).batchSize(1e3)}},{key:"root",value:function(){return e.getByPath("/")}},{key:"where",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(new q.b).and(t,e,n,r)}},{key:"getByPath",value:function(t){var e=Object(W.b)(this.where("_path","equals",t));if(e)return e}},{key:"getByPermalink",value:function(t){var e=this.where("_permalink","equals",t),n=Object(W.b)(e);if(n)return n}}]),O(e,[{key:"id",value:function(){return this.getAttributeData("_id")}},{key:"objClass",value:function(){return this.getAttributeData("_obj_class")}},{key:"obj",value:function(){return this}},{key:"createdAt",value:function(){return Object(P.g)(this.getAttributeData("_created_at"))}},{key:"createdBy",value:function(){return this.getAttributeData("_created_by")}},{key:"lastChanged",value:function(){var t=this.getAttributeData("_last_changed");return t?Object(P.g)(t):null}},{key:"lastChangedBy",value:function(){return this.getAttributeData("_last_changed_by")||null}},{key:"version",value:function(){return this.getAttributeData("_version")}},{key:"path",value:function(){return this.getAttributeData("_path")||null}},{key:"permalink",value:function(){return this.getAttributeData("_permalink")||null}},{key:"parentPath",value:function(){if(this.path()&&"/"!==this.path())return S(this.path())}},{key:"parent",value:function(){var t=this.parentPath();if(t)return e.getByPath(t)}},{key:"hasConflicts",value:function(){return!!this.getAttributeData("_conflicts")}},{key:"modification",value:function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null}},{key:"isModified",value:function(){return!!this.modification()}},{key:"isNew",value:function(){return"new"===this.modification()}},{key:"isEdited",value:function(){return"edited"===this.modification()}},{key:"isDeleted",value:function(){return"deleted"===this.modification()}},{key:"isFinallyDeleted",value:function(){return this.objData.isNonExistent()}},{key:"contentLength",value:function(){return this._binaryData("contentLength")}},{key:"contentType",value:function(){return this._binaryData("contentType")}},{key:"contentUrl",value:function(){return this._binaryData("url")}},{key:"metadata",value:function(){return this._binaryData("metadata")}},{key:"children",value:function(){var t=this.path();if(!t)return[];var e=C(t);return Object(W.a)(e)}},{key:"hasChildren",value:function(){var t=this.path();return!!t&&C(t).batchSize(0).count()>0}},{key:"orderedChildren",value:function(){var t=this.children(),e=this.get("childOrder","referencelist");return B.a.isArray(e)?B.a.sortBy(t,function(t){var n=B.a.invoke(e,"id"),r=n.indexOf(t.id());return-1===r?e.length:r}):t}},{key:"backlinks",value:function(){return Object(W.a)(e.where("*","linksTo",this))}},{key:"ancestors",value:function(){var t=this.parentPath();return t?j(t).map(function(t){return e.getByPath(t)}):[]}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(K.j)(function(){e._persistWidgets(e,n);var t=I.a(n);e.objData.update(t)}),this.startLinkResolution()}},{key:"destroy",value:function(){this.update({_markedDeleted:[!0]})}},{key:"insertWidget",value:function(t,e){var n=e.before,r=e.after,i=(n||r).id(),o=this._widgetPlacementFor(i),a=o.attributeValue,s=o.attributeName,u=o.container,f=o.index,d=n?f:f+1,h=l(a.slice(0,d)).concat([t],l(a.slice(d)));u.update(c({},s,[h,"widgetlist"]))}},{key:"removeWidget",value:function(t){var e=this.fieldContainingWidget(t);e.update(B.a.reject(e.get(),function(e){return e.equals(t)}))}},{key:"copyAsync",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(t),this._copyAttributes().then(function(n){var r=B.a.extend(n,t),i=e.createWithSerializedAttributes(r);return i.objData.finishSaving().then(function(){return i})})}},{key:"moveToAsync",value:function(t){return this.update({_path:["".concat(t,"/").concat(this.id())]}),this.finishSaving()}},{key:"markResolvedAsync",value:function(){return this.update({_conflicts:[null]}),this.finishSaving()}},{key:"finishSaving",value:function(){var t=this;return this.finishLinkResolution().then(function(){return t.objData.finishSaving()})}},{key:"equals",value:function(t){return!!u(t,e)&&this.id()===t.id()}},{key:"widget",value:function(t){return this.getWidgetAttribute(t,"_obj_class")?D.a.build(t,this):null}},{key:"getWidgetAttribute",value:function(t,e){return this.objData.getWidgetAttribute(t,e)}},{key:"widgets",value:function(){var t=this,e=this.getData()._widget_pool||{};return Object.keys(e).map(function(e){return t.widget(e)})}},{key:"fieldContainingWidget",value:function(t){var e=this._widgetPlacementFor(t.id()),n=e.container,r=e.attributeName;return n.field(r,"widgetlist")}},{key:"generateWidgetId",value:function(){for(var t=0;t<10;t++){var e=Object(U.a)();if(!this.widget(e))return e}throw new F.InternalError("Could not generate a new unused widget id.")}},{key:"serializeAttributes",value:function(){var t=g(_(e.prototype),"serializeAttributes",this).call(this);return delete t._conflicts,delete t._modification,delete t._created_at,delete t._created_by,delete t._last_changed,delete t._last_changed_by,t}},{key:"slug",value:function(){var t=this.get("title","string");return Object(N.a)(t)}},{key:"getAttributeData",value:function(t){return this.objData.getAttribute(t)}},{key:"getData",value:function(){return this.objData.get()}},{key:"getWidgetData",value:function(t){return this.objData.getWidget(t)}},{key:"startLinkResolution",value:function(){V.b.startLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"finishLinkResolution",value:function(){return V.b.finishLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'"]')}},{key:"_binaryData",value:function(t){var e=this.get("blob","binary");return e&&e.raw()[t]()}},{key:"_hasParentPath",value:function(){return this.path()&&"/"!==this.path()}},{key:"_copyAttributes",value:function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return B.a.each(n,function(e,o){if("_"===o[0])return void delete n[o];var a=i(e,2),s=a[0],u=a[1];if("binary"===s&&u){var c=new z.a({idToCopy:u.id}),l=c.intoId(t).then(function(t){return{name:o,binary:t}});r.push(l)}}),n._id=t,n._obj_class=this.objClass(),this.path()&&(n._path="".concat(this.parentPath(),"/").concat(t)),scrivito.Promise.all(r).then(function(t){return B.a.each(t,function(t){var e=t.name,r=t.binary;n[e]=["binary",{id:r.id()}]}),n})}},{key:"_widgetPlacementFor",value:function(t){var e=Object(T.a)(this.getData(),t),n=e.parentWidgetId?this.widget(e.parentWidgetId):this,r=Object(H.a)(e.attributeName),i=n.get(r,"widgetlist");return B.a.extend(e,{container:n,attributeName:r,attributeValue:i})}},{key:"_systemAttributes",get:function(){return Q}}]),v(e,t),e}(R.a)},function(t,e,n){"use strict";function r(t){t?(f=void 0,d=t.stateController(),h=t.createAppState(),p=t.cmsState()):(f=new m.a,d=f,h=i(),p=f.subState("cms"),v=f.subState("ui"))}function i(){if(!f)throw new y.InternalError;var t=(b++).toString();return f.subState("apps").subState(t)}function o(t){return d.withBatchedUpdates(t)}function a(t){return d.subscribe(t)}function s(t){return d.trackChanges(t)}function u(t,e){return d.withFrozenState(t,e)}function c(t){return d.failIfFrozen(t)}function l(t){return d.failIfTracking(t)}n.d(e,"a",function(){return h}),n.d(e,"b",function(){return p}),n.d(e,"i",function(){return v}),e.f=r,e.c=i,e.j=o,e.g=a,e.h=s,e.k=u,e.d=c,e.e=l;var f,d,h,p,v,y=n(1),m=n(164),b=0},function(t,e,n){function r(t,e){!0!==t&&(i(e)?e=e():o(e)&&(e='Assert failed (turn on "Pause on exceptions" in your Source panel)'),r.fail(e))}var i=n(10),o=n(25),a=n(184),s=n(105);r.fail=a,r.stringify=s,t.exports=r},,function(t,e,n){"use strict";function r(t){function e(){var n=Object(o.a)(function(){try{return{errorThrown:!1,run:o.b.run(function(){return Object(a.k)({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)})}}catch(t){return{errorThrown:!0,error:t}}});if(!n.isAllDataUpToDate()){n.loadRequiredData();var r=new i.a,s=Object(a.g)(function(){r.resolve(void 0),s()});return r.promise.then(e)}var u=n.result;if(u.errorThrown)throw u.error;var l=u.run;if(!l.success)throw new c.InternalError;return l.result}return l(t),new scrivito.Promise(function(t){return t(e())})}var i=n(12),o=n(18),a=n(4),s=n(39),u=n(24),c=n(1),l=Object(s.a)("load",[["loadableFunction",u.a.Function]],{docPermalink:"js-sdk/load"});e.a=r},function(t,e,n){var r=n(11),i=n(51);t.exports=function(t){return r(t)?t.displayName:i(t)}},,function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(10),i=n(27);t.exports=function(t){return r(t)&&i(t.meta)}},function(t,e,n){"use strict";var r=function(){function t(){var t=this;this.promise=new scrivito.Promise(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}();e.a=r},function(t,e){t.exports=React},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){if("function"!=typeof t)throw new d.ArgumentError("Scrivito.connect expects either a plain function or a subclass of React.Component");return u(t)?t:o(s(t)?t:a(t))}function o(t){var e=(n=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new m(n),n}return y(e,t),e.prototype.componentWillMount=function(){this._scrivitoPrivateConnector.componentWillMount(),t.prototype.componentWillMount&&t.prototype.componentWillMount.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),n._isScrivitoConnectedComponent=!0,n);return e.displayName=Object(v.a)(t),e;var n}function a(t){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return y(n,e),n.prototype.render=function(){return t(this.props)},n}(l.Component);return e.displayName=Object(v.a)(t),e}function s(t){return"function"==typeof t&&t.prototype&&t.prototype.isReactComponent}function u(t){return!0===t._isScrivitoConnectedComponent}function c(t){return!!t._scrivitoRenderWhileLoading}e.a=i;var l=n(13),f=(n.n(l),n(18)),d=n(1),h=n(4),p=n(81),v=n(122),y=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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(){function t(t){this.component=t}return t.prototype.componentWillMount=function(){var t=this;this.unsubscribeModelState=Object(h.g)(function(){t.isStateChangeDetected&&t.isStateChangeDetected()&&t.component.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.unregisterLoadingActivity(),this.unsubscribeModelState&&this.unsubscribeModelState()},t.prototype.render=function(t){var e,n=this;return this.isStateChangeDetected=Object(h.h)(function(){var r=Object(f.a)(function(){return f.b.run(function(){return Object(h.k)({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},t)})});r.loadRequiredData();var i=r.result;if(r.isAllDataLoaded()){if(n.unregisterLoadingActivity(),!i.success)throw new d.InternalError;e=i.result}else{n.unregisterLoadingActivityCallback||(n.unregisterLoadingActivityCallback=Object(p.c)());var o=i.success?i.result:null;e=n.handleLoading(o)}}),e},t.prototype.handleLoading=function(t){return c(this.component)?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}()},,function(t,e,n){n(5),n(65),n(10),n(52);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}},function(t,e,n){"use strict";function r(t){i=t}n.d(e,"b",function(){return i}),e.a=r;var i},function(t,e,n){"use strict";function r(){var t=d.current();t&&(t.allDataLoaded=!1)}function i(t){return f.runWith(!1,t)}var o=n(1),a=n(103),s=n(175),u=n(69),c=n(176),l=n(103);n.d(e,"a",function(){return l.a});var f=new u.a,d=new u.a,h=function(){function t(t){var e=t.state,n=t.loader,r=t.invalidation,i=t.throwNotLoaded;if(!e)throw new o.InternalError("LoadableData needs state");this.value=new s.a(e),this.loader=n,this.invalidation=r,this.throwNotLoaded=i||!1,this.id=e.id()}return t.throwNotLoaded=function(){throw r(),new scrivito.NotLoadedError(f.current())},t.run=function(t){var e={allDataLoaded:!0};try{return{success:!0,result:d.runWith(e,function(){return i(t)}),allDataLoaded:e.allDataLoaded}}catch(t){if(e.allDataLoaded)throw t;return{success:!1,allDataLoaded:!1}}},t.prototype.ensureAvailable=function(){var e=this;if(this.isAvailable())return this.reloadIfOutdated(),!0;if(this.isError())throw this.reloadIfOutdated(),this.value.error();return r(),a.b(function(){return e.progressLoading()}),this.throwNotLoaded&&t.throwNotLoaded(),!1},t.prototype.get=function(){if(this.ensureAvailable())return this.value.value()},t.prototype.reader=function(){return this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),Object(c.c)(this.id)},t.prototype.setError=function(t){this.transitionToError(t),Object(c.c)(this.id)},t.prototype.reset=function(){this.value.transitionToMissing(),Object(c.c)(this.id)},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isLoading=function(){return Object(c.a)(this.id)},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.triggerLoading=function(){var t=this,e=this.currentVersion();Object(c.b)(this.id,function(e){var n=e.wasCancelled,r=e.push;return t.loader({push:r,isReload:function(){return t.hasBeenInvalidated()},wasCancelled:n})},function(n){t.value.transitionToAvailable(n,e)},function(n){t.transitionToError(n,e)})},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.reloadIfOutdated=function(){var t=this;this.hasBeenInvalidated()&&a.c(function(){return t.progressLoading()})},t.prototype.progressLoading=function(){(this.hasBeenInvalidated()||this.isMissing())&&this.triggerLoading()},t.prototype.hasBeenInvalidated=function(){return!!this.invalidation&&(!this.isMissing()&&this.currentVersion()!==this.value.version())},t.prototype.currentVersion=function(){var t=this.invalidation;if(t){var e=t();if("number"==typeof e&&isNaN(e)){var n="invalidation callback returned unsuitable version "+e;throw new o.InternalError(n)}return e}},t}();e.b=h},,function(t,e,n){var r=n(25),i=n(65);t.exports=function(t){return r(t)||i(t)}},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function o(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().catch(function(n){if(i(n,k.RequestFailedError)){if(v&&e>5)throw n;var r=s(e);return Object(_.b)(r).then(function(){return o(t,e+1)})}throw n})}function a(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().then(function(n){if(429!==n.status)return n;if(v&&e>19)throw new Error("Maximum number of rate limit retries reached");var r=Number(n.getResponseHeader("Retry-After"))||0,i=Math.max(1e3*r,s(e));return Object(_.b)(i).then(function(){return a(t,e+1)})})}function s(t){return 500*Math.pow(2,Math.min(t,16))}function u(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch(e){throw new k.RequestFailedError(t.responseText)}if(n>=200&&n<300)return e;if("auth_missing"===e.code){var r=e.details;if(r&&f(r)){var i=r.visit;if("string"==typeof i)return Object(x.d)(c(i)),{}}}throw l(n,e,t.responseText)}function c(t){var e=O.a.augmentedRedirectUrl(Object(x.c)());return t.replace("retry=RETRY","retry="+O.a.currentFailureCount()).replace(/\$RETURN_TO/,encodeURIComponent(e))}function l(t,e,n){if(401===t){var r=p(e);return new k.UnauthorizedError(r.error,t,r.code,r.details)}if(403===t){var r=p(e),i=r.code;if(!i||!d(i))throw new k.RequestFailedError("Authentication failure response no string value for code");return new k.AccessDeniedError(r.error,t,i)}if(e.error&&"4"===t.toString()[0]){var r=p(e);return k.ClientError.for(r.error,t,r.code)}return 500===t&&d(e.error)?new k.RequestFailedError(e.error):new k.RequestFailedError(n)}function f(t){return"object"===r(t)&&!Array.isArray(t)}function d(t){return"string"==typeof t}function h(t){return!!t&&!!t.task&&1===Object(m.size)(t)}function p(t){var e=t.error;if("string"!=typeof e)throw new k.RequestFailedError("Malformed error response (key error is not a string)");var n=t.code;if(void 0!==n&&!d(n))throw new k.RequestFailedError("Malformed error response (optional key code is not a string)");var r=t.details;if(void 0!==r&&!f(r))throw new k.RequestFailedError("Malformed error response (optional key details is not an object");return{code:n,error:e,details:r}}n.d(e,"a",function(){return j});var v,y,m=n(0),b=(n.n(m),n(33)),g=(n.n(b),n(12)),w=n(101),_=n(128),k=n(1),O=n(152),E=n(172),x=n(70),C=function(){function t(){this.initDeferred=new g.a,this.authHeaderValueProvider=E}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=b(t+"/tenants/"+e+"/perform").scheme("https").toString(),this.initDeferred.resolve(void 0)),n&&(this.authHeaderValueProvider=n)},t.prototype.get=function(t,e){return this._perform("GET",t,e)},t.prototype.put=function(t,e){return this._perform("PUT",t,e)},t.prototype.post=function(t,e){return this._perform("POST",t,e)},t.prototype.delete=function(t,e){return this._perform("DELETE",t,e)},t.prototype.requestBuiltInUserSession=function(t){var e=this;return this._ensureInitialized().then(function(){return e._ajax("PUT","sessions/"+t)}).then(function(t){return O.a.reset(),t})},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?"[API] "+this.authHeaderValueProvider.currentState():"[API]: authorization provider without currentState()":"[API]: no authorization provider"},t.prototype._ensureInitialized=function(){return this.initDeferred.promise},t.prototype._perform=function(t,e,n){var r=this;return this._ensureInitialized().then(function(){return r._send(t,e,n).then(function(t){return h(t)?r._handleTask(t.task):t})})},t.prototype._send=function(t,e,n){var r=this;return this.authHeaderValueProvider.perform(function(i){return r._ajax(t,e,n,i)})},t.prototype._ajax=function(t,e,n,r){function i(){return a(function(){return Object(w.a)(t,s,f)}).then(u)}var s=this.url,c=this.forceVerification,l={path:e,verb:t,params:n||{}},f={params:l,authorization:r,forceVerification:c};return"POST"===t?i():o(i)},t.prototype._handleTask=function(t){var e=this;switch(t.status){case"success":return t.result;case"error":throw k.ClientError.for(t.message,412,t.code);case"open":return Object(_.a)(2).then(function(){return e.get("tasks/"+t.id).then(function(t){return e._handleTask(t)})});default:throw new k.RequestFailedError("Invalid task response (unknown status)")}},t}(),j=new C},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(Object(c.isArray)(e))return Object(c.map)(e,function(e){return i(t,e)});if(r(e,f.default))return o(e,t.objClassFor(e.objClass()));if(r(e,d.a)){var n=e.objClass();return o(e,t.widgetClassFor(n))}return r(e,h.a)?t.defaultClassForLinks.build(e.buildAttributes()):e}function o(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function a(t){return Object(c.isArray)(t)?Object(c.map)(t,s):s(t)}function s(t){return t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function u(t,e,n){return Object(c.mapObject)(t,function(t,r){if(Object(l.a)(r))return[t];var i=e.attributes[r];if(!i)throw new p.ArgumentError('Attribute "'.concat(r,'" is not defined for CMS object ')+'class "'.concat(n,'".'));return[a(t),i]})}e.e=i,e.a=o,e.d=a,e.c=s,e.b=u;var c=n(0),l=(n.n(c),n(47)),f=n(3),d=n(32),h=n(34),p=n(1)},function(t,e,n){"use strict";function r(t){return f.test(t)}function i(t){return t.replace(c,function(t,e){return"_".concat(e.toLowerCase())})}function o(t){return t.replace(u,function(t,e,n,r){return r?n.toUpperCase()===n?t:"".concat(e.substr(1)).concat(n.toUpperCase()):t})}function a(t){var e=o(t);return e.charAt(0).toUpperCase()+e.slice(1)}function s(t){return t.replace(d," ").replace(h,function(t){return" ".concat(t.toLowerCase())}).replace(l,function(t){return" ".concat(t)}).trim().replace(/./,function(t){return t.toUpperCase()})}e.c=r,e.e=i,e.a=o,e.b=a,e.d=s;var u=/(_+)(\w)/g,c=/([A-Z])/g,l=/[A-Z]+|\d+/g,f=/^_?(_+[A-Z0-9]|[^_])+$/,d=/[_\s]+/g,h=/[A-Z][a-z]+/g},function(t,e,n){"use strict";var r=n(182);n.n(r);n.d(e,"a",function(){return r}),r.struct.strict=!0,r.interface.strict=!0,r.fail=function(t){throw new TypeError(t)}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){var n=scrivito.computeCacheKey([t,e]);return v.b.subState("binary").subState(n)}function o(t,e){return function(){return p.a.retrieveBinaryUrls(t,e)}}var a=n(33),s=(n.n(a),n(0)),u=(n.n(s),n(71)),c=n(18),l=n(130),f=n(1),d=n(131),h=n(39),p=n(43),v=n(4),y=n(24),m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",b={public_access:{get:{url:m}},private_access:{get:{url:m}}},g=function(){function t(t,e,n){this._id=t,this._isPublic=!!e,this._transformation=n,this._loadableData=new c.b({state:i(t,n),loader:o(t,n)})}return t.upload=function(t,e){if(k(t,e),!(d.b.is(t)||e&&e.filename))throw new f.ArgumentError("Expected a filename to be passed with Blob as the source.");return new u.a({source:t},e)},t.store=function(e,n,r){var a=n.transformation;new c.b({state:i(e,a),loader:o(e,a)}).set(r);var s=new t(e);return a?s.optimizeFor(a):s},t.storeMetadata=function(t,e){l.a.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new u.a({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Object(s.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)},t.prototype.isExplicitlyTransformed=function(){return this._isTransformed()&&!Object(s.isEmpty)(this._transformation)},t.prototype.isRaw=function(){return!this._isTransformed()},t.prototype.url=function(){var t=this._urlData()[this._accessType()];if(t)return t.get.url},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":a(t).path().split("/").pop()},t.prototype.metadata=function(){return this._assertNotTransformed("Metadata"),new l.a(this._id)},t.prototype.contentType=function(){return this._assertNotTransformed("Content type"),this.metadata().get("contentType")},t.prototype.contentLength=function(){return this._assertNotTransformed("Content length"),this.metadata().get("contentLength")||0},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}},t.prototype.equals=function(e){return r(e,t)&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&Object(s.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._urlData=function(){return this._loadableData.get()||b},t.prototype._assertNotTransformed=function(t){if(this._isTransformed())throw new f.ScrivitoError('"'+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}();e.a=g;var w=y.a.struct({contentType:y.a.maybe(y.a.String),filename:y.a.maybe(y.a.String)}),_=y.a.refinement(y.a.Object,function(t){return d.a.is(t)||d.b.is(t)},"Blob or File"),k=Object(h.a)("Binary.upload",[["source",_],["options",y.a.maybe(w)]],{docPermalink:"js-sdk/Binary-static-upload"})},function(t,e,n){var r=n(25),i=n(28);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},function(t,e,n){var r=(n(5),n(106),n(11));n(8);t.exports=function(t){return!r(t)||t.meta.identity}},function(t,e,n){var r=n(11);n(51),n(5),n(105);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}},function(t,e,n){var r=n(11);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function l(t,e){if(!c(t,e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");d(t.prototype,e&&e.prototype),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}function b(t){if(!t)throw new E.ArgumentError('Please provide a widget class as the "_objClass" property.')}n.d(e,"a",function(){return j});var g=n(116),w=n(117),_=n(0),k=n.n(_),O=n(23),E=n(1),x=n(4),C={_id:"id",_obj_class:"objClass"},j=function(t){function e(t){var n;return l(this,e),n=h(this,v(e).call(this)),n._attributesToBeSaved=scrivito.typeInfo.normalizeAttrs(t),b(t._objClass),n}return m(e,null,[{key:"build",value:function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r}},{key:"newWithSerializedAttributes",value:function(t){var n={},r={};k.a.each(t,function(t,i){if("_obj_class"===i)return void(n._objClass=[t]);if(k.a.isArray(t)&&"widgetlist"===k.a.first(t)){var o=k.a.map(k.a.last(t),function(t){return e.newWithSerializedAttributes(t)}),a=Object(O.a)(i);return void(n[a]=[o,["widgetlist"]])}r[i]=t});var i=new e(n);return i.preserializedAttributes=r,i}}]),m(e,[{key:"id",value:function(){return this._failIfNotPersisted(),this._id}},{key:"objClass",value:function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]}},{key:"obj",value:function(){return this._failIfNotPersisted(),this._obj}},{key:"widget",value:function(t){return this.obj().widget(t)}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(x.j)(function(){e._persistWidgets(e.obj(),n);var t=g.a(n);e._updateSelf(t)})}},{key:"insertBefore",value:function(t){t.obj().insertWidget(this,{before:t})}},{key:"insertAfter",value:function(t){t.obj().insertWidget(this,{after:t})}},{key:"remove",value:function(){this.obj().removeWidget(this)}},{key:"copy",value:function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()}},{key:"persistInObj",value:function(t){this._persistWidgets(t,this._attributesToBeSaved);var e=g.a(this._attributesToBeSaved);k.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()}},{key:"isPersisted",value:function(){return!!this._obj}},{key:"onDidPersist",value:function(t){if(this.isPersisted())throw new E.ScrivitoError('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t}},{key:"hasOnDidPersistCallback",value:function(){return!!this._onDidPersistCallback}},{key:"finishSaving",value:function(){return this.obj().finishSaving()}},{key:"equals",value:function(t){return!!c(t,e)&&(this.id()===t.id()&&this.obj().id()===t.obj().id())}},{key:"containingField",value:function(){return this.obj().fieldContainingWidget(this)}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'" objId="').concat(this.obj().id(),'"]')}},{key:"getAttributeData",value:function(t){return this.obj().getWidgetAttribute(this.id(),t)}},{key:"getData",value:function(){return this.obj().getWidgetData(this.id())}},{key:"_failIfNotPersisted",value:function(){if(!this.isPersisted())throw new E.ScrivitoError("Can not access a new widget before it has been saved.")}},{key:"_updateSelf",value:function(t){var e={_widgetPool:[u({},this.id(),t)]};this.obj().update(e)}},{key:"_executeDidPersistCallback",value:function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)}},{key:"_copyPersisted",value:function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)}},{key:"_copyUnpersisted",value:function(){var t=k.a.mapObject(this._attributesToBeSaved,function(t){var e=i(t,2),n=e[0],r=e[1];return r&&"widgetlist"===r[0]?[k.a.invoke(n,"copy"),r]:[n,r]}),n=new e(t);return this._onDidPersistCallback&&n.onDidPersist(this._onDidPersistCallback),n}},{key:"attributesToBeSaved",get:function(){return this._attributesToBeSaved}},{key:"_systemAttributes",get:function(){return C}}]),f(e,t),e}(w.a)},function(t,e,n){var r,i,o;/*!
2
+ !function(t){function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}var n={};e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=671)}([function(t,e,n){var r,i;(function(){function n(t){function e(e,n,r,i,o,a){for(;o>=0&&o<a;o+=t){var s=i?i[o]:o;r=n(r,e[s],s,e)}return r}return function(n,r,i,o){r=O(r,o,4);var a=!T(n)&&k.keys(n),s=(a||n).length,u=t>0?0:s-1;return arguments.length<3&&(i=n[a?a[u]:u],u+=t),e(n,r,i,a,u,s)}}function o(t){return function(e,n,r){n=E(n,r);for(var i=A(e),o=t>0?0:i-1;o>=0&&o<i;o+=t)if(n(e[o],o,e))return o;return-1}}function a(t,e,n){return function(r,i,o){var a=0,s=A(r);if("number"==typeof o)t>0?a=o>=0?o:Math.max(o+s,a):s=o>=0?Math.min(o+1,s):o+s+1;else if(n&&o&&s)return o=n(r,i),r[o]===i?o:-1;if(i!==i)return o=e(p.call(r,a,s),k.isNaN),o>=0?o+a:-1;for(o=t>0?a:s-1;o>=0&&o<s;o+=t)if(r[o]===i)return o;return-1}}function s(t,e){var n=D.length,r=t.constructor,i=k.isFunction(r)&&r.prototype||f,o="constructor";for(k.has(t,o)&&!k.contains(e,o)&&e.push(o);n--;)(o=D[n])in t&&t[o]!==i[o]&&!k.contains(e,o)&&e.push(o)}var u=this,c=u._,l=Array.prototype,f=Object.prototype,d=Function.prototype,h=l.push,p=l.slice,v=f.toString,y=f.hasOwnProperty,m=Array.isArray,b=Object.keys,g=d.bind,w=Object.create,_=function(){},k=function(t){return t instanceof k?t:this instanceof k?void(this._wrapped=t):new k(t)};void 0!==t&&t.exports&&(e=t.exports=k),e._=k,k.VERSION="1.8.3";var O=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 2:return function(n,r){return t.call(e,n,r)};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)}},E=function(t,e,n){return null==t?k.identity:k.isFunction(t)?O(t,e,n):k.isObject(t)?k.matcher(t):k.property(t)};k.iteratee=function(t,e){return E(t,e,1/0)};var x=function(t,e){return function(n){var r=arguments.length;if(r<2||null==n)return n;for(var i=1;i<r;i++)for(var o=arguments[i],a=t(o),s=a.length,u=0;u<s;u++){var c=a[u];e&&void 0!==n[c]||(n[c]=o[c])}return n}},C=function(t){if(!k.isObject(t))return{};if(w)return w(t);_.prototype=t;var e=new _;return _.prototype=null,e},j=function(t){return function(e){return null==e?void 0:e[t]}},S=Math.pow(2,53)-1,A=j("length"),T=function(t){var e=A(t);return"number"==typeof e&&e>=0&&e<=S};k.each=k.forEach=function(t,e,n){e=O(e,n);var r,i;if(T(t))for(r=0,i=t.length;r<i;r++)e(t[r],r,t);else{var o=k.keys(t);for(r=0,i=o.length;r<i;r++)e(t[o[r]],o[r],t)}return t},k.map=k.collect=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=Array(i),a=0;a<i;a++){var s=r?r[a]:a;o[a]=e(t[s],s,t)}return o},k.reduce=k.foldl=k.inject=n(1),k.reduceRight=k.foldr=n(-1),k.find=k.detect=function(t,e,n){var r;if(void 0!==(r=T(t)?k.findIndex(t,e,n):k.findKey(t,e,n))&&-1!==r)return t[r]},k.filter=k.select=function(t,e,n){var r=[];return e=E(e,n),k.each(t,function(t,n,i){e(t,n,i)&&r.push(t)}),r},k.reject=function(t,e,n){return k.filter(t,k.negate(E(e)),n)},k.every=k.all=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(!e(t[a],a,t))return!1}return!0},k.some=k.any=function(t,e,n){e=E(e,n);for(var r=!T(t)&&k.keys(t),i=(r||t).length,o=0;o<i;o++){var a=r?r[o]:o;if(e(t[a],a,t))return!0}return!1},k.contains=k.includes=k.include=function(t,e,n,r){return T(t)||(t=k.values(t)),("number"!=typeof n||r)&&(n=0),k.indexOf(t,e,n)>=0},k.invoke=function(t,e){var n=p.call(arguments,2),r=k.isFunction(e);return k.map(t,function(t){var i=r?e:t[e];return null==i?i:i.apply(t,n)})},k.pluck=function(t,e){return k.map(t,k.property(e))},k.where=function(t,e){return k.filter(t,k.matcher(e))},k.findWhere=function(t,e){return k.find(t,k.matcher(e))},k.max=function(t,e,n){var r,i,o=-1/0,a=-1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])>o&&(o=r)}else e=E(e,n),k.each(t,function(t,n,r){((i=e(t,n,r))>a||i===-1/0&&o===-1/0)&&(o=t,a=i)});return o},k.min=function(t,e,n){var r,i,o=1/0,a=1/0;if(null==e&&null!=t){t=T(t)?t:k.values(t);for(var s=0,u=t.length;s<u;s++)(r=t[s])<o&&(o=r)}else e=E(e,n),k.each(t,function(t,n,r){((i=e(t,n,r))<a||i===1/0&&o===1/0)&&(o=t,a=i)});return o},k.shuffle=function(t){for(var e,n=T(t)?t:k.values(t),r=n.length,i=Array(r),o=0;o<r;o++)e=k.random(0,o),e!==o&&(i[o]=i[e]),i[e]=n[o];return i},k.sample=function(t,e,n){return null==e||n?(T(t)||(t=k.values(t)),t[k.random(t.length-1)]):k.shuffle(t).slice(0,Math.max(0,e))},k.sortBy=function(t,e,n){return e=E(e,n),k.pluck(k.map(t,function(t,n,r){return{value:t,index:n,criteria:e(t,n,r)}}).sort(function(t,e){var n=t.criteria,r=e.criteria;if(n!==r){if(n>r||void 0===n)return 1;if(n<r||void 0===r)return-1}return t.index-e.index}),"value")};var N=function(t){return function(e,n,r){var i={};return n=E(n,r),k.each(e,function(r,o){var a=n(r,o,e);t(i,r,a)}),i}};k.groupBy=N(function(t,e,n){k.has(t,n)?t[n].push(e):t[n]=[e]}),k.indexBy=N(function(t,e,n){t[n]=e}),k.countBy=N(function(t,e,n){k.has(t,n)?t[n]++:t[n]=1}),k.toArray=function(t){return t?k.isArray(t)?p.call(t):T(t)?k.map(t,k.identity):k.values(t):[]},k.size=function(t){return null==t?0:T(t)?t.length:k.keys(t).length},k.partition=function(t,e,n){e=E(e,n);var r=[],i=[];return k.each(t,function(t,n,o){(e(t,n,o)?r:i).push(t)}),[r,i]},k.first=k.head=k.take=function(t,e,n){if(null!=t)return null==e||n?t[0]:k.initial(t,t.length-e)},k.initial=function(t,e,n){return p.call(t,0,Math.max(0,t.length-(null==e||n?1:e)))},k.last=function(t,e,n){if(null!=t)return null==e||n?t[t.length-1]:k.rest(t,Math.max(0,t.length-e))},k.rest=k.tail=k.drop=function(t,e,n){return p.call(t,null==e||n?1:e)},k.compact=function(t){return k.filter(t,k.identity)};var P=function(t,e,n,r){for(var i=[],o=0,a=r||0,s=A(t);a<s;a++){var u=t[a];if(T(u)&&(k.isArray(u)||k.isArguments(u))){e||(u=P(u,e,n));var c=0,l=u.length;for(i.length+=l;c<l;)i[o++]=u[c++]}else n||(i[o++]=u)}return i};k.flatten=function(t,e){return P(t,e,!1)},k.without=function(t){return k.difference(t,p.call(arguments,1))},k.uniq=k.unique=function(t,e,n,r){k.isBoolean(e)||(r=n,n=e,e=!1),null!=n&&(n=E(n,r));for(var i=[],o=[],a=0,s=A(t);a<s;a++){var u=t[a],c=n?n(u,a,t):u;e?(a&&o===c||i.push(u),o=c):n?k.contains(o,c)||(o.push(c),i.push(u)):k.contains(i,u)||i.push(u)}return i},k.union=function(){return k.uniq(P(arguments,!0,!0))},k.intersection=function(t){for(var e=[],n=arguments.length,r=0,i=A(t);r<i;r++){var o=t[r];if(!k.contains(e,o)){for(var a=1;a<n&&k.contains(arguments[a],o);a++);a===n&&e.push(o)}}return e},k.difference=function(t){var e=P(arguments,!0,!0,1);return k.filter(t,function(t){return!k.contains(e,t)})},k.zip=function(){return k.unzip(arguments)},k.unzip=function(t){for(var e=t&&k.max(t,A).length||0,n=Array(e),r=0;r<e;r++)n[r]=k.pluck(t,r);return n},k.object=function(t,e){for(var n={},r=0,i=A(t);r<i;r++)e?n[t[r]]=e[r]:n[t[r][0]]=t[r][1];return n},k.findIndex=o(1),k.findLastIndex=o(-1),k.sortedIndex=function(t,e,n,r){n=E(n,r,1);for(var i=n(e),o=0,a=A(t);o<a;){var s=Math.floor((o+a)/2);n(t[s])<i?o=s+1:a=s}return o},k.indexOf=a(1,k.findIndex,k.sortedIndex),k.lastIndexOf=a(-1,k.findLastIndex),k.range=function(t,e,n){null==e&&(e=t||0,t=0),n=n||1;for(var r=Math.max(Math.ceil((e-t)/n),0),i=Array(r),o=0;o<r;o++,t+=n)i[o]=t;return i};var L=function(t,e,n,r,i){if(!(r instanceof e))return t.apply(n,i);var o=C(t.prototype),a=t.apply(o,i);return k.isObject(a)?a:o};k.bind=function(t,e){if(g&&t.bind===g)return g.apply(t,p.call(arguments,1));if(!k.isFunction(t))throw new TypeError("Bind must be called on a function");var n=p.call(arguments,2),r=function(){return L(t,r,e,this,n.concat(p.call(arguments)))};return r},k.partial=function(t){var e=p.call(arguments,1),n=function(){for(var r=0,i=e.length,o=Array(i),a=0;a<i;a++)o[a]=e[a]===k?arguments[r++]:e[a];for(;r<arguments.length;)o.push(arguments[r++]);return L(t,n,this,this,o)};return n},k.bindAll=function(t){var e,n,r=arguments.length;if(r<=1)throw new Error("bindAll must be passed function names");for(e=1;e<r;e++)n=arguments[e],t[n]=k.bind(t[n],t);return t},k.memoize=function(t,e){var n=function(r){var i=n.cache,o=""+(e?e.apply(this,arguments):r);return k.has(i,o)||(i[o]=t.apply(this,arguments)),i[o]};return n.cache={},n},k.delay=function(t,e){var n=p.call(arguments,2);return setTimeout(function(){return t.apply(null,n)},e)},k.defer=k.partial(k.delay,k,1),k.throttle=function(t,e,n){var r,i,o,a=null,s=0;n||(n={});var u=function(){s=!1===n.leading?0:k.now(),a=null,o=t.apply(r,i),a||(r=i=null)};return function(){var c=k.now();s||!1!==n.leading||(s=c);var l=e-(c-s);return r=this,i=arguments,l<=0||l>e?(a&&(clearTimeout(a),a=null),s=c,o=t.apply(r,i),a||(r=i=null)):a||!1===n.trailing||(a=setTimeout(u,l)),o}},k.debounce=function(t,e,n){var r,i,o,a,s,u=function(){var c=k.now()-a;c<e&&c>=0?r=setTimeout(u,e-c):(r=null,n||(s=t.apply(o,i),r||(o=i=null)))};return function(){o=this,i=arguments,a=k.now();var c=n&&!r;return r||(r=setTimeout(u,e)),c&&(s=t.apply(o,i),o=i=null),s}},k.wrap=function(t,e){return k.partial(e,t)},k.negate=function(t){return function(){return!t.apply(this,arguments)}},k.compose=function(){var t=arguments,e=t.length-1;return function(){for(var n=e,r=t[e].apply(this,arguments);n--;)r=t[n].call(this,r);return r}},k.after=function(t,e){return function(){if(--t<1)return e.apply(this,arguments)}},k.before=function(t,e){var n;return function(){return--t>0&&(n=e.apply(this,arguments)),t<=1&&(e=null),n}},k.once=k.partial(k.before,2);var I=!{toString:null}.propertyIsEnumerable("toString"),D=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];k.keys=function(t){if(!k.isObject(t))return[];if(b)return b(t);var e=[];for(var n in t)k.has(t,n)&&e.push(n);return I&&s(t,e),e},k.allKeys=function(t){if(!k.isObject(t))return[];var e=[];for(var n in t)e.push(n);return I&&s(t,e),e},k.values=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=t[e[i]];return r},k.mapObject=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=i.length,a={},s=0;s<o;s++)r=i[s],a[r]=e(t[r],r,t);return a},k.pairs=function(t){for(var e=k.keys(t),n=e.length,r=Array(n),i=0;i<n;i++)r[i]=[e[i],t[e[i]]];return r},k.invert=function(t){for(var e={},n=k.keys(t),r=0,i=n.length;r<i;r++)e[t[n[r]]]=n[r];return e},k.functions=k.methods=function(t){var e=[];for(var n in t)k.isFunction(t[n])&&e.push(n);return e.sort()},k.extend=x(k.allKeys),k.extendOwn=k.assign=x(k.keys),k.findKey=function(t,e,n){e=E(e,n);for(var r,i=k.keys(t),o=0,a=i.length;o<a;o++)if(r=i[o],e(t[r],r,t))return r},k.pick=function(t,e,n){var r,i,o={},a=t;if(null==a)return o;k.isFunction(e)?(i=k.allKeys(a),r=O(e,n)):(i=P(arguments,!1,!1,1),r=function(t,e,n){return e in n},a=Object(a));for(var s=0,u=i.length;s<u;s++){var c=i[s],l=a[c];r(l,c,a)&&(o[c]=l)}return o},k.omit=function(t,e,n){if(k.isFunction(e))e=k.negate(e);else{var r=k.map(P(arguments,!1,!1,1),String);e=function(t,e){return!k.contains(r,e)}}return k.pick(t,e,n)},k.defaults=x(k.allKeys,!0),k.create=function(t,e){var n=C(t);return e&&k.extendOwn(n,e),n},k.clone=function(t){return k.isObject(t)?k.isArray(t)?t.slice():k.extend({},t):t},k.tap=function(t,e){return e(t),t},k.isMatch=function(t,e){var n=k.keys(e),r=n.length;if(null==t)return!r;for(var i=Object(t),o=0;o<r;o++){var a=n[o];if(e[a]!==i[a]||!(a in i))return!1}return!0};var q=function(t,e,n,r){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return t===e;t instanceof k&&(t=t._wrapped),e instanceof k&&(e=e._wrapped);var i=v.call(t);if(i!==v.call(e))return!1;switch(i){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e}var o="[object Array]"===i;if(!o){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,s=e.constructor;if(a!==s&&!(k.isFunction(a)&&a instanceof a&&k.isFunction(s)&&s instanceof s)&&"constructor"in t&&"constructor"in e)return!1}n=n||[],r=r||[];for(var u=n.length;u--;)if(n[u]===t)return r[u]===e;if(n.push(t),r.push(e),o){if((u=t.length)!==e.length)return!1;for(;u--;)if(!q(t[u],e[u],n,r))return!1}else{var c,l=k.keys(t);if(u=l.length,k.keys(e).length!==u)return!1;for(;u--;)if(c=l[u],!k.has(e,c)||!q(t[c],e[c],n,r))return!1}return n.pop(),r.pop(),!0};k.isEqual=function(t,e){return q(t,e)},k.isEmpty=function(t){return null==t||(T(t)&&(k.isArray(t)||k.isString(t)||k.isArguments(t))?0===t.length:0===k.keys(t).length)},k.isElement=function(t){return!(!t||1!==t.nodeType)},k.isArray=m||function(t){return"[object Array]"===v.call(t)},k.isObject=function(t){var e=typeof t;return"function"===e||"object"===e&&!!t},k.each(["Arguments","Function","String","Number","Date","RegExp","Error"],function(t){k["is"+t]=function(e){return v.call(e)==="[object "+t+"]"}}),k.isArguments(arguments)||(k.isArguments=function(t){return k.has(t,"callee")}),"function"!=typeof/./&&"object"!=typeof Int8Array&&(k.isFunction=function(t){return"function"==typeof t||!1}),k.isFinite=function(t){return isFinite(t)&&!isNaN(parseFloat(t))},k.isNaN=function(t){return k.isNumber(t)&&t!==+t},k.isBoolean=function(t){return!0===t||!1===t||"[object Boolean]"===v.call(t)},k.isNull=function(t){return null===t},k.isUndefined=function(t){return void 0===t},k.has=function(t,e){return null!=t&&y.call(t,e)},k.noConflict=function(){return u._=c,this},k.identity=function(t){return t},k.constant=function(t){return function(){return t}},k.noop=function(){},k.property=j,k.propertyOf=function(t){return null==t?function(){}:function(e){return t[e]}},k.matcher=k.matches=function(t){return t=k.extendOwn({},t),function(e){return k.isMatch(e,t)}},k.times=function(t,e,n){var r=Array(Math.max(0,t));e=O(e,n,1);for(var i=0;i<t;i++)r[i]=e(i);return r},k.random=function(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))},k.now=Date.now||function(){return(new Date).getTime()};var R={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},M=k.invert(R),B=function(t){var e=function(e){return t[e]},n="(?:"+k.keys(t).join("|")+")",r=RegExp(n),i=RegExp(n,"g");return function(t){return t=null==t?"":""+t,r.test(t)?t.replace(i,e):t}};k.escape=B(R),k.unescape=B(M),k.result=function(t,e,n){var r=null==t?void 0:t[e];return void 0===r&&(r=n),k.isFunction(r)?r.call(t):r};var F=0;k.uniqueId=function(t){var e=++F+"";return t?t+e:e},k.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var z=/(.)^/,U={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},H=/\\|'|\r|\n|\u2028|\u2029/g,W=function(t){return"\\"+U[t]};k.template=function(t,e,n){!e&&n&&(e=n),e=k.defaults({},e,k.templateSettings);var r=RegExp([(e.escape||z).source,(e.interpolate||z).source,(e.evaluate||z).source].join("|")+"|$","g"),i=0,o="__p+='";t.replace(r,function(e,n,r,a,s){return o+=t.slice(i,s).replace(H,W),i=s+e.length,n?o+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?o+="'+\n((__t=("+r+"))==null?'':__t)+\n'":a&&(o+="';\n"+a+"\n__p+='"),e}),o+="';\n",e.variable||(o="with(obj||{}){\n"+o+"}\n"),o="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+o+"return __p;\n";try{var a=new Function(e.variable||"obj","_",o)}catch(t){throw t.source=o,t}var s=function(t){return a.call(this,t,k)};return s.source="function("+(e.variable||"obj")+"){\n"+o+"}",s},k.chain=function(t){var e=k(t);return e._chain=!0,e};var K=function(t,e){return t._chain?k(e).chain():e};k.mixin=function(t){k.each(k.functions(t),function(e){var n=k[e]=t[e];k.prototype[e]=function(){var t=[this._wrapped];return h.apply(t,arguments),K(this,n.apply(k,t))}})},k.mixin(k),k.each(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=l[t];k.prototype[t]=function(){var n=this._wrapped;return e.apply(n,arguments),"shift"!==t&&"splice"!==t||0!==n.length||delete n[0],K(this,n)}}),k.each(["concat","join","slice"],function(t){var e=l[t];k.prototype[t]=function(){return K(this,e.apply(this._wrapped,arguments))}}),k.prototype.value=function(){return this._wrapped},k.prototype.valueOf=k.prototype.toJSON=k.prototype.value,k.prototype.toString=function(){return""+this._wrapped},r=[],void 0!==(i=function(){return k}.apply(e,r))&&(t.exports=i)}).call(this)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"AccessDeniedError",function(){return s}),n.d(e,"ArgumentError",function(){return u}),n.d(e,"ClientError",function(){return a}),n.d(e,"InternalError",function(){return c}),n.d(e,"InterpolationError",function(){return b}),n.d(e,"CurrentPageNotFoundError",function(){return m}),n.d(e,"NavigateToEmptyBinaryError",function(){return y}),n.d(e,"ResourceNotFoundError",function(){return f}),n.d(e,"RequestFailedError",function(){return l}),n.d(e,"ScrivitoError",function(){return o}),n.d(e,"TransformationSourceInvalidError",function(){return p}),n.d(e,"TransformationSourceTooLargeError",function(){return h}),n.d(e,"TranslationError",function(){return v}),n.d(e,"UnauthorizedError",function(){return d});var i=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),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,n,r){var i=t.call(this,e)||this;return i.httpCode=n,i.backendCode=r,i}return i(e,t),e.for=function(t,n,r){return"binary.unprocessable.image.transform.source.too_large"===r?new h(t,n,r):r&&-1!==r.indexOf("binary.unprocessable.image.transform.source.")?new p(t,n,r):new e(t,n,r)},e}(o),s=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),u=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),c=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),l=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return i(e,t),e}(o),f=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(o),d=function(t){function e(e,n,r,i){var o=t.call(this,e,n,r)||this;return o.details=i||{},o}return i(e,t),e}(a),h=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),p=function(t){function e(e,n,r){return t.call(this,e,n,r)||this}return i(e,t),e}(a),v=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),y=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),m=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(c),b=function(t){function e(e){return t.call(this,e)||this}return i(e,t),e}(v)},,function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t){return h(t)||d(t)||f()}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function h(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function p(t,e){if(!u(t,e))throw new TypeError("Cannot call a class as a function")}function v(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");y(t.prototype,e&&e.prototype),e&&y(t,e)}function y(t,e){return(y=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function m(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?b(t):e}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function g(t,e,n){return(g="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=w(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function w(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=_(t)););return t}function _(t){return(_=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function k(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function O(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),t}function E(t){if(!t)throw new F.ArgumentError('Please provide an obj class as the "_objClass" property.')}function x(t){var e={},n={};return B.a.each(t,function(t,r){if(B.a.isArray(t)&&"widgetlist"===B.a.first(t)){var i=B.a.map(B.a.last(t),function(t){return D.a.newWithSerializedAttributes(t)}),o=Object(H.a)(r);n[o]=[i,["widgetlist"]]}else e[r]=t}),e._id||(e._id=Y.generateId()),[e,n]}function C(t){return Y.all().and("_parentPath","equals",t)}function j(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return"/"===t?["/"].concat(l(e)):j(S(t),[t].concat(l(e)))}function S(t){var e=t.split("/");return e.pop(),1===e.length?"/":e.join("/")}function A(t){var e=["_path"];if(B.a.difference(B.a.keys(t),e).length)throw new F.ArgumentError('Currently only "_path" copy option is supported.')}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"default",function(){return Y});var T=n(155),N=n(211),P=n(48),L=n(58),I=n(116),D=n(32),q=n(54),R=n(117),M=n(0),B=n.n(M),F=n(1),z=n(71),U=n(120),H=n(23),W=n(121),K=n(4),V=n(17),Q={_id:"id",_obj_class:"objClass",_path:"path",_permalink:"permalink",_created_at:"createdAt",_created_by:"createdBy",_last_changed:"lastChanged",_last_changed_by:"lastChangedBy"},Y=function(t){function e(t){var n;return p(this,e),n=m(this,_(e).call(this)),n.objData=t,n}return O(e,null,[{key:"get",value:function(t){var e=this.getIncludingDeleted(t);if(e&&!e.isDeleted())return e}},{key:"getIncludingDeleted",value:function(t){var n=L.b(t);if(n){var r=new e(n);if(!r.isFinallyDeleted())return r}}},{key:"create",value:function(t){var e=scrivito.typeInfo.normalizeAttrs(t);E(e._objClass),e._id||(e._id=[this.generateId()]);var n={_id:e._id,_obj_class:e._objClass};return this.createWithSerializedAttributes(scrivito.typeInfo.unwrapAttributes(n),B.a.omit(t,"_objClass","_id"))}},{key:"addChildWithSerializedAttributes",value:function(t,n){var r=e.generateId();return this.createWithSerializedAttributes(B.a.extend({},n,{_id:r,_path:"".concat(t,"/").concat(r)}))}},{key:"createWithSerializedAttributes",value:function(t,n){if(!n)return this.createWithSerializedAttributes.apply(this,l(x(t)));var r=L.a(t._id);r.update(t);var i=new e(r);return i.update(n),i}},{key:"generateId",value:function(){return Object(U.b)()}},{key:"all",value:function(){return(new q.b).batchSize(1e3)}},{key:"root",value:function(){return e.getByPath("/")}},{key:"where",value:function(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return(new q.b).and(t,e,n,r)}},{key:"getByPath",value:function(t){var e=Object(W.b)(this.where("_path","equals",t));if(e)return e}},{key:"getByPermalink",value:function(t){var e=this.where("_permalink","equals",t),n=Object(W.b)(e);if(n)return n}}]),O(e,[{key:"id",value:function(){return this.getAttributeData("_id")}},{key:"objClass",value:function(){return this.getAttributeData("_obj_class")}},{key:"obj",value:function(){return this}},{key:"createdAt",value:function(){return Object(P.g)(this.getAttributeData("_created_at"))}},{key:"createdBy",value:function(){return this.getAttributeData("_created_by")}},{key:"lastChanged",value:function(){var t=this.getAttributeData("_last_changed");return t?Object(P.g)(t):null}},{key:"lastChangedBy",value:function(){return this.getAttributeData("_last_changed_by")||null}},{key:"version",value:function(){return this.getAttributeData("_version")}},{key:"path",value:function(){return this.getAttributeData("_path")||null}},{key:"permalink",value:function(){return this.getAttributeData("_permalink")||null}},{key:"parentPath",value:function(){if(this.path()&&"/"!==this.path())return S(this.path())}},{key:"parent",value:function(){var t=this.parentPath();if(t)return e.getByPath(t)}},{key:"hasConflicts",value:function(){return!!this.getAttributeData("_conflicts")}},{key:"modification",value:function(){return this.isFinallyDeleted()||this.getAttributeData("_marked_deleted")?"deleted":this.getAttributeData("_modification")||null}},{key:"isModified",value:function(){return!!this.modification()}},{key:"isNew",value:function(){return"new"===this.modification()}},{key:"isEdited",value:function(){return"edited"===this.modification()}},{key:"isDeleted",value:function(){return"deleted"===this.modification()}},{key:"isFinallyDeleted",value:function(){return this.objData.isNonExistent()}},{key:"contentLength",value:function(){return this._binaryData("contentLength")}},{key:"contentType",value:function(){return this._binaryData("contentType")}},{key:"contentUrl",value:function(){return this._binaryData("url")}},{key:"metadata",value:function(){return this._binaryData("metadata")}},{key:"children",value:function(){var t=this.path();if(!t)return[];var e=C(t);return Object(W.a)(e)}},{key:"hasChildren",value:function(){var t=this.path();return!!t&&C(t).batchSize(0).count()>0}},{key:"orderedChildren",value:function(){var t=this.children(),e=this.get("childOrder","referencelist");return B.a.isArray(e)?B.a.sortBy(t,function(t){var n=B.a.invoke(e,"id"),r=n.indexOf(t.id());return-1===r?e.length:r}):t}},{key:"backlinks",value:function(){return Object(W.a)(e.where("*","linksTo",this))}},{key:"ancestors",value:function(){var t=this.parentPath();return t?j(t).map(function(t){return e.getByPath(t)}):[]}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(K.j)(function(){e._persistWidgets(e,n);var t=I.a(n);e.objData.update(t)}),this.startLinkResolution()}},{key:"destroy",value:function(){this.update({_markedDeleted:[!0]})}},{key:"insertWidget",value:function(t,e){var n=e.before,r=e.after,i=(n||r).id(),o=this._widgetPlacementFor(i),a=o.attributeValue,s=o.attributeName,u=o.container,f=o.index,d=n?f:f+1,h=l(a.slice(0,d)).concat([t],l(a.slice(d)));u.update(c({},s,[h,"widgetlist"]))}},{key:"removeWidget",value:function(t){var e=this.fieldContainingWidget(t);e.update(B.a.reject(e.get(),function(e){return e.equals(t)}))}},{key:"copyAsync",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return A(t),this._copyAttributes().then(function(n){var r=B.a.extend(n,t),i=e.createWithSerializedAttributes(r);return i.objData.finishSaving().then(function(){return i})})}},{key:"moveToAsync",value:function(t){return this.update({_path:["".concat(t,"/").concat(this.id())]}),this.finishSaving()}},{key:"markResolvedAsync",value:function(){return this.update({_conflicts:[null]}),this.finishSaving()}},{key:"finishSaving",value:function(){var t=this;return this.finishLinkResolution().then(function(){return t.objData.finishSaving()})}},{key:"equals",value:function(t){return!!u(t,e)&&this.id()===t.id()}},{key:"widget",value:function(t){return this.getWidgetAttribute(t,"_obj_class")?D.a.build(t,this):null}},{key:"getWidgetAttribute",value:function(t,e){return this.objData.getWidgetAttribute(t,e)}},{key:"widgets",value:function(){var t=this,e=this.getData()._widget_pool||{};return Object.keys(e).map(function(e){return t.widget(e)})}},{key:"fieldContainingWidget",value:function(t){var e=this._widgetPlacementFor(t.id()),n=e.container,r=e.attributeName;return n.field(r,"widgetlist")}},{key:"generateWidgetId",value:function(){for(var t=0;t<10;t++){var e=Object(U.a)();if(!this.widget(e))return e}throw new F.InternalError("Could not generate a new unused widget id.")}},{key:"serializeAttributes",value:function(){var t=g(_(e.prototype),"serializeAttributes",this).call(this);return delete t._conflicts,delete t._modification,delete t._created_at,delete t._created_by,delete t._last_changed,delete t._last_changed_by,t}},{key:"slug",value:function(){var t=this.get("title","string");return Object(N.a)(t)}},{key:"getAttributeData",value:function(t){return this.objData.getAttribute(t)}},{key:"getData",value:function(){return this.objData.get()}},{key:"getWidgetData",value:function(t){return this.objData.getWidget(t)}},{key:"startLinkResolution",value:function(){V.b.startLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"finishLinkResolution",value:function(){return V.b.finishLinkResolutionFor(scrivito.currentWorkspaceId(),this.id())}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'"]')}},{key:"_binaryData",value:function(t){var e=this.get("blob","binary");return e&&e.raw()[t]()}},{key:"_hasParentPath",value:function(){return this.path()&&"/"!==this.path()}},{key:"_copyAttributes",value:function(){var t=e.generateId(),n=this.serializeAttributes(),r=[];return B.a.each(n,function(e,o){if("_"===o[0])return void delete n[o];var a=i(e,2),s=a[0],u=a[1];if("binary"===s&&u){var c=new z.a({idToCopy:u.id}),l=c.intoId(t).then(function(t){return{name:o,binary:t}});r.push(l)}}),n._id=t,n._obj_class=this.objClass(),this.path()&&(n._path="".concat(this.parentPath(),"/").concat(t)),scrivito.Promise.all(r).then(function(t){return B.a.each(t,function(t){var e=t.name,r=t.binary;n[e]=["binary",{id:r.id()}]}),n})}},{key:"_widgetPlacementFor",value:function(t){var e=Object(T.a)(this.getData(),t),n=e.parentWidgetId?this.widget(e.parentWidgetId):this,r=Object(H.a)(e.attributeName),i=n.get(r,"widgetlist");return B.a.extend(e,{container:n,attributeName:r,attributeValue:i})}},{key:"_systemAttributes",get:function(){return Q}}]),v(e,t),e}(R.a)},function(t,e,n){"use strict";function r(t){t?(f=void 0,d=t.stateController(),h=t.createAppState(),p=t.cmsState()):(f=new m.a,d=f,h=i(),p=f.subState("cms"),v=f.subState("ui"))}function i(){if(!f)throw new y.InternalError;var t=(b++).toString();return f.subState("apps").subState(t)}function o(t){return d.withBatchedUpdates(t)}function a(t){return d.subscribe(t)}function s(t){return d.trackChanges(t)}function u(t,e){return d.withFrozenState(t,e)}function c(t){return d.failIfFrozen(t)}function l(t){return d.failIfTracking(t)}n.d(e,"a",function(){return h}),n.d(e,"b",function(){return p}),n.d(e,"i",function(){return v}),e.f=r,e.c=i,e.j=o,e.g=a,e.h=s,e.k=u,e.d=c,e.e=l;var f,d,h,p,v,y=n(1),m=n(164),b=0},function(t,e,n){function r(t,e){!0!==t&&(i(e)?e=e():o(e)&&(e='Assert failed (turn on "Pause on exceptions" in your Source panel)'),r.fail(e))}var i=n(10),o=n(25),a=n(184),s=n(105);r.fail=a,r.stringify=s,t.exports=r},,function(t,e,n){"use strict";function r(t){function e(){var n=Object(o.a)(function(){try{return{errorThrown:!1,run:o.b.run(function(){return Object(a.k)({contextName:"Scrivito.load",message:"Use an async callback: Scrivito.load(/* ... */).then(/* ... */)."},t)})}}catch(t){return{errorThrown:!0,error:t}}});if(!n.isAllDataUpToDate()){n.loadRequiredData();var r=new i.a,s=Object(a.g)(function(){r.resolve(void 0),s()});return r.promise.then(e)}var u=n.result;if(u.errorThrown)throw u.error;var l=u.run;if(!l.success)throw new c.InternalError;return l.result}return l(t),new scrivito.Promise(function(t){return t(e())})}var i=n(12),o=n(18),a=n(4),s=n(39),u=n(24),c=n(1),l=Object(s.a)("load",[["loadableFunction",u.a.Function]],{docPermalink:"js-sdk/load"});e.a=r},function(t,e,n){var r=n(11),i=n(51);t.exports=function(t){return r(t)?t.displayName:i(t)}},,function(t,e){t.exports=function(t){return"function"==typeof t}},function(t,e,n){var r=n(10),i=n(27);t.exports=function(t){return r(t)&&i(t.meta)}},function(t,e,n){"use strict";var r=function(){function t(){var t=this;this.promise=new scrivito.Promise(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}();e.a=r},function(t,e){t.exports=React},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){if("function"!=typeof t)throw new d.ArgumentError("Scrivito.connect expects either a plain function or a subclass of React.Component");return u(t)?t:o(s(t)?t:a(t))}function o(t){var e=(n=function(t){function e(e){var n=t.call(this,e)||this;return n._scrivitoPrivateConnector=new m(n),n}return y(e,t),e.prototype.componentWillMount=function(){this._scrivitoPrivateConnector.componentWillMount(),t.prototype.componentWillMount&&t.prototype.componentWillMount.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),n._isScrivitoConnectedComponent=!0,n);return e.displayName=Object(v.a)(t),e;var n}function a(t){var e=function(e){function n(){return null!==e&&e.apply(this,arguments)||this}return y(n,e),n.prototype.render=function(){return t(this.props)},n}(l.Component);return e.displayName=Object(v.a)(t),e}function s(t){return"function"==typeof t&&t.prototype&&t.prototype.isReactComponent}function u(t){return!0===t._isScrivitoConnectedComponent}function c(t){return!!t._scrivitoRenderWhileLoading}e.a=i;var l=n(13),f=(n.n(l),n(18)),d=n(1),h=n(4),p=n(81),v=n(122),y=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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(){function t(t){this.component=t}return t.prototype.componentWillMount=function(){var t=this;this.unsubscribeModelState=Object(h.g)(function(){t.isStateChangeDetected&&t.isStateChangeDetected()&&t.component.forceUpdate()})},t.prototype.componentWillUnmount=function(){this.unregisterLoadingActivity(),this.unsubscribeModelState&&this.unsubscribeModelState()},t.prototype.render=function(t){var e,n=this;return this.isStateChangeDetected=Object(h.h)(function(){var r=Object(f.a)(function(){return f.b.run(function(){return Object(h.k)({contextName:"React.Component#render",message:"Use one of the React lifecycle hooks."},t)})});r.loadRequiredData();var i=r.result;if(r.isAllDataLoaded()){if(n.unregisterLoadingActivity(),!i.success)throw new d.InternalError;e=i.result}else{n.unregisterLoadingActivityCallback||(n.unregisterLoadingActivityCallback=Object(p.c)());var o=i.success?i.result:null;e=n.handleLoading(o)}}),e},t.prototype.handleLoading=function(t){return c(this.component)?this.component._scrivitoRenderWhileLoading():t},t.prototype.unregisterLoadingActivity=function(){var t=this.unregisterLoadingActivityCallback;t&&(delete this.unregisterLoadingActivityCallback,t())},t}()},,function(t,e,n){n(5),n(65),n(10),n(52);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}},function(t,e,n){"use strict";function r(t){i=t}n.d(e,"b",function(){return i}),e.a=r;var i},function(t,e,n){"use strict";function r(){var t=d.current();t&&(t.allDataLoaded=!1)}function i(t){return f.runWith(!1,t)}var o=n(1),a=n(103),s=n(175),u=n(69),c=n(176),l=n(103);n.d(e,"a",function(){return l.a});var f=new u.a,d=new u.a,h=function(){function t(t){var e=t.state,n=t.loader,r=t.invalidation,i=t.throwNotLoaded;if(!e)throw new o.InternalError("LoadableData needs state");this.value=new s.a(e),this.loader=n,this.invalidation=r,this.throwNotLoaded=i||!1,this.id=e.id()}return t.throwNotLoaded=function(){throw r(),new scrivito.NotLoadedError(f.current())},t.run=function(t){var e={allDataLoaded:!0};try{return{success:!0,result:d.runWith(e,function(){return i(t)}),allDataLoaded:e.allDataLoaded}}catch(t){if(e.allDataLoaded)throw t;return{success:!1,allDataLoaded:!1}}},t.prototype.ensureAvailable=function(){var e=this;if(this.isAvailable())return this.reloadIfOutdated(),!0;if(this.isError())throw this.reloadIfOutdated(),this.value.error();return r(),a.b(function(){return e.progressLoading()}),this.throwNotLoaded&&t.throwNotLoaded(),!1},t.prototype.get=function(){if(this.ensureAvailable())return this.value.value()},t.prototype.reader=function(){return this.value.reader()},t.prototype.set=function(t){this.value.transitionToAvailable(t,this.currentVersion()),Object(c.c)(this.id)},t.prototype.setError=function(t){this.transitionToError(t),Object(c.c)(this.id)},t.prototype.reset=function(){this.value.transitionToMissing(),Object(c.c)(this.id)},t.prototype.isMissing=function(){return"MISSING"===this.value.status()},t.prototype.isLoading=function(){return Object(c.a)(this.id)},t.prototype.isAvailable=function(){return"AVAILABLE"===this.value.status()},t.prototype.isError=function(){return"ERROR"===this.value.status()},t.prototype.triggerLoading=function(){var t=this,e=this.currentVersion();Object(c.b)(this.id,function(e){var n=e.wasCancelled,r=e.push;return t.loader({push:r,isReload:function(){return t.hasBeenInvalidated()},wasCancelled:n})},function(n){t.value.transitionToAvailable(n,e)},function(n){t.transitionToError(n,e)})},t.prototype.transitionToError=function(t,e){void 0===e&&(e=this.currentVersion()),this.value.transitionToError(t,e)},t.prototype.reloadIfOutdated=function(){var t=this;this.hasBeenInvalidated()&&a.c(function(){return t.progressLoading()})},t.prototype.progressLoading=function(){(this.hasBeenInvalidated()||this.isMissing())&&this.triggerLoading()},t.prototype.hasBeenInvalidated=function(){return!!this.invalidation&&(!this.isMissing()&&this.currentVersion()!==this.value.version())},t.prototype.currentVersion=function(){var t=this.invalidation;if(t){var e=t();if("number"==typeof e&&isNaN(e)){var n="invalidation callback returned unsuitable version "+e;throw new o.InternalError(n)}return e}},t}();e.b=h},,function(t,e,n){var r=n(25),i=n(65);t.exports=function(t){return r(t)||i(t)}},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function o(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().catch(function(n){if(i(n,k.RequestFailedError)){if(v&&e>5)throw n;var r=s(e);return Object(_.b)(r).then(function(){return o(t,e+1)})}throw n})}function a(t,e){return void 0===e&&(e=0),y?new scrivito.Promise(function(e){return e(t())}):t().then(function(n){if(429!==n.status)return n;if(v&&e>19)throw new Error("Maximum number of rate limit retries reached");var r=Number(n.getResponseHeader("Retry-After"))||0,i=Math.max(1e3*r,s(e));return Object(_.b)(i).then(function(){return a(t,e+1)})})}function s(t){return 500*Math.pow(2,Math.min(t,16))}function u(t){var e,n=t.status;try{e=JSON.parse(t.responseText)}catch(e){throw new k.RequestFailedError(t.responseText)}if(n>=200&&n<300)return e;if("auth_missing"===e.code){var r=e.details;if(r&&f(r)){var i=r.visit;if("string"==typeof i)return Object(x.d)(c(i)),{}}}throw l(n,e,t.responseText)}function c(t){var e=O.a.augmentedRedirectUrl(Object(x.c)());return t.replace("retry=RETRY","retry="+O.a.currentFailureCount()).replace(/\$RETURN_TO/,encodeURIComponent(e))}function l(t,e,n){if(401===t){var r=p(e);return new k.UnauthorizedError(r.error,t,r.code,r.details)}if(403===t){var r=p(e),i=r.code;if(!i||!d(i))throw new k.RequestFailedError("Authentication failure response no string value for code");return new k.AccessDeniedError(r.error,t,i)}if(e.error&&"4"===t.toString()[0]){var r=p(e);return k.ClientError.for(r.error,t,r.code)}return 500===t&&d(e.error)?new k.RequestFailedError(e.error):new k.RequestFailedError(n)}function f(t){return"object"===r(t)&&!Array.isArray(t)}function d(t){return"string"==typeof t}function h(t){return!!t&&!!t.task&&1===Object(m.size)(t)}function p(t){var e=t.error;if("string"!=typeof e)throw new k.RequestFailedError("Malformed error response (key error is not a string)");var n=t.code;if(void 0!==n&&!d(n))throw new k.RequestFailedError("Malformed error response (optional key code is not a string)");var r=t.details;if(void 0!==r&&!f(r))throw new k.RequestFailedError("Malformed error response (optional key details is not an object");return{code:n,error:e,details:r}}n.d(e,"a",function(){return j});var v,y,m=n(0),b=(n.n(m),n(33)),g=(n.n(b),n(12)),w=n(101),_=n(128),k=n(1),O=n(152),E=n(172),x=n(70),C=function(){function t(){this.initDeferred=new g.a,this.authHeaderValueProvider=E}return t.prototype.init=function(t,e,n){e&&(this.tenant=e,this.endpoint=t,this.url=b(t+"/tenants/"+e+"/perform").scheme("https").toString(),this.initDeferred.resolve(void 0)),n&&(this.authHeaderValueProvider=n)},t.prototype.get=function(t,e){return this._perform("GET",t,e)},t.prototype.put=function(t,e){return this._perform("PUT",t,e)},t.prototype.post=function(t,e){return this._perform("POST",t,e)},t.prototype.delete=function(t,e){return this._perform("DELETE",t,e)},t.prototype.requestBuiltInUserSession=function(t){var e=this;return this._ensureInitialized().then(function(){return e._ajax("PUT","sessions/"+t)}).then(function(t){return O.a.reset(),t})},t.prototype.enableForceVerification=function(){this.forceVerification=!0},t.prototype.currentPublicAuthorizationState=function(){return this.authHeaderValueProvider?this.authHeaderValueProvider.currentState?"[API] "+this.authHeaderValueProvider.currentState():"[API]: authorization provider without currentState()":"[API]: no authorization provider"},t.prototype._ensureInitialized=function(){return this.initDeferred.promise},t.prototype._perform=function(t,e,n){var r=this;return this._ensureInitialized().then(function(){return r._send(t,e,n).then(function(t){return h(t)?r._handleTask(t.task):t})})},t.prototype._send=function(t,e,n){var r=this;return this.authHeaderValueProvider.perform(function(i){return r._ajax(t,e,n,i)})},t.prototype._ajax=function(t,e,n,r){function i(){return a(function(){return Object(w.a)(t,s,f)}).then(u)}var s=this.url,c=this.forceVerification,l={path:e,verb:t,params:n||{}},f={params:l,authorization:r,forceVerification:c};return"POST"===t?i():o(i)},t.prototype._handleTask=function(t){var e=this;switch(t.status){case"success":return t.result;case"error":throw k.ClientError.for(t.message,412,t.code);case"open":return Object(_.a)(2).then(function(){return e.get("tasks/"+t.id).then(function(t){return e._handleTask(t)})});default:throw new k.RequestFailedError("Invalid task response (unknown status)")}},t}(),j=new C},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(Object(c.isArray)(e))return Object(c.map)(e,function(e){return i(t,e)});if(r(e,f.default))return o(e,t.objClassFor(e.objClass()));if(r(e,d.a)){var n=e.objClass();return o(e,t.widgetClassFor(n))}return r(e,h.a)?t.defaultClassForLinks.build(e.buildAttributes()):e}function o(t,e){var n=Object.create(e.prototype);return n._scrivitoPrivateContent=t,n}function a(t){return Object(c.isArray)(t)?Object(c.map)(t,s):s(t)}function s(t){return t&&t._scrivitoPrivateContent?t._scrivitoPrivateContent:t}function u(t,e,n){return Object(c.mapObject)(t,function(t,r){if(Object(l.a)(r))return[t];var i=e.attributes[r];if(!i)throw new p.ArgumentError('Attribute "'.concat(r,'" is not defined for CMS object ')+'class "'.concat(n,'".'));return[a(t),i]})}e.e=i,e.a=o,e.d=a,e.c=s,e.b=u;var c=n(0),l=(n.n(c),n(47)),f=n(3),d=n(32),h=n(34),p=n(1)},function(t,e,n){"use strict";function r(t){return f.test(t)}function i(t){return t.replace(c,function(t,e){return"_".concat(e.toLowerCase())})}function o(t){return t.replace(u,function(t,e,n,r){return r?n.toUpperCase()===n?t:"".concat(e.substr(1)).concat(n.toUpperCase()):t})}function a(t){var e=o(t);return e.charAt(0).toUpperCase()+e.slice(1)}function s(t){return t.replace(d," ").replace(h,function(t){return" ".concat(t.toLowerCase())}).replace(l,function(t){return" ".concat(t)}).trim().replace(/./,function(t){return t.toUpperCase()})}e.c=r,e.e=i,e.a=o,e.b=a,e.d=s;var u=/(_+)(\w)/g,c=/([A-Z])/g,l=/[A-Z]+|\d+/g,f=/^_?(_+[A-Z0-9]|[^_])+$/,d=/[_\s]+/g,h=/[A-Z][a-z]+/g},function(t,e,n){"use strict";var r=n(182);n.n(r);n.d(e,"a",function(){return r}),r.struct.strict=!0,r.interface.strict=!0,r.fail=function(t){throw new TypeError(t)}},function(t,e){t.exports=function(t){return null===t||void 0===t}},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){var n=scrivito.computeCacheKey([t,e]);return v.b.subState("binary").subState(n)}function o(t,e){return function(){return p.a.retrieveBinaryUrls(t,e)}}var a=n(33),s=(n.n(a),n(0)),u=(n.n(s),n(71)),c=n(18),l=n(130),f=n(1),d=n(131),h=n(39),p=n(43),v=n(4),y=n(24),m="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",b={public_access:{get:{url:m}},private_access:{get:{url:m}}},g=function(){function t(t,e,n){this._id=t,this._isPublic=!!e,this._transformation=n,this._loadableData=new c.b({state:i(t,n),loader:o(t,n)})}return t.upload=function(t,e){if(k(t,e),!(d.b.is(t)||e&&e.filename))throw new f.ArgumentError("Expected a filename to be passed with Blob as the source.");return new u.a({source:t},e)},t.store=function(e,n,r){var a=n.transformation;new c.b({state:i(e,a),loader:o(e,a)}).set(r);var s=new t(e);return a?s.optimizeFor(a):s},t.storeMetadata=function(t,e){l.a.store(t,e)},t.prototype.id=function(){return this._id},t.prototype.copy=function(t){return new u.a({idToCopy:this._id},t)},t.prototype.isPrivate=function(){return!this._isPublic},t.prototype.optimizeFor=function(e){return new t(this._id,this._isPublic,Object(s.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)},t.prototype.isExplicitlyTransformed=function(){return this._isTransformed()&&!Object(s.isEmpty)(this._transformation)},t.prototype.isRaw=function(){return!this._isTransformed()},t.prototype.url=function(){var t=this._urlData()[this._accessType()];if(t)return t.get.url},t.prototype.filename=function(){var t=this.url();return!t||t.match(/^data:/)?"":a(t).path().split("/").pop()},t.prototype.metadata=function(){return this._assertNotTransformed("Metadata"),new l.a(this._id)},t.prototype.contentType=function(){return this._assertNotTransformed("Content type"),this.metadata().get("contentType")},t.prototype.contentLength=function(){return this._assertNotTransformed("Content length"),this.metadata().get("contentLength")||0},t.prototype.extname=function(){if(this.raw().filename().indexOf(".")>-1){var t=/[^.\\]*$/.exec(this.raw().filename());if(t)return t[0].toLowerCase()}},t.prototype.equals=function(e){return r(e,t)&&e.id()===this.id()&&e.isPrivate()===this.isPrivate()&&Object(s.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._urlData=function(){return this._loadableData.get()||b},t.prototype._assertNotTransformed=function(t){if(this._isTransformed())throw new f.ScrivitoError('"'+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}();e.a=g;var w=y.a.struct({contentType:y.a.maybe(y.a.String),filename:y.a.maybe(y.a.String)}),_=y.a.refinement(y.a.Object,function(t){return d.a.is(t)||d.b.is(t)},"Blob or File"),k=Object(h.a)("Binary.upload",[["source",_],["options",y.a.maybe(w)]],{docPermalink:"js-sdk/Binary-static-upload"})},function(t,e,n){var r=n(25),i=n(28);t.exports=function(t){return!r(t)&&"object"==typeof t&&!i(t)}},function(t,e){t.exports=function(t){return Array.isArray?Array.isArray(t):t instanceof Array}},function(t,e,n){var r=(n(5),n(106),n(11));n(8);t.exports=function(t){return!r(t)||t.meta.identity}},function(t,e,n){var r=n(11);n(51),n(5),n(105);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}},function(t,e,n){var r=n(11);t.exports=function(t,e){return r(e)?e.is(t):t instanceof e}},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function l(t,e){if(!c(t,e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");d(t.prototype,e&&e.prototype),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?p(t):e}function p(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e&&y(t.prototype,e),n&&y(t,n),t}function b(t){if(!t)throw new E.ArgumentError('Please provide a widget class as the "_objClass" property.')}n.d(e,"a",function(){return j});var g=n(116),w=n(117),_=n(0),k=n.n(_),O=n(23),E=n(1),x=n(4),C={_id:"id",_obj_class:"objClass"},j=function(t){function e(t){var n;return l(this,e),n=h(this,v(e).call(this)),n._attributesToBeSaved=scrivito.typeInfo.normalizeAttrs(t),b(t._objClass),n}return m(e,null,[{key:"build",value:function(t,n){var r=Object.create(e.prototype);return r._obj=n,r._id=t,r}},{key:"newWithSerializedAttributes",value:function(t){var n={},r={};k.a.each(t,function(t,i){if("_obj_class"===i)return void(n._objClass=[t]);if(k.a.isArray(t)&&"widgetlist"===k.a.first(t)){var o=k.a.map(k.a.last(t),function(t){return e.newWithSerializedAttributes(t)}),a=Object(O.a)(i);return void(n[a]=[o,["widgetlist"]])}r[i]=t});var i=new e(n);return i.preserializedAttributes=r,i}}]),m(e,[{key:"id",value:function(){return this._failIfNotPersisted(),this._id}},{key:"objClass",value:function(){return this.isPersisted()?this.getAttributeData("_obj_class"):this._attributesToBeSaved._objClass[0]}},{key:"obj",value:function(){return this._failIfNotPersisted(),this._obj}},{key:"widget",value:function(t){return this.obj().widget(t)}},{key:"update",value:function(t){var e=this,n=scrivito.typeInfo.normalizeAttrs(t);Object(x.j)(function(){e._persistWidgets(e.obj(),n);var t=g.a(n);e._updateSelf(t)})}},{key:"insertBefore",value:function(t){t.obj().insertWidget(this,{before:t})}},{key:"insertAfter",value:function(t){t.obj().insertWidget(this,{after:t})}},{key:"remove",value:function(){this.obj().removeWidget(this)}},{key:"copy",value:function(){return this.isPersisted()?this._copyPersisted():this._copyUnpersisted()}},{key:"persistInObj",value:function(t){this._persistWidgets(t,this._attributesToBeSaved);var e=g.a(this._attributesToBeSaved);k.a.extend(e,this.preserializedAttributes||{}),this._obj=t,this._id=t.generateWidgetId(),this._updateSelf(e),this._executeDidPersistCallback()}},{key:"isPersisted",value:function(){return!!this._obj}},{key:"onDidPersist",value:function(t){if(this.isPersisted())throw new E.ScrivitoError('Cannot call "onDidPersist" of an already persisted widget');this._onDidPersistCallback=t}},{key:"hasOnDidPersistCallback",value:function(){return!!this._onDidPersistCallback}},{key:"finishSaving",value:function(){return this.obj().finishSaving()}},{key:"equals",value:function(t){return!!c(t,e)&&(this.id()===t.id()&&this.obj().id()===t.obj().id())}},{key:"containingField",value:function(){return this.obj().fieldContainingWidget(this)}},{key:"toPrettyPrint",value:function(){return"[object ".concat(this.objClass(),' id="').concat(this.id(),'" objId="').concat(this.obj().id(),'"]')}},{key:"getAttributeData",value:function(t){return this.obj().getWidgetAttribute(this.id(),t)}},{key:"getData",value:function(){return this.obj().getWidgetData(this.id())}},{key:"_failIfNotPersisted",value:function(){if(!this.isPersisted())throw new E.ScrivitoError("Can not access a new widget before it has been saved.")}},{key:"_updateSelf",value:function(t){var e={_widgetPool:[u({},this.id(),t)]};this.obj().update(e)}},{key:"_executeDidPersistCallback",value:function(){this._onDidPersistCallback&&(this._onDidPersistCallback(this),delete this._onDidPersistCallback)}},{key:"_copyPersisted",value:function(){var t=this.serializeAttributes();return e.newWithSerializedAttributes(t)}},{key:"_copyUnpersisted",value:function(){var t=k.a.mapObject(this._attributesToBeSaved,function(t){var e=i(t,2),n=e[0],r=e[1];return r&&"widgetlist"===r[0]?[k.a.invoke(n,"copy"),r]:[n,r]}),n=new e(t);return this._onDidPersistCallback&&n.onDidPersist(this._onDidPersistCallback),n}},{key:"attributesToBeSaved",get:function(){return this._attributesToBeSaved}},{key:"_systemAttributes",get:function(){return C}}]),f(e,t),e}(w.a)},function(t,e,n){var r,i,o;/*!
3
3
  * URI.js - Mutating URLs
4
4
  *
5
5
  * Version: 1.19.1
@@ -66,7 +66,7 @@ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e
66
66
  * MIT License http://www.opensource.org/licenses/mit-license
67
67
  *
68
68
  */
69
- !function(o,a){"use strict";"object"==typeof t&&t.exports?t.exports=a():(r=a,void 0!==(i="function"==typeof r?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})},function(t,e,n){"use strict";function r(){return f>0}function i(t,e,n){var r=n.params,i=n.authorization,a=n.forceVerification;return l?scrivito.Promise.resolve(new XMLHttpRequest):(f+=1,new scrivito.Promise(function(n,s){var u=o(t,e,n,s);i&&u.setRequestHeader("Authorization",i),u.setRequestHeader("Scrivito-Client","jssdk/1.2.0-rc2"),a&&u.setRequestHeader("Scrivito-Force-Verification","true"),u.setRequestHeader("Content-type","application/json; charset=utf-8"),u.send(JSON.stringify(r))}))}function o(t,e,n,r){function i(t){s(new c.RequestFailedError(t),r)}var o=new XMLHttpRequest;return o.open("POST"===t?"POST":"PUT",e),o.timeout=15e3,o.withCredentials=!0,o.onload=function(){return a(o,n,r)},o.onerror=function(){return i("XMLHttpRequest Error")},o.ontimeout=function(){return i("XMLHttpRequest Timeout")},o.onabort=function(){return i("XMLHttpRequest Aborted")},o}function a(t,e,n){f-=1;var r=t.status;if(!r||!Object(u.isNumber)(r)){var i="Unexpected response status: "+r+"; body: "+(0===r?t.statusText:t.responseText);n(new c.RequestFailedError(i))}e(t)}function s(t,e){f-=1,e(t)}e.b=r,e.a=i;var u=n(0),c=(n.n(u),n(1)),l=!1,f=0},function(t,e,n){"use strict";var r=n(169),i=n.n(r);scrivito.Promise=window.Promise||i.a},function(t,e,n){"use strict";function r(t){var e=[],n=c.runWith(e,t);return new f(e,n)}function i(t){var e=l();if(!e)throw t(),new s.ScrivitoError("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error");e.push({reason:"missing",loader:t})}function o(t){var e=l();e&&e.push({reason:"outdated",loader:t})}e.a=r,e.b=i,e.c=o;var a=n(0),s=(n.n(a),n(1)),u=n(69),c=new u.a,l=function(){return c.current()},f=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.isAllDataLoaded=function(){return!Object(a.findWhere)(this.captureList,{reason:"missing"})},t.prototype.isAllDataUpToDate=function(){return 0===this.captureList.length},t.prototype.loadRequiredData=function(){if(0===this.captureList.length)return null;this.captureList.forEach(function(t){return t.loader()})},t}()},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(12)),o=n(37),a=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.deferreds={}}return t.prototype.retrieve=function(t){var e=this;if(Object(r.isEmpty)(this.deferreds)&&Object(o.a)(function(){return e.performRetrieval()}),!this.deferreds[t]){var n=new i.a;this.deferreds[t]=n}return this.deferreds[t].promise},t.prototype.reset=function(){this.deferreds={}},t.prototype.performRetrieval=function(){var t=this,e=Object(r.keys)(this.deferreds).slice(0,this.batchSize);if(0!==e.length){var n={};e.forEach(function(e){n[e]=t.deferreds[e],delete t.deferreds[e]}),this.mget(e).then(function(r){e.forEach(function(e,i){var o=n[e],a=r[i];i<r.length?o.resolve(a):t.retrieve(e).then(o.resolve,o.reject)})},function(t){Object(r.each)(n,function(e){return e.reject(t)})}),this.performRetrieval()}},t}();e.a=a},function(t,e,n){function r(t,e){return"function"==typeof e?i(e):e}var i=n(51);t.exports=function(t){try{return JSON.stringify(t,r,2)}catch(e){return String(t)}}},function(t,e,n){var r=n(16),i=n(66);t.exports=r("Boolean",i)},function(t,e,n){var r=n(16),i=n(25);t.exports=r("Nil",i)},function(t,e,n){var r=n(16),i=n(109);t.exports=r("Number",i)},function(t,e){t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},function(t,e,n){function r(t){return"Array<"+a(t)+">"}function i(t,e){function n(e,n){if(f)return e;for(var r=!0,i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=u(t,s,null);r=r&&s===c,i.push(c)}return r&&(i=e),i}var i=e||r(t),f=(a(t),s(t));return n.meta={kind:"list",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return l(e)&&e.every(function(e){return c(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(30),c=n(31),l=n(28);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"{"+Object.keys(t).map(function(e){return e+": "+i(t[e])}).join(", ")+"}"}var i=n(8);t.exports=r},function(t,e,n){function r(t,e,n){var r=t.reduce(function(t,e){return l(t,e)},e);return n&&(r.displayName=n,r.meta.name=n),r}function i(t){return c(t)?t:t.meta.props}function o(t){return c(t)?null:t.meta.defaultProps}function a(t,e){Array.prototype.push.apply(t,e)}function s(t,e,n){var s={},c={},l=[],d={};e.forEach(function(t,e){var n=f(t),r=n.unrefinedType;a(l,n.predicates),u(s,i(r)),u(c,r.prototype),u(d,o(r),!0)}),n=t.getOptions(n),n.defaultProps=u(d,n.defaultProps,!0);var h=r(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return u(h.prototype,c),h}var u=(n(5),n(10),n(28),n(80)),c=(n(197),n(198),n(27)),l=n(77),f=n(199);t.exports=s},function(t,e,n){function r(t){return"["+t.map(a).join(", ")+"]"}function i(t,e){function n(e,n){if(a)return e;for(var r=!0,i=[],o=0,s=t.length;o<s;o++){var u=t[o],l=e[o],f=c(u,l,null);r=r&&l===f,i.push(f)}return r&&(i=e),i}var i=e||r(t),a=t.every(s);return n.meta={kind:"tuple",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return u(e)&&e.length===t.length&&t.every(function(t,n){return l(e[n],t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(28),c=n(30),l=n(31);i.getDefaultName=r,t.exports=i},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}t.exports=n},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t){var e={};return F.a.each(t,function(t,n){var r=i(t,2),o=r[0],a=r[1],s=c(n);if(Object(D.a)(s))e[s]=o;else{var u=i(a,2),h=u[0],p=u[1];e[s]=[l(h,n),d(f(h,p,o,n))]}}),e}function c(t){if(!Object(H.c)(t))throw new z.ArgumentError("Attribute names have to be in camel case.");return Object(H.e)(t)}function l(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 z.ArgumentError('Attribute "'.concat(e,'" is of unsupported type "').concat(t,'".'))}}function f(t,e,n,r){if(null===n)return n;switch(t){case"binary":return p(n,r);case"date":return v(n,r);case"enum":return y(e,n,r);case"float":return m(n,r);case"html":return b(n,r);case"integer":return g(n,r);case"link":return w(n,r);case"linklist":return _(n,r);case"multienum":return E(e,n,r);case"reference":return x(n,r);case"referencelist":return C(n,r);case"string":return T(n,r);case"stringlist":return N(n,r);case"widgetlist":return L(n,r);default:throw new z.InternalError('serializeAttributeValue is not implemented for "'.concat(t,'".'))}}function d(t){return(F.a.isString(t)||F.a.isArray(t))&&F.a.isEmpty(t)?null:t}function h(t,e,n){throw new z.ArgumentError("Unexpected value ".concat(Object(U.a)(t)," for")+' attribute "'.concat(e,'". Expected: ').concat(n))}function p(t,e){if(r(t,W.a))return{id:t.id()};h(t,e,"A Binary.")}function v(t,e){return F.a.isDate(t)?Object(q.c)(t):Object(q.d)(t)?t:void h(t,e,"A Date.")}function y(t,e,n){var r=t.values;if(F.a.contains(r,e))return e;h(e,n,'Valid attribute values are contained in its "values" array ['.concat(r,"]."))}function m(t,e){if(Object(q.e)(t))return t;var n=t;F.a.isNumber(t)&&(n=String(t)),h(n,e,"A Number, that is #isFinite().")}function b(t,e){if(F.a.isString(t))return t;h(t,e,"A String.")}function g(t,e){if(Object(q.f)(t))return t;h(t,e,"A Number, that is #isSafeInteger().")}function w(t,e){if(k(t))return O(t);h(t,e,"A Link instance.")}function _(t,e){if(F.a.isArray(t)&&F.a.every(t,k))return F.a.map(t,O);h(t,e,"An array of Link instances.")}function k(t){if(r(t,M.a))return!0;if(!F.a.isObject(t))return!1;var e=F.a.without(F.a.keys(t),"hash","obj_id","query","target","title","url");return F.a.isEmpty(e)}function O(t){var e={fragment:"function"==typeof t.hash?t.hash():t.hash,query:"function"==typeof t.query?t.query():t.query,target:"function"==typeof t.target?t.target():t.target,title:"function"==typeof t.title?t.title():t.title,url:"function"==typeof t.url?t.url():t.url};return e.obj_id="function"==typeof t.objId?t.objId():t.obj_id,F.a.mapObject(e,function(t){return t||null})}function E(t,e,n){var r=t.values,i="An array with values from ".concat(Object(U.a)(r),".");F.a.isArray(e)&&F.a.every(e,F.a.isString)||h(e,n,i);var o=F.a.difference(e,r);if(o.length){h(e,n,"".concat(i," Forbidden values: ").concat(Object(U.a)(o),"."))}return e}function x(t,e){if(S(t))return j(t);h(t,e,"A BasicObj or a String ID.")}function C(t,e){if(A(t))return F.a.map(t,j);h(t,e,"An array with BasicObjs or String IDs.")}function j(t){return r(t,I.default)?t.id():t}function S(t){return F.a.isString(t)||r(t,I.default)}function A(t){return F.a.isArray(t)&&F.a.every(t,function(t){return S(t)})}function T(t,e){if(P(t))return t.toString();h(t,e,"A String.")}function N(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return P(t)}))return F.a.invoke(t,"toString");h(t,e,"An array of strings.")}function P(t){return F.a.isString(t)||F.a.isNumber(t)}function L(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return r(t,R.a)}))return F.a.invoke(t,"id");h(t,e,"An array of BasicWidget instances.")}e.a=u;var I=n(3),D=n(47),q=n(48),R=n(32),M=n(34),B=n(0),F=n.n(B),z=n(1),U=n(41),H=n(23),W=n(26)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}n.d(e,"a",function(){return b});var f=n(213),d=n(47),h=n(132),p=n(0),v=n.n(p),y=n(1),m=n(23),b=function(){function t(){u(this,t)}return l(t,[{key:"get",value:function(t,e){if(!Object(m.c)(t))throw new y.ArgumentError("Attribute names have to be in camel case.");var n=Object(m.e)(t);{if(!Object(d.a)(n)){var r=scrivito.typeInfo.normalize(e),o=i(r,2),a=o[0],s=o[1],u=this.getAttributeData(n);return u&&v.a.isArray(u)||(u=[]),f.a(this,u,a,s)}if(v.a.has(this._systemAttributes,n)){var c=this._systemAttributes[n];return"function"==typeof this[c]?this[c]():this[c]}}}},{key:"field",value:function(t,e){return new h.a({container:this,attributeName:t,typeInfo:scrivito.typeInfo.normalize(e)})}},{key:"widget",value:function(t){throw new TypeError("Override in subclass.")}},{key:"serializeAttributes",value:function(){var t=this,e={};return v.a.each(this.getData(),function(n,r){if(v.a.isArray(n)&&"widgetlist"===v.a.first(n)){var i=Object(m.a)(r),o=v.a.invoke(t.get(i,["widgetlist"]),"serializeAttributes");return void(e[r]=["widgetlist",o])}e[r]=n}),e}},{key:"_persistWidgets",value:function(t,e){v.a.each(e,function(e){var n=i(e,2),r=n[0],o=n[1];o&&"widgetlist"===o[0]&&v.a.each(r,function(e){e.isPersisted()||e.persistInObj(t)})})}},{key:"getAttributeData",value:function(){throw new TypeError("Override in subclass.")}},{key:"getData",value:function(){throw new TypeError("Override in subclass.")}},{key:"_objClass",get:function(){throw new TypeError("Override in subclass.")}}]),t}()},function(t,e,n){"use strict";function r(t,e,n){s.a.store(t,e,n)}function i(t){return scrivito.computeCacheKey(t)}function o(t,e){return new u.a(t,e)}function a(){return c.b.subState("objQuery")}e.d=r,e.a=i,e.b=o,e.c=a;var s=n(119),u=n(215),c=n(4)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(214),u=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,null,[{key:"store",value:function(t,e,n){s.a.store(t,e,n)}},{key:"count",value:function(t){return s.a.countFor(t)}}]),a(t,[{key:"iterator",value:function(){function t(){if(!n)return{done:!0};var i=n.objIds();if(r<i.length){var o=i[r];return r++,e[o]?t():(e[o]=!0,{value:o,done:!1})}return n=n.nextBatch(),r=0,t()}var e={},n=s.a.firstBatchFor(this._params,this._batchSize),r=0;return{next:t}}}]),t}()},function(t,e,n){"use strict";function r(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0".concat(t);return t}function i(){return r()+r()}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}function i(t){return t.iterator().next().value||null}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){return t.displayName||t.name}e.a=r},,,,,function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.client={}},function(t,e,n){"use strict";function r(t){return i(1e3*t)}function i(t){return new scrivito.Promise(function(e){setTimeout(e,t)})}e.a=r,e.b=i;n(102)},function(t,e,n){"use strict";function r(t,e){Object(c.d)("navigateTo"),y(t,e);var n,r;if(e){n=e.params||{},r=e.hash;var a=Object(o.omit)(e,"hash","params");m(t,a),n=Object(o.extend)(a,n)}Object(f.e)(function(){return{obj:Object(d.c)(Object(o.isFunction)(t)?t():t),queryParameters:n,hash:r}},i)}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash;e&&(Object(s.a)(),Object(h.d)({obj:e,queryParameters:n,hash:r}))}e.a=r;var o=n(0),a=(n.n(o),n(24)),s=n(294),u=n(59),c=n(4),l=n(39),f=n(60),d=n(22),h=n(72),p=a.a.union([a.a.Function,a.a.irreducible("null",function(t){return null===t}),u.d,u.b]),v=a.a.dict(a.a.String,a.a.maybe(a.a.String)),y=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(a.a.struct({hash:a.a.maybe(a.a.String),params:a.a.maybe(v)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),m=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(v)]],{docPermalink:"js-sdk/navigateTo"})},function(t,e,n){"use strict";function r(t){return function(){return d.a.retrieveBinaryMetadata(t).then(function(t){return o(t)})}}function i(t){return h.b.subState("metadataCollection").subState(t)}function o(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],u=a[0],c=a[1];if(null===c||void 0===c)throw new l.InternalError('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var f=void 0;if(u===s.Date){if("string"!=typeof c)throw new l.InternalError('Invalid non-string backend value for a date metadata "'+o+'"');f=Object(p.a)(c)}else f=c;n[o]=f}return n}function a(t){if(!Object(f.c)(t))throw new l.ArgumentError('Metadata key "'+t+'" is not in camel case.')}var s,u=n(0),c=(n.n(u),n(18)),l=n(1),f=n(23),d=n(43),h=n(4),p=n(48);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(s||(s={}));var v=function(){function t(t){this._binaryId=t,t&&(this._loadableData=new c.b({state:i(t),loader:r(t)}))}return t.store=function(t,e){new c.b({state:i(t),loader:r(t)}).set(o(e))},t.prototype.get=function(t){a(t);var e=this._getData();if(e)return e[Object(f.e)(t)]},t.prototype.keys=function(){var t=this._getData();return t?Object(u.map)(Object(u.keys)(t),f.a):[]},Object.defineProperty(t.prototype,"binaryId",{get:function(){return this._binaryId},enumerable:!0,configurable:!0}),t.prototype._getData=function(){if(this._loadableData)return this._loadableData.get()},t}();e.a=v},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n(24),i=r.a.interface({size:r.a.Number,type:r.a.String},{name:"Blob",strict:!1}),o=i.extend({name:r.a.String},{name:"File",strict:!1})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}n.d(e,"a",function(){return f});var u=n(3),c=n(0),l=(n.n(c),n(1)),f=function(){function t(e){var n=e.container,r=e.attributeName,i=e.typeInfo;o(this,t),this._container=n,this._attributeName=r,this._typeInfo=i}return s(t,[{key:"get",value:function(){return this._container.get(this.name(),this._typeInfo)}},{key:"update",value:function(t){this._container.update(i({},this.name(),[t,this._typeInfo]))}},{key:"container",value:function(){return this._container}},{key:"obj",value:function(){return this.container().obj()}},{key:"name",value:function(){return this._attributeName}},{key:"type",value:function(){return this._typeInfo[0]}},{key:"typeOptions",value:function(){return this._typeInfo[1]||{}}},{key:"equals",value:function(e){return!!r(e,t)&&(this.container().equals(e.container())&&this.name()===e.name())}},{key:"values",value:function(){return this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have values"),this._sortValuesByLocalization(this.typeOptions().values)}},{key:"titleForValue",value:function(t){this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have localized values");var e=Object(c.findWhere)(this.typeOptions().valuesLocalization,{value:t});return e&&e.title||t}},{key:"toString",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="<BasicField name=".concat(e," objId=").concat(n);return i+=r?" widgetId=".concat(r,">"):">"}},{key:"id",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="".concat(e,"|").concat(n);return r&&(i+="|".concat(r)),i}},{key:"_assertValidTypes",value:function(t,e){if(!Object(c.include)(t,this.type()))throw new l.InternalError(e)}},{key:"_dataForId",value:function(){var t={name:this.name()},e=this.container();return r(e,u.default)?t.objId=e.id():(t.objId=e.obj().id(),t.widgetId=e.id()),t}},{key:"_sortValuesByLocalization",value:function(t){var e=this;return t?this.typeOptions().valuesLocalization?Object(c.sortBy)(t,function(n){var r=Object(c.findIndex)(e.typeOptions().valuesLocalization,{value:n});return-1===r?t.length:r}):t:[]}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return f});var s=n(3),u=n(42),c=n(1),l=n(22),f=function(){function t(e){i(this,t),this._registry=e}return a(t,[{key:"getObj",value:function(t,e){var n=s.default.get(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"getObjIncludingDeleted",value:function(t,e){var n=s.default.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"read",value:function(t,e){var n=u.a.basicFieldFor(t,e);if(n){var r=n.get();return Object(l.e)(this._registry,r)}}},{key:"update",value:function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new c.ArgumentError('Updating is not supported on the base class "'.concat(r,'".'))}if(e.constructor!==Object)throw new c.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=u.a.forInstance(t),o=Object(l.b)(e,i,n);t._scrivitoPrivateContent.update(o)}},{key:"wrapInAppClass",value:function(t){return Object(l.e)(this._registry,t)}},{key:"_checkObjClassAndWrapInAppClass",value:function(t,e){var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.ResourceNotFoundError('Obj with id "'.concat(e.id(),'" is not of type "').concat(n,'".'));return this.wrapInAppClass(e)}}]),t}()},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=function(){var t=null,e=function(e){return i()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}};e.a=o},function(t,e,n){"use strict";function r(t){return t.replace(s,function(t,e){var n=Object(i.a)(e),r=o.i(n);return r&&(Object(a.a)(r,e),o.g(r))?o.b(r,t):n.toString()})}e.a=r;var i=n(313),o=n(63),a=n(314),s=/\bobjid:([a-f0-9]{16})\b([^"']*)/g},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return o(t),r(t,l.a)?u(t):r(t,d.a)?a(t):Object(h.a)(t)?s(t):Object(p.a)({obj:t})}function o(t){if(!t)throw new f.ArgumentError("Missing target.");if(!r(t,l.a)&&!r(t,c.default)&&!r(t,d.a))throw new f.ArgumentError("Target is invalid. Valid targets are instances of Obj or Link.")}function a(t){return t.url()}function s(t){var e=t.get("blob",["binary"]);return e?a(e):Object(p.a)({obj:t})}function u(t){return t.isExternal()?t.url():i(t.obj())}e.a=i;var c=n(3),l=n(34),f=n(1),d=n(26),h=n(226),p=n(63)},function(t,e,n){"use strict";function r(){if(o)return{filters:o}}function i(t){if(d.b){j(t),t.filters&&(o=t.filters);var e=t.baseFilter;if(e){var n=e.query;n&&d.b.configureContentBrowser(Object(s.a)({baseQuery:n}))}}}e.b=r,e.a=i;var o,a=n(0),s=(n.n(a),n(138)),u=n(39),c=n(24),l=n(59),f=n(54),d=n(17),h=c.a.union([c.a.String,c.a.list(c.a.String)]),p=c.a.enums.of(Object(a.intersection)(f.a,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),v=c.a.union([c.a.String,c.a.Date,c.a.Nil,c.a.Number,c.a.list(c.a.union([c.a.String,c.a.Nil])),c.a.list(c.a.union([c.a.Date,c.a.Nil])),c.a.list(c.a.union([c.a.Number,c.a.Nil]))],"SearchValue"),y=c.a.struct({title:c.a.maybe(c.a.String)}),m=y.extend({field:c.a.maybe(h),operator:c.a.maybe(p),expanded:c.a.maybe(c.a.Boolean)}),b=y.extend({value:c.a.maybe(v),query:c.a.maybe(l.c),selected:c.a.maybe(c.a.Boolean)}),g=m.extend({type:c.a.enums.of(["radioButton"]),options:c.a.dict(c.a.String,b)},"RadioFilterDefinition"),w=y.extend({value:c.a.maybe(v),selected:c.a.maybe(c.a.Boolean)}),_=m.extend({type:c.a.enums.of(["checkbox"]),options:c.a.dict(c.a.String,w)},"CheckboxFilterDefinition"),k=c.a.declare("TreeFilterDefinition");k.define(y.extend({type:c.a.maybe(c.a.enums.of("tree")),icon:c.a.maybe(c.a.String),query:c.a.maybe(l.c),expanded:c.a.maybe(c.a.Boolean),value:c.a.maybe(v),field:c.a.maybe(h),operator:c.a.maybe(p),selected:c.a.maybe(c.a.Boolean),options:c.a.maybe(c.a.dict(c.a.String,k))}));var O=c.a.union([k,_,g]);O.dispatch=function(t){switch(t.type||"tree"){case"tree":return k;case"radioButton":return g;case"checkbox":return _}};var E=c.a.dict(c.a.String,O),x=c.a.struct({query:l.c}),C=c.a.struct({filters:c.a.maybe(E),baseFilter:c.a.maybe(x)},"Configuration"),j=Object(u.a)("configureContentBrowser",[["configuration",C]],{docPermalink:"js-sdk/configureContentBrowser"})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t){if(!t)return t;switch(i(t)){case"string":case"number":case"boolean":return t;case"object":return r(t._scrivitoPrivateContent,c.b)?o(t._scrivitoPrivateContent.params()):Object(u.isDate)(t)?t:Object(u.isArray)(t)?a(t):s(t)}}function a(t){var e=[];return t.forEach(function(t){var n=o(t);void 0!==n&&e.push(n)}),e}function s(t){var e={};return Object(u.each)(t,function(t,n){var r=o(t);void 0!==r&&(e[n]=r)}),e}e.a=o;var u=n(0),c=(n.n(u),n(54))},function(t,e,n){"use strict";var r=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){t.type,t.tag;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}();e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");d(t.prototype,e&&e.prototype),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function v(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?m(t):e}function y(t){return(y=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){var n=Object(A.a)(t),r=n.objId,i=n.widgetId;P.b.insertWidget(r,i,e)}n.d(e,"a",function(){return q});var g=n(237),w=n.n(g),_=n(13),k=n.n(_),O=n(85),E=n.n(O),x=n(0),C=(n.n(x),n(87)),j=n(42),S=n(62),A=n(141),T=n(14),N=n(1),P=n(17),L=n(351),I=n(239),D=n(240),q="_scrivitoWidget",R=function(t){function e(t){var n;return l(this,e),n=v(this,y(e).call(this,t)),n.state={hasFocus:!1,isDragged:!1,isFocusFadedOut:!0},n._onMouseOver=n._onMouseOver.bind(m(m(n))),n._onMouseOut=n._onMouseOut.bind(m(m(n))),n._onWidgetFocus=n._onWidgetFocus.bind(m(m(n))),n._onWidgetBlur=n._onWidgetBlur.bind(m(m(n))),n._lockFocus=n._lockFocus.bind(m(m(n))),n._unlockFocus=n._unlockFocus.bind(m(m(n))),n._setDragState=n._setDragState.bind(m(m(n))),n}return p(e,[{key:"componentDidMount",value:function(){this._registerDropZone(),this._focusToken=scrivito.WidgetFocus.subscribe({onFocus:this._onWidgetFocus,onBlur:this._onWidgetBlur})}},{key:"componentDidUpdate",value:function(){this._widgetRef!==this._dropZoneWidgetRef&&this._registerDropZone()}},{key:"componentWillUnmount",value:function(){scrivito.WidgetFocus.unsubscribe(this._focusToken)}},{key:"getChildContext",value:function(){return c({},q,null)}},{key:"render",value:function(){var t=this,e=this.context[q];if(!e)throw new N.ScrivitoError("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return Object(C.a)()?k.a.createElement(this.props.tag,Object(x.extend)(Object(x.omit)(this.props,"tag","className","style"),{ref:function(e){return t._widgetRef=e},className:this._className(),style:this._style(),onMouseOver:this._onMouseOver,onMouseOut:this._onMouseOut,children:[k.a.createElement(L.a,{key:"menuMarker",widget:e,setDragState:this._setDragState,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})].concat(o(k.a.Children.toArray(this.props.children)),[this._renderOptionMarker("top"),this._renderOptionMarker("bottom")])},this._dataProps())):k.a.createElement(this.props.tag,Object(x.omit)(this.props,"tag"))}},{key:"_setDragState",value:function(t){this.setState({isDragging:t})}},{key:"_className",value:function(){return this._hasVisibleFocus()?this.props.className?"".concat(this.props.className," scrivito_active scrivito_entered"):"scrivito_active scrivito_entered":this.props.className}},{key:"_hasVisibleFocus",value:function(){return this.state.hasFocus&&!this.state.isFocusFadedOut}},{key:"_dataProps",value:function(){var t={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this._isStructureMarker()&&(t["data-scrivito-private-structure-widget"]="true"),this.state.isDragging&&(t["data-scrivito-private-dropback"]="true"),t}},{key:"_style",value:function(){return this.state.isDragging?this.props.style?Object(x.extend)(this.props.style,{opacity:.5}):{opacity:.5}:this.props.style}},{key:"_isStructureMarker",value:function(){var t=Object(S.a)(),e=t.widgetClassFor(this.context[q].objClass()),n=j.a.forClass(e);return!!n&&Object(x.some)(n.attributes,function(t,e){return"widgetlist"===t[0]})}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyFocus(this._focusToken)}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyBlur(this._focusToken)}},{key:"_onWidgetFocus",value:function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this._fadeOutFocusTimeout&&clearTimeout(this._fadeOutFocusTimeout),this._isStructureMarker()||(this._fadeOutFocusTimeout=setTimeout(function(){return t._fadeOutFocus()},1e3))}},{key:"_fadeOutFocus",value:function(){this.state.isFocusFadedOut||this._isFocusLocked||this.setState({isFocusFadedOut:!0})}},{key:"_lockFocus",value:function(){this._isFocusLocked=!0}},{key:"_unlockFocus",value:function(){this._isFocusLocked=!1}},{key:"_onWidgetBlur",value:function(){this.setState({hasFocus:!1})}},{key:"_renderOptionMarker",value:function(t){return k.a.createElement(I.a,{key:"optionMarker-".concat(t),position:t,widget:this.context[q],insertWidget:b,isAlwaysShown:D.b,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})}},{key:"_registerDropZone",value:function(){if(Object(C.a)()&&this._widgetRef){var t=Object(A.a)(this.context[q]),e=t.objId,n=t.widgetId,r=E.a.findDOMNode(this._widgetRef);P.b.registerWidgetDropZoneInDom(r,e,n),this._dropZoneWidgetRef=this._widgetRef}}}]),f(e,t),e}(k.a.Component);R.displayName="Scrivito.WidgetTag",R.defaultProps={tag:"div"},R.contextTypes=c({},q,w.a.object),R.childContextTypes=c({},q,w.a.object),e.b=Object(T.a)(R)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return r(t,o.default)?{objId:t.id()}:{objId:t.obj().id(),widgetId:t.id()}}e.a=i;var o=n(3)},,,,,,,,,,,function(t,e,n){"use strict";function r(t){i();var e=t.location,n=e.hash,r=n.indexOf(u);if(!(r<0)){var o=n.substr(r+u.length,3),a=n.substring(0,r);"#"===a&&(a="");var c=e.href.toString().replace(n,a);s=parseInt(o,10)||0,t.history.replaceState({},"",c)}}function i(){s=0}function o(t){var e=t.toString();return t.hash||(e="".concat(e,"#")),"".concat(e).concat(u).concat(s+1)}function a(){return s}var s,u="&scrivito.authFailedCount=";e.a={init:r,augmentedRedirectUrl:o,reset:i,currentFailureCount:a}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("link");n.rel="stylesheet",n.href=t,e.head.appendChild(n)}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("script");n.src=t,e.head.appendChild(n)}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();if(t!==e)throw new i.InternalError("Requested and the actual current workspace differ! Expected "+e+", but saw "+t+".")}e.a=r;var i=n(1)},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e){var n=u(t,e);if(n)return n;var r=t._widget_pool;return f.a.find(r,function(t,r){if(n=u(t,e))return n.parentWidgetId=r,!0}),n}function u(t,e){var n;return f.a.find(t,function(t,i){if(!Object(c.a)(i)){var o=r(t,2),a=o[0],s=o[1];if(s&&"widgetlist"===a){var u=s.indexOf(e);if(-1!==u)return n={attributeName:i,index:u},!0}}}),n}e.a=s;var c=n(47),l=n(0),f=n.n(l)},function(t,e,n){t.exports=n(212)},,,,,function(t,e,n){"use strict";function r(){if(window.parent!==window){var t=window.parent.connectAppDocument;return t?t(window.document):void 0}}e.a=r},function(t,e,n){"use strict";var r=n(127),i=(n.n(r),n(163),n(165),n(166),n(167));n.n(i),n(168),n(206),n(207),n(96),n(102),n(208),n(209)},function(t,e,n){"use strict";var r=n(37),i=n(4);!function(){function t(t){o()||Object(r.a)(function(){return Object(i.j)(function(){return e(n)})}),n.push(t)}function e(t){n=[];try{t.forEach(function(t){return t()})}finally{o()&&e(n)}}var n=[],o=function(){return n.length};scrivito.batchedStateUpdater={add:t}}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(1),o=n(0),a=(n.n(o),n(69)),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=0,c=Object.assign||o.extend,l=function(){function t(){}return t.prototype.get=function(){var t=this,e=this.untrackedGet();return this.recordDetector(function(){return e!==t.untrackedGet()}),e},t.prototype.recordDetector=function(t){this.getTree().recordDetector(t)},t.prototype.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new h(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n=this.untrackedGet();if(void 0===n){var r=(o={},o[t]=e,o);this.set(r)}else{var i=c({},n);i[t]=e,this.set(i)}var o},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(e)return e[t]},t}(),f=function(t){function e(){var e=t.call(this)||this;return e.treeId=(u++).toString(),e.listeners=[],e.detectorRecording=new a.a,e.batchUpdates=new a.a,e.version=0,e.frozenContextContainer=new a.a,e}return s(e,t),e.prototype.untrackedGet=function(){return this.state},e.prototype.withFrozenState=function(t,e){return this.frozenContextContainer.runWith(t,e)},e.prototype.failIfTracking=function(t){if(this.detectorRecording.current())throw new i.InternalError(t)},e.prototype.failIfFrozen=function(t){var e=this.frozenContextContainer.current();if(e){var n=t+" is not permitted inside '"+e.contextName+"'. "+(e.message||"");throw new d(n)}},e.prototype.set=function(t){this.failIfFrozen("Changing state"),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},e.prototype.trackChanges=function(t){var e=this,n=this.version,r=this.recordDetectors(t);return function(){return e.version!==n&&!!Object(o.find)(r,function(t){return t()})}},e.prototype.recordDetector=function(t){var e=this.detectorRecording.current();void 0!==e&&e.push(t)},e.prototype.getTree=function(){return this},e.prototype.id=function(){return this.treeId},e.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.ensureCanMutateListeners(),this.listeners.push(r),function(){n=!1;var t=e.listeners.indexOf(r);e.ensureCanMutateListeners(),e.listeners.splice(t,1)}},e.prototype.withBatchedUpdates=function(t){var e=this.state;try{this.batchUpdates.runWith(!0,t)}finally{this.insideBatchUpdate()||e===this.state||this.notifyListeners()}},e.prototype.listenerCount=function(){return this.listeners.length},e.prototype.clearListeners=function(){this.listeners=[]},e.prototype.recordDetectors=function(t){if(void 0!==this.detectorRecording.current())throw new i.InternalError("no nested detector recording!");var e=[];return this.detectorRecording.runWith(e,t),e},e.prototype.notifyListeners=function(){this.listenersToNotify=this.listeners,this.listenersToNotify.forEach(function(t){return t()})},e.prototype.ensureCanMutateListeners=function(){this.listenersToNotify===this.listeners&&(this.listeners=this.listeners.slice())},e.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},e}(l);e.a=f;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(i.ScrivitoError),h=function(t){function e(e,n){var r=t.call(this)||this;return r.parentState=e,r.key=n,r.tree=e.getTree(),r}return s(e,t),e.prototype.getTree=function(){return this.tree},e.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},e.prototype.set=function(t){this.parentState.setSubState(this.key,t)},e.prototype.id=function(){var t=this.key.replace(/\\/g,"\\\\").replace(/\//g,"\\/");return this.parentState.id()+"/"+t},e}(l)},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(e){return i.a.isArray(e)?i.a.map(e,t):i.a.isObject(e)?i.a.chain(e).mapObject(t).pairs().sortBy(i.a.first):e}scrivito.computeCacheKey=function(e){var n=t(e);return JSON.stringify(n)}}()},function(t,e,n){"use strict";var r=n(17);!function(){scrivito.currentWorkspaceId=function(){return r.b?r.b.currentWorkspaceId():"published"}}()},function(t,e){!function(){function t(){if(window&&window.console&&!n){var t;(t=window.console).error.apply(t,arguments)}}function e(){n=!0}var n=!1;scrivito.logError=t,scrivito.disableConsoleError=e}()},function(t,e,n){"use strict";var r=n(4),i=n(53);!function(){function t(t){var e=t.clientModulesForExport();o.forEach(function(t){scrivito[t]=e[t]}),Object(i.b)(e.objReplicationPool)}function e(){var t={objReplicationPool:i.a};return o.forEach(function(e){t[e]=scrivito[e]}),t}function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.ui;n&&t(n),Object(r.f)(n)}var o=["BinaryRequest"];scrivito.client.init=n,scrivito.client.modulesForExport=e}()},function(t,e,n){"use strict";(function(e){function n(){}function r(t,e){return function(){t.apply(e,arguments)}}function i(t){if(!(this instanceof i))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=[],l(t,this)}function o(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:s)(e.promise,t._value);var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}a(e.promise,r)})}function a(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 i)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void l(r(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function l(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}var f=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var r=new this.constructor(n);return o(this,new c(t,e,r)),r},i.prototype.finally=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)})})},i.all=function(t){return new i(function(e,n){function r(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){r(t,e)},n)}i[t]=a,0==--o&&e(i)}catch(t){n(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){f(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},t.exports=i}).call(e,n(170).setImmediate)},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(171),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(40))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,s(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=c[t];if(e){l=!0;try{o(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var s,u=1,c={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(40),n(91))},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){function e(e){if(!u(e))throw e;return o(e.details).then(t)}return t(s()).catch(e)}function o(t){if(!l){var e=t.verificator,n=t.data,r=Object(h.a)(e.id,e.url).then(function(t){return new scrivito.Promise(function(e){function r(t){f=t,e(f.authorization)}t(n,r)})});l={challenge:{verificator:e,data:n},promise:p.a(r,function(){l=void 0})}}return l.promise}function a(){l=void 0,f=void 0}function s(){if(f)return f.expiresAfter<new Date?void(f=void 0):f.authorization}function u(t){return r(t,d.UnauthorizedError)&&t.backendCode===y}function c(){var t=s();if(t)return"Authorization: "+t;if(l){var e=l.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"ERROR_CODE_CLIENT_VERIFICATION_REQUIRED",function(){return y}),e.perform=i,e.reset=a,e.currentState=c;var l,f,d=n(1),h=n(173),p=n(50),v=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),y="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}v(e,t)}(d.UnauthorizedError)},function(t,e,n){"use strict";function r(t,e){var n=i[t];return n||(n=new o.a,i[t]=n,Object(a.b)(e)),n.promise}e.a=r;var i,o=n(12),a=n(153);!function(){i={}}(),window._scrivitoRegisterVerificator=function(t,e){i[t].resolve(e)}},function(t,e,n){"use strict";var r=n(88),i=n(53),o=n(18),a=n(4),s=n(1),u=n(43),c=function(){function t(t,e){var n=this;this._loadableData=new o.b({state:e,loader:function(t){var e=t.push;return u.a.retrieveObj(scrivito.currentWorkspaceId(),n._id).then(function(t){return e(function(){return n._replication().notifyBackendState(t)}),t})}}),this._id=t}return t.prototype.get=function(){return Object(a.e)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(a.e)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new s.InternalError("_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(a.d)("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=r.a(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype._replication=function(){return i.a.get(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}();e.a=c},function(t,e,n){"use strict";var r=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({status: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}();e.a=r},function(t,e,n){"use strict";function r(t){return void 0!==a[t]}function i(t){delete a[t]}function o(t,e,n,o){function u(t){l()&&t()}if(!r(t)){var c=s++,l=function(){return a[t]===c},f=[],d=function(t){return f.push(t)},h=function(){return f.forEach(function(t){return t()})};e({push:d,wasCancelled:function(){return!l()}}).then(function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),n(e),h()})})},function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),o(e),h()})})}),a[t]=c}}e.a=r,e.c=i,e.b=o;var a={},s=0},function(t,e,n){"use strict";function r(t){return i.a.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();return o.a.get("workspaces/"+e+"/objs/mget",{ids:t,include_deleted:!0}).then(function(t){return t.results})}function i(t){return s.retrieve(t).then(function(e){return e||{_deleted:t}})}e.a=i;var o=n(21),a=n(104),s=new a.a(r,{batchSize:17})},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId(),n=a({consistent:!0},t);return o.a.get("workspaces/"+e+"/objs/search",n).then(function(t){var e=i(t);return{results:e.results.map(function(t){return t.id}),continuation:e.continuation,total:e.total,objs:e.objs}})}function i(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;return void 0!==r&&(e.objs=r),e}e.a=r;var o=n(21),a=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},function(t,e,n){"use strict";function r(t,e){return i.a.get("workspaces/"+t+"/objs/search",e).then(function(t){return{facets:t.facets.map(function(t){return t.map(function(t){return{total:t.total,value:t.value,results:t.results}})})}})}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t,e){var n,r="blobs/"+encodeURIComponent(t);return e&&(r+="/optimize",n={transformation:e}),a.a.get(r,n).then(function(e){return i(t,e)})}function i(t,e){var n=e.public_access,r=n.get;if(!r.url)throw new o.InternalError('Missing public access URL for binary "'+t+'"');var i={public_access:{get:{url:r.url}}},a=e.private_access;if(a){var s=a.get;s.url&&(i.private_access={get:{url:s.url}})}return i}e.a=r;var o=n(1),a=n(21)},function(t,e,n){"use strict";function r(t,e,n){var r=s.getTypeName(e),i=n.length?"/"+n.join("/")+": "+r:r;return"Invalid value "+u(t)+" supplied to "+i}function i(t,e,n,i){return s.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,i):r(t,e,n)}function o(t,e,n){n=n||{};var r=s.Array.is(n)?n:n.path||[];return new f(a(t,e,r,n))}function a(t,e,n,r){return s.isType(e)?d[e.meta.kind](t,e,n,r):d.es6classes(t,e,n,r)}var s=n(183),u=s.stringify,c={},l=s.struct({message:s.Any,actual:s.Any,expected:s.Any,path:s.list(s.union([s.String,s.Number]))},"ValidationError");l.of=function(t,e,n,r){return new l({message:i(t,e,n,r),actual:t,expected:e,path:n})};var f=s.struct({errors:s.list(l),value:s.Any},"ValidationResult");f.prototype.isValid=function(){return!this.errors.length},f.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},f.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+u(this.value)+"]":"[ValidationResult, false, ("+this.errors.map(function(t){return u(t.message)}).join(", ")+")]"};var d=o.validators={};d.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:[l.of(t,e,n,r.context)]}},d.irreducible=d.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[l.of(t,e,n,r.context)]}},d.list=function(t,e,n,r){if(!s.Array.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};for(var i={value:[],errors:[]},o=0,u=t.length;o<u;o++){var c=a(t[o],e.meta.type,n.concat(o),r);i.value[o]=c.value,i.errors=i.errors.concat(c.errors)}return i},d.subtype=function(t,e,n,r){var i=a(t,e.meta.type,n,r);return i.errors.length?i:(e.meta.predicate(i.value)||(i.errors=[l.of(t,e,n,r.context)]),i)},d.maybe=function(t,e,n,r){return s.Nil.is(t)?{value:t,errors:[]}:a(t,e.meta.type,n,r)},d.struct=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};if(e.is(t))return{value:t,errors:[]};var i={value:{},errors:[]},o=e.meta.props,u=e.meta.defaultProps||c;for(var f in o)if(o.hasOwnProperty(f)){var d=t[f];void 0===d&&(d=u[f]);var h=a(d,o[f],n.concat(f),r);i.value[f]=h.value,i.errors=i.errors.concat(h.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var p in t)t.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&i.errors.push(l.of(t[p],s.Nil,n.concat(p),r.context));return i.errors.length||(i.value=new e(i.value)),i},d.tuple=function(t,e,n,r){var i=e.meta.types,o=i.length;if(!s.Array.is(t)||t.length>o)return{value:t,errors:[l.of(t,e,n,r.context)]};for(var u={value:[],errors:[]},c=0;c<o;c++){var f=a(t[c],i[c],n.concat(c),r);u.value[c]=f.value,u.errors=u.errors.concat(f.errors)}return u},d.dict=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};var i={value:{},errors:[]};for(var o in t)if(t.hasOwnProperty(o)){var u=n.concat(o),c=a(o,e.meta.domain,u,r),f=a(t[o],e.meta.codomain,u,r);i.value[o]=f.value,i.errors=i.errors.concat(c.errors,f.errors)}return i},d.union=function(t,e,n,r){var i=e.dispatch(t);return s.Function.is(i)?a(t,i,n.concat(e.meta.types.indexOf(i)),r):{value:t,errors:[l.of(t,e,n,r.context)]}},d.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,c=0;c<o;c++){"struct"===i[c].meta.kind&&u++;var f=a(t,i[c],n,r);s.errors=s.errors.concat(f.errors)}return u>1&&s.errors.push(l.of(t,e,n,r.context)),s},d.interface=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};var i={value:{},errors:[]},o=e.meta.props;for(var u in o){var c=a(t[u],o[u],n.concat(u),r);i.value[u]=c.value,i.errors=i.errors.concat(c.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var f in t)o.hasOwnProperty(f)||s.Nil.is(t[f])||i.errors.push(l.of(t[f],s.Nil,n.concat(f),r.context));return i},s.mixin(s,{ValidationError:l,ValidationResult:f,validate:o}),t.exports=s},function(t,e,n){/*! @preserve
69
+ !function(o,a){"use strict";"object"==typeof t&&t.exports?t.exports=a():(r=a,void 0!==(i="function"==typeof r?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})},function(t,e,n){"use strict";function r(){return f>0}function i(t,e,n){var r=n.params,i=n.authorization,a=n.forceVerification;return l?scrivito.Promise.resolve(new XMLHttpRequest):(f+=1,new scrivito.Promise(function(n,s){var u=o(t,e,n,s);i&&u.setRequestHeader("Authorization",i),u.setRequestHeader("Scrivito-Client","jssdk/1.2.0-rc2-8-gc9ddb6bb"),a&&u.setRequestHeader("Scrivito-Force-Verification","true"),u.setRequestHeader("Content-type","application/json; charset=utf-8"),u.send(JSON.stringify(r))}))}function o(t,e,n,r){function i(t){s(new c.RequestFailedError(t),r)}var o=new XMLHttpRequest;return o.open("POST"===t?"POST":"PUT",e),o.timeout=15e3,o.withCredentials=!0,o.onload=function(){return a(o,n,r)},o.onerror=function(){return i("XMLHttpRequest Error")},o.ontimeout=function(){return i("XMLHttpRequest Timeout")},o.onabort=function(){return i("XMLHttpRequest Aborted")},o}function a(t,e,n){f-=1;var r=t.status;if(!r||!Object(u.isNumber)(r)){var i="Unexpected response status: "+r+"; body: "+(0===r?t.statusText:t.responseText);n(new c.RequestFailedError(i))}e(t)}function s(t,e){f-=1,e(t)}e.b=r,e.a=i;var u=n(0),c=(n.n(u),n(1)),l=!1,f=0},function(t,e,n){"use strict";var r=n(169),i=n.n(r);scrivito.Promise=window.Promise||i.a},function(t,e,n){"use strict";function r(t){var e=[],n=c.runWith(e,t);return new f(e,n)}function i(t){var e=l();if(!e)throw t(),new s.ScrivitoError("Content not yet loaded. Forgot to use Scrivito.load or Scrivito.connect? See https://scrivito.com/content-not-yet-loaded-error");e.push({reason:"missing",loader:t})}function o(t){var e=l();e&&e.push({reason:"outdated",loader:t})}e.a=r,e.b=i,e.c=o;var a=n(0),s=(n.n(a),n(1)),u=n(69),c=new u.a,l=function(){return c.current()},f=function(){function t(t,e){this.captureList=t,this.result=e}return t.prototype.isAllDataLoaded=function(){return!Object(a.findWhere)(this.captureList,{reason:"missing"})},t.prototype.isAllDataUpToDate=function(){return 0===this.captureList.length},t.prototype.loadRequiredData=function(){if(0===this.captureList.length)return null;this.captureList.forEach(function(t){return t.loader()})},t}()},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(12)),o=n(37),a=function(){function t(t,e){var n=(void 0===e?{}:e).batchSize;this.mget=t,this.batchSize=n||100,this.deferreds={}}return t.prototype.retrieve=function(t){var e=this;if(Object(r.isEmpty)(this.deferreds)&&Object(o.a)(function(){return e.performRetrieval()}),!this.deferreds[t]){var n=new i.a;this.deferreds[t]=n}return this.deferreds[t].promise},t.prototype.reset=function(){this.deferreds={}},t.prototype.performRetrieval=function(){var t=this,e=Object(r.keys)(this.deferreds).slice(0,this.batchSize);if(0!==e.length){var n={};e.forEach(function(e){n[e]=t.deferreds[e],delete t.deferreds[e]}),this.mget(e).then(function(r){e.forEach(function(e,i){var o=n[e],a=r[i];i<r.length?o.resolve(a):t.retrieve(e).then(o.resolve,o.reject)})},function(t){Object(r.each)(n,function(e){return e.reject(t)})}),this.performRetrieval()}},t}();e.a=a},function(t,e,n){function r(t,e){return"function"==typeof e?i(e):e}var i=n(51);t.exports=function(t){try{return JSON.stringify(t,r,2)}catch(e){return String(t)}}},function(t,e,n){var r=n(16),i=n(66);t.exports=r("Boolean",i)},function(t,e,n){var r=n(16),i=n(25);t.exports=r("Nil",i)},function(t,e,n){var r=n(16),i=n(109);t.exports=r("Number",i)},function(t,e){t.exports=function(t){return"number"==typeof t&&isFinite(t)&&!isNaN(t)}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"union"===t.meta.kind}},function(t,e,n){function r(t){return"Array<"+a(t)+">"}function i(t,e){function n(e,n){if(f)return e;for(var r=!0,i=[],o=0,a=e.length;o<a;o++){var s=e[o],c=u(t,s,null);r=r&&s===c,i.push(c)}return r&&(i=e),i}var i=e||r(t),f=(a(t),s(t));return n.meta={kind:"list",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return l(e)&&e.every(function(e){return c(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(30),c=n(31),l=n(28);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"{"+Object.keys(t).map(function(e){return e+": "+i(t[e])}).join(", ")+"}"}var i=n(8);t.exports=r},function(t,e,n){function r(t,e,n){var r=t.reduce(function(t,e){return l(t,e)},e);return n&&(r.displayName=n,r.meta.name=n),r}function i(t){return c(t)?t:t.meta.props}function o(t){return c(t)?null:t.meta.defaultProps}function a(t,e){Array.prototype.push.apply(t,e)}function s(t,e,n){var s={},c={},l=[],d={};e.forEach(function(t,e){var n=f(t),r=n.unrefinedType;a(l,n.predicates),u(s,i(r)),u(c,r.prototype),u(d,o(r),!0)}),n=t.getOptions(n),n.defaultProps=u(d,n.defaultProps,!0);var h=r(l,t(s,{strict:n.strict,defaultProps:n.defaultProps}),n.name);return u(h.prototype,c),h}var u=(n(5),n(10),n(28),n(80)),c=(n(197),n(198),n(27)),l=n(77),f=n(199);t.exports=s},function(t,e,n){function r(t){return"["+t.map(a).join(", ")+"]"}function i(t,e){function n(e,n){if(a)return e;for(var r=!0,i=[],o=0,s=t.length;o<s;o++){var u=t[o],l=e[o],f=c(u,l,null);r=r&&l===f,i.push(f)}return r&&(i=e),i}var i=e||r(t),a=t.every(s);return n.meta={kind:"tuple",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return u(e)&&e.length===t.length&&t.every(function(t,n){return l(e[n],t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=n(28),c=n(30),l=n(31);i.getDefaultName=r,t.exports=i},function(t,e){function n(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}t.exports=n},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t){var e={};return F.a.each(t,function(t,n){var r=i(t,2),o=r[0],a=r[1],s=c(n);if(Object(D.a)(s))e[s]=o;else{var u=i(a,2),h=u[0],p=u[1];e[s]=[l(h,n),d(f(h,p,o,n))]}}),e}function c(t){if(!Object(H.c)(t))throw new z.ArgumentError("Attribute names have to be in camel case.");return Object(H.e)(t)}function l(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 z.ArgumentError('Attribute "'.concat(e,'" is of unsupported type "').concat(t,'".'))}}function f(t,e,n,r){if(null===n)return n;switch(t){case"binary":return p(n,r);case"date":return v(n,r);case"enum":return y(e,n,r);case"float":return m(n,r);case"html":return b(n,r);case"integer":return g(n,r);case"link":return w(n,r);case"linklist":return _(n,r);case"multienum":return E(e,n,r);case"reference":return x(n,r);case"referencelist":return C(n,r);case"string":return T(n,r);case"stringlist":return N(n,r);case"widgetlist":return L(n,r);default:throw new z.InternalError('serializeAttributeValue is not implemented for "'.concat(t,'".'))}}function d(t){return(F.a.isString(t)||F.a.isArray(t))&&F.a.isEmpty(t)?null:t}function h(t,e,n){throw new z.ArgumentError("Unexpected value ".concat(Object(U.a)(t)," for")+' attribute "'.concat(e,'". Expected: ').concat(n))}function p(t,e){if(r(t,W.a))return{id:t.id()};h(t,e,"A Binary.")}function v(t,e){return F.a.isDate(t)?Object(q.c)(t):Object(q.d)(t)?t:void h(t,e,"A Date.")}function y(t,e,n){var r=t.values;if(F.a.contains(r,e))return e;h(e,n,'Valid attribute values are contained in its "values" array ['.concat(r,"]."))}function m(t,e){if(Object(q.e)(t))return t;var n=t;F.a.isNumber(t)&&(n=String(t)),h(n,e,"A Number, that is #isFinite().")}function b(t,e){if(F.a.isString(t))return t;h(t,e,"A String.")}function g(t,e){if(Object(q.f)(t))return t;h(t,e,"A Number, that is #isSafeInteger().")}function w(t,e){if(k(t))return O(t);h(t,e,"A Link instance.")}function _(t,e){if(F.a.isArray(t)&&F.a.every(t,k))return F.a.map(t,O);h(t,e,"An array of Link instances.")}function k(t){if(r(t,M.a))return!0;if(!F.a.isObject(t))return!1;var e=F.a.without(F.a.keys(t),"hash","obj_id","query","target","title","url");return F.a.isEmpty(e)}function O(t){var e={fragment:"function"==typeof t.hash?t.hash():t.hash,query:"function"==typeof t.query?t.query():t.query,target:"function"==typeof t.target?t.target():t.target,title:"function"==typeof t.title?t.title():t.title,url:"function"==typeof t.url?t.url():t.url};return e.obj_id="function"==typeof t.objId?t.objId():t.obj_id,F.a.mapObject(e,function(t){return t||null})}function E(t,e,n){var r=t.values,i="An array with values from ".concat(Object(U.a)(r),".");F.a.isArray(e)&&F.a.every(e,F.a.isString)||h(e,n,i);var o=F.a.difference(e,r);if(o.length){h(e,n,"".concat(i," Forbidden values: ").concat(Object(U.a)(o),"."))}return e}function x(t,e){if(S(t))return j(t);h(t,e,"A BasicObj or a String ID.")}function C(t,e){if(A(t))return F.a.map(t,j);h(t,e,"An array with BasicObjs or String IDs.")}function j(t){return r(t,I.default)?t.id():t}function S(t){return F.a.isString(t)||r(t,I.default)}function A(t){return F.a.isArray(t)&&F.a.every(t,function(t){return S(t)})}function T(t,e){if(P(t))return t.toString();h(t,e,"A String.")}function N(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return P(t)}))return F.a.invoke(t,"toString");h(t,e,"An array of strings.")}function P(t){return F.a.isString(t)||F.a.isNumber(t)}function L(t,e){if(F.a.isArray(t)&&F.a.every(t,function(t){return r(t,R.a)}))return F.a.invoke(t,"id");h(t,e,"An array of BasicWidget instances.")}e.a=u;var I=n(3),D=n(47),q=n(48),R=n(32),M=n(34),B=n(0),F=n.n(B),z=n(1),U=n(41),H=n(23),W=n(26)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return s(t)||a(t,e)||o()}function o(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function a(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function s(t){if(Array.isArray(t))return t}function u(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}n.d(e,"a",function(){return b});var f=n(213),d=n(47),h=n(132),p=n(0),v=n.n(p),y=n(1),m=n(23),b=function(){function t(){u(this,t)}return l(t,[{key:"get",value:function(t,e){if(!Object(m.c)(t))throw new y.ArgumentError("Attribute names have to be in camel case.");var n=Object(m.e)(t);{if(!Object(d.a)(n)){var r=scrivito.typeInfo.normalize(e),o=i(r,2),a=o[0],s=o[1],u=this.getAttributeData(n);return u&&v.a.isArray(u)||(u=[]),f.a(this,u,a,s)}if(v.a.has(this._systemAttributes,n)){var c=this._systemAttributes[n];return"function"==typeof this[c]?this[c]():this[c]}}}},{key:"field",value:function(t,e){return new h.a({container:this,attributeName:t,typeInfo:scrivito.typeInfo.normalize(e)})}},{key:"widget",value:function(t){throw new TypeError("Override in subclass.")}},{key:"serializeAttributes",value:function(){var t=this,e={};return v.a.each(this.getData(),function(n,r){if(v.a.isArray(n)&&"widgetlist"===v.a.first(n)){var i=Object(m.a)(r),o=v.a.invoke(t.get(i,["widgetlist"]),"serializeAttributes");return void(e[r]=["widgetlist",o])}e[r]=n}),e}},{key:"_persistWidgets",value:function(t,e){v.a.each(e,function(e){var n=i(e,2),r=n[0],o=n[1];o&&"widgetlist"===o[0]&&v.a.each(r,function(e){e.isPersisted()||e.persistInObj(t)})})}},{key:"getAttributeData",value:function(){throw new TypeError("Override in subclass.")}},{key:"getData",value:function(){throw new TypeError("Override in subclass.")}},{key:"_objClass",get:function(){throw new TypeError("Override in subclass.")}}]),t}()},function(t,e,n){"use strict";function r(t,e,n){s.a.store(t,e,n)}function i(t){return scrivito.computeCacheKey(t)}function o(t,e){return new u.a(t,e)}function a(){return c.b.subState("objQuery")}e.d=r,e.a=i,e.b=o,e.c=a;var s=n(119),u=n(215),c=n(4)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(214),u=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,null,[{key:"store",value:function(t,e,n){s.a.store(t,e,n)}},{key:"count",value:function(t){return s.a.countFor(t)}}]),a(t,[{key:"iterator",value:function(){function t(){if(!n)return{done:!0};var i=n.objIds();if(r<i.length){var o=i[r];return r++,e[o]?t():(e[o]=!0,{value:o,done:!1})}return n=n.nextBatch(),r=0,t()}var e={},n=s.a.firstBatchFor(this._params,this._batchSize),r=0;return{next:t}}}]),t}()},function(t,e,n){"use strict";function r(){for(var t=Math.floor(Math.random()*Math.pow(16,8)).toString(16);t.length<8;)t="0".concat(t);return t}function i(){return r()+r()}n.d(e,"b",function(){return i}),n.d(e,"a",function(){return r})},function(t,e,n){"use strict";function r(t,e){for(var n=t.iterator(),r=[];r.length!==e;){var i=n.next();if(i.done)return r;r.push(i.value)}return r}function i(t){return t.iterator().next().value||null}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){return t.displayName||t.name}e.a=r},,,,,function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.client={}},function(t,e,n){"use strict";function r(t){return i(1e3*t)}function i(t){return new scrivito.Promise(function(e){setTimeout(e,t)})}e.a=r,e.b=i;n(102)},function(t,e,n){"use strict";function r(t,e){Object(c.d)("navigateTo"),y(t,e);var n,r;if(e){n=e.params||{},r=e.hash;var a=Object(o.omit)(e,"hash","params");m(t,a),n=Object(o.extend)(a,n)}Object(f.e)(function(){return{obj:Object(d.c)(Object(o.isFunction)(t)?t():t),queryParameters:n,hash:r}},i)}function i(t){var e=t.obj,n=t.queryParameters,r=t.hash;e&&(Object(s.a)(),Object(h.d)({obj:e,queryParameters:n,hash:r}))}e.a=r;var o=n(0),a=(n.n(o),n(24)),s=n(294),u=n(59),c=n(4),l=n(39),f=n(60),d=n(22),h=n(72),p=a.a.union([a.a.Function,a.a.irreducible("null",function(t){return null===t}),u.d,u.b]),v=a.a.dict(a.a.String,a.a.maybe(a.a.String)),y=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(a.a.struct({hash:a.a.maybe(a.a.String),params:a.a.maybe(v)},{strict:!1}))]],{docPermalink:"js-sdk/navigateTo"}),m=Object(l.a)("navigateTo",[["target",p],["options",a.a.maybe(v)]],{docPermalink:"js-sdk/navigateTo"})},function(t,e,n){"use strict";function r(t){return function(){return d.a.retrieveBinaryMetadata(t).then(function(t){return o(t)})}}function i(t){return h.b.subState("metadataCollection").subState(t)}function o(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],u=a[0],c=a[1];if(null===c||void 0===c)throw new l.InternalError('Invalid backend value "null" or "undefined" for metadata "'+o+'"');var f=void 0;if(u===s.Date){if("string"!=typeof c)throw new l.InternalError('Invalid non-string backend value for a date metadata "'+o+'"');f=Object(p.a)(c)}else f=c;n[o]=f}return n}function a(t){if(!Object(f.c)(t))throw new l.ArgumentError('Metadata key "'+t+'" is not in camel case.')}var s,u=n(0),c=(n.n(u),n(18)),l=n(1),f=n(23),d=n(43),h=n(4),p=n(48);!function(t){t.Date="date",t.Number="number",t.String="string",t.Stringlist="stringlist"}(s||(s={}));var v=function(){function t(t){this._binaryId=t,t&&(this._loadableData=new c.b({state:i(t),loader:r(t)}))}return t.store=function(t,e){new c.b({state:i(t),loader:r(t)}).set(o(e))},t.prototype.get=function(t){a(t);var e=this._getData();if(e)return e[Object(f.e)(t)]},t.prototype.keys=function(){var t=this._getData();return t?Object(u.map)(Object(u.keys)(t),f.a):[]},Object.defineProperty(t.prototype,"binaryId",{get:function(){return this._binaryId},enumerable:!0,configurable:!0}),t.prototype._getData=function(){if(this._loadableData)return this._loadableData.get()},t}();e.a=v},function(t,e,n){"use strict";n.d(e,"a",function(){return i}),n.d(e,"b",function(){return o});var r=n(24),i=r.a.interface({size:r.a.Number,type:r.a.String},{name:"Blob",strict:!1}),o=i.extend({name:r.a.String},{name:"File",strict:!1})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function s(t,e,n){return e&&a(t.prototype,e),n&&a(t,n),t}n.d(e,"a",function(){return f});var u=n(3),c=n(0),l=(n.n(c),n(1)),f=function(){function t(e){var n=e.container,r=e.attributeName,i=e.typeInfo;o(this,t),this._container=n,this._attributeName=r,this._typeInfo=i}return s(t,[{key:"get",value:function(){return this._container.get(this.name(),this._typeInfo)}},{key:"update",value:function(t){this._container.update(i({},this.name(),[t,this._typeInfo]))}},{key:"container",value:function(){return this._container}},{key:"obj",value:function(){return this.container().obj()}},{key:"name",value:function(){return this._attributeName}},{key:"type",value:function(){return this._typeInfo[0]}},{key:"typeOptions",value:function(){return this._typeInfo[1]||{}}},{key:"equals",value:function(e){return!!r(e,t)&&(this.container().equals(e.container())&&this.name()===e.name())}},{key:"values",value:function(){return this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have values"),this._sortValuesByLocalization(this.typeOptions().values)}},{key:"titleForValue",value:function(t){this._assertValidTypes(["enum","multienum"],"Only enum and multienum attributes can have localized values");var e=Object(c.findWhere)(this.typeOptions().valuesLocalization,{value:t});return e&&e.title||t}},{key:"toString",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="<BasicField name=".concat(e," objId=").concat(n);return i+=r?" widgetId=".concat(r,">"):">"}},{key:"id",value:function(){var t=this._dataForId(),e=t.name,n=t.objId,r=t.widgetId,i="".concat(e,"|").concat(n);return r&&(i+="|".concat(r)),i}},{key:"_assertValidTypes",value:function(t,e){if(!Object(c.include)(t,this.type()))throw new l.InternalError(e)}},{key:"_dataForId",value:function(){var t={name:this.name()},e=this.container();return r(e,u.default)?t.objId=e.id():(t.objId=e.obj().id(),t.widgetId=e.id()),t}},{key:"_sortValuesByLocalization",value:function(t){var e=this;return t?this.typeOptions().valuesLocalization?Object(c.sortBy)(t,function(n){var r=Object(c.findIndex)(e.typeOptions().valuesLocalization,{value:n});return-1===r?t.length:r}):t:[]}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return f});var s=n(3),u=n(42),c=n(1),l=n(22),f=function(){function t(e){i(this,t),this._registry=e}return a(t,[{key:"getObj",value:function(t,e){var n=s.default.get(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"getObjIncludingDeleted",value:function(t,e){var n=s.default.getIncludingDeleted(e);return this._checkObjClassAndWrapInAppClass(t,n)}},{key:"read",value:function(t,e){var n=u.a.basicFieldFor(t,e);if(n){var r=n.get();return Object(l.e)(this._registry,r)}}},{key:"update",value:function(t,e){var n=this._registry.objClassNameFor(t.constructor);if(!n){var r;throw r=t.constructor===this._registry.defaultClassForObjs?"Obj":"Widget",new c.ArgumentError('Updating is not supported on the base class "'.concat(r,'".'))}if(e.constructor!==Object)throw new c.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");var i=u.a.forInstance(t),o=Object(l.b)(e,i,n);t._scrivitoPrivateContent.update(o)}},{key:"wrapInAppClass",value:function(t){return Object(l.e)(this._registry,t)}},{key:"_checkObjClassAndWrapInAppClass",value:function(t,e){var n=this._registry.objClassNameFor(t);if(n&&n!==e.objClass())throw new c.ResourceNotFoundError('Obj with id "'.concat(e.id(),'" is not of type "').concat(n,'".'));return this.wrapInAppClass(e)}}]),t}()},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=function(){var t=null,e=function(e){return i()(null==t,"A history supports only one prompt at a time"),t=e,function(){t===e&&(t=null)}},n=function(e,n,r,o){if(null!=t){var a="function"==typeof t?t(e,n):t;"string"==typeof a?"function"==typeof r?r(a,o):(i()(!1,"A history needs a getUserConfirmation function in order to use a prompt message"),o(!0)):o(!1!==a)}else o(!0)},r=[];return{setPrompt:e,confirmTransitionTo:n,appendListener:function(t){var e=!0,n=function(){e&&t.apply(void 0,arguments)};return r.push(n),function(){e=!1,r=r.filter(function(t){return t!==n})}},notifyListeners:function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];r.forEach(function(t){return t.apply(void 0,e)})}}};e.a=o},function(t,e,n){"use strict";function r(t){return t.replace(s,function(t,e){var n=Object(i.a)(e),r=o.i(n);return r&&(Object(a.a)(r,e),o.g(r))?o.b(r,t):n.toString()})}e.a=r;var i=n(313),o=n(63),a=n(314),s=/\bobjid:([a-f0-9]{16})\b([^"']*)/g},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return o(t),r(t,l.a)?u(t):r(t,d.a)?a(t):Object(h.a)(t)?s(t):Object(p.a)({obj:t})}function o(t){if(!t)throw new f.ArgumentError("Missing target.");if(!r(t,l.a)&&!r(t,c.default)&&!r(t,d.a))throw new f.ArgumentError("Target is invalid. Valid targets are instances of Obj or Link.")}function a(t){return t.url()}function s(t){var e=t.get("blob",["binary"]);return e?a(e):Object(p.a)({obj:t})}function u(t){return t.isExternal()?t.url():i(t.obj())}e.a=i;var c=n(3),l=n(34),f=n(1),d=n(26),h=n(226),p=n(63)},function(t,e,n){"use strict";function r(){if(o)return{filters:o}}function i(t){if(d.b){j(t),t.filters&&(o=t.filters);var e=t.baseFilter;if(e){var n=e.query;n&&d.b.configureContentBrowser(Object(s.a)({baseQuery:n}))}}}e.b=r,e.a=i;var o,a=n(0),s=(n.n(a),n(138)),u=n(39),c=n(24),l=n(59),f=n(54),d=n(17),h=c.a.union([c.a.String,c.a.list(c.a.String)]),p=c.a.enums.of(Object(a.intersection)(f.a,["contains","containsPrefix","equals","startsWith","isGreaterThan","isLessThan"])),v=c.a.union([c.a.String,c.a.Date,c.a.Nil,c.a.Number,c.a.list(c.a.union([c.a.String,c.a.Nil])),c.a.list(c.a.union([c.a.Date,c.a.Nil])),c.a.list(c.a.union([c.a.Number,c.a.Nil]))],"SearchValue"),y=c.a.struct({title:c.a.maybe(c.a.String)}),m=y.extend({field:c.a.maybe(h),operator:c.a.maybe(p),expanded:c.a.maybe(c.a.Boolean)}),b=y.extend({value:c.a.maybe(v),query:c.a.maybe(l.c),selected:c.a.maybe(c.a.Boolean)}),g=m.extend({type:c.a.enums.of(["radioButton"]),options:c.a.dict(c.a.String,b)},"RadioFilterDefinition"),w=y.extend({value:c.a.maybe(v),selected:c.a.maybe(c.a.Boolean)}),_=m.extend({type:c.a.enums.of(["checkbox"]),options:c.a.dict(c.a.String,w)},"CheckboxFilterDefinition"),k=c.a.declare("TreeFilterDefinition");k.define(y.extend({type:c.a.maybe(c.a.enums.of("tree")),icon:c.a.maybe(c.a.String),query:c.a.maybe(l.c),expanded:c.a.maybe(c.a.Boolean),value:c.a.maybe(v),field:c.a.maybe(h),operator:c.a.maybe(p),selected:c.a.maybe(c.a.Boolean),options:c.a.maybe(c.a.dict(c.a.String,k))}));var O=c.a.union([k,_,g]);O.dispatch=function(t){switch(t.type||"tree"){case"tree":return k;case"radioButton":return g;case"checkbox":return _}};var E=c.a.dict(c.a.String,O),x=c.a.struct({query:l.c}),C=c.a.struct({filters:c.a.maybe(E),baseFilter:c.a.maybe(x)},"Configuration"),j=Object(u.a)("configureContentBrowser",[["configuration",C]],{docPermalink:"js-sdk/configureContentBrowser"})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t){if(!t)return t;switch(i(t)){case"string":case"number":case"boolean":return t;case"object":return r(t._scrivitoPrivateContent,c.b)?o(t._scrivitoPrivateContent.params()):Object(u.isDate)(t)?t:Object(u.isArray)(t)?a(t):s(t)}}function a(t){var e=[];return t.forEach(function(t){var n=o(t);void 0!==n&&e.push(n)}),e}function s(t){var e={};return Object(u.each)(t,function(t,n){var r=o(t);void 0!==r&&(e[n]=r)}),e}e.a=o;var u=n(0),c=(n.n(u),n(54))},function(t,e,n){"use strict";var r=function(){function t(t){var e=t.controller;this._controller=e}return t.canEdit=function(t){t.type,t.tag;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}();e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function l(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function f(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");d(t.prototype,e&&e.prototype),e&&d(t,e)}function d(t,e){return(d=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function h(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function p(t,e,n){return e&&h(t.prototype,e),n&&h(t,n),t}function v(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?m(t):e}function y(t){return(y=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function b(t,e){var n=Object(A.a)(t),r=n.objId,i=n.widgetId;P.b.insertWidget(r,i,e)}n.d(e,"a",function(){return q});var g=n(237),w=n.n(g),_=n(13),k=n.n(_),O=n(85),E=n.n(O),x=n(0),C=(n.n(x),n(87)),j=n(42),S=n(62),A=n(141),T=n(14),N=n(1),P=n(17),L=n(351),I=n(239),D=n(240),q="_scrivitoWidget",R=function(t){function e(t){var n;return l(this,e),n=v(this,y(e).call(this,t)),n.state={hasFocus:!1,isDragged:!1,isFocusFadedOut:!0},n._onMouseOver=n._onMouseOver.bind(m(m(n))),n._onMouseOut=n._onMouseOut.bind(m(m(n))),n._onWidgetFocus=n._onWidgetFocus.bind(m(m(n))),n._onWidgetBlur=n._onWidgetBlur.bind(m(m(n))),n._lockFocus=n._lockFocus.bind(m(m(n))),n._unlockFocus=n._unlockFocus.bind(m(m(n))),n._setDragState=n._setDragState.bind(m(m(n))),n}return p(e,[{key:"componentDidMount",value:function(){this._registerDropZone(),this._focusToken=scrivito.WidgetFocus.subscribe({onFocus:this._onWidgetFocus,onBlur:this._onWidgetBlur})}},{key:"componentDidUpdate",value:function(){this._widgetRef!==this._dropZoneWidgetRef&&this._registerDropZone()}},{key:"componentWillUnmount",value:function(){scrivito.WidgetFocus.unsubscribe(this._focusToken)}},{key:"getChildContext",value:function(){return c({},q,null)}},{key:"render",value:function(){var t=this,e=this.context[q];if(!e)throw new N.ScrivitoError("Detected inappropriate placing of Scrivito.WidgetTag: It is intended to be used exclusively as top-level element inside a Widget component.");return Object(C.a)()?k.a.createElement(this.props.tag,Object(x.extend)(Object(x.omit)(this.props,"tag","className","style"),{ref:function(e){return t._widgetRef=e},className:this._className(),style:this._style(),onMouseOver:this._onMouseOver,onMouseOut:this._onMouseOut,children:[k.a.createElement(L.a,{key:"menuMarker",widget:e,setDragState:this._setDragState,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})].concat(o(k.a.Children.toArray(this.props.children)),[this._renderOptionMarker("top"),this._renderOptionMarker("bottom")])},this._dataProps())):k.a.createElement(this.props.tag,Object(x.omit)(this.props,"tag"))}},{key:"_setDragState",value:function(t){this.setState({isDragging:t})}},{key:"_className",value:function(){return this._hasVisibleFocus()?this.props.className?"".concat(this.props.className," scrivito_active scrivito_entered"):"scrivito_active scrivito_entered":this.props.className}},{key:"_hasVisibleFocus",value:function(){return this.state.hasFocus&&!this.state.isFocusFadedOut}},{key:"_dataProps",value:function(){var t={"data-scrivito-private-widget":"true","data-scrivito-private-dropzone":"true"};return this._isStructureMarker()&&(t["data-scrivito-private-structure-widget"]="true"),this.state.isDragging&&(t["data-scrivito-private-dropback"]="true"),t}},{key:"_style",value:function(){return this.state.isDragging?this.props.style?Object(x.extend)(this.props.style,{opacity:.5}):{opacity:.5}:this.props.style}},{key:"_isStructureMarker",value:function(){var t=Object(S.a)(),e=t.widgetClassFor(this.context[q].objClass()),n=j.a.forClass(e);return!!n&&Object(x.some)(n.attributes,function(t,e){return"widgetlist"===t[0]})}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyFocus(this._focusToken)}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),scrivito.WidgetFocus.notifyBlur(this._focusToken)}},{key:"_onWidgetFocus",value:function(){var t=this;this.setState({hasFocus:!0,isFocusFadedOut:!1}),this._fadeOutFocusTimeout&&clearTimeout(this._fadeOutFocusTimeout),this._isStructureMarker()||(this._fadeOutFocusTimeout=setTimeout(function(){return t._fadeOutFocus()},1e3))}},{key:"_fadeOutFocus",value:function(){this.state.isFocusFadedOut||this._isFocusLocked||this.setState({isFocusFadedOut:!0})}},{key:"_lockFocus",value:function(){this._isFocusLocked=!0}},{key:"_unlockFocus",value:function(){this._isFocusLocked=!1}},{key:"_onWidgetBlur",value:function(){this.setState({hasFocus:!1})}},{key:"_renderOptionMarker",value:function(t){return k.a.createElement(I.a,{key:"optionMarker-".concat(t),position:t,widget:this.context[q],insertWidget:b,isAlwaysShown:D.b,onMouseOver:this._lockFocus,onMouseOut:this._unlockFocus})}},{key:"_registerDropZone",value:function(){if(Object(C.a)()&&this._widgetRef){var t=Object(A.a)(this.context[q]),e=t.objId,n=t.widgetId,r=E.a.findDOMNode(this._widgetRef);P.b.registerWidgetDropZoneInDom(r,e,n),this._dropZoneWidgetRef=this._widgetRef}}}]),f(e,t),e}(k.a.Component);R.displayName="Scrivito.WidgetTag",R.defaultProps={tag:"div"},R.contextTypes=c({},q,w.a.object),R.childContextTypes=c({},q,w.a.object),e.b=Object(T.a)(R)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return r(t,o.default)?{objId:t.id()}:{objId:t.obj().id(),widgetId:t.id()}}e.a=i;var o=n(3)},,,,,,,,,,,function(t,e,n){"use strict";function r(t){i();var e=t.location,n=e.hash,r=n.indexOf(u);if(!(r<0)){var o=n.substr(r+u.length,3),a=n.substring(0,r);"#"===a&&(a="");var c=e.href.toString().replace(n,a);s=parseInt(o,10)||0,t.history.replaceState({},"",c)}}function i(){s=0}function o(t){var e=t.toString();return t.hash||(e="".concat(e,"#")),"".concat(e).concat(u).concat(s+1)}function a(){return s}var s,u="&scrivito.authFailedCount=";e.a={init:r,augmentedRedirectUrl:o,reset:i,currentFailureCount:a}},function(t,e,n){"use strict";function r(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("link");n.rel="stylesheet",n.href=t,e.head.appendChild(n)}function i(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window.document,n=e.createElement("script");n.src=t,e.head.appendChild(n)}e.a=r,e.b=i},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();if(t!==e)throw new i.InternalError("Requested and the actual current workspace differ! Expected "+e+", but saw "+t+".")}e.a=r;var i=n(1)},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e){var n=u(t,e);if(n)return n;var r=t._widget_pool;return f.a.find(r,function(t,r){if(n=u(t,e))return n.parentWidgetId=r,!0}),n}function u(t,e){var n;return f.a.find(t,function(t,i){if(!Object(c.a)(i)){var o=r(t,2),a=o[0],s=o[1];if(s&&"widgetlist"===a){var u=s.indexOf(e);if(-1!==u)return n={attributeName:i,index:u},!0}}}),n}e.a=s;var c=n(47),l=n(0),f=n.n(l)},function(t,e,n){t.exports=n(212)},,,,,function(t,e,n){"use strict";function r(){if(window.parent!==window){var t=window.parent.connectAppDocument;return t?t(window.document):void 0}}e.a=r},function(t,e,n){"use strict";var r=n(127),i=(n.n(r),n(163),n(165),n(166),n(167));n.n(i),n(168),n(206),n(207),n(96),n(102),n(208),n(209)},function(t,e,n){"use strict";var r=n(37),i=n(4);!function(){function t(t){o()||Object(r.a)(function(){return Object(i.j)(function(){return e(n)})}),n.push(t)}function e(t){n=[];try{t.forEach(function(t){return t()})}finally{o()&&e(n)}}var n=[],o=function(){return n.length};scrivito.batchedStateUpdater={add:t}}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(1),o=n(0),a=(n.n(o),n(69)),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=0,c=Object.assign||o.extend,l=function(){function t(){}return t.prototype.get=function(){var t=this,e=this.untrackedGet();return this.recordDetector(function(){return e!==t.untrackedGet()}),e},t.prototype.recordDetector=function(t){this.getTree().recordDetector(t)},t.prototype.clear=function(){this.set(void 0)},t.prototype.subState=function(t){return new h(this,t)},t.prototype.reader=function(){return this},t.prototype.setSubState=function(t,e){var n=this.untrackedGet();if(void 0===n){var r=(o={},o[t]=e,o);this.set(r)}else{var i=c({},n);i[t]=e,this.set(i)}var o},t.prototype.getSubState=function(t){var e=this.untrackedGet();if(e)return e[t]},t}(),f=function(t){function e(){var e=t.call(this)||this;return e.treeId=(u++).toString(),e.listeners=[],e.detectorRecording=new a.a,e.batchUpdates=new a.a,e.version=0,e.frozenContextContainer=new a.a,e}return s(e,t),e.prototype.untrackedGet=function(){return this.state},e.prototype.withFrozenState=function(t,e){return this.frozenContextContainer.runWith(t,e)},e.prototype.failIfTracking=function(t){if(this.detectorRecording.current())throw new i.InternalError(t)},e.prototype.failIfFrozen=function(t){var e=this.frozenContextContainer.current();if(e){var n=t+" is not permitted inside '"+e.contextName+"'. "+(e.message||"");throw new d(n)}},e.prototype.set=function(t){this.failIfFrozen("Changing state"),this.state=t,this.version++,this.insideBatchUpdate()||this.notifyListeners()},e.prototype.trackChanges=function(t){var e=this,n=this.version,r=this.recordDetectors(t);return function(){return e.version!==n&&!!Object(o.find)(r,function(t){return t()})}},e.prototype.recordDetector=function(t){var e=this.detectorRecording.current();void 0!==e&&e.push(t)},e.prototype.getTree=function(){return this},e.prototype.id=function(){return this.treeId},e.prototype.subscribe=function(t){var e=this,n=!0,r=function(){n&&t()};return this.ensureCanMutateListeners(),this.listeners.push(r),function(){n=!1;var t=e.listeners.indexOf(r);e.ensureCanMutateListeners(),e.listeners.splice(t,1)}},e.prototype.withBatchedUpdates=function(t){var e=this.state;try{this.batchUpdates.runWith(!0,t)}finally{this.insideBatchUpdate()||e===this.state||this.notifyListeners()}},e.prototype.listenerCount=function(){return this.listeners.length},e.prototype.clearListeners=function(){this.listeners=[]},e.prototype.recordDetectors=function(t){if(void 0!==this.detectorRecording.current())throw new i.InternalError("no nested detector recording!");var e=[];return this.detectorRecording.runWith(e,t),e},e.prototype.notifyListeners=function(){this.listenersToNotify=this.listeners,this.listenersToNotify.forEach(function(t){return t()})},e.prototype.ensureCanMutateListeners=function(){this.listenersToNotify===this.listeners&&(this.listeners=this.listeners.slice())},e.prototype.insideBatchUpdate=function(){return!!this.batchUpdates.current()},e}(l);e.a=f;var d=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return s(e,t),e}(i.ScrivitoError),h=function(t){function e(e,n){var r=t.call(this)||this;return r.parentState=e,r.key=n,r.tree=e.getTree(),r}return s(e,t),e.prototype.getTree=function(){return this.tree},e.prototype.untrackedGet=function(){return this.parentState.getSubState(this.key)},e.prototype.set=function(t){this.parentState.setSubState(this.key,t)},e.prototype.id=function(){var t=this.key.replace(/\\/g,"\\\\").replace(/\//g,"\\/");return this.parentState.id()+"/"+t},e}(l)},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(e){return i.a.isArray(e)?i.a.map(e,t):i.a.isObject(e)?i.a.chain(e).mapObject(t).pairs().sortBy(i.a.first):e}scrivito.computeCacheKey=function(e){var n=t(e);return JSON.stringify(n)}}()},function(t,e,n){"use strict";var r=n(17);!function(){scrivito.currentWorkspaceId=function(){return r.b?r.b.currentWorkspaceId():"published"}}()},function(t,e){!function(){function t(){if(window&&window.console&&!n){var t;(t=window.console).error.apply(t,arguments)}}function e(){n=!0}var n=!1;scrivito.logError=t,scrivito.disableConsoleError=e}()},function(t,e,n){"use strict";var r=n(4),i=n(53);!function(){function t(t){var e=t.clientModulesForExport();o.forEach(function(t){scrivito[t]=e[t]}),Object(i.b)(e.objReplicationPool)}function e(){var t={objReplicationPool:i.a};return o.forEach(function(e){t[e]=scrivito[e]}),t}function n(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.ui;n&&t(n),Object(r.f)(n)}var o=["BinaryRequest"];scrivito.client.init=n,scrivito.client.modulesForExport=e}()},function(t,e,n){"use strict";(function(e){function n(){}function r(t,e){return function(){t.apply(e,arguments)}}function i(t){if(!(this instanceof i))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=[],l(t,this)}function o(t,e){for(;3===t._state;)t=t._value;if(0===t._state)return void t._deferreds.push(e);t._handled=!0,i._immediateFn(function(){var n=1===t._state?e.onFulfilled:e.onRejected;if(null===n)return void(1===t._state?a:s)(e.promise,t._value);var r;try{r=n(t._value)}catch(t){return void s(e.promise,t)}a(e.promise,r)})}function a(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 i)return t._state=3,t._value=e,void u(t);if("function"==typeof n)return void l(r(n,e),t)}t._state=1,t._value=e,u(t)}catch(e){s(t,e)}}function s(t,e){t._state=2,t._value=e,u(t)}function u(t){2===t._state&&0===t._deferreds.length&&i._immediateFn(function(){t._handled||i._unhandledRejectionFn(t._value)});for(var e=0,n=t._deferreds.length;e<n;e++)o(t,t._deferreds[e]);t._deferreds=null}function c(t,e,n){this.onFulfilled="function"==typeof t?t:null,this.onRejected="function"==typeof e?e:null,this.promise=n}function l(t,e){var n=!1;try{t(function(t){n||(n=!0,a(e,t))},function(t){n||(n=!0,s(e,t))})}catch(t){if(n)return;n=!0,s(e,t)}}var f=setTimeout;i.prototype.catch=function(t){return this.then(null,t)},i.prototype.then=function(t,e){var r=new this.constructor(n);return o(this,new c(t,e,r)),r},i.prototype.finally=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)})})},i.all=function(t){return new i(function(e,n){function r(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){r(t,e)},n)}i[t]=a,0==--o&&e(i)}catch(t){n(t)}}if(!t||void 0===t.length)throw new TypeError("Promise.all accepts an array");var i=Array.prototype.slice.call(t);if(0===i.length)return e([]);for(var o=i.length,a=0;a<i.length;a++)r(a,i[a])})},i.resolve=function(t){return t&&"object"==typeof t&&t.constructor===i?t:new i(function(e){e(t)})},i.reject=function(t){return new i(function(e,n){n(t)})},i.race=function(t){return new i(function(e,n){for(var r=0,i=t.length;r<i;r++)t[r].then(e,n)})},i._immediateFn="function"==typeof e&&function(t){e(t)}||function(t){f(t,0)},i._unhandledRejectionFn=function(t){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",t)},t.exports=i}).call(e,n(170).setImmediate)},function(t,e,n){(function(t){function r(t,e){this._id=t,this._clearFn=e}var i=void 0!==t&&t||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;e.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},e.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},e.clearTimeout=e.clearInterval=function(t){t&&t.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},e.enroll=function(t,e){clearTimeout(t._idleTimeoutId),t._idleTimeout=e},e.unenroll=function(t){clearTimeout(t._idleTimeoutId),t._idleTimeout=-1},e._unrefActive=e.active=function(t){clearTimeout(t._idleTimeoutId);var e=t._idleTimeout;e>=0&&(t._idleTimeoutId=setTimeout(function(){t._onTimeout&&t._onTimeout()},e))},n(171),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(e,n(40))},function(t,e,n){(function(t,e){!function(t,n){"use strict";function r(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;n<e.length;n++)e[n]=arguments[n+1];var r={callback:t,args:e};return c[u]=r,s(u),u++}function i(t){delete c[t]}function o(t){var e=t.callback,r=t.args;switch(r.length){case 0:e();break;case 1:e(r[0]);break;case 2:e(r[0],r[1]);break;case 3:e(r[0],r[1],r[2]);break;default:e.apply(n,r)}}function a(t){if(l)setTimeout(a,0,t);else{var e=c[t];if(e){l=!0;try{o(e)}finally{i(t),l=!1}}}}if(!t.setImmediate){var s,u=1,c={},l=!1,f=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?function(){s=function(t){e.nextTick(function(){a(t)})}}():function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?function(){var e="setImmediate$"+Math.random()+"$",n=function(n){n.source===t&&"string"==typeof n.data&&0===n.data.indexOf(e)&&a(+n.data.slice(e.length))};t.addEventListener?t.addEventListener("message",n,!1):t.attachEvent("onmessage",n),s=function(n){t.postMessage(e+n,"*")}}():t.MessageChannel?function(){var t=new MessageChannel;t.port1.onmessage=function(t){a(t.data)},s=function(e){t.port2.postMessage(e)}}():f&&"onreadystatechange"in f.createElement("script")?function(){var t=f.documentElement;s=function(e){var n=f.createElement("script");n.onreadystatechange=function(){a(e),n.onreadystatechange=null,t.removeChild(n),n=null},t.appendChild(n)}}():function(){s=function(t){setTimeout(a,0,t)}}(),d.setImmediate=r,d.clearImmediate=i}}("undefined"==typeof self?void 0===t?this:t:self)}).call(e,n(40),n(91))},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){function e(e){if(!u(e))throw e;return o(e.details).then(t)}return t(s()).catch(e)}function o(t){if(!l){var e=t.verificator,n=t.data,r=Object(h.a)(e.id,e.url).then(function(t){return new scrivito.Promise(function(e){function r(t){f=t,e(f.authorization)}t(n,r)})});l={challenge:{verificator:e,data:n},promise:p.a(r,function(){l=void 0})}}return l.promise}function a(){l=void 0,f=void 0}function s(){if(f)return f.expiresAfter<new Date?void(f=void 0):f.authorization}function u(t){return r(t,d.UnauthorizedError)&&t.backendCode===y}function c(){var t=s();if(t)return"Authorization: "+t;if(l){var e=l.challenge;return"Pending computation: "+e.verificator.id+" with "+e.data}return null}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"ERROR_CODE_CLIENT_VERIFICATION_REQUIRED",function(){return y}),e.perform=i,e.reset=a,e.currentState=c;var l,f,d=n(1),h=n(173),p=n(50),v=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),y="client_verification_required";!function(t){function e(){return null!==t&&t.apply(this,arguments)||this}v(e,t)}(d.UnauthorizedError)},function(t,e,n){"use strict";function r(t,e){var n=i[t];return n||(n=new o.a,i[t]=n,Object(a.b)(e)),n.promise}e.a=r;var i,o=n(12),a=n(153);!function(){i={}}(),window._scrivitoRegisterVerificator=function(t,e){i[t].resolve(e)}},function(t,e,n){"use strict";var r=n(88),i=n(53),o=n(18),a=n(4),s=n(1),u=n(43),c=function(){function t(t,e){var n=this;this._loadableData=new o.b({state:e,loader:function(t){var e=t.push;return u.a.retrieveObj(scrivito.currentWorkspaceId(),n._id).then(function(t){return e(function(){return n._replication().notifyBackendState(t)}),t})}}),this._id=t}return t.prototype.get=function(){return Object(a.e)("for performance reasons, avoid this method when rendering"),this._loadableData.get()},t.prototype.getWidget=function(t){return Object(a.e)("for performance reasons, avoid this method when rendering"),this.getWidgetState(t).get()},t.prototype.getAttribute=function(t){if("_widget_pool"===t)throw new s.InternalError("_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(a.d)("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=r.a(this.get(),t);this.set(e),this._replication().notifyLocalState(e)},t.prototype.finishSaving=function(){return this._replication().finishSaving()},t.prototype._replication=function(){return i.a.get(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}();e.a=c},function(t,e,n){"use strict";var r=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({status: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}();e.a=r},function(t,e,n){"use strict";function r(t){return void 0!==a[t]}function i(t){delete a[t]}function o(t,e,n,o){function u(t){l()&&t()}if(!r(t)){var c=s++,l=function(){return a[t]===c},f=[],d=function(t){return f.push(t)},h=function(){return f.forEach(function(t){return t()})};e({push:d,wasCancelled:function(){return!l()}}).then(function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),n(e),h()})})},function(e){return u(function(){return scrivito.batchedStateUpdater.add(function(){i(t),o(e),h()})})}),a[t]=c}}e.a=r,e.c=i,e.b=o;var a={},s=0},function(t,e,n){"use strict";function r(t){return i.a.get("blobs/"+encodeURIComponent(t||"")+"/meta_data")}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId();return o.a.get("workspaces/"+e+"/objs/mget",{ids:t,include_deleted:!0}).then(function(t){return t.results})}function i(t){return s.retrieve(t).then(function(e){return e||{_deleted:t}})}e.a=i;var o=n(21),a=n(104),s=new a.a(r,{batchSize:17})},function(t,e,n){"use strict";function r(t){var e=scrivito.currentWorkspaceId(),n=a({consistent:!0},t);return o.a.get("workspaces/"+e+"/objs/search",n).then(function(t){var e=i(t);return{results:e.results.map(function(t){return t.id}),continuation:e.continuation,total:e.total,objs:e.objs}})}function i(t){var e={results:t.results,total:t.total},n=t.continuation;void 0!==n&&(e.continuation=n);var r=t.objs;return void 0!==r&&(e.objs=r),e}e.a=r;var o=n(21),a=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t}},function(t,e,n){"use strict";function r(t,e){return i.a.get("workspaces/"+t+"/objs/search",e).then(function(t){return{facets:t.facets.map(function(t){return t.map(function(t){return{total:t.total,value:t.value,results:t.results}})})}})}e.a=r;var i=n(21)},function(t,e,n){"use strict";function r(t,e){var n,r="blobs/"+encodeURIComponent(t);return e&&(r+="/optimize",n={transformation:e}),a.a.get(r,n).then(function(e){return i(t,e)})}function i(t,e){var n=e.public_access,r=n.get;if(!r.url)throw new o.InternalError('Missing public access URL for binary "'+t+'"');var i={public_access:{get:{url:r.url}}},a=e.private_access;if(a){var s=a.get;s.url&&(i.private_access={get:{url:s.url}})}return i}e.a=r;var o=n(1),a=n(21)},function(t,e,n){"use strict";function r(t,e,n){var r=s.getTypeName(e),i=n.length?"/"+n.join("/")+": "+r:r;return"Invalid value "+u(t)+" supplied to "+i}function i(t,e,n,i){return s.Function.is(e.getValidationErrorMessage)?e.getValidationErrorMessage(t,n,i):r(t,e,n)}function o(t,e,n){n=n||{};var r=s.Array.is(n)?n:n.path||[];return new f(a(t,e,r,n))}function a(t,e,n,r){return s.isType(e)?d[e.meta.kind](t,e,n,r):d.es6classes(t,e,n,r)}var s=n(183),u=s.stringify,c={},l=s.struct({message:s.Any,actual:s.Any,expected:s.Any,path:s.list(s.union([s.String,s.Number]))},"ValidationError");l.of=function(t,e,n,r){return new l({message:i(t,e,n,r),actual:t,expected:e,path:n})};var f=s.struct({errors:s.list(l),value:s.Any},"ValidationResult");f.prototype.isValid=function(){return!this.errors.length},f.prototype.firstError=function(){return this.isValid()?null:this.errors[0]},f.prototype.toString=function(){return this.isValid()?"[ValidationResult, true, "+u(this.value)+"]":"[ValidationResult, false, ("+this.errors.map(function(t){return u(t.message)}).join(", ")+")]"};var d=o.validators={};d.es6classes=function(t,e,n,r){return{value:t,errors:t instanceof e?[]:[l.of(t,e,n,r.context)]}},d.irreducible=d.enums=function(t,e,n,r){return{value:t,errors:e.is(t)?[]:[l.of(t,e,n,r.context)]}},d.list=function(t,e,n,r){if(!s.Array.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};for(var i={value:[],errors:[]},o=0,u=t.length;o<u;o++){var c=a(t[o],e.meta.type,n.concat(o),r);i.value[o]=c.value,i.errors=i.errors.concat(c.errors)}return i},d.subtype=function(t,e,n,r){var i=a(t,e.meta.type,n,r);return i.errors.length?i:(e.meta.predicate(i.value)||(i.errors=[l.of(t,e,n,r.context)]),i)},d.maybe=function(t,e,n,r){return s.Nil.is(t)?{value:t,errors:[]}:a(t,e.meta.type,n,r)},d.struct=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};if(e.is(t))return{value:t,errors:[]};var i={value:{},errors:[]},o=e.meta.props,u=e.meta.defaultProps||c;for(var f in o)if(o.hasOwnProperty(f)){var d=t[f];void 0===d&&(d=u[f]);var h=a(d,o[f],n.concat(f),r);i.value[f]=h.value,i.errors=i.errors.concat(h.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var p in t)t.hasOwnProperty(p)&&!o.hasOwnProperty(p)&&i.errors.push(l.of(t[p],s.Nil,n.concat(p),r.context));return i.errors.length||(i.value=new e(i.value)),i},d.tuple=function(t,e,n,r){var i=e.meta.types,o=i.length;if(!s.Array.is(t)||t.length>o)return{value:t,errors:[l.of(t,e,n,r.context)]};for(var u={value:[],errors:[]},c=0;c<o;c++){var f=a(t[c],i[c],n.concat(c),r);u.value[c]=f.value,u.errors=u.errors.concat(f.errors)}return u},d.dict=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};var i={value:{},errors:[]};for(var o in t)if(t.hasOwnProperty(o)){var u=n.concat(o),c=a(o,e.meta.domain,u,r),f=a(t[o],e.meta.codomain,u,r);i.value[o]=f.value,i.errors=i.errors.concat(c.errors,f.errors)}return i},d.union=function(t,e,n,r){var i=e.dispatch(t);return s.Function.is(i)?a(t,i,n.concat(e.meta.types.indexOf(i)),r):{value:t,errors:[l.of(t,e,n,r.context)]}},d.intersection=function(t,e,n,r){for(var i=e.meta.types,o=i.length,s={value:t,errors:[]},u=0,c=0;c<o;c++){"struct"===i[c].meta.kind&&u++;var f=a(t,i[c],n,r);s.errors=s.errors.concat(f.errors)}return u>1&&s.errors.push(l.of(t,e,n,r.context)),s},d.interface=function(t,e,n,r){if(!s.Object.is(t))return{value:t,errors:[l.of(t,e,n,r.context)]};var i={value:{},errors:[]},o=e.meta.props;for(var u in o){var c=a(t[u],o[u],n.concat(u),r);i.value[u]=c.value,i.errors=i.errors.concat(c.errors)}if(r.hasOwnProperty("strict")?r.strict:e.meta.strict)for(var f in t)o.hasOwnProperty(f)||s.Nil.is(t[f])||i.errors.push(l.of(t[f],s.Nil,n.concat(f),r.context));return i},s.mixin(s,{ValidationError:l,ValidationResult:f,validate:o}),t.exports=s},function(t,e,n){/*! @preserve
70
70
  *
71
71
  * tcomb.js - Type checking and DDD for JavaScript
72
72
  *
@@ -75,7 +75,7 @@ function(t){function e(t,e,n,r){var i,o,a,s,c,f,d,h,p,v;if((e?e.ownerDocument||e
75
75
  * Copyright (c) 2014-2016 Giulio Canti
76
76
  *
77
77
  */
78
- var r=n(5);r.Any=n(76),r.Array=n(185),r.Boolean=n(106),r.Date=n(186),r.Error=n(187),r.Function=n(67),r.Nil=n(107),r.Number=n(108),r.Integer=n(188),r.IntegerT=r.Integer,r.Object=n(189),r.RegExp=n(190),r.String=n(78),r.Type=n(191),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(79),r.declare=n(192),r.enums=n(193),r.irreducible=n(16),r.list=n(111),r.maybe=n(194),r.refinement=n(77),r.struct=n(196),r.tuple=n(114),r.union=n(200),r.func=n(201),r.intersection=n(202),r.subtype=r.refinement,r.inter=n(203),r.interface=r.inter,r.assert=r,r.update=n(204),r.mixin=n(80),r.isType=n(11),r.is=n(31),r.getTypeName=n(8),r.match=n(205),t.exports=r},function(t,e){t.exports=function(t){throw new TypeError("[tcomb] "+t)}},function(t,e,n){var r=n(16),i=n(28);t.exports=r("Array",i)},function(t,e,n){var r=n(16);t.exports=r("Date",function(t){return t instanceof Date})},function(t,e,n){var r=n(16);t.exports=r("Error",function(t){return t instanceof Error})},function(t,e,n){var r=n(77),i=n(108);t.exports=r(i,function(t){return t%1==0},"Integer")},function(t,e,n){var r=n(16),i=n(27);t.exports=r("Object",i)},function(t,e,n){var r=n(16);t.exports=r("RegExp",function(t){return t instanceof RegExp})},function(t,e,n){var r=n(16),i=n(11);t.exports=r("Type",i)},function(t,e,n){var r=(n(5),n(20),n(11),n(25),n(80)),i=n(8),o=n(110),a=1;t.exports=function(t){function e(t,e){return n(t,e)}var n;return e.define=function(i){return o(i)&&e.hasOwnProperty("dispatch")&&(i.dispatch=e.dispatch),n=i,r(e,n,!0),t&&(n.displayName=e.displayName=t,e.meta.name=t),e.meta.identity=n.meta.identity,e.prototype=n.prototype,e},e.displayName=t||i(e)+"$"+a++,e.meta={identity:!1},e.prototype=null,e}},function(t,e,n){function r(t){return Object.keys(t).map(function(t){return o.stringify(t)}).join(" | ")}function i(t,e){function n(t,e){return t}var i=e||r(t);return n.meta={kind:"enums",map:t,name:e,identity:!0},n.displayName=i,n.is=function(e){return t.hasOwnProperty(e)},n}var o=n(5),a=(n(20),n(52),n(65));n(27);i.of=function(t,e){t=a(t)?t.split(" "):t;var n={};return t.forEach(function(t){n[t]=t}),i(n,e)},i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"?"+f(t)}function i(t,e){function n(e,n){return c.is(e)?e:u(t,e,n)}if(o(t)||t===s||t===c)return t;var i=e||r(t),f=a(t);return n.meta={kind:"maybe",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return c.is(e)||l(e,t)},n}var o=(n(5),n(20),n(10),n(195)),a=n(29),s=n(76),u=n(30),c=n(107),l=(n(52),n(31)),f=n(8);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"maybe"===t.meta.kind}},function(t,e,n){function r(t){return"Struct"+f(t)}function i(t,e){return d(a,t,e)}function o(t){return u(t)||(t=c(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=a.strict),t.hasOwnProperty("defaultProps")||(t.defaultProps={}),t}function a(t,e){function n(e,r){if(n.is(e))return e;if(!(this instanceof n))return new n(e,r);for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],a=e[i];void 0===a&&(a=c[i]),this[i]=l(o,a,null)}}e=o(e);var a=e.name,u=e.strict,c=e.defaultProps,f=a||r(t);return n.meta={kind:"struct",props:t,name:a,identity:!1,strict:u,defaultProps:c},n.displayName=f,n.is=function(t){return t instanceof n},n.update=function(t,e){return new n(s.update(t,e))},n.extend=function(t,e){return i([n].concat(t),e)},n}var s=n(5),u=(n(20),n(78),n(67),n(66),n(27)),c=n(25),l=n(30),f=(n(8),n(79),n(112)),d=n(113);a.strict=!1,a.getOptions=o,a.getDefaultName=r,a.extend=i,t.exports=a},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"struct"===t.meta.kind}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"interface"===t.meta.kind}},function(t,e,n){function r(t){return s(t)&&"subtype"===t.meta.kind}function i(t){return r(t)?[t.meta.predicate].concat(i(t.meta.type)):[]}function o(t){return r(t)?o(t.meta.type):t}function a(t){return{predicates:i(t),unrefinedType:o(t)}}var s=n(11);t.exports=a},function(t,e,n){function r(t){return t.map(a).join(" | ")}function i(t,e){function n(t,e){if(a)return t;var r=n.dispatch(t);return!r&&n.is(t)?t:u(r,t,e)}var i=e||r(t),a=t.every(s);return n.meta={kind:"union",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return t.some(function(t){return c(e,t)})},n.dispatch=function(e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(l(i)){var o=i.dispatch(e);if(!f(o))return o}else if(c(e,i))return i}},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=(n(28),n(30)),c=n(31),l=(n(52),n(110)),f=n(25);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return"("+t.map(d).join(", ")+") => "+d(e)}function i(t){return s.is(t)&&c(t.instrumentation)}function o(t){for(var e=t.length,n=!1,r=e-1;r>=0;r--){var i=t[r];if(!h(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:e}function a(t,e,n){function s(t,e){return i(t)?t:s.of(t)}t=u(t)?t:[t];var c=n||r(t,e),d=t.length;o(t);return s.meta={kind:"func",domain:t,codomain:e,name:n,identity:!0},s.displayName=c,s.is=function(n){return i(n)&&n.instrumentation.domain.length===d&&n.instrumentation.domain.every(function(e,n){return e===t[n]})&&n.instrumentation.codomain===e},s.of=function(n,r){function i(){var i=Array.prototype.slice.call(arguments),o=i.length;if(r&&o<d){var s=Function.prototype.bind.apply(n,[this].concat(i));return a(t.slice(o),e).of(s,!0)}return l(e,n.apply(this,i))}return s.is(n)?n:(i.instrumentation={domain:t,codomain:e,f:n},i.displayName=f(n),i)},s}var s=(n(5),n(20),n(67)),u=n(28),c=(n(111),n(27)),l=n(30),f=(n(25),n(66),n(114),n(51)),d=n(8),h=n(11);a.getDefaultName=r,a.getOptionalArgumentsIndex=o,t.exports=a},function(t,e,n){function r(t){return t.map(s).join(" & ")}function i(t,e){function n(t,e){return t}var i=e||r(t),s=t.every(u);return n.meta={kind:"intersection",types:t,name:e,identity:s},n.displayName=i,n.is=function(e){return t.every(function(t){return a(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(28),n(29),n(31)),s=n(8),u=n(29);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return h(o,t,e)}function i(t){return s(t)||(t=u(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=o.strict),t}function o(t,e){function n(e,n){if(v)return e;var r=!0,i=v?{}:p({},e);for(var o in t){var a=t[o],s=e[o],u=c(a,s,null);r=r&&s===u,i[o]=u}return r&&(i=e),i}e=i(e);var o=e.name,s=e.strict,h=o||l(t),v=Object.keys(t).map(function(e){return t[e]}).every(f);return n.meta={kind:"interface",props:t,name:o,identity:v,strict:s},n.displayName=h,n.is=function(e){if(u(e))return!1;if(s)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!d(e[r],t[r]))return!1;return!0},n.update=function(t,e){return n(a.update(t,e))},n.extend=function(t,e){return r([n].concat(t),e)},n}var a=n(5),s=(n(20),n(78),n(67),n(66),n(27)),u=n(25),c=n(30),l=(n(8),n(79),n(112)),f=n(29),d=n(31),h=n(113),p=n(115);o.strict=!1,o.getOptions=i,o.getDefaultName=l,o.extend=r,t.exports=o},function(t,e,n){function r(t){return v(t)?t instanceof Date||t instanceof RegExp?t:m({},t):y(t)?t.concat():t}function i(t){return a.commands.hasOwnProperty(t)}function o(t){return a.commands[t]}function a(t,e){var n,s=t,u=!1;for(var c in e)e.hasOwnProperty(c)&&(i(c)?(n=o(c)(e[c],s),n!==t?(u=!0,s=n):s=t):(s===t&&(s=r(t)),n=a(s[c],e[c]),u=u||n!==s[c],s[c]=n));return u?s:t}function s(t,e){return t(e)}function u(t,e){return t.length>0?e.concat(t):e}function c(t,e){if(t.length>0){e=r(e);for(var n=0,i=t.length;n<i;n++)delete e[t[n]]}return e}function l(t){return t}function f(t,e){return t.length>0?(e=r(e),t.reduce(function(t,e){return t.splice.apply(t,e),t},e)):e}function d(t,e){if(t.from!==t.to){e=r(e);var n=e[t.to];e[t.to]=e[t.from],e[t.from]=n}return e}function h(t,e){return t.length>0?t.concat(e):e}function p(t,e){var n=!1,i=r(e);for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o],n=n||i[o]!==e[o]);return n?i:e}var v=(n(5),n(27)),y=(n(10),n(28)),m=(n(109),n(115));a.commands={$apply:s,$push:u,$remove:c,$set:l,$splice:f,$swap:d,$unshift:h,$merge:p},t.exports=a},function(t,e,n){var r=n(5),i=n(10),o=n(11),a=n(76);t.exports=function(t){for(var e,n,s,u=1,c=arguments.length;u<c;)if(e=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},function(t,e,n){"use strict";var r=n(18);!function(){function t(t,e){var n=r.b.run(e);return n.allDataLoaded?n.result:t}scrivito.loadableWithDefault=t,scrivito.loadWithDefault=t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return(l=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var f=n(1);!function(){var t=function(t){function e(t){return o(this,e),u(this,l(e).call(this,"Data is not yet loaded.",t))}return a(e,t),e}(f.ScrivitoError);scrivito.NotLoadedError=t}()},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(t,e,r){return n?t:i.a.throttle(t,e,r)}function e(){n=!0}var n=!1;scrivito.throttle=t,scrivito.bypassThrottle=e}()},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}var s=n(0),u=n.n(s),c=n(47),l=n(1);!function(){scrivito.typeInfo={normalize:function(t){if(u.a.isString(t))return[t];if(u.a.isArray(t))return t;throw new l.InternalError("Type Info needs to be a string or an array containing a string and optionally a hash")},normalizeAttrs:function(t){var e=this;return u.a.mapObject(t,function(t,n){if(Object(c.a)(n))return u.a.isArray(t)?t:[t];if(!u.a.isArray(t))throw new l.InternalError("Value for ".concat(n," should be a tuple: [value, typeInfo]"));var i=r(t,2),o=i[0],a=i[1];return[o,e.normalize(a)]})},unwrapAttributes:function(t){return u.a.mapObject(t,function(t){return r(t,1)[0]})}}}()},function(t,e,n){"use strict";function r(t,e,n){var r=s.a.forClass(n);return Object(a.pick)({name:e,type:t,attributes:i(r.attributes,Object(c.a)(e,"attributes")),onlyInside:r.onlyInside,description:Object(c.a)(e,"description"),hideInSelectionDialogs:Object(c.a)(e,"hideInSelectionDialogs"),properties:Object(c.a)(e,"properties"),propertiesGroups:Object(c.a)(e,"propertiesGroups"),thumbnail:Object(c.a)(e,"thumbnail"),title:Object(c.a)(e,"title")},a.identity)}function i(t,e){var n=Object(a.map)(t,function(t,e){var n=t[0],r=t[1],i={name:e,type:n};return r.only&&(i.only=r.only),r.values&&(i.values=r.values),i});return e&&Object.keys(e).forEach(function(t){var r=Object(a.findWhere)(n,{name:t});if(r){var i=e[t],o=i.title,s=i.description,u=i.values;u?Object(a.extend)(r,{title:o,description:s,valuesLocalization:u}):Object(a.extend)(r,{title:o,description:s})}}),n}function o(t,e){var n=_.default.getIncludingDeleted(e);if(n){var r=Object(w.e)(Object(d.a)(),n);return Object(l.a)(n.objClass(),t,r)}}var a=n(0),s=(n.n(a),n(42)),u=n(129),c=n(82),l=n(224),f=n(61),d=n(62),h=n(309),p=n(312),v=n(70),y=n(135),m=n(137),b=n(138),g=n(221),w=n(22),_=n(3),k=n(227),O=function(){function t(){}return t.prototype.contentBrowserConfiguration=function(){return Object(b.a)(Object(m.b)())},t.prototype.titleForObj=function(t){return o("titleForContent",t)},t.prototype.descriptionForObj=function(t){return o("descriptionForContent",t)},t.prototype.titleForWidget=function(t,e){return Object(k.a)(t,e)},t.prototype.initializeContentForObj=function(t){Object(g.b)(t)},t.prototype.initializeContentForWidget=function(t,e){Object(g.c)(t,e)},t.prototype.getClasses=function(){var t=Object(f.a)(),e=[];return Object(a.each)(t.allObjClasses(),function(t,n){return e.push(r("Obj",n,t))}),Object(a.each)(t.allWidgetClasses(),function(t,n){return e.push(r("Widget",n,t))}),e},t.prototype.navigateTo=function(t){Object(u.a)(function(){var e=_.default.get(t);if(e)return Object(w.e)(Object(d.a)(),e)})},t.prototype.mountComponent=function(t,e){Object(h.a)(t,e)},t.prototype.resolveUrl=function(t){return Object(p.a)(t).then(function(t){if(!t||!t.obj)return null;var e=t.obj,n=t.url.fragment(),r=t.url.search(),i={obj_id:e.id()};return n&&(i.fragment=n),r&&(i.query=r),i})},t.prototype.getDocumentHeight=function(){return Object(v.b)().querySelector("html").getBoundingClientRect().height},t.prototype.replaceInternalLinks=function(t){return Object(y.a)(t)},t}();e.a=O},function(t,e,n){"use strict";function r(t){return o()(t)}e.a=r;var i=n(156),o=n.n(i)},function(t,e,n){var r,i;!function(n){"use strict";var o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},a=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},u={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sv:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},c={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),f=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),h=function(t,e){var n,r,i,h,p,m,b,g,w,_,k,O,E,x,C="-",j="",S="",A=!0,T={},N="";if("string"!=typeof t)return"";if("string"==typeof e&&(C=e),b=c.en,g=u.en,"object"==typeof e){n=e.maintainCase||!1,T=e.custom&&"object"==typeof e.custom?e.custom:T,i=+e.truncate>1&&e.truncate||!1,h=e.uric||!1,p=e.uricNoSlash||!1,m=e.mark||!1,A=!1!==e.symbols&&!1!==e.lang,C=e.separator||C,h&&(N+=l),p&&(N+=f),m&&(N+=d),b=e.lang&&c[e.lang]&&A?c[e.lang]:A?c.en:{},g=e.lang&&u[e.lang]?u[e.lang]:!1===e.lang||!0===e.lang?{}:u.en,e.titleCase&&"number"==typeof e.titleCase.length&&Array.prototype.toString.call(e.titleCase)?(e.titleCase.forEach(function(t){T[t+""]=t+""}),r=!0):r=!!e.titleCase,e.custom&&"number"==typeof e.custom.length&&Array.prototype.toString.call(e.custom)&&e.custom.forEach(function(t){T[t+""]=t+""}),Object.keys(T).forEach(function(e){var n;n=e.length>1?new RegExp("\\b"+v(e)+"\\b","gi"):new RegExp(v(e),"gi"),t=t.replace(n,T[e])});for(k in T)N+=k}for(N+=C,N=v(N),t=t.replace(/(^\s+|\s+$)/g,""),E=!1,x=!1,_=0,O=t.length;_<O;_++)k=t[_],y(k,T)?E=!1:g[k]?(k=E&&g[k].match(/[A-Za-z0-9]/)?" "+g[k]:g[k],E=!1):k in o?(_+1<O&&a.indexOf(t[_+1])>=0?(S+=k,k=""):!0===x?(k=s[S]+o[k],S=""):k=E&&o[k].match(/[A-Za-z0-9]/)?" "+o[k]:o[k],E=!1,x=!1):k in s?(S+=k,k="",_===O-1&&(k=s[S]),x=!0):!b[k]||h&&-1!==l.indexOf(k)||p&&-1!==f.indexOf(k)?(!0===x?(k=s[S]+k,S="",x=!1):E&&(/[A-Za-z0-9]/.test(k)||j.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),E=!1):(k=E||j.substr(-1).match(/[A-Za-z0-9]/)?C+b[k]:b[k],k+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?C:"",E=!0),j+=k.replace(new RegExp("[^\\w\\s"+N+"_-]","g"),C);return r&&(j=j.replace(/(\w)(\S*)/g,function(t,e,n){var r=e.toUpperCase()+(null!==n?n:"");return Object.keys(T).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),j=j.replace(/\s+/g,C).replace(new RegExp("\\"+C+"+","g"),C).replace(new RegExp("(^\\"+C+"+|\\"+C+"+$)","g"),""),i&&j.length>i&&(w=j.charAt(i)===C,j=j.slice(0,i),w||(j=j.slice(0,j.lastIndexOf(C)))),n||r||(j=j.toLowerCase()),j},p=function(t){return function(e){return h(e,t)}},v=function(t){return t.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},y=function(t,e){for(var n in e)if(e[n]===t)return!0};void 0!==t&&t.exports?(t.exports=h,t.exports.createSlug=p):(r=[],void 0!==(i=function(){return h}.apply(e,r))&&(t.exports=i))}()},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e,n,i){var o=r(e,2),a=o[0],s=o[1];switch(n){case"binary":return u(a,s);case"date":return c(a,s);case"float":return h(a,s);case"enum":return f(a,s,i);case"html":return l(a,s);case"integer":return v(a,s);case"link":return y(a,s);case"linklist":return m(a,s);case"multienum":return d(a,s,i);case"reference":return w(a,s);case"referencelist":return _(a,s);case"string":return k(a,s);case"stringlist":return O(a,s);case"widgetlist":return E(a,s,t)}}function u(t,e){if("binary"===t&&e){var n=e.id,r="published"===scrivito.currentWorkspaceId();return new T.a(n,r).optimizeFor({})}return null}function c(t,e){return"date"!==t?null:Object(C.a)(e)}function l(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function f(t,e,n){var r=n.values;return"string"===t&&A.a.contains(r,e)?e:null}function d(t,e,n){var r=n.values;return"stringlist"===t&&Array.isArray(e)?A.a.intersection(e,r):[]}function h(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?p(e):null;case"number":return p(e);default:return null}}function p(t){var e=parseFloat(t);return Object(C.e)(e)?e:null}function v(t,e){switch(t){case"string":case"number":return Object(C.b)(e);default:return null}}function y(t,e){return"link"===t&&A.a.isObject(e)?b(e):null}function m(t,e){return A.a.isArray(e)?A.a.compact(e.map(b)):[]}function b(t){var e=A.a.pick(t,"title","query","fragment","target","url");e.hash=e.fragment,delete e.fragment,e.objId=t.obj_id;var n=j.a.build(e);return n.isBroken()?null:n}function g(t){var e=x.default.get(t);return e||null}function w(t,e){return"reference"===t&&e?g(e):null}function _(t,e){if("referencelist"!==t)return[];if(!e)return[];var n=e.map(g);return A.a.compact(n)}function k(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function O(t,e){return"stringlist"===t&&Array.isArray(e)?e:[]}function E(t,e,n){return"widgetlist"!==t?[]:A.a.map(e,function(t){return n.widget(t)})}e.a=s;var x=n(3),C=n(48),j=n(34),S=n(0),A=n.n(S),T=n(26)},function(t,e,n){"use strict";function r(t){t.forEach(function(t){return u.c(t)})}function i(t,e){var n=v({},t,{index:e}),r=s.a(n);return s.c().subState(r)}function o(t){return function(){return t+"|"+Object(d.a)()}}function a(t){var e=Object(c.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},c.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var s=n(118),u=n(58),c=n(0),l=(n.n(c),n(7)),f=n(18),d=n(92),h=n(1),p=n(43),v=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y={results:[],total:0},m=function(){function t(t,e,n){this._params=t,this._batchSize=e,n?(this._index=n.index+1,this._continuation=n.continuationForNextBatch(),this._previousBatch=n):this._index=0}return t.store=function(t,e,n){void 0===n&&(n=e.length);var r=i(a(t),0),s=o(void 0);new f.b({state:r,invalidation:s,loader:function(){throw new h.InternalError("this should never be called")}}).set({results:e,total:n})},t.firstBatchFor=function(e,n){return new t(a(e),n)},t.countFor=function(t){return this.firstBatchFor(t,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._params,this._batchSize,this)},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()||y},t.prototype._data=function(){return new f.b({state:i(this._params,this._index),loader:this._load.bind(this),invalidation:o(this._continuation)})},t.prototype._load=function(t){var e=this,n=t.push,i=t.isReload,o=t.wasCancelled;return this._fetchContinuation().then(function(t){if(o())throw new Error;var a={size:e._batchSize,continuation:t,include_objs:!i()},s=v({},e._params,a);return p.a.retrieveObjQuery(scrivito.currentWorkspaceId(),s).then(function(t){var e=t.objs;return e&&n(function(){return e.forEach(function(t){return u.e(t)})}),r(t.results),t})})},t.prototype._fetchContinuation=function(){var t=this._previousBatch;return t?Object(l.a)(function(){return t.continuationForNextBatch()}):scrivito.Promise.resolve()},t}();e.a=m},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return c});var s=n(58),u=n(119),c=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,[{key:"count",value:function(){return u.a.count(this._params)}},{key:"iterator",value:function(){return new l(this._params,this._batchSize)}}]),t}(),l=function(){function t(e,n){i(this,t),this._iterator=new u.a(e,n).iterator()}return a(t,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=s.b(t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}}}]),t}()},function(t,e,n){"use strict";function r(t){var e=scrivito.computeCacheKey(t);return h.b.subState("facetQuery").subState(e)}function i(t){return function(){return v.a.retrieveFacetQuery(scrivito.currentWorkspaceId(),t)}}function o(){return Object(p.a)()||""}function a(t){var e=u.without.apply(void 0,[Object.keys(t)].concat(y));if(e.length)throw new d.ArgumentError("Invalid options: "+Object(f.a)(e)+". Valid options: "+y)}function s(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(u.isEmpty)(n)||(r.query=n),r}var u=n(0),c=(n.n(u),n(217)),l=n(18),f=n(41),d=n(1),h=n(4),p=n(92),v=n(43),y=["limit","includeObjs"],m=function(){function t(t,e,n){a(e),this._requestParams=s(t,e,n),this._loadableData=new l.b({state:r(this._requestParams),loader:i(this._requestParams),invalidation:o})}return t.store=function(t,e,n,u){a(e);var c=s(t,e,n);new l.b({state:r(c),loader:i(c),invalidation:o,throwNotLoaded:!0}).set(u)},t.prototype.result=function(){var t=this._loadableData.get();return t?t.facets[0].map(function(t){var e=t.value,n=t.total,r=t.results.map(function(t){return t.id});return new c.a(e,n,r)}):[]},t}();e.a=m},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(3),u=function(){function t(e,n,r){i(this,t),this._name=e,this._count=n,this._includedObjs=r}return a(t,[{key:"name",value:function(){return this._name}},{key:"count",value:function(){return this._count}},{key:"includedObjs",value:function(){return this._includedObjs.map(function(t){return s.default.get(t)})}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(22),u=function(){function t(e,n){i(this,t),this._registry=e,this._basicObjFacetValue=n}return a(t,[{key:"name",value:function(){return this._basicObjFacetValue.name()}},{key:"count",value:function(){return this._basicObjFacetValue.count()}},{key:"includedObjs",value:function(){var t=this._basicObjFacetValue.includedObjs();return Object(s.e)(this._registry,t)}}]),t}();e.a=u},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){return function(){function e(){i(this,e)}return a(e,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(e){return t.read(this,e)}},{key:"update",value:function(e){t.update(this,e)}}]),e}()}e.a=s},function(t,e,n){"use strict";function r(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!t.hasOwnProperty(n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){var n=Object(h.a)(t,"initialContent");if(n){var r=n[e];if(Object(l.isFunction)(r))return r();if(o(r)){var i=Object(y.a)();return r.map(function(t){var e=t._scrivitoPrivateContent,n=e.copy();return Object(v.e)(i,n)})}return r}}function o(t){return Object(l.isArray)(t)&&Object(l.every)(t,a)}function a(t){return t._scrivitoPrivateContent&&r(t._scrivitoPrivateContent,d.a)}function s(t){c(f.default.get(t))}function u(t,e){c(f.default.get(t).widget(e))}function c(t){var e=t.objClass(),n=Object(p.a)().getClass(e)._scrivitoPrivateSchema,r={};Object(l.each)(n.attributes,function(n,o){var a=t.get(o,n);if(Object(l.isEmpty)(a)){var s=i(e,o);s&&(r[o]=s)}});var o=Object(v.b)(r,n,e);t.update(o)}e.a=i,e.b=s,e.c=u;var l=n(0),f=(n.n(l),n(3)),d=n(32),h=n(82),p=n(61),v=n(22),y=n(62)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return l});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},o=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},s=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)},u=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},l=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){d=t}function o(t){if(u(t),s(t))return"/";if(t.permalink())return"/".concat(t.permalink());var e=l(t);return e?"/".concat(e,"-").concat(t.id()):"/".concat(t.id())}function a(t){c(t);var e=t.replace(new RegExp("^/+|/+$","g"),"");if(""===e)return Object(b.c)(d());var n=v.default.getByPermalink(e);return n||v.default.get(f(e))}function s(t){if(!d)return!1;var e=scrivito.loadableWithDefault(null,d);return!!e&&e.id()===t.id()}function u(t){if(!r(t,v.default))throw new y.ArgumentError("Parameter obj needs to be a BasicObj.")}function c(t){if(!p.a.isString(t))throw new y.ArgumentError("Parameter path needs to be a String.")}function l(t){var e=Object(m.a)();return Object(b.e)(e,t).slug()}function f(t){var e=p.a.last(t.split("-"));return p.a.last(e.split("/"))}e.b=i,e.a=o,e.c=a;var d,h=n(0),p=n.n(h),v=n(3),y=n(1),m=n(62),b=n(22)},function(t,e,n){"use strict";function r(t,e){var n=Object(o.a)(t,e);if(Object(i.isFunction)(n))try{for(var r=arguments.length,s=new Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return n.apply(null,s)}catch(t){Object(a.b)(t)}}e.a=r;var i=n(0),o=(n.n(i),n(82)),a=n(37)},function(t,e,n){"use strict";function r(t){p(t);var e=t.tenant,n=t.homepage,r=t.routingBasePath,i=t.unstable,o=t.endpoint||"api.scrivito.com";if(f.b){var u={tenant:e,endpoint:o};i&&i.useRailsAuth&&(u.useRailsAuth=i.useRailsAuth),f.b.configureTenant(u)}else s.a.init(o,e);Object(l.b)(n||function(){return a.default.root()}),Object(c.e)({routingBasePath:r}),d=!0}function i(){return d}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var o=n(24),a=n(3),s=n(21),u=n(39),c=n(63),l=n(223),f=n(17),d=!1,h=o.a.struct({tenant:o.a.String,endpoint:o.a.maybe(o.a.String),homepage:o.a.maybe(o.a.Function),routingBasePath:o.a.maybe(o.a.String),unstable:o.a.maybe(o.a.Object)}),p=Object(u.a)("configure",[["configuration",h]],{docPermalink:"js-sdk/configure"})},function(t,e,n){"use strict";function r(t){if(!t)return!1;var e=t.objClass();if(!e)return!1;var n=Object(o.a)().getClass(e);return!!n&&i.a.forClass(n).isBinary()}e.a=r;var i=n(42),o=n(61)},function(t,e,n){"use strict";function r(t,e){var n=a.default.getIncludingDeleted(t),r=n.widget(e);return i(r)||o(r.objClass())}function i(t){var e=Object(f.e)(Object(c.a)(),t),n=t.objClass();return Object(s.a)(n,"titleForContent",e)}function o(t){return Object(u.a)(t,"title")||Object(l.d)(t)}e.a=r;var a=n(3),s=n(224),u=n(82),c=n(62),l=n(23),f=n(22)},function(t,e,n){"use strict";function r(){return++c}function i(t){var e=r();l[e]=t;var n=a(),i=n.get()||[];n.set(i.concat([e]))}function o(t){var e=t.type,n=t.tag,r=a().get();if(r){var i=Object(s.find)(r,function(t){return l[t]&&l[t].canEdit({type:e,tag:n})});if(i){return{id:i,editorClass:l[i]}}}}function a(){return u.a.subState("editors")}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var s=n(0),u=(n.n(s),n(4)),c=0,l={}},function(t,e,n){"use strict";function r(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(75),u=n.n(s),c=function(){function t(e,n){i(this,t),this.domNode=e,this.controller=n}return a(t,[{key:"content",value:function(){return this.controller.getContent()}},{key:"idFromPath",value:function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return u.a.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(t){return"objid:".concat(t)}},{key:"save",value:function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e}},{key:"trigger",value:function(){}}]),t}();e.a=c},function(t,e,n){"use strict";function r(t){return t.isRaw()||t.isExplicitlyTransformed()?t:t.optimizeFor({width:Object(i.e)().width*Object(i.a)()})}e.a=r;var i=n(70)},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function o(t,e){if(!i(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(0),y=(n.n(v),n(22)),m=n(34),b=n(3),g=n(26),w=n(129),_=n(14),k=n(233),O=n(136),E=n(346),x=n(59),C=n(17),j=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){return p.a.createElement("a",this._linkProps(),this.props.children)}},{key:"_linkProps",value:function(){var t=Object(v.omit)(this.props,"to");return t.href=this._href(),t.onClick=this._onClick,t.target=this._target(),t}},{key:"_href",value:function(){return this._to()||"#"}},{key:"_onClick",value:function(t){t.preventDefault(),this.props.to&&(Object(v.isString)(this.props.to)?scrivito.openInNewWindow(this.props.to):this._openLink(t))}},{key:"_openLink",value:function(t){var e=this._to();if(e){var n=this._target();"_blank"===n||Object(k.a)(t)?this._openLinkInNewWindow(e):n?scrivito.openLocation(e,n):Object(w.a)(this.props.to)}}},{key:"_openLinkInNewWindow",value:function(t){C.b?C.b.openInNewWindow(t):scrivito.openInNewWindow(t)}},{key:"_target",value:function(){return this.props.target?this.props.target:this.props.to&&i(this.props.to._scrivitoPrivateContent,m.a)?this.props.to.target():void 0}},{key:"_to",value:function(){if(this.props.to){if(Object(v.isString)(this.props.to))return this.props.to;var t=Object(y.c)(this.props.to);if(i(t,m.a)||i(t,b.default)||i(t,g.a))return Object(O.a)(t)}}}]),a(e,t),e}(p.a.Component);j.displayName="Scrivito.LinkTag",j.propTypes=Object(E.a)({to:E.b.maybe(E.b.union([x.d,x.b,x.a,E.b.String]))},{strict:!1}),e.a=Object(_.a)(j)},function(t,e,n){"use strict";function r(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.which===i}e.a=r;var i=2},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(87),p=n(42),v=n(0),y=(n.n(v),n(13)),m=n.n(y),b=n(1),g=n(22),w=n(235),_=n(14),k=n(228),O=n(37),E=n(236),x=n(353),C=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=p.a.basicFieldFor(this.props.content,this.props.attribute);if(!t){var e=this.props.attribute;return Object(O.b)(new b.ArgumentError('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: '+'Attribute "'.concat(e,'" is not defined for content specified in prop "content".'))),null}var n,r,i=Object(k.a)({type:t.type(),tag:this.props.tag});return i&&(n=i.id,r=i.editorClass),Object(h.a)()?m.a.createElement(x.a,{key:this._editorKey(n),field:t,editorClass:r,tag:this.props.tag,customProps:this._customProps(),content:this.props.content},this.props.children):m.a.createElement(E.a,{field:t,tag:this.props.tag,customProps:this._customProps()},this.props.children)}},{key:"_customProps",value:function(){return Object(v.omit)(this.props,"content","attribute","tag")}},{key:"_editorKey",value:function(t){var e=Object(g.c)(this.props.content);return[this.props.tag,Object(w.a)(e),this.props.attribute,t].join("|")}}]),a(e,t),e}(m.a.Component);C.displayName="Scrivito.ContentTag",C.defaultProps={tag:"div"},e.a=Object(_.a)(C)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){if(r(t,o.default))return t.id();if(r(t,a.a))return"".concat(t.obj().id(),"|").concat(t.id());var e=Object(u.a)(t).substr(0,100);throw new s.InternalError('keyForBasicContent called with "'.concat(e,'". Expected an instance of')+" BasicObj or BasicWidget.")}e.a=i;var o=n(3),a=n(32),s=n(1),u=n(41)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(0),p=(n.n(h),n(13)),v=n.n(p),y=n(87),m=n(135),b=n(17),g=n(72),w=n(14),_=n(349),k=n(350),O=n(352),E=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){switch(this.props.field.type()){case"html":return this._renderHtml();case"float":case"integer":case"string":return this._renderAsString();case"widgetlist":return this._renderWidgetlist();default:return this._renderContent({children:this.props.children})}}},{key:"_renderHtml",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});var t=Object(m.a)(this._attributeValue()),e={dangerouslySetInnerHTML:{__html:t},onClick:this._onClick};return this._renderContent({props:e})}},{key:"_onClick",value:function(t){var e=Object(_.a)(t);e&&(e.openInNewWindow?this._openInNewWindow(t,e):this._openInCurrentWindow(t,e))}},{key:"_openInNewWindow",value:function(t,e){var n=e.openInNewWindow;b.b&&(t.preventDefault(),t.stopPropagation(),b.b.openInNewWindow(n))}},{key:"_openInCurrentWindow",value:function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),Object(g.c)(n)}},{key:"_renderAsString",value:function(){var t=this.props.children||this._attributeValue();return this._renderContent({children:t})}},{key:"_renderWidgetlist",value:function(){var t,e=this._attributeValue();return e.length?t=e.map(function(t){return v.a.createElement(k.a,{key:t.id(),widget:t})}):Object(y.a)()&&(t=v.a.createElement(O.a,{field:this.props.field})),this._renderContent({children:t})}},{key:"_renderContent",value:function(t){var e=t.props,n=t.children,r=Object(h.extend)({},this.props.customProps,e,this._editingProps());return v.a.createElement(this.props.tag,r,n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}}]),a(e,t),e}(v.a.Component);E.displayName="Scrivito.ContentTag.AttributeValue",e.a=Object(w.a)(E)},function(t,e){t.exports=PropTypes},function(t,e,n){"use strict";function r(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(14),y=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t="scrivito_option_marker scrivito_".concat(this.props.position);return this.props.isAlwaysShown&&(t+=" scrivito_visible"),p.a.createElement("span",{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},p.a.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),a(e,t),e}(p.a.Component);y.displayName="Scrivito.OptionMarker",e.a=Object(v.a)(y)},function(t,e,n){"use strict";function r(){i=!0}n.d(e,"b",function(){return i}),e.a=r;var i=!1},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(t,e){"content"===t&&document.addEventListener("DOMContentLoaded",function(){return e(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}e.a=r},function(t,e,n){"use strict";function r(t){if(t){t.setAppAdapter("1.2.0-rc2",new u.a);var e=t.uiAdapter();Object(l.a)(e),Object(c.b)(e)}scrivito.client.init({ui:t});var n=new i.a;Object(o.b)(n.promise),document.addEventListener("DOMContentLoaded",n.resolve)}e.a=r;var i=(n(162),n(291),n(292),n(316),n(12)),o=n(81),a=n(319),s=n(228),u=n(210),c=n(43),l=n(17);window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=s.b,window.scrivito.openContentBrowser=a.a},function(t,e,n){"use strict";var r=n(127);n.n(r)},function(t,e,n){"use strict";var r=n(293);n.n(r),n(210),n(72),n(315)},function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.AppSupport={}},function(t,e,n){"use strict";function r(){window.scrollTo(0,0)}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return h});var s=n(296),u=n(297),c=n(298),l=n(133),f=n(301),d=n(302),h=function(){function t(){i(this,t),this._registry=new c.a,this._registry.defaultClassForLinks=Object(u.a)(this._registry),this._registry.ObjSearch=Object(s.a)(this._registry),this.appModelAccessor=new l.a(this._registry)}return a(t,null,[{key:"init",value: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(){return n.provideObjClass.apply(n,arguments)},e.provideWidgetClass=function(){return n.provideWidgetClass.apply(n,arguments)},e.createObjClass=function(){return n.createObjClass.apply(n,arguments)},e.createWidgetClass=function(){return n.createWidgetClass.apply(n,arguments)},e.getClass=function(){return n.getClass.apply(n,arguments)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n}}]),a(t,[{key:"provideObjClass",value:function(t,e){return Object(d.c)(t,e),Object(f.c)(this._registry,t,e)}},{key:"provideWidgetClass",value:function(t,e){return Object(d.d)(t,e),Object(f.d)(this._registry,t,e)}},{key:"createObjClass",value:function(t){return Object(d.a)(t),Object(f.a)(this._registry,t)}},{key:"createWidgetClass",value:function(t){return Object(d.b)(t),Object(f.b)(this._registry,t)}},{key:"getClass",value:function(t){return this._registry.getClass(t)}},{key:"allObjClasses",value:function(){return this._registry.allObjClasses()}},{key:"allWidgetClasses",value:function(){return this._registry.allWidgetClasses()}},{key:"setInitialContentFor",value:function(t){this._registry.setInitialContentFor(t)}},{key:"Obj",get:function(){return this._registry.defaultClassForObjs}},{key:"Widget",get:function(){return this._registry.defaultClassForWidgets}},{key:"Link",get:function(){return this._registry.defaultClassForLinks}},{key:"ObjSearch",get:function(){return this._registry.ObjSearch}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=function(){function e(t){i(this,e),this._scrivitoPrivateContent=new c.b(t)}return a(e,[{key:"and",value:function(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(r(t,e))this._scrivitoPrivateContent.and(t._scrivitoPrivateContent);else{var a=Object(f.d)(i);this._scrivitoPrivateContent.and(t,n,a,o)}return this}},{key:"andNot",value:function(t,e,n){var r=Object(f.d)(n);return this._scrivitoPrivateContent.andNot(t,e,r),this}},{key:"facet",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._scrivitoPrivateContent.facet(e,n);return h.a.map(r,function(e){return new l.a(t,e)})}},{key:"take",value:function(e){return this._scrivitoPrivateContent.batchSize(e),Object(u.a)(this._scrivitoPrivateContent,e).map(function(e){return Object(f.e)(t,e)})}},{key:"offset",value:function(t){return this._scrivitoPrivateContent.offset(t),this}},{key:"order",value:function(t,e){return this._scrivitoPrivateContent.order(t,e),this}},{key:"count",value:function(){return this._scrivitoPrivateContent.count()}}]),e}();if("function"==typeof window.Symbol){var n=window.Symbol.iterator;if(n){e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next(),r=n.done,i=n.value;return r?{done:r}:{done:r,value:Object(f.e)(t,i)}}}}}}return e}e.a=s;var u=n(121),c=n(54),l=n(218),f=n(22),d=n(0),h=n.n(d)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t){return function(e){function n(t){return o(this,n),l(this,p(n).call(this,t))}return c(n,[{key:"obj",value:function(){return Object(m.e)(t,d(p(n.prototype),"obj",this).call(this))}},{key:"fetchObj",value:function(e){return d(p(n.prototype),"fetchObj",this).call(this,e).then(function(e){return Object(m.e)(t,e)})}},{key:"_scrivitoPrivateContent",get:function(){return y.a.build(this.buildAttributes())}}]),a(n,e),n}(y.a)}e.a=v;var y=n(34),m=n(22)},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(299)),o=n(300),a=function(){function t(){this.mapping={},this.defaultClassForObjs=Object(o.a)(this),this.defaultClassForWidgets=Object(i.a)(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]},t.prototype.allObjClasses=function(){return this.allForBaseClass(this.defaultClassForObjs)},t.prototype.allWidgetClasses=function(){return this.allForBaseClass(this.defaultClassForWidgets)},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.prototype.allForBaseClass=function(t){return r.pick(this.mapping,function(e){return t.isPrototypeOf(e)})},t}();e.a=a},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=new g.a(t);return function(e){function n(e){var r;o(this,n),r=l(this,f(n).call(this));var i=y.a.forInstance(d(d(r))),a=t.objClassNameFor(r.constructor),s=r._prepareAttributesForConstructor(e,i,a),u=new m.a(s);return u.onDidPersist(function(e){var n=Object(k.e)(t,e),r=Object(_.a)(s,t,i,a);n.update(r)}),r._scrivitoPrivateContent=u,r}return c(n,[{key:"obj",value:function(){var e=this._scrivitoPrivateContent.obj();return Object(k.e)(t,e)}},{key:"copy",value:function(){var e=t.widgetClassFor(this.objClass()),n=this._scrivitoPrivateContent.copy();return Object(k.a)(n,e)}},{key:"_prepareAttributesForConstructor",value:function(t,e,n){p(n,t);var r={_objClass:n},i=Object(v.extend)({},t,r);return Object(k.b)(i,e,n)}}]),a(n,e),n}(Object(w.a)(e))}function p(t,e){if(!t)throw new b.ArgumentError("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"new '.concat(e._objClass,'" will automatically set the CMS object class correctly.'))}e.a=h;var v=n(0),y=(n.n(v),n(42)),m=n(32),b=n(1),g=n(133),w=n(219),_=n(220),k=n(22)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function h(t){function e(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function n(e){return Object(w.e)(t,e)}var r=new g.a(t);return function(i){function s(){return o(this,s),l(this,d(s).apply(this,arguments))}return c(s,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return n(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return n(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return n(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return n(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return n(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var t=m.a.forInstance(this);return!!t&&t.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new _.a}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(t){return n(this._scrivitoPrivateContent.widget(t))}},{key:"widgets",value:function(){return n(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(t){return r.getObj(this,t)}},{key:"getIncludingDeleted",value:function(t){return r.getObjIncludingDeleted(this,t)}},{key:"getByPath",value:function(t){return n(y.default.getByPath(t))}},{key:"getByPermalink",value:function(t){return n(y.default.getByPermalink(t))}},{key:"all",value:function(){return e(t.objClassNameFor(this),1e3)}},{key:"root",value:function(){return n(y.default.root())}},{key:"where",value:function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e(t.objClassNameFor(this)).and(n,r,i,o)}},{key:"create",value:function(t){var e=this._prepareAttributesForCreate(t);return n(y.default.create(e))}},{key:"_prepareAttributesForCreate",value:function(e){var n=t.objClassNameFor(this),r=m.a.forClass(this);p(e,n);var i=Object(O.a)(e,t,r,n),o={_objClass:n},a=Object(v.extend)({},e,i,o);return Object(w.b)(a,r,n)}}]),a(s,i),s}(Object(k.a)(r))}function p(t,e){if(!e)throw new b.ArgumentError("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"'.concat(t._objClass,'.create" will automatically set the CMS object class ')+"correctly.")}e.a=h;var v=n(0),y=(n.n(v),n(3)),m=n(42),b=n(1),g=n(133),w=n(22),_=n(130),k=n(219),O=n(220)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(e.extend&&!f(e.extend,t.defaultClassForObjs))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function o(t,e){if(e.extend&&!f(e.extend,t.defaultClassForWidgets))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function a(t,e,n){var r=s(t,e,n);return t.register(e,r),r}function s(t,e,n){return l(n)?n:i(t,Object(d.extend)({},n,{name:e}))}function u(t,e,n){var r=c(t,e,n);return t.register(e,r),r}function c(t,e,n){return l(n)?n:o(t,Object(d.extend)({},n,{name:e}))}function l(t){return!(!t||!t._scrivitoPrivateSchema)}function f(t,e){return!!t&&(t===e||r(t.prototype,e))}e.a=i,e.b=o,e.c=a,e.d=u;var d=n(0),h=(n.n(d),n(1)),p=n(42),v=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}()},function(t,e,n){"use strict";function r(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}function i(t){return t&&t._scrivitoPrivateSchema}n.d(e,"a",function(){return d}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return m});var o=n(24),a=n(39),s=o.a.refinement(o.a.Function,i,"ObjClass"),u=o.a.interface({attributes:o.a.maybe(o.a.dict(o.a.refinement(o.a.String,r,"String (alphanumeric, starting with a lower-case character)"),o.a.union([o.a.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),o.a.union([o.a.tuple([o.a.enums.of(["enum","multienum"]),o.a.interface({values:o.a.list(o.a.String)})]),o.a.tuple([o.a.enums.of(["widgetlist"]),o.a.interface({only:o.a.union([o.a.String,o.a.list(o.a.String)])})])])]),"Attributes Specification")),extend:o.a.maybe(s)}),c=u.meta.props.attributes,l=o.a.refinement(o.a.Function,i,"WidgetClass"),f=o.a.interface({attributes:c,extend:o.a.maybe(l),onlyInside:o.a.maybe(o.a.String)}),d=Object(a.a)("createObjClass",[["options",u]],{docPermalink:"js-sdk/createObjClass"}),h=Object(a.a)("createWidgetClass",[["options",f]],{docPermalink:"js-sdk/createWidgetClass"}),p=o.a.union([u,s]),v=Object(a.a)("provideObjClass",[["name",o.a.String],["objClassOrDefinition",p]],{docPermalink:"js-sdk/provideObjClass"}),y=o.a.union([f,l]),m=Object(a.a)("provideWidgetClass",[["name",o.a.String],["widgetClassOrDefinition",y]],{docPermalink:"js-sdk/provideWidgetClass"})},function(t,e,n){"use strict";var r=n(304);n.d(e,"a",function(){return r.a});n(307),n(308),n(93),n(84)},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=n(38),a=n.n(o),s=n(93),u=n(84),c=n(134),l=n(222),f="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},d=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},h=function(){try{return window.history.state||{}}catch(t){return{}}},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(l.b,"Browser history needs a DOM");var e=window.history,n=Object(l.g)(),r=!Object(l.h)(),o=t.forceRefresh,p=void 0!==o&&o,v=t.getUserConfirmation,y=void 0===v?l.c:v,m=t.keyLength,b=void 0===m?6:m,g=t.basename?Object(u.g)(Object(u.a)(t.basename)):"",w=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,a=o.pathname,c=o.search,l=o.hash,f=a+c+l;return i()(!g||Object(u.c)(f,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+f+'" to begin with "'+g+'".'),g&&(f=Object(u.e)(f,g)),Object(s.a)(f,r,n)},_=function(){return Math.random().toString(36).substr(2,b)},k=Object(c.a)(),O=function(t){d(U,t),U.length=e.length,k.notifyListeners(U.location,U.action)},E=function(t){Object(l.d)(t)||j(w(t.state))},x=function(){j(w(h()))},C=!1,j=function(t){if(C)C=!1,O();else{k.confirmTransitionTo(t,"POP",y,function(e){e?O({action:"POP",location:t}):S(t)})}},S=function(t){var e=U.location,n=T.indexOf(e.key);-1===n&&(n=0);var r=T.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(C=!0,I(i))},A=w(h()),T=[A.key],N=function(t){return g+Object(u.b)(t)},P=function(t,r){i()(!("object"===(void 0===t?"undefined":f(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 o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"PUSH",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.pushState({key:a,state:s},null,r),p)window.location.href=r;else{var u=T.indexOf(U.location.key),c=T.slice(0,-1===u?0:u+1);c.push(o.key),T=c,O({action:"PUSH",location:o})}else i()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},L=function(t,r){i()(!("object"===(void 0===t?"undefined":f(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 o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"REPLACE",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.replaceState({key:a,state:s},null,r),p)window.location.replace(r);else{var u=T.indexOf(U.location.key);-1!==u&&(T[u]=o.key),O({action:"REPLACE",location:o})}else i()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},I=function(t){e.go(t)},D=function(){return I(-1)},q=function(){return I(1)},R=0,M=function(t){R+=t,1===R?(Object(l.a)(window,"popstate",E),r&&Object(l.a)(window,"hashchange",x)):0===R&&(Object(l.e)(window,"popstate",E),r&&Object(l.e)(window,"hashchange",x))},B=!1,F=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=k.setPrompt(t);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),e()}},z=function(t){var e=k.appendListener(t);return M(1),function(){M(-1),e()}},U={length:e.length,action:"POP",location:A,createHref:N,push:P,replace:L,go:I,goBack:D,goForward:q,block:F,listen:z};return U};e.a=p},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],a=t&&r(t),s=e&&r(e),u=a||s;if(t&&r(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var l=o[o.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,d=o.length;d>=0;d--){var h=o[d];"."===h?i(o,d):".."===h?(i(o,d),f++):f&&(i(o,d),f--)}if(!u)for(;f--;f)o.unshift("..");!u||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}e.a=o},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});var n=void 0===t?"undefined":i(t);if(n!==(void 0===e?"undefined":i(e)))return!1;if("object"===n){var o=t.valueOf(),a=e.valueOf();if(o!==t||a!==e)return r(o,a);var s=Object.keys(t),u=Object.keys(e);return s.length===u.length&&s.every(function(n){return r(t[n],e[n])})}return!1}var i="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};e.a=r},function(t,e,n){"use strict";var r=n(83),i=(n.n(r),n(38)),o=(n.n(i),n(93),n(84));n(134),n(222),Object.assign,o.f,o.a,o.a,o.a},function(t,e,n){"use strict";var r=n(83);n.n(r),n(84),n(93),n(134),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){"use strict";function r(t,e){if(!y){var n=Object(f.b)(t);if(!n)throw new l.ArgumentError('Component with ID "'.concat(t,'" not found. ')+'Please make sure you registered it using "Scrivito.registerComponent".');var r,o,a=u.default.get(e.objId);if(e.widgetId){var s=a.widget(e.widgetId);o=Object(p.e)(Object(h.a)(),s)}else r=Object(p.e)(Object(h.a)(),a);y=!0;var m=i(Object(d.b)(),n,{obj:r,widget:o});Object(c.a)(m,function(){return v.b.notifyDocumentResize()}),v.b.notifyDocumentResize()}}function i(t,e,n){var r=t.createElement("div");return t.body.innerHTML="",t.body.appendChild(r),Object(s.render)(a.a.createElement(e,n),r),r}n.d(e,"a",function(){return r});var o=n(13),a=n.n(o),s=n(85),u=(n.n(s),n(3)),c=n(310),l=n(1),f=n(86),d=n(70),h=n(62),p=n(22),v=n(17),y=!1},function(t,e,n){"use strict";function r(t,e){if(!t._scrivitoResizeListeners){t._scrivitoResizeListeners=[],t.style.position="relative";var n=i();n.resizeElement=t,t._scrivitoResizeTrigger=n,Object(s.a)()&&t.appendChild(n),n.data="about:blank",Object(s.a)()||t.appendChild(n)}t._scrivitoResizeListeners.push(e)}function i(){var t=document.createElement("object");return t.type="text/html",t.onload=o,t.style.display="block",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=-1,t}function o(){this.contentDocument.defaultView._scrivitoResizeTrigger=this.resizeElement,this.contentDocument.defaultView.addEventListener("resize",a)}function a(t){var e=t.target||t.srcElement,n=e._scrivitoResizeTrigger;n._scrivitoResizeListeners.forEach(function(e){return e(n,t)})}e.a=r;var s=n(311)},function(t,e,n){"use strict";function r(){var t=window.navigator.userAgent;return t.indexOf("MSIE")>=0||t.indexOf("Trident")>=0}e.a=r},function(t,e,n){"use strict";function r(t){var e=o()(t);return Object(u.b)()?Object(s.a)(function(){return Object(c.h)(t)}).then(function(t){return t.path?Object(a.include)(["/",""],t.path)?null:{obj:t.obj,url:e}:null}):scrivito.Promise.resolve(null)}var i=n(33),o=n.n(i),a=n(0),s=(n.n(a),n(7)),u=n(225),c=n(63);e.a=r},function(t,e,n){"use strict";function r(t){var e=o.default.get(t);return i(e?Object(a.a)(e):Object(s.d)({path:t}))}e.a=r;var i=n(33),o=(n.n(i),n(3)),a=n(136),s=n(63)},function(t,e,n){"use strict";function r(t,e){i[t]=e}e.a=r;var i={}},function(t,e,n){"use strict";var r=n(17);!function(){function t(t){r.b?r.b.navigateToExternalUrl(t):scrivito.setWindowLocation(t)}function e(t){window.location.assign(t)}function n(t,e){window.open(t,e)}function i(t){n(t,"_blank")}scrivito.setWindowLocation=e,scrivito.changeLocation=t,scrivito.openLocation=n,scrivito.openInNewWindow=i}()},function(t,e,n){"use strict";var r=n(317),i=(n.n(r),n(318));n.n(i)},function(t,e){window.scrivito||(window.scrivito={})},function(t,e){!function(){var t,e=0,n={},r={subscribe:function(t){var r=t.onFocus,i=t.onBlur,o=e;return n[o]={onFocus:r,onBlur:i},e+=1,o},unsubscribe:function(t){delete n[t]},notifyFocus:function(e){t=e,n[t].onFocus()},notifyBlur:function(e){e===t&&n[e].onBlur()},get handlers(){return n},reset:function(){t=void 0,e=0,n={}}};scrivito.WidgetFocus=r}()},function(t,e,n){"use strict";function r(t){return s.b.openContentBrowser(Object(o.a)(Object(i.extend)({},Object(a.b)(),Object(i.pick)(t,"selection","selectionMode"))))}e.a=r;var i=n(0),o=(n.n(i),n(138)),a=n(137),s=n(17)},function(t,e,n){"use strict";function r(){scrivito.registerEditor(i.a),scrivito.registerEditor(o.a),scrivito.registerEditor(a.a)}e.a=r;var i=n(321),o=n(336),a=n(337)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=n(322),v=n.n(p),y=n(325),m=n(229),b=n(230),g=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"contentDidChange",value:function(){this._updateContent&&this._updateContent()}},{key:"editorWillBeActivated",value:function(){this._controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(t){var e=this;if(Object(m.a)(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=Object(y.a)(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.clipboard.dangerouslyPasteHTML(e._controller.getContent()),n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new b.a(t,this._controller),i=v()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}}},{key:"editorDomWasUnmounted",value:function(){this._updateContent=void 0}}],[{key:"canEdit",value:function(t){return"html"===t.type}}]),a(e,t),e}(h.a);e.a=g},function(t,e,n){var r,i,o,a,s,u;i=n(323),r=n(324),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},handleClick:function(t){var e,n,r,o,a;return t.preventDefault(),t.stopPropagation(),this.isDisplayed()||(o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=i.util.getClosestTag(r,"a"),e=a=null,n&&(n=this.proxy.edQuery(n),e=n.attr("href")||null,a=n.attr("target")||null),this.showForm({value:e,target:a})),!1},getTemplate:function(){var t;return t="",this.targetCheckbox&&(t="<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_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\n"+t).replace(/\n\s*/g,"")},attachFormEvents:function(t){var e;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){var n,r;return r=(n=t.proxy.idFromPath(e.val()))?[n]:[],scrivito.openContentBrowser({selection:r,selectionMode:"single"}).catch(function(t){throw e.focus(),t}).then(function(n){var r,i;if(r=n.isSelected,i=n.selection,r)return e.focus(),i.length?e.val(t.proxy.pathForId(i[0])):e.val("")}),!1}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?this.execAction(this.action,t):this.execAction("unlink"),this.base.checkSelection()}}),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(),n=u(),null!=(r=n.extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",function(){return t.save(e.html())})},t.exports=a},function(t,e,n){(function(r){var i;/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
78
+ var r=n(5);r.Any=n(76),r.Array=n(185),r.Boolean=n(106),r.Date=n(186),r.Error=n(187),r.Function=n(67),r.Nil=n(107),r.Number=n(108),r.Integer=n(188),r.IntegerT=r.Integer,r.Object=n(189),r.RegExp=n(190),r.String=n(78),r.Type=n(191),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(79),r.declare=n(192),r.enums=n(193),r.irreducible=n(16),r.list=n(111),r.maybe=n(194),r.refinement=n(77),r.struct=n(196),r.tuple=n(114),r.union=n(200),r.func=n(201),r.intersection=n(202),r.subtype=r.refinement,r.inter=n(203),r.interface=r.inter,r.assert=r,r.update=n(204),r.mixin=n(80),r.isType=n(11),r.is=n(31),r.getTypeName=n(8),r.match=n(205),t.exports=r},function(t,e){t.exports=function(t){throw new TypeError("[tcomb] "+t)}},function(t,e,n){var r=n(16),i=n(28);t.exports=r("Array",i)},function(t,e,n){var r=n(16);t.exports=r("Date",function(t){return t instanceof Date})},function(t,e,n){var r=n(16);t.exports=r("Error",function(t){return t instanceof Error})},function(t,e,n){var r=n(77),i=n(108);t.exports=r(i,function(t){return t%1==0},"Integer")},function(t,e,n){var r=n(16),i=n(27);t.exports=r("Object",i)},function(t,e,n){var r=n(16);t.exports=r("RegExp",function(t){return t instanceof RegExp})},function(t,e,n){var r=n(16),i=n(11);t.exports=r("Type",i)},function(t,e,n){var r=(n(5),n(20),n(11),n(25),n(80)),i=n(8),o=n(110),a=1;t.exports=function(t){function e(t,e){return n(t,e)}var n;return e.define=function(i){return o(i)&&e.hasOwnProperty("dispatch")&&(i.dispatch=e.dispatch),n=i,r(e,n,!0),t&&(n.displayName=e.displayName=t,e.meta.name=t),e.meta.identity=n.meta.identity,e.prototype=n.prototype,e},e.displayName=t||i(e)+"$"+a++,e.meta={identity:!1},e.prototype=null,e}},function(t,e,n){function r(t){return Object.keys(t).map(function(t){return o.stringify(t)}).join(" | ")}function i(t,e){function n(t,e){return t}var i=e||r(t);return n.meta={kind:"enums",map:t,name:e,identity:!0},n.displayName=i,n.is=function(e){return t.hasOwnProperty(e)},n}var o=n(5),a=(n(20),n(52),n(65));n(27);i.of=function(t,e){t=a(t)?t.split(" "):t;var n={};return t.forEach(function(t){n[t]=t}),i(n,e)},i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t){return"?"+f(t)}function i(t,e){function n(e,n){return c.is(e)?e:u(t,e,n)}if(o(t)||t===s||t===c)return t;var i=e||r(t),f=a(t);return n.meta={kind:"maybe",type:t,name:e,identity:f},n.displayName=i,n.is=function(e){return c.is(e)||l(e,t)},n}var o=(n(5),n(20),n(10),n(195)),a=n(29),s=n(76),u=n(30),c=n(107),l=(n(52),n(31)),f=n(8);i.getDefaultName=r,t.exports=i},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"maybe"===t.meta.kind}},function(t,e,n){function r(t){return"Struct"+f(t)}function i(t,e){return d(a,t,e)}function o(t){return u(t)||(t=c(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=a.strict),t.hasOwnProperty("defaultProps")||(t.defaultProps={}),t}function a(t,e){function n(e,r){if(n.is(e))return e;if(!(this instanceof n))return new n(e,r);for(var i in t)if(t.hasOwnProperty(i)){var o=t[i],a=e[i];void 0===a&&(a=c[i]),this[i]=l(o,a,null)}}e=o(e);var a=e.name,u=e.strict,c=e.defaultProps,f=a||r(t);return n.meta={kind:"struct",props:t,name:a,identity:!1,strict:u,defaultProps:c},n.displayName=f,n.is=function(t){return t instanceof n},n.update=function(t,e){return new n(s.update(t,e))},n.extend=function(t,e){return i([n].concat(t),e)},n}var s=n(5),u=(n(20),n(78),n(67),n(66),n(27)),c=n(25),l=n(30),f=(n(8),n(79),n(112)),d=n(113);a.strict=!1,a.getOptions=o,a.getDefaultName=r,a.extend=i,t.exports=a},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"struct"===t.meta.kind}},function(t,e,n){var r=n(11);t.exports=function(t){return r(t)&&"interface"===t.meta.kind}},function(t,e,n){function r(t){return s(t)&&"subtype"===t.meta.kind}function i(t){return r(t)?[t.meta.predicate].concat(i(t.meta.type)):[]}function o(t){return r(t)?o(t.meta.type):t}function a(t){return{predicates:i(t),unrefinedType:o(t)}}var s=n(11);t.exports=a},function(t,e,n){function r(t){return t.map(a).join(" | ")}function i(t,e){function n(t,e){if(a)return t;var r=n.dispatch(t);return!r&&n.is(t)?t:u(r,t,e)}var i=e||r(t),a=t.every(s);return n.meta={kind:"union",types:t,name:e,identity:a},n.displayName=i,n.is=function(e){return t.some(function(t){return c(e,t)})},n.dispatch=function(e){for(var n=0,r=t.length;n<r;n++){var i=t[n];if(l(i)){var o=i.dispatch(e);if(!f(o))return o}else if(c(e,i))return i}},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(8)),s=n(29),u=(n(28),n(30)),c=n(31),l=(n(52),n(110)),f=n(25);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return"("+t.map(d).join(", ")+") => "+d(e)}function i(t){return s.is(t)&&c(t.instrumentation)}function o(t){for(var e=t.length,n=!1,r=e-1;r>=0;r--){var i=t[r];if(!h(i)||"maybe"!==i.meta.kind)return r+1;n=!0}return n?0:e}function a(t,e,n){function s(t,e){return i(t)?t:s.of(t)}t=u(t)?t:[t];var c=n||r(t,e),d=t.length;o(t);return s.meta={kind:"func",domain:t,codomain:e,name:n,identity:!0},s.displayName=c,s.is=function(n){return i(n)&&n.instrumentation.domain.length===d&&n.instrumentation.domain.every(function(e,n){return e===t[n]})&&n.instrumentation.codomain===e},s.of=function(n,r){function i(){var i=Array.prototype.slice.call(arguments),o=i.length;if(r&&o<d){var s=Function.prototype.bind.apply(n,[this].concat(i));return a(t.slice(o),e).of(s,!0)}return l(e,n.apply(this,i))}return s.is(n)?n:(i.instrumentation={domain:t,codomain:e,f:n},i.displayName=f(n),i)},s}var s=(n(5),n(20),n(67)),u=n(28),c=(n(111),n(27)),l=n(30),f=(n(25),n(66),n(114),n(51)),d=n(8),h=n(11);a.getDefaultName=r,a.getOptionalArgumentsIndex=o,t.exports=a},function(t,e,n){function r(t){return t.map(s).join(" & ")}function i(t,e){function n(t,e){return t}var i=e||r(t),s=t.every(u);return n.meta={kind:"intersection",types:t,name:e,identity:s},n.displayName=i,n.is=function(e){return t.every(function(t){return a(e,t)})},n.update=function(t,e){return n(o.update(t,e))},n}var o=n(5),a=(n(20),n(10),n(28),n(29),n(31)),s=n(8),u=n(29);i.getDefaultName=r,t.exports=i},function(t,e,n){function r(t,e){return h(o,t,e)}function i(t){return s(t)||(t=u(t)?{}:{name:t}),t.hasOwnProperty("strict")||(t.strict=o.strict),t}function o(t,e){function n(e,n){if(v)return e;var r=!0,i=v?{}:p({},e);for(var o in t){var a=t[o],s=e[o],u=c(a,s,null);r=r&&s===u,i[o]=u}return r&&(i=e),i}e=i(e);var o=e.name,s=e.strict,h=o||l(t),v=Object.keys(t).map(function(e){return t[e]}).every(f);return n.meta={kind:"interface",props:t,name:o,identity:v,strict:s},n.displayName=h,n.is=function(e){if(u(e))return!1;if(s)for(var n in e)if(!t.hasOwnProperty(n))return!1;for(var r in t)if(!d(e[r],t[r]))return!1;return!0},n.update=function(t,e){return n(a.update(t,e))},n.extend=function(t,e){return r([n].concat(t),e)},n}var a=n(5),s=(n(20),n(78),n(67),n(66),n(27)),u=n(25),c=n(30),l=(n(8),n(79),n(112)),f=n(29),d=n(31),h=n(113),p=n(115);o.strict=!1,o.getOptions=i,o.getDefaultName=l,o.extend=r,t.exports=o},function(t,e,n){function r(t){return v(t)?t instanceof Date||t instanceof RegExp?t:m({},t):y(t)?t.concat():t}function i(t){return a.commands.hasOwnProperty(t)}function o(t){return a.commands[t]}function a(t,e){var n,s=t,u=!1;for(var c in e)e.hasOwnProperty(c)&&(i(c)?(n=o(c)(e[c],s),n!==t?(u=!0,s=n):s=t):(s===t&&(s=r(t)),n=a(s[c],e[c]),u=u||n!==s[c],s[c]=n));return u?s:t}function s(t,e){return t(e)}function u(t,e){return t.length>0?e.concat(t):e}function c(t,e){if(t.length>0){e=r(e);for(var n=0,i=t.length;n<i;n++)delete e[t[n]]}return e}function l(t){return t}function f(t,e){return t.length>0?(e=r(e),t.reduce(function(t,e){return t.splice.apply(t,e),t},e)):e}function d(t,e){if(t.from!==t.to){e=r(e);var n=e[t.to];e[t.to]=e[t.from],e[t.from]=n}return e}function h(t,e){return t.length>0?t.concat(e):e}function p(t,e){var n=!1,i=r(e);for(var o in t)t.hasOwnProperty(o)&&(i[o]=t[o],n=n||i[o]!==e[o]);return n?i:e}var v=(n(5),n(27)),y=(n(10),n(28)),m=(n(109),n(115));a.commands={$apply:s,$push:u,$remove:c,$set:l,$splice:f,$swap:d,$unshift:h,$merge:p},t.exports=a},function(t,e,n){var r=n(5),i=n(10),o=n(11),a=n(76);t.exports=function(t){for(var e,n,s,u=1,c=arguments.length;u<c;)if(e=arguments[u],n=arguments[u+1],s=arguments[u+2],i(s)&&!o(s)?u+=3:(s=n,n=a.is,u+=2),e.is(t)&&n(t))return s(t);r.fail("Match error")}},function(t,e,n){"use strict";var r=n(18);!function(){function t(t,e){var n=r.b.run(e);return n.allDataLoaded?n.result:t}scrivito.loadableWithDefault=t,scrivito.loadWithDefault=t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?c(t):e}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function l(t){return(l=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var f=n(1);!function(){var t=function(t){function e(t){return o(this,e),u(this,l(e).call(this,"Data is not yet loaded.",t))}return a(e,t),e}(f.ScrivitoError);scrivito.NotLoadedError=t}()},function(t,e,n){"use strict";var r=n(0),i=n.n(r);!function(){function t(t,e,r){return n?t:i.a.throttle(t,e,r)}function e(){n=!0}var n=!1;scrivito.throttle=t,scrivito.bypassThrottle=e}()},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}var s=n(0),u=n.n(s),c=n(47),l=n(1);!function(){scrivito.typeInfo={normalize:function(t){if(u.a.isString(t))return[t];if(u.a.isArray(t))return t;throw new l.InternalError("Type Info needs to be a string or an array containing a string and optionally a hash")},normalizeAttrs:function(t){var e=this;return u.a.mapObject(t,function(t,n){if(Object(c.a)(n))return u.a.isArray(t)?t:[t];if(!u.a.isArray(t))throw new l.InternalError("Value for ".concat(n," should be a tuple: [value, typeInfo]"));var i=r(t,2),o=i[0],a=i[1];return[o,e.normalize(a)]})},unwrapAttributes:function(t){return u.a.mapObject(t,function(t){return r(t,1)[0]})}}}()},function(t,e,n){"use strict";function r(t,e,n){var r=s.a.forClass(n);return Object(a.pick)({name:e,type:t,attributes:i(r.attributes,Object(c.a)(e,"attributes")),onlyInside:r.onlyInside,description:Object(c.a)(e,"description"),hideInSelectionDialogs:Object(c.a)(e,"hideInSelectionDialogs"),properties:Object(c.a)(e,"properties"),propertiesGroups:Object(c.a)(e,"propertiesGroups"),thumbnail:Object(c.a)(e,"thumbnail"),title:Object(c.a)(e,"title")},a.identity)}function i(t,e){var n=Object(a.map)(t,function(t,e){var n=t[0],r=t[1],i={name:e,type:n};return r.only&&(i.only=r.only),r.values&&(i.values=r.values),i});return e&&Object.keys(e).forEach(function(t){var r=Object(a.findWhere)(n,{name:t});if(r){var i=e[t],o=i.title,s=i.description,u=i.values;u?Object(a.extend)(r,{title:o,description:s,valuesLocalization:u}):Object(a.extend)(r,{title:o,description:s})}}),n}function o(t,e){var n=_.default.getIncludingDeleted(e);if(n){var r=Object(w.e)(Object(d.a)(),n);return Object(l.a)(n.objClass(),t,r)}}var a=n(0),s=(n.n(a),n(42)),u=n(129),c=n(82),l=n(224),f=n(61),d=n(62),h=n(309),p=n(312),v=n(70),y=n(135),m=n(137),b=n(138),g=n(221),w=n(22),_=n(3),k=n(227),O=function(){function t(){}return t.prototype.contentBrowserConfiguration=function(){return Object(b.a)(Object(m.b)())},t.prototype.titleForObj=function(t){return o("titleForContent",t)},t.prototype.descriptionForObj=function(t){return o("descriptionForContent",t)},t.prototype.titleForWidget=function(t,e){return Object(k.a)(t,e)},t.prototype.initializeContentForObj=function(t){Object(g.b)(t)},t.prototype.initializeContentForWidget=function(t,e){Object(g.c)(t,e)},t.prototype.getClasses=function(){var t=Object(f.a)(),e=[];return Object(a.each)(t.allObjClasses(),function(t,n){return e.push(r("Obj",n,t))}),Object(a.each)(t.allWidgetClasses(),function(t,n){return e.push(r("Widget",n,t))}),e},t.prototype.navigateTo=function(t){Object(u.a)(function(){var e=_.default.get(t);if(e)return Object(w.e)(Object(d.a)(),e)})},t.prototype.mountComponent=function(t,e){Object(h.a)(t,e)},t.prototype.resolveUrl=function(t){return Object(p.a)(t).then(function(t){if(!t||!t.obj)return null;var e=t.obj,n=t.url.fragment(),r=t.url.search(),i={obj_id:e.id()};return n&&(i.fragment=n),r&&(i.query=r),i})},t.prototype.getDocumentHeight=function(){return Object(v.b)().querySelector("html").getBoundingClientRect().height},t.prototype.replaceInternalLinks=function(t){return Object(y.a)(t)},t}();e.a=O},function(t,e,n){"use strict";function r(t){return o()(t)}e.a=r;var i=n(156),o=n.n(i)},function(t,e,n){var r,i;!function(n){"use strict";var o={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"Ae","Å":"A","Æ":"AE","Ç":"C","È":"E","É":"E","Ê":"E","Ë":"E","Ì":"I","Í":"I","Î":"I","Ï":"I","Ð":"D","Ñ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"Oe","Ő":"O","Ø":"O","Ù":"U","Ú":"U","Û":"U","Ü":"Ue","Ű":"U","Ý":"Y","Þ":"TH","ß":"ss","à":"a","á":"a","â":"a","ã":"a","ä":"ae","å":"a","æ":"ae","ç":"c","è":"e","é":"e","ê":"e","ë":"e","ì":"i","í":"i","î":"i","ï":"i","ð":"d","ñ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"oe","ő":"o","ø":"o","ù":"u","ú":"u","û":"u","ü":"ue","ű":"u","ý":"y","þ":"th","ÿ":"y","ẞ":"SS","ا":"a","أ":"a","إ":"i","آ":"aa","ؤ":"u","ئ":"e","ء":"a","ب":"b","ت":"t","ث":"th","ج":"j","ح":"h","خ":"kh","د":"d","ذ":"th","ر":"r","ز":"z","س":"s","ش":"sh","ص":"s","ض":"dh","ط":"t","ظ":"z","ع":"a","غ":"gh","ف":"f","ق":"q","ك":"k","ل":"l","م":"m","ن":"n","ه":"h","و":"w","ي":"y","ى":"a","ة":"h","ﻻ":"la","ﻷ":"laa","ﻹ":"lai","ﻵ":"laa","گ":"g","چ":"ch","پ":"p","ژ":"zh","ک":"k","ی":"y","َ":"a","ً":"an","ِ":"e","ٍ":"en","ُ":"u","ٌ":"on","ْ":"","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","က":"k","ခ":"kh","ဂ":"g","ဃ":"ga","င":"ng","စ":"s","ဆ":"sa","ဇ":"z","စျ":"za","ည":"ny","ဋ":"t","ဌ":"ta","ဍ":"d","ဎ":"da","ဏ":"na","တ":"t","ထ":"ta","ဒ":"d","ဓ":"da","န":"n","ပ":"p","ဖ":"pa","ဗ":"b","ဘ":"ba","မ":"m","ယ":"y","ရ":"ya","လ":"l","ဝ":"w","သ":"th","ဟ":"h","ဠ":"la","အ":"a","ြ":"y","ျ":"ya","ွ":"w","ြွ":"yw","ျွ":"ywa","ှ":"h","ဧ":"e","၏":"-e","ဣ":"i","ဤ":"-i","ဉ":"u","ဦ":"-u","ဩ":"aw","သြော":"aw","ဪ":"aw","၀":"0","၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","္":"","့":"","း":"","č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z","ހ":"h","ށ":"sh","ނ":"n","ރ":"r","ބ":"b","ޅ":"lh","ކ":"k","އ":"a","ވ":"v","މ":"m","ފ":"f","ދ":"dh","ތ":"th","ލ":"l","ގ":"g","ޏ":"gn","ސ":"s","ޑ":"d","ޒ":"z","ޓ":"t","ޔ":"y","ޕ":"p","ޖ":"j","ޗ":"ch","ޘ":"tt","ޙ":"hh","ޚ":"kh","ޛ":"th","ޜ":"z","ޝ":"sh","ޞ":"s","ޟ":"d","ޠ":"t","ޡ":"z","ޢ":"a","ޣ":"gh","ޤ":"q","ޥ":"w","ަ":"a","ާ":"aa","ި":"i","ީ":"ee","ު":"u","ޫ":"oo","ެ":"e","ޭ":"ey","ޮ":"o","ޯ":"oa","ް":"","ა":"a","ბ":"b","გ":"g","დ":"d","ე":"e","ვ":"v","ზ":"z","თ":"t","ი":"i","კ":"k","ლ":"l","მ":"m","ნ":"n","ო":"o","პ":"p","ჟ":"zh","რ":"r","ს":"s","ტ":"t","უ":"u","ფ":"p","ქ":"k","ღ":"gh","ყ":"q","შ":"sh","ჩ":"ch","ც":"ts","ძ":"dz","წ":"ts","ჭ":"ch","ხ":"kh","ჯ":"j","ჰ":"h","α":"a","β":"v","γ":"g","δ":"d","ε":"e","ζ":"z","η":"i","θ":"th","ι":"i","κ":"k","λ":"l","μ":"m","ν":"n","ξ":"ks","ο":"o","π":"p","ρ":"r","σ":"s","τ":"t","υ":"y","φ":"f","χ":"x","ψ":"ps","ω":"o","ά":"a","έ":"e","ί":"i","ό":"o","ύ":"y","ή":"i","ώ":"o","ς":"s","ϊ":"i","ΰ":"y","ϋ":"y","ΐ":"i","Α":"A","Β":"B","Γ":"G","Δ":"D","Ε":"E","Ζ":"Z","Η":"I","Θ":"TH","Ι":"I","Κ":"K","Λ":"L","Μ":"M","Ν":"N","Ξ":"KS","Ο":"O","Π":"P","Ρ":"R","Σ":"S","Τ":"T","Υ":"Y","Φ":"F","Χ":"X","Ψ":"PS","Ω":"O","Ά":"A","Έ":"E","Ί":"I","Ό":"O","Ύ":"Y","Ή":"I","Ώ":"O","Ϊ":"I","Ϋ":"Y","ā":"a","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","ū":"u","Ā":"A","Ē":"E","Ģ":"G","Ī":"I","Ķ":"k","Ļ":"L","Ņ":"N","Ū":"U","Ќ":"Kj","ќ":"kj","Љ":"Lj","љ":"lj","Њ":"Nj","њ":"nj","Тс":"Ts","тс":"ts","ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"E","Ł":"L","Ń":"N","Ś":"S","Ź":"Z","Ż":"Z","Є":"Ye","І":"I","Ї":"Yi","Ґ":"G","є":"ye","і":"i","ї":"yi","ґ":"g","ă":"a","Ă":"A","ș":"s","Ș":"S","ț":"t","Ț":"T","ţ":"t","Ţ":"T","а":"a","б":"b","в":"v","г":"g","д":"d","е":"e","ё":"yo","ж":"zh","з":"z","и":"i","й":"i","к":"k","л":"l","м":"m","н":"n","о":"o","п":"p","р":"r","с":"s","т":"t","у":"u","ф":"f","х":"kh","ц":"c","ч":"ch","ш":"sh","щ":"sh","ъ":"","ы":"y","ь":"","э":"e","ю":"yu","я":"ya","А":"A","Б":"B","В":"V","Г":"G","Д":"D","Е":"E","Ё":"Yo","Ж":"Zh","З":"Z","И":"I","Й":"I","К":"K","Л":"L","М":"M","Н":"N","О":"O","П":"P","Р":"R","С":"S","Т":"T","У":"U","Ф":"F","Х":"Kh","Ц":"C","Ч":"Ch","Ш":"Sh","Щ":"Sh","Ъ":"","Ы":"Y","Ь":"","Э":"E","Ю":"Yu","Я":"Ya","ђ":"dj","ј":"j","ћ":"c","џ":"dz","Ђ":"Dj","Ј":"j","Ћ":"C","Џ":"Dz","ľ":"l","ĺ":"l","ŕ":"r","Ľ":"L","Ĺ":"L","Ŕ":"R","ş":"s","Ş":"S","ı":"i","İ":"I","ğ":"g","Ğ":"G","ả":"a","Ả":"A","ẳ":"a","Ẳ":"A","ẩ":"a","Ẩ":"A","đ":"d","Đ":"D","ẹ":"e","Ẹ":"E","ẽ":"e","Ẽ":"E","ẻ":"e","Ẻ":"E","ế":"e","Ế":"E","ề":"e","Ề":"E","ệ":"e","Ệ":"E","ễ":"e","Ễ":"E","ể":"e","Ể":"E","ỏ":"o","ọ":"o","Ọ":"o","ố":"o","Ố":"O","ồ":"o","Ồ":"O","ổ":"o","Ổ":"O","ộ":"o","Ộ":"O","ỗ":"o","Ỗ":"O","ơ":"o","Ơ":"O","ớ":"o","Ớ":"O","ờ":"o","Ờ":"O","ợ":"o","Ợ":"O","ỡ":"o","Ỡ":"O","Ở":"o","ở":"o","ị":"i","Ị":"I","ĩ":"i","Ĩ":"I","ỉ":"i","Ỉ":"i","ủ":"u","Ủ":"U","ụ":"u","Ụ":"U","ũ":"u","Ũ":"U","ư":"u","Ư":"U","ứ":"u","Ứ":"U","ừ":"u","Ừ":"U","ự":"u","Ự":"U","ữ":"u","Ữ":"U","ử":"u","Ử":"ư","ỷ":"y","Ỷ":"y","ỳ":"y","Ỳ":"Y","ỵ":"y","Ỵ":"Y","ỹ":"y","Ỹ":"Y","ạ":"a","Ạ":"A","ấ":"a","Ấ":"A","ầ":"a","Ầ":"A","ậ":"a","Ậ":"A","ẫ":"a","Ẫ":"A","ắ":"a","Ắ":"A","ằ":"a","Ằ":"A","ặ":"a","Ặ":"A","ẵ":"a","Ẵ":"A","⓪":"0","①":"1","②":"2","③":"3","④":"4","⑤":"5","⑥":"6","⑦":"7","⑧":"8","⑨":"9","⑩":"10","⑪":"11","⑫":"12","⑬":"13","⑭":"14","⑮":"15","⑯":"16","⑰":"17","⑱":"18","⑲":"18","⑳":"18","⓵":"1","⓶":"2","⓷":"3","⓸":"4","⓹":"5","⓺":"6","⓻":"7","⓼":"8","⓽":"9","⓾":"10","⓿":"0","⓫":"11","⓬":"12","⓭":"13","⓮":"14","⓯":"15","⓰":"16","⓱":"17","⓲":"18","⓳":"19","⓴":"20","Ⓐ":"A","Ⓑ":"B","Ⓒ":"C","Ⓓ":"D","Ⓔ":"E","Ⓕ":"F","Ⓖ":"G","Ⓗ":"H","Ⓘ":"I","Ⓙ":"J","Ⓚ":"K","Ⓛ":"L","Ⓜ":"M","Ⓝ":"N","Ⓞ":"O","Ⓟ":"P","Ⓠ":"Q","Ⓡ":"R","Ⓢ":"S","Ⓣ":"T","Ⓤ":"U","Ⓥ":"V","Ⓦ":"W","Ⓧ":"X","Ⓨ":"Y","Ⓩ":"Z","ⓐ":"a","ⓑ":"b","ⓒ":"c","ⓓ":"d","ⓔ":"e","ⓕ":"f","ⓖ":"g","ⓗ":"h","ⓘ":"i","ⓙ":"j","ⓚ":"k","ⓛ":"l","ⓜ":"m","ⓝ":"n","ⓞ":"o","ⓟ":"p","ⓠ":"q","ⓡ":"r","ⓢ":"s","ⓣ":"t","ⓤ":"u","ⓦ":"v","ⓥ":"w","ⓧ":"x","ⓨ":"y","ⓩ":"z","“":'"',"”":'"',"‘":"'","’":"'","∂":"d","ƒ":"f","™":"(TM)","©":"(C)","œ":"oe","Œ":"OE","®":"(R)","†":"+","℠":"(SM)","…":"...","˚":"o","º":"o","ª":"a","•":"*","၊":",","။":".",$:"USD","€":"EUR","₢":"BRN","₣":"FRF","£":"GBP","₤":"ITL","₦":"NGN","₧":"ESP","₩":"KRW","₪":"ILS","₫":"VND","₭":"LAK","₮":"MNT","₯":"GRD","₱":"ARS","₲":"PYG","₳":"ARA","₴":"UAH","₵":"GHS","¢":"cent","¥":"CNY","元":"CNY","円":"YEN","﷼":"IRR","₠":"EWE","฿":"THB","₨":"INR","₹":"INR","₰":"PF","₺":"TRY","؋":"AFN","₼":"AZN","лв":"BGN","៛":"KHR","₡":"CRC","₸":"KZT","ден":"MKD","zł":"PLN","₽":"RUB","₾":"GEL"},a=["်","ް"],s={"ာ":"a","ါ":"a","ေ":"e","ဲ":"e","ိ":"i","ီ":"i","ို":"o","ု":"u","ူ":"u","ေါင်":"aung","ော":"aw","ော်":"aw","ေါ":"aw","ေါ်":"aw","်":"်","က်":"et","ိုက်":"aik","ောက်":"auk","င်":"in","ိုင်":"aing","ောင်":"aung","စ်":"it","ည်":"i","တ်":"at","ိတ်":"eik","ုတ်":"ok","ွတ်":"ut","ေတ်":"it","ဒ်":"d","ိုဒ်":"ok","ုဒ်":"ait","န်":"an","ာန်":"an","ိန်":"ein","ုန်":"on","ွန်":"un","ပ်":"at","ိပ်":"eik","ုပ်":"ok","ွပ်":"ut","န်ုပ်":"nub","မ်":"an","ိမ်":"ein","ုမ်":"on","ွမ်":"un","ယ်":"e","ိုလ်":"ol","ဉ်":"in","ံ":"an","ိံ":"ein","ုံ":"on","ައް":"ah","ަށް":"ah"},u={en:{},az:{"ç":"c","ə":"e","ğ":"g","ı":"i","ö":"o","ş":"s","ü":"u","Ç":"C","Ə":"E","Ğ":"G","İ":"I","Ö":"O","Ş":"S","Ü":"U"},cs:{"č":"c","ď":"d","ě":"e","ň":"n","ř":"r","š":"s","ť":"t","ů":"u","ž":"z","Č":"C","Ď":"D","Ě":"E","Ň":"N","Ř":"R","Š":"S","Ť":"T","Ů":"U","Ž":"Z"},fi:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},hu:{"ä":"a","Ä":"A","ö":"o","Ö":"O","ü":"u","Ü":"U","ű":"u","Ű":"U"},lt:{"ą":"a","č":"c","ę":"e","ė":"e","į":"i","š":"s","ų":"u","ū":"u","ž":"z","Ą":"A","Č":"C","Ę":"E","Ė":"E","Į":"I","Š":"S","Ų":"U","Ū":"U"},lv:{"ā":"a","č":"c","ē":"e","ģ":"g","ī":"i","ķ":"k","ļ":"l","ņ":"n","š":"s","ū":"u","ž":"z","Ā":"A","Č":"C","Ē":"E","Ģ":"G","Ī":"i","Ķ":"k","Ļ":"L","Ņ":"N","Š":"S","Ū":"u","Ž":"Z"},pl:{"ą":"a","ć":"c","ę":"e","ł":"l","ń":"n","ó":"o","ś":"s","ź":"z","ż":"z","Ą":"A","Ć":"C","Ę":"e","Ł":"L","Ń":"N","Ó":"O","Ś":"S","Ź":"Z","Ż":"Z"},sv:{"ä":"a","Ä":"A","ö":"o","Ö":"O"},sk:{"ä":"a","Ä":"A"},sr:{"љ":"lj","њ":"nj","Љ":"Lj","Њ":"Nj","đ":"dj","Đ":"Dj"},tr:{"Ü":"U","Ö":"O","ü":"u","ö":"o"}},c={ar:{"∆":"delta","∞":"la-nihaya","♥":"hob","&":"wa","|":"aw","<":"aqal-men",">":"akbar-men","∑":"majmou","¤":"omla"},az:{},ca:{"∆":"delta","∞":"infinit","♥":"amor","&":"i","|":"o","<":"menys que",">":"mes que","∑":"suma dels","¤":"moneda"},cs:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"nebo","<":"mensi nez",">":"vetsi nez","∑":"soucet","¤":"mena"},de:{"∆":"delta","∞":"unendlich","♥":"Liebe","&":"und","|":"oder","<":"kleiner als",">":"groesser als","∑":"Summe von","¤":"Waehrung"},dv:{"∆":"delta","∞":"kolunulaa","♥":"loabi","&":"aai","|":"noonee","<":"ah vure kuda",">":"ah vure bodu","∑":"jumula","¤":"faisaa"},en:{"∆":"delta","∞":"infinity","♥":"love","&":"and","|":"or","<":"less than",">":"greater than","∑":"sum","¤":"currency"},es:{"∆":"delta","∞":"infinito","♥":"amor","&":"y","|":"u","<":"menos que",">":"mas que","∑":"suma de los","¤":"moneda"},fa:{"∆":"delta","∞":"bi-nahayat","♥":"eshgh","&":"va","|":"ya","<":"kamtar-az",">":"bishtar-az","∑":"majmooe","¤":"vahed"},fi:{"∆":"delta","∞":"aarettomyys","♥":"rakkaus","&":"ja","|":"tai","<":"pienempi kuin",">":"suurempi kuin","∑":"summa","¤":"valuutta"},fr:{"∆":"delta","∞":"infiniment","♥":"Amour","&":"et","|":"ou","<":"moins que",">":"superieure a","∑":"somme des","¤":"monnaie"},ge:{"∆":"delta","∞":"usasruloba","♥":"siqvaruli","&":"da","|":"an","<":"naklebi",">":"meti","∑":"jami","¤":"valuta"},gr:{},hu:{"∆":"delta","∞":"vegtelen","♥":"szerelem","&":"es","|":"vagy","<":"kisebb mint",">":"nagyobb mint","∑":"szumma","¤":"penznem"},it:{"∆":"delta","∞":"infinito","♥":"amore","&":"e","|":"o","<":"minore di",">":"maggiore di","∑":"somma","¤":"moneta"},lt:{"∆":"delta","∞":"begalybe","♥":"meile","&":"ir","|":"ar","<":"maziau nei",">":"daugiau nei","∑":"suma","¤":"valiuta"},lv:{"∆":"delta","∞":"bezgaliba","♥":"milestiba","&":"un","|":"vai","<":"mazak neka",">":"lielaks neka","∑":"summa","¤":"valuta"},my:{"∆":"kwahkhyaet","∞":"asaonasme","♥":"akhyait","&":"nhin","|":"tho","<":"ngethaw",">":"kyithaw","∑":"paungld","¤":"ngwekye"},mk:{},nl:{"∆":"delta","∞":"oneindig","♥":"liefde","&":"en","|":"of","<":"kleiner dan",">":"groter dan","∑":"som","¤":"valuta"},pl:{"∆":"delta","∞":"nieskonczonosc","♥":"milosc","&":"i","|":"lub","<":"mniejsze niz",">":"wieksze niz","∑":"suma","¤":"waluta"},pt:{"∆":"delta","∞":"infinito","♥":"amor","&":"e","|":"ou","<":"menor que",">":"maior que","∑":"soma","¤":"moeda"},ro:{"∆":"delta","∞":"infinit","♥":"dragoste","&":"si","|":"sau","<":"mai mic ca",">":"mai mare ca","∑":"suma","¤":"valuta"},ru:{"∆":"delta","∞":"beskonechno","♥":"lubov","&":"i","|":"ili","<":"menshe",">":"bolshe","∑":"summa","¤":"valjuta"},sk:{"∆":"delta","∞":"nekonecno","♥":"laska","&":"a","|":"alebo","<":"menej ako",">":"viac ako","∑":"sucet","¤":"mena"},sr:{},tr:{"∆":"delta","∞":"sonsuzluk","♥":"ask","&":"ve","|":"veya","<":"kucuktur",">":"buyuktur","∑":"toplam","¤":"para birimi"},uk:{"∆":"delta","∞":"bezkinechnist","♥":"lubov","&":"i","|":"abo","<":"menshe",">":"bilshe","∑":"suma","¤":"valjuta"},vn:{"∆":"delta","∞":"vo cuc","♥":"yeu","&":"va","|":"hoac","<":"nho hon",">":"lon hon","∑":"tong","¤":"tien te"}},l=[";","?",":","@","&","=","+","$",",","/"].join(""),f=[";","?",":","@","&","=","+","$",","].join(""),d=[".","!","~","*","'","(",")"].join(""),h=function(t,e){var n,r,i,h,p,m,b,g,w,_,k,O,E,x,C="-",j="",S="",A=!0,T={},N="";if("string"!=typeof t)return"";if("string"==typeof e&&(C=e),b=c.en,g=u.en,"object"==typeof e){n=e.maintainCase||!1,T=e.custom&&"object"==typeof e.custom?e.custom:T,i=+e.truncate>1&&e.truncate||!1,h=e.uric||!1,p=e.uricNoSlash||!1,m=e.mark||!1,A=!1!==e.symbols&&!1!==e.lang,C=e.separator||C,h&&(N+=l),p&&(N+=f),m&&(N+=d),b=e.lang&&c[e.lang]&&A?c[e.lang]:A?c.en:{},g=e.lang&&u[e.lang]?u[e.lang]:!1===e.lang||!0===e.lang?{}:u.en,e.titleCase&&"number"==typeof e.titleCase.length&&Array.prototype.toString.call(e.titleCase)?(e.titleCase.forEach(function(t){T[t+""]=t+""}),r=!0):r=!!e.titleCase,e.custom&&"number"==typeof e.custom.length&&Array.prototype.toString.call(e.custom)&&e.custom.forEach(function(t){T[t+""]=t+""}),Object.keys(T).forEach(function(e){var n;n=e.length>1?new RegExp("\\b"+v(e)+"\\b","gi"):new RegExp(v(e),"gi"),t=t.replace(n,T[e])});for(k in T)N+=k}for(N+=C,N=v(N),t=t.replace(/(^\s+|\s+$)/g,""),E=!1,x=!1,_=0,O=t.length;_<O;_++)k=t[_],y(k,T)?E=!1:g[k]?(k=E&&g[k].match(/[A-Za-z0-9]/)?" "+g[k]:g[k],E=!1):k in o?(_+1<O&&a.indexOf(t[_+1])>=0?(S+=k,k=""):!0===x?(k=s[S]+o[k],S=""):k=E&&o[k].match(/[A-Za-z0-9]/)?" "+o[k]:o[k],E=!1,x=!1):k in s?(S+=k,k="",_===O-1&&(k=s[S]),x=!0):!b[k]||h&&-1!==l.indexOf(k)||p&&-1!==f.indexOf(k)?(!0===x?(k=s[S]+k,S="",x=!1):E&&(/[A-Za-z0-9]/.test(k)||j.substr(-1).match(/A-Za-z0-9]/))&&(k=" "+k),E=!1):(k=E||j.substr(-1).match(/[A-Za-z0-9]/)?C+b[k]:b[k],k+=void 0!==t[_+1]&&t[_+1].match(/[A-Za-z0-9]/)?C:"",E=!0),j+=k.replace(new RegExp("[^\\w\\s"+N+"_-]","g"),C);return r&&(j=j.replace(/(\w)(\S*)/g,function(t,e,n){var r=e.toUpperCase()+(null!==n?n:"");return Object.keys(T).indexOf(r.toLowerCase())<0?r:r.toLowerCase()})),j=j.replace(/\s+/g,C).replace(new RegExp("\\"+C+"+","g"),C).replace(new RegExp("(^\\"+C+"+|\\"+C+"+$)","g"),""),i&&j.length>i&&(w=j.charAt(i)===C,j=j.slice(0,i),w||(j=j.slice(0,j.lastIndexOf(C)))),n||r||(j=j.toLowerCase()),j},p=function(t){return function(e){return h(e,t)}},v=function(t){return t.replace(/[-\\^$*+?.()|[\]{}\/]/g,"\\$&")},y=function(t,e){for(var n in e)if(e[n]===t)return!0};void 0!==t&&t.exports?(t.exports=h,t.exports.createSlug=p):(r=[],void 0!==(i=function(){return h}.apply(e,r))&&(t.exports=i))}()},function(t,e,n){"use strict";function r(t,e){return a(t)||o(t,e)||i()}function i(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}function o(t,e){var n=[],r=!0,i=!1,o=void 0;try{for(var a,s=t[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);r=!0);}catch(t){i=!0,o=t}finally{try{r||null==s.return||s.return()}finally{if(i)throw o}}return n}function a(t){if(Array.isArray(t))return t}function s(t,e,n,i){var o=r(e,2),a=o[0],s=o[1];switch(n){case"binary":return u(a,s);case"date":return c(a,s);case"float":return h(a,s);case"enum":return f(a,s,i);case"html":return l(a,s);case"integer":return v(a,s);case"link":return y(a,s);case"linklist":return m(a,s);case"multienum":return d(a,s,i);case"reference":return w(a,s);case"referencelist":return _(a,s);case"string":return k(a,s);case"stringlist":return O(a,s);case"widgetlist":return E(a,s,t)}}function u(t,e){if("binary"===t&&e){var n=e.id,r="published"===scrivito.currentWorkspaceId();return new T.a(n,r).optimizeFor({})}return null}function c(t,e){return"date"!==t?null:Object(C.a)(e)}function l(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function f(t,e,n){var r=n.values;return"string"===t&&A.a.contains(r,e)?e:null}function d(t,e,n){var r=n.values;return"stringlist"===t&&Array.isArray(e)?A.a.intersection(e,r):[]}function h(t,e){switch(t){case"string":return e.match(/^-?\d+(\.\d+)?$/)?p(e):null;case"number":return p(e);default:return null}}function p(t){var e=parseFloat(t);return Object(C.e)(e)?e:null}function v(t,e){switch(t){case"string":case"number":return Object(C.b)(e);default:return null}}function y(t,e){return"link"===t&&A.a.isObject(e)?b(e):null}function m(t,e){return A.a.isArray(e)?A.a.compact(e.map(b)):[]}function b(t){var e=A.a.pick(t,"title","query","fragment","target","url");e.hash=e.fragment,delete e.fragment,e.objId=t.obj_id;var n=j.a.build(e);return n.isBroken()?null:n}function g(t){var e=x.default.get(t);return e||null}function w(t,e){return"reference"===t&&e?g(e):null}function _(t,e){if("referencelist"!==t)return[];if(!e)return[];var n=e.map(g);return A.a.compact(n)}function k(t,e){return A.a.contains(["html","string"],t)&&A.a.isString(e)?e:""}function O(t,e){return"stringlist"===t&&Array.isArray(e)?e:[]}function E(t,e,n){return"widgetlist"!==t?[]:A.a.map(e,function(t){return n.widget(t)})}e.a=s;var x=n(3),C=n(48),j=n(34),S=n(0),A=n.n(S),T=n(26)},function(t,e,n){"use strict";function r(t){t.forEach(function(t){return u.c(t)})}function i(t,e){var n=v({},t,{index:e}),r=s.a(n);return s.c().subState(r)}function o(t){return function(){return t+"|"+Object(d.a)()}}function a(t){var e=Object(c.omit)({query:t.query,offset:t.offset,sort_by:t.sortBy,sort_order:t.sortDirection},c.isUndefined);return t.includeDeleted&&(e.options={include_deleted:!0}),e}var s=n(118),u=n(58),c=n(0),l=(n.n(c),n(7)),f=n(18),d=n(92),h=n(1),p=n(43),v=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y={results:[],total:0},m=function(){function t(t,e,n){this._params=t,this._batchSize=e,n?(this._index=n.index+1,this._continuation=n.continuationForNextBatch(),this._previousBatch=n):this._index=0}return t.store=function(t,e,n){void 0===n&&(n=e.length);var r=i(a(t),0),s=o(void 0);new f.b({state:r,invalidation:s,loader:function(){throw new h.InternalError("this should never be called")}}).set({results:e,total:n})},t.firstBatchFor=function(e,n){return new t(a(e),n)},t.countFor=function(t){return this.firstBatchFor(t,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._params,this._batchSize,this)},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()||y},t.prototype._data=function(){return new f.b({state:i(this._params,this._index),loader:this._load.bind(this),invalidation:o(this._continuation)})},t.prototype._load=function(t){var e=this,n=t.push,i=t.isReload,o=t.wasCancelled;return this._fetchContinuation().then(function(t){if(o())throw new Error;var a={size:e._batchSize,continuation:t,include_objs:!i()},s=v({},e._params,a);return p.a.retrieveObjQuery(scrivito.currentWorkspaceId(),s).then(function(t){var e=t.objs;return e&&n(function(){return e.forEach(function(t){return u.e(t)})}),r(t.results),t})})},t.prototype._fetchContinuation=function(){var t=this._previousBatch;return t?Object(l.a)(function(){return t.continuationForNextBatch()}):scrivito.Promise.resolve()},t}();e.a=m},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return c});var s=n(58),u=n(119),c=function(){function t(e,n){i(this,t),this._params=e,this._batchSize=n}return a(t,[{key:"count",value:function(){return u.a.count(this._params)}},{key:"iterator",value:function(){return new l(this._params,this._batchSize)}}]),t}(),l=function(){function t(e,n){i(this,t),this._iterator=new u.a(e,n).iterator()}return a(t,[{key:"next",value:function(){if(!this._iterator)return{done:!0};var t=this._iterator.next().value;if(!t)return{done:!0};var e=s.b(t);return void 0===e?(this._iterator=void 0,{done:!0}):e.isNonExistent()?this.next():{value:e,done:!1}}}]),t}()},function(t,e,n){"use strict";function r(t){var e=scrivito.computeCacheKey(t);return h.b.subState("facetQuery").subState(e)}function i(t){return function(){return v.a.retrieveFacetQuery(scrivito.currentWorkspaceId(),t)}}function o(){return Object(p.a)()||""}function a(t){var e=u.without.apply(void 0,[Object.keys(t)].concat(y));if(e.length)throw new d.ArgumentError("Invalid options: "+Object(f.a)(e)+". Valid options: "+y)}function s(t,e,n){var r={facets:[{attribute:t,limit:e.limit||10,include_objs:e.includeObjs||0}],size:0};return Object(u.isEmpty)(n)||(r.query=n),r}var u=n(0),c=(n.n(u),n(217)),l=n(18),f=n(41),d=n(1),h=n(4),p=n(92),v=n(43),y=["limit","includeObjs"],m=function(){function t(t,e,n){a(e),this._requestParams=s(t,e,n),this._loadableData=new l.b({state:r(this._requestParams),loader:i(this._requestParams),invalidation:o})}return t.store=function(t,e,n,u){a(e);var c=s(t,e,n);new l.b({state:r(c),loader:i(c),invalidation:o,throwNotLoaded:!0}).set(u)},t.prototype.result=function(){var t=this._loadableData.get();return t?t.facets[0].map(function(t){var e=t.value,n=t.total,r=t.results.map(function(t){return t.id});return new c.a(e,n,r)}):[]},t}();e.a=m},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return u});var s=n(3),u=function(){function t(e,n,r){i(this,t),this._name=e,this._count=n,this._includedObjs=r}return a(t,[{key:"name",value:function(){return this._name}},{key:"count",value:function(){return this._count}},{key:"includedObjs",value:function(){return this._includedObjs.map(function(t){return s.default.get(t)})}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(22),u=function(){function t(e,n){i(this,t),this._registry=e,this._basicObjFacetValue=n}return a(t,[{key:"name",value:function(){return this._basicObjFacetValue.name()}},{key:"count",value:function(){return this._basicObjFacetValue.count()}},{key:"includedObjs",value:function(){var t=this._basicObjFacetValue.includedObjs();return Object(s.e)(this._registry,t)}}]),t}();e.a=u},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){return function(){function e(){i(this,e)}return a(e,[{key:"id",value:function(){return this._scrivitoPrivateContent.id()}},{key:"objClass",value:function(){return this._scrivitoPrivateContent.objClass()}},{key:"finishSaving",value:function(){return this._scrivitoPrivateContent.finishSaving()}},{key:"get",value:function(e){return t.read(this,e)}},{key:"update",value:function(e){t.update(this,e)}}]),e}()}e.a=s},function(t,e,n){"use strict";function r(t,e,n,r){var i={};return Object.keys(n.definition.attributes).forEach(function(n){if(!t.hasOwnProperty(n)){var o=e.initialContentFor(r,n);void 0!==o&&(i[n]=o)}}),i}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){var n=Object(h.a)(t,"initialContent");if(n){var r=n[e];if(Object(l.isFunction)(r))return r();if(o(r)){var i=Object(y.a)();return r.map(function(t){var e=t._scrivitoPrivateContent,n=e.copy();return Object(v.e)(i,n)})}return r}}function o(t){return Object(l.isArray)(t)&&Object(l.every)(t,a)}function a(t){return t._scrivitoPrivateContent&&r(t._scrivitoPrivateContent,d.a)}function s(t){c(f.default.get(t))}function u(t,e){c(f.default.get(t).widget(e))}function c(t){var e=t.objClass(),n=Object(p.a)().getClass(e)._scrivitoPrivateSchema,r={};Object(l.each)(n.attributes,function(n,o){var a=t.get(o,n);if(Object(l.isEmpty)(a)){var s=i(e,o);s&&(r[o]=s)}});var o=Object(v.b)(r,n,e);t.update(o)}e.a=i,e.b=s,e.c=u;var l=n(0),f=(n.n(l),n(3)),d=n(32),h=n(82),p=n(61),v=n(22),y=n(62)},function(t,e,n){"use strict";n.d(e,"b",function(){return r}),n.d(e,"a",function(){return i}),n.d(e,"e",function(){return o}),n.d(e,"c",function(){return a}),n.d(e,"g",function(){return s}),n.d(e,"h",function(){return u}),n.d(e,"f",function(){return c}),n.d(e,"d",function(){return l});var r=!("undefined"==typeof window||!window.document||!window.document.createElement),i=function(t,e,n){return t.addEventListener?t.addEventListener(e,n,!1):t.attachEvent("on"+e,n)},o=function(t,e,n){return t.removeEventListener?t.removeEventListener(e,n,!1):t.detachEvent("on"+e,n)},a=function(t,e){return e(window.confirm(t))},s=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)},u=function(){return-1===window.navigator.userAgent.indexOf("Trident")},c=function(){return-1===window.navigator.userAgent.indexOf("Firefox")},l=function(t){return void 0===t.state&&-1===navigator.userAgent.indexOf("CriOS")}},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){d=t}function o(t){if(u(t),s(t))return"/";if(t.permalink())return"/".concat(t.permalink());var e=l(t);return e?"/".concat(e,"-").concat(t.id()):"/".concat(t.id())}function a(t){c(t);var e=t.replace(new RegExp("^/+|/+$","g"),"");if(""===e)return Object(b.c)(d());var n=v.default.getByPermalink(e);return n||v.default.get(f(e))}function s(t){if(!d)return!1;var e=scrivito.loadableWithDefault(null,d);return!!e&&e.id()===t.id()}function u(t){if(!r(t,v.default))throw new y.ArgumentError("Parameter obj needs to be a BasicObj.")}function c(t){if(!p.a.isString(t))throw new y.ArgumentError("Parameter path needs to be a String.")}function l(t){var e=Object(m.a)();return Object(b.e)(e,t).slug()}function f(t){var e=p.a.last(t.split("-"));return p.a.last(e.split("/"))}e.b=i,e.a=o,e.c=a;var d,h=n(0),p=n.n(h),v=n(3),y=n(1),m=n(62),b=n(22)},function(t,e,n){"use strict";function r(t,e){var n=Object(o.a)(t,e);if(Object(i.isFunction)(n))try{for(var r=arguments.length,s=new Array(r>2?r-2:0),u=2;u<r;u++)s[u-2]=arguments[u];return n.apply(null,s)}catch(t){Object(a.b)(t)}}e.a=r;var i=n(0),o=(n.n(i),n(82)),a=n(37)},function(t,e,n){"use strict";function r(t){p(t);var e=t.tenant,n=t.homepage,r=t.routingBasePath,i=t.unstable,o=t.endpoint||"api.scrivito.com";if(f.b){var u={tenant:e,endpoint:o};i&&i.useRailsAuth&&(u.useRailsAuth=i.useRailsAuth),f.b.configureTenant(u)}else s.a.init(o,e);Object(l.b)(n||function(){return a.default.root()}),Object(c.e)({routingBasePath:r}),d=!0}function i(){return d}n.d(e,"a",function(){return r}),n.d(e,"b",function(){return i});var o=n(24),a=n(3),s=n(21),u=n(39),c=n(63),l=n(223),f=n(17),d=!1,h=o.a.struct({tenant:o.a.String,endpoint:o.a.maybe(o.a.String),homepage:o.a.maybe(o.a.Function),routingBasePath:o.a.maybe(o.a.String),unstable:o.a.maybe(o.a.Object)}),p=Object(u.a)("configure",[["configuration",h]],{docPermalink:"js-sdk/configure"})},function(t,e,n){"use strict";function r(t){if(!t)return!1;var e=t.objClass();if(!e)return!1;var n=Object(o.a)().getClass(e);return!!n&&i.a.forClass(n).isBinary()}e.a=r;var i=n(42),o=n(61)},function(t,e,n){"use strict";function r(t,e){var n=a.default.getIncludingDeleted(t),r=n.widget(e);return i(r)||o(r.objClass())}function i(t){var e=Object(f.e)(Object(c.a)(),t),n=t.objClass();return Object(s.a)(n,"titleForContent",e)}function o(t){return Object(u.a)(t,"title")||Object(l.d)(t)}e.a=r;var a=n(3),s=n(224),u=n(82),c=n(62),l=n(23),f=n(22)},function(t,e,n){"use strict";function r(){return++c}function i(t){var e=r();l[e]=t;var n=a(),i=n.get()||[];n.set(i.concat([e]))}function o(t){var e=t.type,n=t.tag,r=a().get();if(r){var i=Object(s.find)(r,function(t){return l[t]&&l[t].canEdit({type:e,tag:n})});if(i){return{id:i,editorClass:l[i]}}}}function a(){return u.a.subState("editors")}n.d(e,"a",function(){return o}),n.d(e,"b",function(){return i});var s=n(0),u=(n.n(s),n(4)),c=0,l={}},function(t,e,n){"use strict";function r(t){t.getAttribute("data-scrivito-editors-placeholder")||t.setAttribute("data-scrivito-editors-placeholder","Click to edit")}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}var s=n(75),u=n.n(s),c=function(){function t(e,n){i(this,t),this.domNode=e,this.controller=n}return a(t,[{key:"content",value:function(){return this.controller.getContent()}},{key:"idFromPath",value:function(t){if(t.match(/^objid:/))return t.replace(/^objid:/,"")}},{key:"edQuery",value:function(){return u.a.apply(void 0,arguments)}},{key:"jQueryElement",value:function(){return this.edQuery(this.domNode)}},{key:"pathForId",value:function(t){return"objid:".concat(t)}},{key:"save",value:function(t){this.controller.setContent(t);var e={done:function(t){return t(),e}};return e}},{key:"trigger",value:function(){}}]),t}();e.a=c},function(t,e,n){"use strict";function r(t){return t.isRaw()||t.isExplicitlyTransformed()?t:t.optimizeFor({width:Object(i.e)().width*Object(i.a)()})}e.a=r;var i=n(70)},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function o(t,e){if(!i(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(0),y=(n.n(v),n(22)),m=n(34),b=n(3),g=n(26),w=n(129),_=n(14),k=n(233),O=n(136),E=n(346),x=n(59),C=n(17),j=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){return p.a.createElement("a",this._linkProps(),this.props.children)}},{key:"_linkProps",value:function(){var t=Object(v.omit)(this.props,"to");return t.href=this._href(),t.onClick=this._onClick,t.target=this._target(),t}},{key:"_href",value:function(){return this._to()||"#"}},{key:"_onClick",value:function(t){t.preventDefault(),this.props.to&&(Object(v.isString)(this.props.to)?scrivito.openInNewWindow(this.props.to):this._openLink(t))}},{key:"_openLink",value:function(t){var e=this._to();if(e){var n=this._target();"_blank"===n||Object(k.a)(t)?this._openLinkInNewWindow(e):n?scrivito.openLocation(e,n):Object(w.a)(this.props.to)}}},{key:"_openLinkInNewWindow",value:function(t){C.b?C.b.openInNewWindow(t):scrivito.openInNewWindow(t)}},{key:"_target",value:function(){return this.props.target?this.props.target:this.props.to&&i(this.props.to._scrivitoPrivateContent,m.a)?this.props.to.target():void 0}},{key:"_to",value:function(){if(this.props.to){if(Object(v.isString)(this.props.to))return this.props.to;var t=Object(y.c)(this.props.to);if(i(t,m.a)||i(t,b.default)||i(t,g.a))return Object(O.a)(t)}}}]),a(e,t),e}(p.a.Component);j.displayName="Scrivito.LinkTag",j.propTypes=Object(E.a)({to:E.b.maybe(E.b.union([x.d,x.b,x.a,E.b.String]))},{strict:!1}),e.a=Object(_.a)(j)},function(t,e,n){"use strict";function r(t){return t.ctrlKey||t.metaKey||t.shiftKey||t.which===i}e.a=r;var i=2},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(87),p=n(42),v=n(0),y=(n.n(v),n(13)),m=n.n(y),b=n(1),g=n(22),w=n(235),_=n(14),k=n(228),O=n(37),E=n(236),x=n(353),C=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=p.a.basicFieldFor(this.props.content,this.props.attribute);if(!t){var e=this.props.attribute;return Object(O.b)(new b.ArgumentError('Component "Scrivito.ContentTag" received prop "attribute" with invalid value: '+'Attribute "'.concat(e,'" is not defined for content specified in prop "content".'))),null}var n,r,i=Object(k.a)({type:t.type(),tag:this.props.tag});return i&&(n=i.id,r=i.editorClass),Object(h.a)()?m.a.createElement(x.a,{key:this._editorKey(n),field:t,editorClass:r,tag:this.props.tag,customProps:this._customProps(),content:this.props.content},this.props.children):m.a.createElement(E.a,{field:t,tag:this.props.tag,customProps:this._customProps()},this.props.children)}},{key:"_customProps",value:function(){return Object(v.omit)(this.props,"content","attribute","tag")}},{key:"_editorKey",value:function(t){var e=Object(g.c)(this.props.content);return[this.props.tag,Object(w.a)(e),this.props.attribute,t].join("|")}}]),a(e,t),e}(m.a.Component);C.displayName="Scrivito.ContentTag",C.defaultProps={tag:"div"},e.a=Object(_.a)(C)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){if(r(t,o.default))return t.id();if(r(t,a.a))return"".concat(t.obj().id(),"|").concat(t.id());var e=Object(u.a)(t).substr(0,100);throw new s.InternalError('keyForBasicContent called with "'.concat(e,'". Expected an instance of')+" BasicObj or BasicWidget.")}e.a=i;var o=n(3),a=n(32),s=n(1),u=n(41)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(0),p=(n.n(h),n(13)),v=n.n(p),y=n(87),m=n(135),b=n(17),g=n(72),w=n(14),_=n(349),k=n(350),O=n(352),E=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){switch(this.props.field.type()){case"html":return this._renderHtml();case"float":case"integer":case"string":return this._renderAsString();case"widgetlist":return this._renderWidgetlist();default:return this._renderContent({children:this.props.children})}}},{key:"_renderHtml",value:function(){if(this.props.children)return this._renderContent({children:this.props.children});var t=Object(m.a)(this._attributeValue()),e={dangerouslySetInnerHTML:{__html:t},onClick:this._onClick};return this._renderContent({props:e})}},{key:"_onClick",value:function(t){var e=Object(_.a)(t);e&&(e.openInNewWindow?this._openInNewWindow(t,e):this._openInCurrentWindow(t,e))}},{key:"_openInNewWindow",value:function(t,e){var n=e.openInNewWindow;b.b&&(t.preventDefault(),t.stopPropagation(),b.b.openInNewWindow(n))}},{key:"_openInCurrentWindow",value:function(t,e){var n=e.openInCurrentWindow;t.preventDefault(),t.stopPropagation(),Object(g.c)(n)}},{key:"_renderAsString",value:function(){var t=this.props.children||this._attributeValue();return this._renderContent({children:t})}},{key:"_renderWidgetlist",value:function(){var t,e=this._attributeValue();return e.length?t=e.map(function(t){return v.a.createElement(k.a,{key:t.id(),widget:t})}):Object(y.a)()&&(t=v.a.createElement(O.a,{field:this.props.field})),this._renderContent({children:t})}},{key:"_renderContent",value:function(t){var e=t.props,n=t.children,r=Object(h.extend)({},this.props.customProps,e,this._editingProps());return v.a.createElement(this.props.tag,r,n)}},{key:"_editingProps",value:function(){return this.props.onClick?{onClick:this.props.onClick,"data-scrivito-is-clickable":!0}:{}}},{key:"_attributeValue",value:function(){return this.props.field.get()}}]),a(e,t),e}(v.a.Component);E.displayName="Scrivito.ContentTag.AttributeValue",e.a=Object(w.a)(E)},function(t,e){t.exports=PropTypes},function(t,e,n){"use strict";function r(t){t.dataTransfer.effectAllowed="move";try{t.dataTransfer.setData("text/plain",t.target.id)}catch(t){}}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(14),y=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t="scrivito_option_marker scrivito_".concat(this.props.position);return this.props.isAlwaysShown&&(t+=" scrivito_visible"),p.a.createElement("span",{className:t,onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut},p.a.createElement("i",{className:"scrivito_icon scrivito_icon_marker_plus"}))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this.props.insertWidget(this.props.widget,this.props.position)}}]),a(e,t),e}(p.a.Component);y.displayName="Scrivito.OptionMarker",e.a=Object(v.a)(y)},function(t,e,n){"use strict";function r(){i=!0}n.d(e,"b",function(){return i}),e.a=r;var i=!1},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";function r(){window.scrivito||(window.scrivito={}),window.scrivito.on||(window.scrivito.on=function(t,e){"content"===t&&document.addEventListener("DOMContentLoaded",function(){return e(window.document)})}),window.scrivito.in_editable_view||(window.scrivito.in_editable_view=function(){return!1})}e.a=r},function(t,e,n){"use strict";function r(t){if(t){t.setAppAdapter("1.2.0-rc2-8-gc9ddb6bb",new u.a);var e=t.uiAdapter();Object(l.a)(e),Object(c.b)(e)}scrivito.client.init({ui:t});var n=new i.a;Object(o.b)(n.promise),document.addEventListener("DOMContentLoaded",n.resolve)}e.a=r;var i=(n(162),n(291),n(292),n(316),n(12)),o=n(81),a=n(319),s=n(228),u=n(210),c=n(43),l=n(17);window.scrivito||(window.scrivito={}),window.scrivito.registerEditor=s.b,window.scrivito.openContentBrowser=a.a},function(t,e,n){"use strict";var r=n(127);n.n(r)},function(t,e,n){"use strict";var r=n(293);n.n(r),n(210),n(72),n(315)},function(t,e){window.scrivito||(window.scrivito={}),window.scrivito.AppSupport={}},function(t,e,n){"use strict";function r(){window.scrollTo(0,0)}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}n.d(e,"a",function(){return h});var s=n(296),u=n(297),c=n(298),l=n(133),f=n(301),d=n(302),h=function(){function t(){i(this,t),this._registry=new c.a,this._registry.defaultClassForLinks=Object(u.a)(this._registry),this._registry.ObjSearch=Object(s.a)(this._registry),this.appModelAccessor=new l.a(this._registry)}return a(t,null,[{key:"init",value: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(){return n.provideObjClass.apply(n,arguments)},e.provideWidgetClass=function(){return n.provideWidgetClass.apply(n,arguments)},e.createObjClass=function(){return n.createObjClass.apply(n,arguments)},e.createWidgetClass=function(){return n.createWidgetClass.apply(n,arguments)},e.getClass=function(){return n.getClass.apply(n,arguments)},e.allObjClasses=function(){return n.allObjClasses()},e.allWidgetClasses=function(){return n.allWidgetClasses()},e._privateRealm=n,n}}]),a(t,[{key:"provideObjClass",value:function(t,e){return Object(d.c)(t,e),Object(f.c)(this._registry,t,e)}},{key:"provideWidgetClass",value:function(t,e){return Object(d.d)(t,e),Object(f.d)(this._registry,t,e)}},{key:"createObjClass",value:function(t){return Object(d.a)(t),Object(f.a)(this._registry,t)}},{key:"createWidgetClass",value:function(t){return Object(d.b)(t),Object(f.b)(this._registry,t)}},{key:"getClass",value:function(t){return this._registry.getClass(t)}},{key:"allObjClasses",value:function(){return this._registry.allObjClasses()}},{key:"allWidgetClasses",value:function(){return this._registry.allWidgetClasses()}},{key:"setInitialContentFor",value:function(t){this._registry.setInitialContentFor(t)}},{key:"Obj",get:function(){return this._registry.defaultClassForObjs}},{key:"Widget",get:function(){return this._registry.defaultClassForWidgets}},{key:"Link",get:function(){return this._registry.defaultClassForLinks}},{key:"ObjSearch",get:function(){return this._registry.ObjSearch}}]),t}()},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function a(t,e,n){return e&&o(t.prototype,e),n&&o(t,n),t}function s(t){var e=function(){function e(t){i(this,e),this._scrivitoPrivateContent=new c.b(t)}return a(e,[{key:"and",value:function(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(r(t,e))this._scrivitoPrivateContent.and(t._scrivitoPrivateContent);else{var a=Object(f.d)(i);this._scrivitoPrivateContent.and(t,n,a,o)}return this}},{key:"andNot",value:function(t,e,n){var r=Object(f.d)(n);return this._scrivitoPrivateContent.andNot(t,e,r),this}},{key:"facet",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this._scrivitoPrivateContent.facet(e,n);return h.a.map(r,function(e){return new l.a(t,e)})}},{key:"take",value:function(e){return this._scrivitoPrivateContent.batchSize(e),Object(u.a)(this._scrivitoPrivateContent,e).map(function(e){return Object(f.e)(t,e)})}},{key:"offset",value:function(t){return this._scrivitoPrivateContent.offset(t),this}},{key:"order",value:function(t,e){return this._scrivitoPrivateContent.order(t,e),this}},{key:"count",value:function(){return this._scrivitoPrivateContent.count()}}]),e}();if("function"==typeof window.Symbol){var n=window.Symbol.iterator;if(n){e.prototype[n]=function(){var e=this._scrivitoPrivateContent.iterator();return{next:function(){var n=e.next(),r=n.done,i=n.value;return r?{done:r}:{done:r,value:Object(f.e)(t,i)}}}}}}return e}e.a=s;var u=n(121),c=n(54),l=n(218),f=n(22),d=n(0),h=n.n(d)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t){return function(e){function n(t){return o(this,n),l(this,p(n).call(this,t))}return c(n,[{key:"obj",value:function(){return Object(m.e)(t,d(p(n.prototype),"obj",this).call(this))}},{key:"fetchObj",value:function(e){return d(p(n.prototype),"fetchObj",this).call(this,e).then(function(e){return Object(m.e)(t,e)})}},{key:"_scrivitoPrivateContent",get:function(){return y.a.build(this.buildAttributes())}}]),a(n,e),n}(y.a)}e.a=v;var y=n(34),m=n(22)},function(t,e,n){"use strict";var r=n(0),i=(n.n(r),n(299)),o=n(300),a=function(){function t(){this.mapping={},this.defaultClassForObjs=Object(o.a)(this),this.defaultClassForWidgets=Object(i.a)(this)}return t.prototype.register=function(t,e){this.mapping[t]=e},t.prototype.getClass=function(t){return this.mapping[t]},t.prototype.allObjClasses=function(){return this.allForBaseClass(this.defaultClassForObjs)},t.prototype.allWidgetClasses=function(){return this.allForBaseClass(this.defaultClassForWidgets)},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.prototype.allForBaseClass=function(t){return r.pick(this.mapping,function(e){return t.isPrototypeOf(e)})},t}();e.a=a},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){var e=new g.a(t);return function(e){function n(e){var r;o(this,n),r=l(this,f(n).call(this));var i=y.a.forInstance(d(d(r))),a=t.objClassNameFor(r.constructor),s=r._prepareAttributesForConstructor(e,i,a),u=new m.a(s);return u.onDidPersist(function(e){var n=Object(k.e)(t,e),r=Object(_.a)(s,t,i,a);n.update(r)}),r._scrivitoPrivateContent=u,r}return c(n,[{key:"obj",value:function(){var e=this._scrivitoPrivateContent.obj();return Object(k.e)(t,e)}},{key:"copy",value:function(){var e=t.widgetClassFor(this.objClass()),n=this._scrivitoPrivateContent.copy();return Object(k.a)(n,e)}},{key:"_prepareAttributesForConstructor",value:function(t,e,n){p(n,t);var r={_objClass:n},i=Object(v.extend)({},t,r);return Object(k.b)(i,e,n)}}]),a(n,e),n}(Object(w.a)(e))}function p(t,e){if(!t)throw new b.ArgumentError("Creating widgets is not supported for the class Widget or abstract classes.");if(e.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(e._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"new '.concat(e._objClass,'" will automatically set the CMS object class correctly.'))}e.a=h;var v=n(0),y=(n.n(v),n(42)),m=n(32),b=n(1),g=n(133),w=n(219),_=n(220),k=n(22)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function h(t){function e(e,n){var r=new t.ObjSearch;return e&&r.and("_objClass","equals",e),n&&r._scrivitoPrivateContent.batchSize(n),r}function n(e){return Object(w.e)(t,e)}var r=new g.a(t);return function(i){function s(){return o(this,s),l(this,d(s).apply(this,arguments))}return c(s,[{key:"lastChanged",value:function(){return this._scrivitoPrivateContent.lastChanged()}},{key:"path",value:function(){return this._scrivitoPrivateContent.path()}},{key:"parent",value:function(){return n(this._scrivitoPrivateContent.parent())}},{key:"ancestors",value:function(){return n(this._scrivitoPrivateContent.ancestors())}},{key:"backlinks",value:function(){return n(this._scrivitoPrivateContent.backlinks())}},{key:"children",value:function(){return n(this._scrivitoPrivateContent.children())}},{key:"orderedChildren",value:function(){return n(this._scrivitoPrivateContent.orderedChildren())}},{key:"permalink",value:function(){return this._scrivitoPrivateContent.permalink()}},{key:"slug",value:function(){return this._scrivitoPrivateContent.slug()}},{key:"isBinary",value:function(){var t=m.a.forInstance(this);return!!t&&t.isBinary()}},{key:"contentLength",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentLength():0}},{key:"contentType",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentType():""}},{key:"contentUrl",value:function(){return this.isBinary()?this._scrivitoPrivateContent.contentUrl():""}},{key:"metadata",value:function(){return this.isBinary()?this._scrivitoPrivateContent.metadata():new _.a}},{key:"destroy",value:function(){this._scrivitoPrivateContent.destroy()}},{key:"widget",value:function(t){return n(this._scrivitoPrivateContent.widget(t))}},{key:"widgets",value:function(){return n(this._scrivitoPrivateContent.widgets())}}],[{key:"get",value:function(t){return r.getObj(this,t)}},{key:"getIncludingDeleted",value:function(t){return r.getObjIncludingDeleted(this,t)}},{key:"getByPath",value:function(t){return n(y.default.getByPath(t))}},{key:"getByPermalink",value:function(t){return n(y.default.getByPermalink(t))}},{key:"all",value:function(){return e(t.objClassNameFor(this),1e3)}},{key:"root",value:function(){return n(y.default.root())}},{key:"where",value:function(n,r,i){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;return e(t.objClassNameFor(this)).and(n,r,i,o)}},{key:"create",value:function(t){var e=this._prepareAttributesForCreate(t);return n(y.default.create(e))}},{key:"_prepareAttributesForCreate",value:function(e){var n=t.objClassNameFor(this),r=m.a.forClass(this);p(e,n);var i=Object(O.a)(e,t,r,n),o={_objClass:n},a=Object(v.extend)({},e,i,o);return Object(w.b)(a,r,n)}}]),a(s,i),s}(Object(k.a)(r))}function p(t,e){if(!e)throw new b.ArgumentError("Creating CMS objects is not supported for the class Obj or abstract classes.");if(t.constructor!==Object)throw new b.ArgumentError("The provided attributes are invalid. They have to be an Object with valid Scrivito attribute values.");if(t._objClass)throw new b.ArgumentError('Invalid attribute "_objClass". '+'"'.concat(t._objClass,'.create" will automatically set the CMS object class ')+"correctly.")}e.a=h;var v=n(0),y=(n.n(v),n(3)),m=n(42),b=n(1),g=n(133),w=n(22),_=n(130),k=n(219),O=n(220)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){if(e.extend&&!f(e.extend,t.defaultClassForObjs))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Obj class');var n=e.extend||t.defaultClassForObjs,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function o(t,e){if(e.extend&&!f(e.extend,t.defaultClassForWidgets))throw new h.ArgumentError('Invalid value for "extend": not a Scrivito Widget class');var n=e.extend||t.defaultClassForWidgets,r=new p.a(e,n);return function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return v(e,t),Object.defineProperty(e,"_scrivitoPrivateSchema",{get:function(){return r},enumerable:!0,configurable:!0}),e}(n)}function a(t,e,n){var r=s(t,e,n);return t.register(e,r),r}function s(t,e,n){return l(n)?n:i(t,Object(d.extend)({},n,{name:e}))}function u(t,e,n){var r=c(t,e,n);return t.register(e,r),r}function c(t,e,n){return l(n)?n:o(t,Object(d.extend)({},n,{name:e}))}function l(t){return!(!t||!t._scrivitoPrivateSchema)}function f(t,e){return!!t&&(t===e||r(t.prototype,e))}e.a=i,e.b=o,e.c=a,e.d=u;var d=n(0),h=(n.n(d),n(1)),p=n(42),v=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}()},function(t,e,n){"use strict";function r(t){return/^[a-z](_+[A-Z0-9]|[A-Za-z0-9])*$/.test(t)}function i(t){return t&&t._scrivitoPrivateSchema}n.d(e,"a",function(){return d}),n.d(e,"b",function(){return h}),n.d(e,"c",function(){return v}),n.d(e,"d",function(){return m});var o=n(24),a=n(39),s=o.a.refinement(o.a.Function,i,"ObjClass"),u=o.a.interface({attributes:o.a.maybe(o.a.dict(o.a.refinement(o.a.String,r,"String (alphanumeric, starting with a lower-case character)"),o.a.union([o.a.enums.of(["binary","date","float","html","integer","link","linklist","reference","referencelist","string","stringlist","widgetlist"]),o.a.union([o.a.tuple([o.a.enums.of(["enum","multienum"]),o.a.interface({values:o.a.list(o.a.String)})]),o.a.tuple([o.a.enums.of(["widgetlist"]),o.a.interface({only:o.a.union([o.a.String,o.a.list(o.a.String)])})])])]),"Attributes Specification")),extend:o.a.maybe(s)}),c=u.meta.props.attributes,l=o.a.refinement(o.a.Function,i,"WidgetClass"),f=o.a.interface({attributes:c,extend:o.a.maybe(l),onlyInside:o.a.maybe(o.a.String)}),d=Object(a.a)("createObjClass",[["options",u]],{docPermalink:"js-sdk/createObjClass"}),h=Object(a.a)("createWidgetClass",[["options",f]],{docPermalink:"js-sdk/createWidgetClass"}),p=o.a.union([u,s]),v=Object(a.a)("provideObjClass",[["name",o.a.String],["objClassOrDefinition",p]],{docPermalink:"js-sdk/provideObjClass"}),y=o.a.union([f,l]),m=Object(a.a)("provideWidgetClass",[["name",o.a.String],["widgetClassOrDefinition",y]],{docPermalink:"js-sdk/provideWidgetClass"})},function(t,e,n){"use strict";var r=n(304);n.d(e,"a",function(){return r.a});n(307),n(308),n(93),n(84)},function(t,e,n){"use strict";var r=n(83),i=n.n(r),o=n(38),a=n.n(o),s=n(93),u=n(84),c=n(134),l=n(222),f="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},d=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},h=function(){try{return window.history.state||{}}catch(t){return{}}},p=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a()(l.b,"Browser history needs a DOM");var e=window.history,n=Object(l.g)(),r=!Object(l.h)(),o=t.forceRefresh,p=void 0!==o&&o,v=t.getUserConfirmation,y=void 0===v?l.c:v,m=t.keyLength,b=void 0===m?6:m,g=t.basename?Object(u.g)(Object(u.a)(t.basename)):"",w=function(t){var e=t||{},n=e.key,r=e.state,o=window.location,a=o.pathname,c=o.search,l=o.hash,f=a+c+l;return i()(!g||Object(u.c)(f,g),'You are attempting to use a basename on a page whose URL path does not begin with the basename. Expected path "'+f+'" to begin with "'+g+'".'),g&&(f=Object(u.e)(f,g)),Object(s.a)(f,r,n)},_=function(){return Math.random().toString(36).substr(2,b)},k=Object(c.a)(),O=function(t){d(U,t),U.length=e.length,k.notifyListeners(U.location,U.action)},E=function(t){Object(l.d)(t)||j(w(t.state))},x=function(){j(w(h()))},C=!1,j=function(t){if(C)C=!1,O();else{k.confirmTransitionTo(t,"POP",y,function(e){e?O({action:"POP",location:t}):S(t)})}},S=function(t){var e=U.location,n=T.indexOf(e.key);-1===n&&(n=0);var r=T.indexOf(t.key);-1===r&&(r=0);var i=n-r;i&&(C=!0,I(i))},A=w(h()),T=[A.key],N=function(t){return g+Object(u.b)(t)},P=function(t,r){i()(!("object"===(void 0===t?"undefined":f(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 o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"PUSH",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.pushState({key:a,state:s},null,r),p)window.location.href=r;else{var u=T.indexOf(U.location.key),c=T.slice(0,-1===u?0:u+1);c.push(o.key),T=c,O({action:"PUSH",location:o})}else i()(void 0===s,"Browser history cannot push state in browsers that do not support HTML5 history"),window.location.href=r}})},L=function(t,r){i()(!("object"===(void 0===t?"undefined":f(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 o=Object(s.a)(t,r,_(),U.location);k.confirmTransitionTo(o,"REPLACE",y,function(t){if(t){var r=N(o),a=o.key,s=o.state;if(n)if(e.replaceState({key:a,state:s},null,r),p)window.location.replace(r);else{var u=T.indexOf(U.location.key);-1!==u&&(T[u]=o.key),O({action:"REPLACE",location:o})}else i()(void 0===s,"Browser history cannot replace state in browsers that do not support HTML5 history"),window.location.replace(r)}})},I=function(t){e.go(t)},D=function(){return I(-1)},q=function(){return I(1)},R=0,M=function(t){R+=t,1===R?(Object(l.a)(window,"popstate",E),r&&Object(l.a)(window,"hashchange",x)):0===R&&(Object(l.e)(window,"popstate",E),r&&Object(l.e)(window,"hashchange",x))},B=!1,F=function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=k.setPrompt(t);return B||(M(1),B=!0),function(){return B&&(B=!1,M(-1)),e()}},z=function(t){var e=k.appendListener(t);return M(1),function(){M(-1),e()}},U={length:e.length,action:"POP",location:A,createHref:N,push:P,replace:L,go:I,goBack:D,goForward:q,block:F,listen:z};return U};e.a=p},function(t,e,n){"use strict";function r(t){return"/"===t.charAt(0)}function i(t,e){for(var n=e,r=n+1,i=t.length;r<i;n+=1,r+=1)t[n]=t[r];t.pop()}function o(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=t&&t.split("/")||[],o=e&&e.split("/")||[],a=t&&r(t),s=e&&r(e),u=a||s;if(t&&r(t)?o=n:n.length&&(o.pop(),o=o.concat(n)),!o.length)return"/";var c=void 0;if(o.length){var l=o[o.length-1];c="."===l||".."===l||""===l}else c=!1;for(var f=0,d=o.length;d>=0;d--){var h=o[d];"."===h?i(o,d):".."===h?(i(o,d),f++):f&&(i(o,d),f--)}if(!u)for(;f--;f)o.unshift("..");!u||""===o[0]||o[0]&&r(o[0])||o.unshift("");var p=o.join("/");return c&&"/"!==p.substr(-1)&&(p+="/"),p}e.a=o},function(t,e,n){"use strict";function r(t,e){if(t===e)return!0;if(null==t||null==e)return!1;if(Array.isArray(t))return Array.isArray(e)&&t.length===e.length&&t.every(function(t,n){return r(t,e[n])});var n=void 0===t?"undefined":i(t);if(n!==(void 0===e?"undefined":i(e)))return!1;if("object"===n){var o=t.valueOf(),a=e.valueOf();if(o!==t||a!==e)return r(o,a);var s=Object.keys(t),u=Object.keys(e);return s.length===u.length&&s.every(function(n){return r(t[n],e[n])})}return!1}var i="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};e.a=r},function(t,e,n){"use strict";var r=n(83),i=(n.n(r),n(38)),o=(n.n(i),n(93),n(84));n(134),n(222),Object.assign,o.f,o.a,o.a,o.a},function(t,e,n){"use strict";var r=n(83);n.n(r),n(84),n(93),n(134),"function"==typeof Symbol&&Symbol.iterator,Object.assign},function(t,e,n){"use strict";function r(t,e){if(!y){var n=Object(f.b)(t);if(!n)throw new l.ArgumentError('Component with ID "'.concat(t,'" not found. ')+'Please make sure you registered it using "Scrivito.registerComponent".');var r,o,a=u.default.get(e.objId);if(e.widgetId){var s=a.widget(e.widgetId);o=Object(p.e)(Object(h.a)(),s)}else r=Object(p.e)(Object(h.a)(),a);y=!0;var m=i(Object(d.b)(),n,{obj:r,widget:o});Object(c.a)(m,function(){return v.b.notifyDocumentResize()}),v.b.notifyDocumentResize()}}function i(t,e,n){var r=t.createElement("div");return t.body.innerHTML="",t.body.appendChild(r),Object(s.render)(a.a.createElement(e,n),r),r}n.d(e,"a",function(){return r});var o=n(13),a=n.n(o),s=n(85),u=(n.n(s),n(3)),c=n(310),l=n(1),f=n(86),d=n(70),h=n(62),p=n(22),v=n(17),y=!1},function(t,e,n){"use strict";function r(t,e){if(!t._scrivitoResizeListeners){t._scrivitoResizeListeners=[],t.style.position="relative";var n=i();n.resizeElement=t,t._scrivitoResizeTrigger=n,Object(s.a)()&&t.appendChild(n),n.data="about:blank",Object(s.a)()||t.appendChild(n)}t._scrivitoResizeListeners.push(e)}function i(){var t=document.createElement("object");return t.type="text/html",t.onload=o,t.style.display="block",t.style.position="absolute",t.style.top=0,t.style.left=0,t.style.height="100%",t.style.width="100%",t.style.overflow="hidden",t.style.pointerEvents="none",t.style.zIndex=-1,t}function o(){this.contentDocument.defaultView._scrivitoResizeTrigger=this.resizeElement,this.contentDocument.defaultView.addEventListener("resize",a)}function a(t){var e=t.target||t.srcElement,n=e._scrivitoResizeTrigger;n._scrivitoResizeListeners.forEach(function(e){return e(n,t)})}e.a=r;var s=n(311)},function(t,e,n){"use strict";function r(){var t=window.navigator.userAgent;return t.indexOf("MSIE")>=0||t.indexOf("Trident")>=0}e.a=r},function(t,e,n){"use strict";function r(t){var e=o()(t);return Object(u.b)()?Object(s.a)(function(){return Object(c.h)(t)}).then(function(t){return t.path?Object(a.include)(["/",""],t.path)?null:{obj:t.obj,url:e}:null}):scrivito.Promise.resolve(null)}var i=n(33),o=n.n(i),a=n(0),s=(n.n(a),n(7)),u=n(225),c=n(63);e.a=r},function(t,e,n){"use strict";function r(t){var e=o.default.get(t);return i(e?Object(a.a)(e):Object(s.d)({path:t}))}e.a=r;var i=n(33),o=(n.n(i),n(3)),a=n(136),s=n(63)},function(t,e,n){"use strict";function r(t,e){i[t]=e}e.a=r;var i={}},function(t,e,n){"use strict";var r=n(17);!function(){function t(t){r.b?r.b.navigateToExternalUrl(t):scrivito.setWindowLocation(t)}function e(t){window.location.assign(t)}function n(t,e){window.open(t,e)}function i(t){n(t,"_blank")}scrivito.setWindowLocation=e,scrivito.changeLocation=t,scrivito.openLocation=n,scrivito.openInNewWindow=i}()},function(t,e,n){"use strict";var r=n(317),i=(n.n(r),n(318));n.n(i)},function(t,e){window.scrivito||(window.scrivito={})},function(t,e){!function(){var t,e=0,n={},r={subscribe:function(t){var r=t.onFocus,i=t.onBlur,o=e;return n[o]={onFocus:r,onBlur:i},e+=1,o},unsubscribe:function(t){delete n[t]},notifyFocus:function(e){t=e,n[t].onFocus()},notifyBlur:function(e){e===t&&n[e].onBlur()},get handlers(){return n},reset:function(){t=void 0,e=0,n={}}};scrivito.WidgetFocus=r}()},function(t,e,n){"use strict";function r(t){return s.b.openContentBrowser(Object(o.a)(Object(i.extend)({},Object(a.b)(),Object(i.pick)(t,"selection","selectionMode"))))}e.a=r;var i=n(0),o=(n.n(i),n(138)),a=n(137),s=n(17)},function(t,e,n){"use strict";function r(){scrivito.registerEditor(i.a),scrivito.registerEditor(o.a),scrivito.registerEditor(a.a)}e.a=r;var i=n(321),o=n(336),a=n(337)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=n(322),v=n.n(p),y=n(325),m=n(229),b=n(230),g=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"contentDidChange",value:function(){this._updateContent&&this._updateContent()}},{key:"editorWillBeActivated",value:function(){this._controller.setDomMode("Replace")}},{key:"editorDomWasMounted",value:function(t){var e=this;if(Object(m.a)(t),"yes"===window.top.localStorage.getItem("__scrivito_enable_quill")){var n=Object(y.a)(t,this._controller);this._updateContent=function(){var t=n.getSelection();n.clipboard.dangerouslyPasteHTML(e._controller.getContent()),n.setSelection(t)}}else{t.innerHTML=this._controller.getContent();var r=new b.a(t,this._controller),i=v()(r);this._updateContent=function(){var n=i.exportSelection();t.innerHTML=e._controller.getContent(),i.importSelection(n)}}}},{key:"editorDomWasUnmounted",value:function(){this._updateContent=void 0}}],[{key:"canEdit",value:function(t){return"html"===t.type}}]),a(e,t),e}(h.a);e.a=g},function(t,e,n){var r,i,o,a,s,u;i=n(323),r=n(324),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},handleClick:function(t){var e,n,r,o,a;return t.preventDefault(),t.stopPropagation(),this.isDisplayed()||(o=i.selection.getSelectionRange(this.document),r=i.selection.getSelectedParentElement(o),n=i.util.getClosestTag(r,"a"),e=a=null,n&&(n=this.proxy.edQuery(n),e=n.attr("href")||null,a=n.attr("target")||null),this.showForm({value:e,target:a})),!1},getTemplate:function(){var t;return t="",this.targetCheckbox&&(t="<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_customer_icon sci_inv_check'></i>\n <i class='scrivito_customer_icon sci_rounded_square'></i>\n "+this.targetCheckboxText+"\n </label>\n</div>"),("<i class='medium-editor-toolbar-browse scrivito_customer_icon sci_collection'></i>\n<input type='text' class='medium-editor-toolbar-input' placeholder='"+this.placeholderText+"'>\n<i class='medium-editor-toolbar-save scrivito_customer_icon sci_check'></i>\n<i class='medium-editor-toolbar-close scrivito_customer_icon sci_cross'></i>\n"+t).replace(/\n\s*/g,"")},attachFormEvents:function(t){var e;return i.extensions.anchor.prototype.attachFormEvents.call(this,t),t=this.proxy.edQuery(t),e=t.find(".medium-editor-toolbar-input"),t.find(".medium-editor-toolbar-browse").on("click",function(t){return function(){var n,r;return r=(n=t.proxy.idFromPath(e.val()))?[n]:[],scrivito.openContentBrowser({selection:r,selectionMode:"single"}).catch(function(t){throw e.focus(),t}).then(function(n){var r,i;if(r=n.isSelected,i=n.selection,r)return e.focus(),i.length?e.val(t.proxy.pathForId(i[0])):e.val("")}),!1}}(this))},completeFormSave:function(t){return this.base.restoreSelection(),t.value?this.execAction(this.action,t):this.execAction("unlink"),this.base.checkSelection()}}),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(),n=u(),null!=(r=n.extensions.scrivito_anchor)&&(r.proxy=t),new i(e,n).subscribe("editableInput",function(){return t.save(e.html())})},t.exports=a},function(t,e,n){(function(r){var i;/*! @source http://purl.eligrey.com/github/classList.js/blob/master/classList.js */
79
79
  "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;e<n;e++)if(e in this&&this[e]===t)return e;return-1},o=function(t,e){this.name=t,this.code=DOMException[t],this.message=e},a=function(t,e){if(""===e)throw new o("SYNTAX_ERR","An invalid or illegal string was specified");if(/\s/.test(e))throw new o("INVALID_CHARACTER_ERR","String contains an invalid character");return i.call(t,e)},s=function(t){for(var e=r.call(t.getAttribute("class")||""),n=e?e.split(/\s+/):[],i=0,o=n.length;i<o;i++)this.push(n[i]);this._updateClassName=function(){t.setAttribute("class",this.toString())}},u=s.prototype=[],c=function(){return new s(this)};if(o.prototype=Error.prototype,u.item=function(t){return this[t]||null},u.contains=function(t){return t+="",-1!==a(this,t)},u.add=function(){var t,e=arguments,n=0,r=e.length,i=!1;do{t=e[n]+"",-1===a(this,t)&&(this.push(t),i=!0)}while(++n<r);i&&this._updateClassName()},u.remove=function(){var t,e,n=arguments,r=0,i=n.length,o=!1;do{for(t=n[r]+"",e=a(this,t);-1!==e;)this.splice(e,1),o=!0,e=a(this,t)}while(++r<i);o&&this._updateClassName()},u.toggle=function(t,e){t+="";var n=this.contains(t),r=n?!0!==e&&"remove":!1!==e&&"add";return r&&this[r](t),!0===e||!1===e?e:!n},u.toString=function(){return this.join(" ")},n.defineProperty){var l={get:c,enumerable:!0,configurable:!0};try{n.defineProperty(e,"classList",l)}catch(t){-2146823252===t.number&&(l.enumerable=!1,n.defineProperty(e,"classList",l))}}else n.prototype.__defineGetter__&&e.__defineGetter__("classList",c)}}(self),/*! @source http://purl.eligrey.com/github/Blob.js/blob/master/Blob.js */
80
80
  function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return void new Blob}catch(t){}var e=t.BlobBuilder||t.WebKitBlobBuilder||t.MozBlobBuilder||function(t){var e=function(t){return Object.prototype.toString.call(t).match(/^\[object\s(.*)\]$/)[1]},n=function(){this.data=[]},r=function(t,e,n){this.data=t,this.size=t.length,this.type=e,this.encoding=n},i=n.prototype,o=r.prototype,a=t.FileReaderSync,s=function(t){this.code=this[this.name=t]},u="NOT_FOUND_ERR SECURITY_ERR ABORT_ERR NOT_READABLE_ERR ENCODING_ERR NO_MODIFICATION_ALLOWED_ERR INVALID_STATE_ERR SYNTAX_ERR".split(" "),c=u.length,l=t.URL||t.webkitURL||t,f=l.createObjectURL,d=l.revokeObjectURL,h=l,p=t.btoa,v=t.atob,y=t.ArrayBuffer,m=t.Uint8Array,b=/^[\w-]+:\/*\[?[\w\.:-]+\]?(?::[0-9]+)?/;for(r.fake=o.fake=!0;c--;)s.prototype[u[c]]=c+1;return l.createObjectURL||(h=t.URL=function(t){var e,n=document.createElementNS("http://www.w3.org/1999/xhtml","a");return n.href=t,"origin"in n||("data:"===n.protocol.toLowerCase()?n.origin=null:(e=t.match(b),n.origin=e&&e[1])),n}),h.createObjectURL=function(t){var e,n=t.type;return null===n&&(n="application/octet-stream"),t instanceof r?(e="data:"+n,"base64"===t.encoding?e+";base64,"+t.data:"URI"===t.encoding?e+","+decodeURIComponent(t.data):p?e+";base64,"+p(t.data):e+","+encodeURIComponent(t.data)):f?f.call(l,t):void 0},h.revokeObjectURL=function(t){"data:"!==t.substring(0,5)&&d&&d.call(l,t)},i.append=function(t){var n=this.data;if(m&&(t instanceof y||t instanceof m)){for(var i="",o=new m(t),u=0,c=o.length;u<c;u++)i+=String.fromCharCode(o[u]);n.push(i)}else if("Blob"===e(t)||"File"===e(t)){if(!a)throw new s("NOT_READABLE_ERR");var l=new a;n.push(l.readAsBinaryString(t))}else t instanceof r?"base64"===t.encoding&&v?n.push(v(t.data)):"URI"===t.encoding?n.push(decodeURIComponent(t.data)):"raw"===t.encoding&&n.push(t.data):("string"!=typeof t&&(t+=""),n.push(unescape(encodeURIComponent(t))))},i.getBlob=function(t){return arguments.length||(t=null),new r(this.data.join(""),t,"raw")},i.toString=function(){return"[object BlobBuilder]"},o.slice=function(t,e,n){var i=arguments.length;return i<3&&(n=null),new r(this.data.slice(t,i>1?e:this.data.length),n,this.encoding)},o.toString=function(){return"[object Blob]"},o.close=function(){this.size=0,delete this.data},n}(t);t.Blob=function(t,n){var r=n?n.type||"":"",i=new e;if(t)for(var o=0,a=t.length;o<a;o++)Uint8Array&&t[o]instanceof Uint8Array?i.append(t[o].buffer):i.append(t[o]);var s=i.getBlob(r);return!s.slice&&s.webkitSlice&&(s.slice=s.webkitSlice),s};var n=Object.getPrototypeOf||function(t){return t.__proto__};t.Blob.prototype=n(new t.Blob)}("undefined"!=typeof self&&self||"undefined"!=typeof window&&window||this.content||this),function(o,a){"use strict";"object"==typeof t&&void 0!==r&&r&&r.versions&&r.versions.electron||"object"!=typeof t?void 0!==(i=function(){return a}.call(e,n,e,t))&&(t.exports=i):t.exports=a}(0,function(){"use strict";function t(t,e){return this.init(t,e)}return t.extensions={},function(e){function n(t,e){var n,r=Array.prototype.slice.call(arguments,2);e=e||{};for(var i=0;i<r.length;i++){var o=r[i];if(o)for(n in o)o.hasOwnProperty(n)&&void 0!==o[n]&&(t||!1===e.hasOwnProperty(n))&&(e[n]=o[n])}return e}var r=!1;try{var i=document.createElement("div"),o=document.createTextNode(" ");i.appendChild(o),r=i.contains(o)}catch(t){}var a={isIE:"Microsoft Internet Explorer"===navigator.appName||"Netscape"===navigator.appName&&null!==new RegExp("Trident/.*rv:([0-9]{1,}[.0-9]{0,})").exec(navigator.userAgent),isEdge:null!==/Edge\/\d+/.exec(navigator.userAgent),isFF:navigator.userAgent.toLowerCase().indexOf("firefox")>-1,isMac:e.navigator.platform.toUpperCase().indexOf("MAC")>=0,keyCode:{BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,SPACE:32,DELETE:46,K:75,M:77,V:86},isMetaCtrlKey:function(t){return!!(a.isMac&&t.metaKey||!a.isMac&&t.ctrlKey)},isKey:function(t,e){var n=a.getKeyCode(t);return!1===Array.isArray(e)?n===e:-1!==e.indexOf(n)},getKeyCode:function(t){var e=t.which;return null===e&&(e=null!==t.charCode?t.charCode:t.keyCode),e},blockContainerElementNames:["p","h1","h2","h3","h4","h5","h6","blockquote","pre","ul","li","ol","address","article","aside","audio","canvas","dd","dl","dt","fieldset","figcaption","figure","footer","form","header","hgroup","main","nav","noscript","output","section","video","table","thead","tbody","tfoot","tr","th","td"],emptyElementNames:["br","col","colgroup","hr","img","input","source","wbr"],extend:function(){var t=[!0].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},defaults:function(){var t=[!1].concat(Array.prototype.slice.call(arguments));return n.apply(this,t)},createLink:function(t,e,n,r){var i=t.createElement("a");return a.moveTextRangeIntoElement(e[0],e[e.length-1],i),i.setAttribute("href",n),r&&("_blank"===r&&i.setAttribute("rel","noopener noreferrer"),i.setAttribute("target",r)),i},findOrCreateMatchingTextNodes:function(t,e,n){for(var r=t.createTreeWalker(e,NodeFilter.SHOW_ALL,null,!1),i=[],o=0,s=!1,u=null,c=null;null!==(u=r.nextNode());)if(!(u.nodeType>3))if(3===u.nodeType){if(!s&&n.start<o+u.nodeValue.length&&(s=!0,c=a.splitStartNodeIfNeeded(u,n.start,o)),s&&a.splitEndNodeIfNeeded(u,c,n.end,o),s&&o===n.end)break;if(s&&o>n.end+1)throw new Error("PerformLinking overshot the target!");s&&i.push(c||u),o+=u.nodeValue.length,null!==c&&(o+=c.nodeValue.length,r.nextNode()),c=null}else"img"===u.tagName.toLowerCase()&&(!s&&n.start<=o&&(s=!0),s&&i.push(u));return i},splitStartNodeIfNeeded:function(t,e,n){return e!==n?t.splitText(e-n):null},splitEndNodeIfNeeded:function(t,e,n,r){var i,o;i=r+t.nodeValue.length+(e?e.nodeValue.length:0)-1,o=n-r-(e?t.nodeValue.length:0),i>=n&&r!==i&&0!==o&&(e||t).splitText(o)},splitByBlockElements:function(e){if(3!==e.nodeType&&1!==e.nodeType)return[];var n=[],r=t.util.blockContainerElementNames.join(",");if(3===e.nodeType||0===e.querySelectorAll(r).length)return[e];for(var i=0;i<e.childNodes.length;i++){var o=e.childNodes[i];if(3===o.nodeType)n.push(o);else if(1===o.nodeType){var a=o.querySelectorAll(r);0===a.length?n.push(o):n=n.concat(t.util.splitByBlockElements(o))}}return n},findAdjacentTextNodeWithContent:function(t,e,n){var r,i=!1,o=n.createNodeIterator(t,NodeFilter.SHOW_TEXT,null,!1);for(r=o.nextNode();r;){if(r===e)i=!0;else if(i&&3===r.nodeType&&r.nodeValue&&r.nodeValue.trim().length>0)break;r=o.nextNode()}return r},findPreviousSibling:function(t){if(!t||a.isMediumEditorElement(t))return!1;for(var e=t.previousSibling;!e&&!a.isMediumEditorElement(t.parentNode);)t=t.parentNode,e=t.previousSibling;return e},isDescendant:function(t,e,n){if(!t||!e)return!1;if(t===e)return!!n;if(1!==t.nodeType)return!1;if(r||3!==e.nodeType)return t.contains(e);for(var i=e.parentNode;null!==i;){if(i===t)return!0;i=i.parentNode}return!1},isElement:function(t){return!(!t||1!==t.nodeType)},throttle:function(t,e){var n,r,i,o=null,a=0,s=function(){a=Date.now(),o=null,i=t.apply(n,r),o||(n=r=null)};return e||0===e||(e=50),function(){var u=Date.now(),c=e-(u-a);return n=this,r=arguments,c<=0||c>e?(o&&(clearTimeout(o),o=null),a=u,i=t.apply(n,r),o||(n=r=null)):o||(o=setTimeout(s,c)),i}},traverseUp:function(t,e){if(!t)return!1;do{if(1===t.nodeType){if(e(t))return t;if(a.isMediumEditorElement(t))return!1}t=t.parentNode}while(t);return!1},htmlEntities:function(t){return String(t).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")},insertHTMLCommand:function(e,n){var r,i,o,s,u,c,l,f=!1,d=["insertHTML",!1,n];if(!t.util.isEdge&&e.queryCommandSupported("insertHTML"))try{return e.execCommand.apply(e,d)}catch(t){}if(r=e.getSelection(),r.rangeCount){if(i=r.getRangeAt(0),l=i.commonAncestorContainer,a.isMediumEditorElement(l)&&!l.firstChild)i.selectNode(l.appendChild(e.createTextNode("")));else if(3===l.nodeType&&0===i.startOffset&&i.endOffset===l.nodeValue.length||3!==l.nodeType&&l.innerHTML===i.toString()){for(;!a.isMediumEditorElement(l)&&l.parentNode&&1===l.parentNode.childNodes.length&&!a.isMediumEditorElement(l.parentNode);)l=l.parentNode;i.selectNode(l)}for(i.deleteContents(),o=e.createElement("div"),o.innerHTML=n,s=e.createDocumentFragment();o.firstChild;)u=o.firstChild,c=s.appendChild(u);i.insertNode(s),c&&(i=i.cloneRange(),i.setStartAfter(c),i.collapse(!0),t.selection.selectRange(e,i)),f=!0}return e.execCommand.callListeners&&e.execCommand.callListeners(d,f),f},execFormatBlock:function(e,n){var r,i=a.getTopBlockContainer(t.selection.getSelectionStart(e));if("blockquote"===n){if(i&&(r=Array.prototype.slice.call(i.childNodes),r.some(function(t){return a.isBlockContainer(t)})))return e.execCommand("outdent",!1,null);if(a.isIE)return e.execCommand("indent",!1,n)}if(i&&n===i.nodeName.toLowerCase()&&(n="p"),a.isIE&&(n="<"+n+">"),i&&"blockquote"===i.nodeName.toLowerCase()){if(a.isIE&&"<p>"===n)return e.execCommand("outdent",!1,n);if((a.isFF||a.isEdge)&&"p"===n)return r=Array.prototype.slice.call(i.childNodes),r.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.length;n+=1)!1!==r&&r!==t[n].attributes.href.value||(t[n].target="_blank",t[n].rel="noopener noreferrer")},removeTargetBlank:function(t,e){var n;if("a"===t.nodeName.toLowerCase())t.removeAttribute("target"),t.removeAttribute("rel");else for(t=t.getElementsByTagName("a"),n=0;n<t.length;n+=1)e===t[n].attributes.href.value&&(t[n].removeAttribute("target"),t[n].removeAttribute("rel"))},addClassToAnchors:function(t,e){var n,r,i=e.split(" ");if("a"===t.nodeName.toLowerCase())for(r=0;r<i.length;r+=1)t.classList.add(i[r]);else{var o=t.getElementsByTagName("a");if(0===o.length){var s=a.getClosestTag(t,"a");t=s?[s]:[]}else t=o;for(n=0;n<t.length;n+=1)for(r=0;r<i.length;r+=1)t[n].classList.add(i[r])}},isListItem:function(t){if(!t)return!1;if("li"===t.nodeName.toLowerCase())return!0;for(var e=t.parentNode,n=e.nodeName.toLowerCase();"li"===n||!a.isBlockContainer(e)&&"div"!==n;){if("li"===n)return!0;if(!(e=e.parentNode))return!1;n=e.nodeName.toLowerCase()}return!1},cleanListDOM:function(e,n){if("li"===n.nodeName.toLowerCase()){var r=n.parentElement;"p"===r.parentElement.nodeName.toLowerCase()&&(a.unwrap(r.parentElement,e),t.selection.moveCursor(e,n.firstChild,n.firstChild.textContent.length))}},splitOffDOMTree:function(t,e,n){for(var r=e,i=null,o=!n;r!==t;){var a,s=r.parentNode,u=s.cloneNode(!1),c=o?r:s.firstChild;for(i&&(o?u.appendChild(i):a=i),i=u;c;){var l=c.nextSibling;c===r?(c.hasChildNodes()?c=c.cloneNode(!1):c.parentNode.removeChild(c),c.textContent&&i.appendChild(c),c=o?l:null):(c.parentNode.removeChild(c),(c.hasChildNodes()||c.textContent)&&i.appendChild(c),c=l)}a&&i.appendChild(a),r=s}return i},moveTextRangeIntoElement:function(t,e,n){if(!t||!e)return!1;var r=a.findCommonRoot(t,e);if(!r)return!1;if(e===t){var i=t.parentNode,o=t.nextSibling;return i.removeChild(t),n.appendChild(t),o?i.insertBefore(n,o):i.appendChild(n),n.hasChildNodes()}for(var s,u,c,l=[],f=0;f<r.childNodes.length;f++)if(c=r.childNodes[f],s){if(a.isDescendant(c,e,!0)){u=c;break}l.push(c)}else a.isDescendant(c,t,!0)&&(s=c);var d=u.nextSibling,h=r.ownerDocument.createDocumentFragment();return s===t?(s.parentNode.removeChild(s),h.appendChild(s)):h.appendChild(a.splitOffDOMTree(s,t)),l.forEach(function(t){t.parentNode.removeChild(t),h.appendChild(t)}),u===e?(u.parentNode.removeChild(u),h.appendChild(u)):h.appendChild(a.splitOffDOMTree(u,e,!0)),n.appendChild(h),u.parentNode===r?r.insertBefore(n,u):d?r.insertBefore(n,d):r.appendChild(n),n.hasChildNodes()},depthOfNode:function(t){for(var e=0,n=t;null!==n.parentNode;)n=n.parentNode,e++;return e},findCommonRoot:function(t,e){for(var n=a.depthOfNode(t),r=a.depthOfNode(e),i=t,o=e;n!==r;)n>r?(i=i.parentNode,n-=1):(o=o.parentNode,r-=1);for(;i!==o;)i=i.parentNode,o=o.parentNode;return i},isElementAtBeginningOfBlock:function(t){for(var e,n;!a.isBlockContainer(t)&&!a.isMediumEditorElement(t);){for(n=t;n=n.previousSibling;)if(e=3===n.nodeType?n.nodeValue:n.textContent,e.length>0)return!1;t=t.parentNode}return!0},isMediumEditorElement:function(t){return t&&t.getAttribute&&!!t.getAttribute("data-medium-editor-element")},getContainerEditorElement:function(t){return a.traverseUp(t,function(t){return a.isMediumEditorElement(t)})},isBlockContainer:function(t){return t&&3!==t.nodeType&&-1!==a.blockContainerElementNames.indexOf(t.nodeName.toLowerCase())},getClosestBlockContainer:function(t){return a.traverseUp(t,function(t){return a.isBlockContainer(t)||a.isMediumEditorElement(t)})},getTopBlockContainer:function(t){var e=!!a.isBlockContainer(t)&&t;return a.traverseUp(t,function(t){return a.isBlockContainer(t)&&(e=t),!(e||!a.isMediumEditorElement(t))&&(e=t,!0)}),e},getFirstSelectableLeafNode:function(t){for(;t&&t.firstChild;)t=t.firstChild;if(t=a.traverseUp(t,function(t){return-1===a.emptyElementNames.indexOf(t.nodeName.toLowerCase())}),"table"===t.nodeName.toLowerCase()){var e=t.querySelector("th, td");e&&(t=e)}return t},getFirstTextNode:function(t){return a.warn("getFirstTextNode is deprecated and will be removed in version 6.0.0"),a._getFirstTextNode(t)},_getFirstTextNode:function(t){if(3===t.nodeType)return t;for(var e=0;e<t.childNodes.length;e++){var n=a._getFirstTextNode(t.childNodes[e]);if(null!==n)return n}return null},ensureUrlHasProtocol:function(t){return-1===t.indexOf("://")?"http://"+t:t},warn:function(){void 0!==e.console&&"function"==typeof e.console.warn&&e.console.warn.apply(e.console,arguments)},deprecated:function(t,e,n){var r=t+" is deprecated, please use "+e+" instead.";n&&(r+=" Will be removed in "+n),a.warn(r)},deprecatedMethod:function(t,e,n,r){a.deprecated(t,e,r),"function"==typeof this[e]&&this[e].apply(this,n)},cleanupAttrs:function(t,e){e.forEach(function(e){t.removeAttribute(e)})},cleanupTags:function(t,e){-1!==e.indexOf(t.nodeName.toLowerCase())&&t.parentNode.removeChild(t)},unwrapTags:function(e,n){-1!==n.indexOf(e.nodeName.toLowerCase())&&t.util.unwrap(e,document)},getClosestTag:function(t,e){return a.traverseUp(t,function(t){return t.nodeName.toLowerCase()===e.toLowerCase()})},unwrap:function(t,e){for(var n=e.createDocumentFragment(),r=Array.prototype.slice.call(t.childNodes),i=0;i<r.length;i++)n.appendChild(r[i]);n.childNodes.length?t.parentNode.replaceChild(n,t):t.parentNode.removeChild(t)},guid:function(){function t(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)}return t()+t()+"-"+t()+"-"+t()+"-"+t()+"-"+t()+t()+t()}};t.util=a}(window),function(){var e=function(e){t.util.extend(this,e)};e.extend=function(e){var n,r=this;n=e&&e.hasOwnProperty("constructor")?e.constructor:function(){return r.apply(this,arguments)},t.util.extend(n,r);var i=function(){this.constructor=n};return i.prototype=r.prototype,n.prototype=new i,e&&t.util.extend(n.prototype,e),n},e.prototype={init:function(){},base:void 0,name:void 0,checkState:void 0,destroy:void 0,queryCommandState:void 0,isActive:void 0,isAlreadyApplied:void 0,setActive:void 0,setInactive:void 0,getInteractionElements:void 0,window:void 0,document:void 0,getEditorElements:function(){return this.base.elements},getEditorId:function(){return this.base.id},getEditorOption:function(t){return this.base.options[t]}},["execAction","on","off","subscribe","trigger"].forEach(function(t){e.prototype[t]=function(){return this.base[t].apply(this.base,arguments)}}),t.Extension=e}(),function(){function e(e){return t.util.isBlockContainer(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}var n={findMatchingSelectionParent:function(e,n){var r,i,o=n.getSelection();return 0!==o.rangeCount&&(r=o.getRangeAt(0),i=r.commonAncestorContainer,t.util.traverseUp(i,e))},getSelectionElement:function(e){return this.findMatchingSelectionParent(function(e){return t.util.isMediumEditorElement(e)},e)},exportSelection:function(t,e){if(!t)return null;var n=null,r=e.getSelection();if(r.rangeCount>0){var i,o=r.getRangeAt(0),a=o.cloneRange();a.selectNodeContents(t),a.setEnd(o.startContainer,o.startOffset),i=a.toString().length,n={start:i,end:i+o.toString().length},this.doesRangeStartWithImages(o,e)&&(n.startsWithImage=!0);var s=this.getTrailingImageCount(t,n,o.endContainer,o.endOffset);if(s&&(n.trailingImageCount=s),0!==i){var u=this.getIndexRelativeToAdjacentEmptyBlocks(e,t,o.startContainer,o.startOffset);-1!==u&&(n.emptyBlocksIndex=u)}}return n},importSelection:function(t,e,n,r){if(t&&e){var i=n.createRange();i.setStart(e,0),i.collapse(!0);var o,a=e,s=[],u=0,c=!1,l=!1,f=0,d=!1,h=!1,p=null;for((r||t.startsWithImage||void 0!==t.emptyBlocksIndex)&&(h=!0);!d&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if(t.trailingImageCount&&l&&("img"===a.nodeName.toLowerCase()&&f++,f===t.trailingImageCount)){for(var v=0;a.parentNode.childNodes[v]!==a;)v++;i.setEnd(a.parentNode,v+1),d=!0}if(!d&&1===a.nodeType)for(var y=a.childNodes.length-1;y>=0;)s.push(a.childNodes[y]),y-=1}else o=u+a.length,!c&&t.start>=u&&t.start<=o&&(h||t.start<o?(i.setStart(a,t.start-u),c=!0):p=a),c&&t.end>=u&&t.end<=o&&(t.trailingImageCount?l=!0:(i.setEnd(a,t.end-u),d=!0)),u=o;d||(a=s.pop())}!c&&p&&(i.setStart(p,p.length),i.setEnd(p,p.length)),void 0!==t.emptyBlocksIndex&&(i=this.importSelectionMoveCursorPastBlocks(n,e,t.emptyBlocksIndex,i)),r&&(i=this.importSelectionMoveCursorPastAnchor(t,i)),this.selectRange(n,i)}},importSelectionMoveCursorPastAnchor:function(e,n){var r=function(t){return"a"===t.nodeName.toLowerCase()};if(e.start===e.end&&3===n.startContainer.nodeType&&n.startOffset===n.startContainer.nodeValue.length&&t.util.traverseUp(n.startContainer,r)){for(var i=n.startContainer,o=n.startContainer.parentNode;null!==o&&"a"!==o.nodeName.toLowerCase();)o.childNodes[o.childNodes.length-1]!==i?o=null:(i=o,o=o.parentNode);if(null!==o&&"a"===o.nodeName.toLowerCase()){for(var a=null,s=0;null===a&&s<o.parentNode.childNodes.length;s++)o.parentNode.childNodes[s]===o&&(a=s);n.setStart(o.parentNode,a+1),n.collapse(!0)}}return n},importSelectionMoveCursorPastBlocks:function(n,r,i,o){var a,s,u=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),c=o.startContainer,l=0;for(i=i||1,a=3===c.nodeType&&t.util.isBlockContainer(c.previousSibling)?c.previousSibling:t.util.getClosestBlockContainer(c);u.nextNode();)if(s){if(s=u.currentNode,++l===i)break;if(s.textContent.length>0)break}else a===u.currentNode&&(s=u.currentNode);return s||(s=a),o.setStart(t.util.getFirstSelectableLeafNode(s),0),o},getIndexRelativeToAdjacentEmptyBlocks:function(n,r,i,o){if(i.textContent.length>0&&o>0)return-1;var a=i;if(3!==a.nodeType&&(a=i.childNodes[o]),a){if(!t.util.isElementAtBeginningOfBlock(a))return-1;var s=t.util.findPreviousSibling(a);if(!s)return-1;if(s.nodeValue)return-1}for(var u=t.util.getClosestBlockContainer(i),c=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT,e,!1),l=0;c.nextNode();){var f=""===c.currentNode.textContent;if((f||l>0)&&(l+=1),c.currentNode===u)return l;f||(l=0)}return l},doesRangeStartWithImages:function(t,e){if(0!==t.startOffset||1!==t.startContainer.nodeType)return!1;if("img"===t.startContainer.nodeName.toLowerCase())return!0;var n=t.startContainer.querySelector("img");if(!n)return!1;for(var r=e.createTreeWalker(t.startContainer,NodeFilter.SHOW_ALL,null,!1);r.nextNode();){var i=r.currentNode;if(i===n)break;if(i.nodeValue)return!1}return!0},getTrailingImageCount:function(t,e,n,r){if(0===r||1!==n.nodeType)return 0;if("img"!==n.nodeName.toLowerCase()&&!n.querySelector("img"))return 0;for(var i=n.childNodes[r-1];i.hasChildNodes();)i=i.lastChild;for(var o,a=t,s=[],u=0,c=!1,l=!1,f=!1,d=0;!f&&a;)if(a.nodeType>3)a=s.pop();else{if(3!==a.nodeType||l){if("img"===a.nodeName.toLowerCase()&&d++,a===i)f=!0;else if(1===a.nodeType)for(var h=a.childNodes.length-1;h>=0;)s.push(a.childNodes[h]),h-=1}else d=0,o=u+a.length,!c&&e.start>=u&&e.start<=o&&(c=!0),c&&e.end>=u&&e.end<=o&&(l=!0),u=o;f||(a=s.pop())}return d},selectionContainsContent:function(t){var e=t.getSelection();if(!e||e.isCollapsed||!e.rangeCount)return!1;if(""!==e.toString().trim())return!0;var n=this.getSelectedParentElement(e.getRangeAt(0));return!(!n||!("img"===n.nodeName.toLowerCase()||1===n.nodeType&&n.querySelector("img")))},selectionInContentEditableFalse:function(t){var e,n=this.findMatchingSelectionParent(function(t){var n=t&&t.getAttribute("contenteditable");return"true"===n&&(e=!0),"#text"!==t.nodeName&&"false"===n},t);return!e&&n},getSelectionHtml:function(t){var e,n,r,i="",o=t.getSelection();if(o.rangeCount){for(r=t.createElement("div"),e=0,n=o.rangeCount;e<n;e+=1)r.appendChild(o.getRangeAt(e).cloneContents());i=r.innerHTML}return i},getCaretOffsets:function(t,e){var n,r;return e||(e=window.getSelection().getRangeAt(0)),n=e.cloneRange(),r=e.cloneRange(),n.selectNodeContents(t),n.setEnd(e.endContainer,e.endOffset),r.selectNodeContents(t),r.setStart(e.endContainer,e.endOffset),{left:n.toString().length,right:r.toString().length}},rangeSelectsSingleNode:function(t){var e=t.startContainer;return e===t.endContainer&&e.hasChildNodes()&&t.endOffset===t.startOffset+1},getSelectedParentElement:function(t){return t?this.rangeSelectsSingleNode(t)&&3!==t.startContainer.childNodes[t.startOffset].nodeType?t.startContainer.childNodes[t.startOffset]:3===t.startContainer.nodeType?t.startContainer.parentNode:t.startContainer:null},getSelectedElements:function(t){var e,n,r,i=t.getSelection();if(!i.rangeCount||i.isCollapsed||!i.getRangeAt(0).commonAncestorContainer)return[];if(e=i.getRangeAt(0),3===e.commonAncestorContainer.nodeType){for(n=[],r=e.commonAncestorContainer;r.parentNode&&1===r.parentNode.childNodes.length;)n.push(r.parentNode),r=r.parentNode;return n}return[].filter.call(e.commonAncestorContainer.getElementsByTagName("*"),function(t){return"function"!=typeof i.containsNode||i.containsNode(t,!0)})},selectNode:function(t,e){var n=e.createRange();n.selectNodeContents(t),this.selectRange(e,n)},select:function(t,e,n,r,i){var o=t.createRange();return o.setStart(e,n),r?o.setEnd(r,i):o.collapse(!0),this.selectRange(t,o),o},clearSelection:function(t,e){e?t.getSelection().collapseToStart():t.getSelection().collapseToEnd()},moveCursor:function(t,e,n){this.select(t,e,n)},getSelectionRange:function(t){var e=t.getSelection();return 0===e.rangeCount?null:e.getRangeAt(0)},selectRange:function(t,e){var n=t.getSelection();n.removeAllRanges(),n.addRange(e)},getSelectionStart:function(t){var e=t.getSelection().anchorNode;return e&&3===e.nodeType?e.parentNode:e}};t.selection=n}(),function(){function e(e,n){return e.some(function(e){if("function"!=typeof e.getInteractionElements)return!1;var r=e.getInteractionElements();return!!r&&(Array.isArray(r)||(r=[r]),r.some(function(e){return t.util.isDescendant(e,n,!0)}))})}var n=function(t){this.base=t,this.options=this.base.options,this.events=[],this.disabledEvents={},this.customEvents={},this.listeners={}};n.prototype={InputEventOnContenteditableSupported:!t.util.isIE&&!t.util.isEdge,attachDOMEvent:function(e,n,r,i){var o=this.base.options.contentWindow,a=this.base.options.ownerDocument;e=t.util.isElement(e)||[o,a].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){t.addEventListener(n,r,i),this.events.push([t,n,r,i])}.bind(this))},detachDOMEvent:function(e,n,r,i){var o,a,s=this.base.options.contentWindow,u=this.base.options.ownerDocument;null!==e&&(e=t.util.isElement(e)||[s,u].indexOf(e)>-1?[e]:e,Array.prototype.forEach.call(e,function(t){-1!==(o=this.indexOfListener(t,n,r,i))&&(a=this.events.splice(o,1)[0],a[0].removeEventListener(a[1],a[2],a[3]))}.bind(this)))},indexOfListener:function(t,e,n,r){var i,o,a;for(i=0,o=this.events.length;i<o;i+=1)if(a=this.events[i],a[0]===t&&a[1]===e&&a[2]===n&&a[3]===r)return i;return-1},detachAllDOMEvents:function(){for(var t=this.events.pop();t;)t[0].removeEventListener(t[1],t[2],t[3]),t=this.events.pop()},detachAllEventsFromElement:function(t){for(var e=this.events.filter(function(e){return e&&e[0].getAttribute&&e[0].getAttribute("medium-editor-index")===t.getAttribute("medium-editor-index")}),n=0,r=e.length;n<r;n++){var i=e[n];this.detachDOMEvent(i[0],i[1],i[2],i[3])}},attachAllEventsToElement:function(t){this.listeners.editableInput&&(this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML),this.eventsCache&&this.eventsCache.forEach(function(e){this.attachDOMEvent(t,e.name,e.handler.bind(this))},this)},enableCustomEvent:function(t){void 0!==this.disabledEvents[t]&&delete this.disabledEvents[t]},disableCustomEvent:function(t){this.disabledEvents[t]=!0},attachCustomEvent:function(t,e){this.setupListener(t),this.customEvents[t]||(this.customEvents[t]=[]),this.customEvents[t].push(e)},detachCustomEvent:function(t,e){var n=this.indexOfCustomListener(t,e);-1!==n&&this.customEvents[t].splice(n,1)},indexOfCustomListener:function(t,e){return this.customEvents[t]&&this.customEvents[t].length?this.customEvents[t].indexOf(e):-1},detachAllCustomEvents:function(){this.customEvents={}},triggerCustomEvent:function(t,e,n){this.customEvents[t]&&!this.disabledEvents[t]&&this.customEvents[t].forEach(function(t){t(e,n)})},destroy:function(){this.detachAllDOMEvents(),this.detachAllCustomEvents(),this.detachExecCommand(),this.base.elements&&this.base.elements.forEach(function(t){t.removeAttribute("data-medium-focused")})},attachToExecCommand:function(){this.execCommandListener||(this.execCommandListener=function(t){this.handleDocumentExecCommand(t)}.bind(this),this.wrapExecCommand(),this.options.ownerDocument.execCommand.listeners.push(this.execCommandListener))},detachExecCommand:function(){var t=this.options.ownerDocument;if(this.execCommandListener&&t.execCommand.listeners){var e=t.execCommand.listeners.indexOf(this.execCommandListener);-1!==e&&t.execCommand.listeners.splice(e,1),t.execCommand.listeners.length||this.unwrapExecCommand()}},wrapExecCommand:function(){var t=this.options.ownerDocument;if(!t.execCommand.listeners){var e=function(e,n){t.execCommand.listeners&&t.execCommand.listeners.forEach(function(t){t({command:e[0],value:e[2],args:e,result:n})})},n=function(){var n=t.execCommand.orig.apply(this,arguments);if(!t.execCommand.listeners)return n;var r=Array.prototype.slice.call(arguments);return e(r,n),n};n.orig=t.execCommand,n.listeners=[],n.callListeners=e,t.execCommand=n}},unwrapExecCommand:function(){var t=this.options.ownerDocument;t.execCommand.orig&&(t.execCommand=t.execCommand.orig)},setupListener:function(t){if(!this.listeners[t]){switch(t){case"externalInteraction":this.attachDOMEvent(this.options.ownerDocument.body,"mousedown",this.handleBodyMousedown.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"click",this.handleBodyClick.bind(this),!0),this.attachDOMEvent(this.options.ownerDocument.body,"focus",this.handleBodyFocus.bind(this),!0);break;case"blur":case"focus":this.setupListener("externalInteraction");break;case"editableInput":this.contentCache={},this.base.elements.forEach(function(t){this.contentCache[t.getAttribute("medium-editor-index")]=t.innerHTML},this),this.InputEventOnContenteditableSupported&&this.attachToEachElement("input",this.handleInput),this.InputEventOnContenteditableSupported||(this.setupListener("editableKeypress"),this.keypressUpdateInput=!0,this.attachDOMEvent(document,"selectionchange",this.handleDocumentSelectionChange.bind(this)),this.attachToExecCommand());break;case"editableClick":this.attachToEachElement("click",this.handleClick);break;case"editableBlur":this.attachToEachElement("blur",this.handleBlur);break;case"editableKeypress":this.attachToEachElement("keypress",this.handleKeypress);break;case"editableKeyup":this.attachToEachElement("keyup",this.handleKeyup);break;case"editableKeydown":this.attachToEachElement("keydown",this.handleKeydown);break;case"editableKeydownSpace":case"editableKeydownEnter":case"editableKeydownTab":case"editableKeydownDelete":this.setupListener("editableKeydown");break;case"editableMouseover":this.attachToEachElement("mouseover",this.handleMouseover);break;case"editableDrag":this.attachToEachElement("dragover",this.handleDragging),this.attachToEachElement("dragleave",this.handleDragging);break;case"editableDrop":this.attachToEachElement("drop",this.handleDrop);break;case"editablePaste":this.attachToEachElement("paste",this.handlePaste)}this.listeners[t]=!0}},attachToEachElement:function(t,e){this.eventsCache||(this.eventsCache=[]),this.base.elements.forEach(function(n){this.attachDOMEvent(n,t,e.bind(this))},this),this.eventsCache.push({name:t,handler:e})},cleanupElement:function(t){var e=t.getAttribute("medium-editor-index");e&&(this.detachAllEventsFromElement(t),this.contentCache&&delete this.contentCache[e])},focusElement:function(t){t.focus(),this.updateFocus(t,{target:t,type:"focus"})},updateFocus:function(n,r){var i,o=this.base.getFocusedElement();o&&"click"===r.type&&this.lastMousedownTarget&&(t.util.isDescendant(o,this.lastMousedownTarget,!0)||e(this.base.extensions,this.lastMousedownTarget))&&(i=o),i||this.base.elements.some(function(e){return!i&&t.util.isDescendant(e,n,!0)&&(i=e),!!i},this);var a=!t.util.isDescendant(o,n,!0)&&!e(this.base.extensions,n);i!==o&&(o&&a&&(o.removeAttribute("data-medium-focused"),this.triggerCustomEvent("blur",r,o)),i&&(i.setAttribute("data-medium-focused",!0),this.triggerCustomEvent("focus",r,i))),a&&this.triggerCustomEvent("externalInteraction",r)},updateInput:function(t,e){if(this.contentCache){var n=t.getAttribute("medium-editor-index"),r=t.innerHTML;r!==this.contentCache[n]&&this.triggerCustomEvent("editableInput",e,t),this.contentCache[n]=r}},handleDocumentSelectionChange:function(e){if(e.currentTarget&&e.currentTarget.activeElement){var n,r=e.currentTarget.activeElement;this.base.elements.some(function(e){return!!t.util.isDescendant(e,r,!0)&&(n=e,!0)},this),n&&this.updateInput(n,{target:r,currentTarget:n})}},handleDocumentExecCommand:function(){var t=this.base.getFocusedElement();t&&this.updateInput(t,{target:t,currentTarget:t})},handleBodyClick:function(t){this.updateFocus(t.target,t)},handleBodyFocus:function(t){this.updateFocus(t.target,t)},handleBodyMousedown:function(t){this.lastMousedownTarget=t.target},handleInput:function(t){this.updateInput(t.currentTarget,t)},handleClick:function(t){this.triggerCustomEvent("editableClick",t,t.currentTarget)},handleBlur:function(t){this.triggerCustomEvent("editableBlur",t,t.currentTarget)},handleKeypress:function(t){if(this.triggerCustomEvent("editableKeypress",t,t.currentTarget),this.keypressUpdateInput){var e={target:t.target,currentTarget:t.currentTarget};setTimeout(function(){this.updateInput(e.currentTarget,e)}.bind(this),0)}},handleKeyup:function(t){this.triggerCustomEvent("editableKeyup",t,t.currentTarget)},handleMouseover:function(t){this.triggerCustomEvent("editableMouseover",t,t.currentTarget)},handleDragging:function(t){this.triggerCustomEvent("editableDrag",t,t.currentTarget)},handleDrop:function(t){this.triggerCustomEvent("editableDrop",t,t.currentTarget)},handlePaste:function(t){this.triggerCustomEvent("editablePaste",t,t.currentTarget)},handleKeydown:function(e){return this.triggerCustomEvent("editableKeydown",e,e.currentTarget),t.util.isKey(e,t.util.keyCode.SPACE)?this.triggerCustomEvent("editableKeydownSpace",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.ENTER)||e.ctrlKey&&t.util.isKey(e,t.util.keyCode.M)?this.triggerCustomEvent("editableKeydownEnter",e,e.currentTarget):t.util.isKey(e,t.util.keyCode.TAB)?this.triggerCustomEvent("editableKeydownTab",e,e.currentTarget):t.util.isKey(e,[t.util.keyCode.DELETE,t.util.keyCode.BACKSPACE])?this.triggerCustomEvent("editableKeydownDelete",e,e.currentTarget):void 0}},t.Events=n}(),function(){var e=t.Extension.extend({action:void 0,aria:void 0,tagNames:void 0,style:void 0,useQueryState:void 0,contentDefault:void 0,contentFA:void 0,classList:void 0,attrs:void 0,constructor:function(n){e.isBuiltInButton(n)?t.Extension.call(this,this.defaults[n]):t.Extension.call(this,n)},init:function(){t.Extension.prototype.init.apply(this,arguments),this.button=this.createButton(),this.on(this.button,"click",this.handleClick.bind(this))},getButton:function(){return this.button},getAction:function(){return"function"==typeof this.action?this.action(this.base.options):this.action},getAria:function(){return"function"==typeof this.aria?this.aria(this.base.options):this.aria},getTagNames:function(){return"function"==typeof this.tagNames?this.tagNames(this.base.options):this.tagNames},createButton:function(){var t=this.document.createElement("button"),e=this.contentDefault,n=this.getAria(),r=this.getEditorOption("buttonLabels");return t.classList.add("medium-editor-action"),t.classList.add("medium-editor-action-"+this.name),this.classList&&this.classList.forEach(function(e){t.classList.add(e)}),t.setAttribute("data-action",this.getAction()),n&&(t.setAttribute("title",n),t.setAttribute("aria-label",n)),this.attrs&&Object.keys(this.attrs).forEach(function(e){t.setAttribute(e,this.attrs[e])},this),"fontawesome"===r&&this.contentFA&&(e=this.contentFA),t.innerHTML=e,t},handleClick:function(t){t.preventDefault(),t.stopPropagation();var e=this.getAction();e&&this.execAction(e)},isActive:function(){return this.button.classList.contains(this.getEditorOption("activeButtonClass"))},setInactive:function(){this.button.classList.remove(this.getEditorOption("activeButtonClass")),delete this.knownState},setActive:function(){this.button.classList.add(this.getEditorOption("activeButtonClass")),delete this.knownState},queryCommandState:function(){var t=null;return this.useQueryState&&(t=this.base.queryCommandState(this.getAction())),t},isAlreadyApplied:function(t){var e,n,r=!1,i=this.getTagNames();return!1===this.knownState||!0===this.knownState?this.knownState:(i&&i.length>0&&(r=-1!==i.indexOf(t.nodeName.toLowerCase())),!r&&this.style&&(e=this.style.value.split("|"),n=this.window.getComputedStyle(t,null).getPropertyValue(this.style.prop),e.forEach(function(t){this.knownState||((r=-1!==n.indexOf(t))||"text-decoration"!==this.style.prop)&&(this.knownState=r)},this)),r)}});e.isBuiltInButton=function(e){return"string"==typeof e&&t.extensions.button.prototype.defaults.hasOwnProperty(e)},t.extensions.button=e}(),function(){t.extensions.button.prototype.defaults={bold:{name:"bold",action:"bold",aria:"bold",tagNames:["b","strong"],style:{prop:"font-weight",value:"700|bold"},useQueryState:!0,contentDefault:"<b>B</b>",contentFA:'<i class="fa fa-bold"></i>'},italic:{name:"italic",action:"italic",aria:"italic",tagNames:["i","em"],style:{prop:"font-style",value:"italic"},useQueryState:!0,contentDefault:"<b><i>I</i></b>",contentFA:'<i class="fa fa-italic"></i>'},underline:{name:"underline",action:"underline",aria:"underline",tagNames:["u"],style:{prop:"text-decoration",value:"underline"},useQueryState:!0,contentDefault:"<b><u>U</u></b>",contentFA:'<i class="fa fa-underline"></i>'},strikethrough:{name:"strikethrough",action:"strikethrough",aria:"strike through",tagNames:["strike"],style:{prop:"text-decoration",value:"line-through"},useQueryState:!0,contentDefault:"<s>A</s>",contentFA:'<i class="fa fa-strikethrough"></i>'},superscript:{name:"superscript",action:"superscript",aria:"superscript",tagNames:["sup"],contentDefault:"<b>x<sup>1</sup></b>",contentFA:'<i class="fa fa-superscript"></i>'},subscript:{name:"subscript",action:"subscript",aria:"subscript",tagNames:["sub"],contentDefault:"<b>x<sub>1</sub></b>",contentFA:'<i class="fa fa-subscript"></i>'},image:{name:"image",action:"image",aria:"image",tagNames:["img"],contentDefault:"<b>image</b>",contentFA:'<i class="fa fa-picture-o"></i>'},html:{name:"html",action:"html",aria:"evaluate html",tagNames:["iframe","object"],contentDefault:"<b>html</b>",contentFA:'<i class="fa fa-code"></i>'},orderedlist:{name:"orderedlist",action:"insertorderedlist",aria:"ordered list",tagNames:["ol"],useQueryState:!0,contentDefault:"<b>1.</b>",contentFA:'<i class="fa fa-list-ol"></i>'},unorderedlist:{name:"unorderedlist",action:"insertunorderedlist",aria:"unordered list",tagNames:["ul"],useQueryState:!0,contentDefault:"<b>&bull;</b>",contentFA:'<i class="fa fa-list-ul"></i>'},indent:{name:"indent",action:"indent",aria:"indent",tagNames:[],contentDefault:"<b>&rarr;</b>",contentFA:'<i class="fa fa-indent"></i>'},outdent:{name:"outdent",action:"outdent",aria:"outdent",tagNames:[],contentDefault:"<b>&larr;</b>",contentFA:'<i class="fa fa-outdent"></i>'},justifyCenter:{name:"justifyCenter",action:"justifyCenter",aria:"center justify",tagNames:[],style:{prop:"text-align",value:"center"},contentDefault:"<b>C</b>",contentFA:'<i class="fa fa-align-center"></i>'},justifyFull:{name:"justifyFull",action:"justifyFull",aria:"full justify",tagNames:[],style:{prop:"text-align",value:"justify"},contentDefault:"<b>J</b>",contentFA:'<i class="fa fa-align-justify"></i>'},justifyLeft:{name:"justifyLeft",action:"justifyLeft",aria:"left justify",tagNames:[],style:{prop:"text-align",value:"left"},contentDefault:"<b>L</b>",contentFA:'<i class="fa fa-align-left"></i>'},justifyRight:{name:"justifyRight",action:"justifyRight",aria:"right justify",tagNames:[],style:{prop:"text-align",value:"right"},contentDefault:"<b>R</b>",contentFA:'<i class="fa fa-align-right"></i>'},removeFormat:{name:"removeFormat",aria:"remove formatting",action:"removeFormat",contentDefault:"<b>X</b>",contentFA:'<i class="fa fa-eraser"></i>'},quote:{name:"quote",action:"append-blockquote",aria:"blockquote",tagNames:["blockquote"],contentDefault:"<b>&ldquo;</b>",contentFA:'<i class="fa fa-quote-right"></i>'},pre:{name:"pre",action:"append-pre",aria:"preformatted text",tagNames:["pre"],contentDefault:"<b>0101</b>",contentFA:'<i class="fa fa-code fa-lg"></i>'},h1:{name:"h1",action:"append-h1",aria:"header type one",tagNames:["h1"],contentDefault:"<b>H1</b>",contentFA:'<i class="fa fa-header"><sup>1</sup>'},h2:{name:"h2",action:"append-h2",aria:"header type two",tagNames:["h2"],contentDefault:"<b>H2</b>",contentFA:'<i class="fa fa-header"><sup>2</sup>'},h3:{name:"h3",action:"append-h3",aria:"header type three",tagNames:["h3"],contentDefault:"<b>H3</b>",contentFA:'<i class="fa fa-header"><sup>3</sup>'},h4:{name:"h4",action:"append-h4",aria:"header type four",tagNames:["h4"],contentDefault:"<b>H4</b>",contentFA:'<i class="fa fa-header"><sup>4</sup>'},h5:{name:"h5",action:"append-h5",aria:"header type five",tagNames:["h5"],contentDefault:"<b>H5</b>",contentFA:'<i class="fa fa-header"><sup>5</sup>'},h6:{name:"h6",action:"append-h6",aria:"header type six",tagNames:["h6"],contentDefault:"<b>H6</b>",contentFA:'<i class="fa fa-header"><sup>6</sup>'}}}(),function(){var e=t.extensions.button.extend({init:function(){t.extensions.button.prototype.init.apply(this,arguments)},formSaveLabel:"&#10003;",formCloseLabel:"&times;",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=e}(),function(){var e=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:"<b>#</b>",contentFA:'<i class="fa fa-link"></i>',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=['<input type="text" class="medium-editor-toolbar-input" placeholder="',this.placeholderText,'">'];return t.push('<a href="#" class="medium-editor-toolbar-save">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':this.formSaveLabel,"</a>"),t.push('<a href="#" class="medium-editor-toolbar-close">',"fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':this.formCloseLabel,"</a>"),this.targetCheckbox&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-target" id="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">','<label for="medium-editor-toolbar-anchor-target-field-'+this.getEditorId()+'">',this.targetCheckboxText,"</label>","</div>"),this.customClassOption&&t.push('<div class="medium-editor-toolbar-form-row">','<input type="checkbox" class="medium-editor-toolbar-anchor-button">',"<label>",this.customClassOptionText,"</label>","</div>"),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(e=e||{value:""},"string"==typeof e&&(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(r))},ensureEncodedQuery:function(t){return t.split("&").map(this.ensureEncodedParam.bind(this)).join("&")},checkLinkFormat:function(t){var e=/^([a-z]+:)?\/\/|^(mailto|tel|maps):|^\#/i,n=e.test(t),r="",i=/^\+?\s?\(?(?:\d\s?\-?\)?){3,20}$/,o=t.match(/^(.*?)(?:\?(.*?))?(?:#(.*))?$/),a=o[1],s=o[2],u=o[3];if(i.test(t))return"tel:"+t;if(!n){var c=a.split("/")[0];(c.match(/.+(\.|:).+/)||"localhost"===c)&&(r="http://")}return r+this.ensureEncodedUri(a)+(void 0===s?"":"?"+this.ensureEncodedQuery(s))+(void 0===u?"":"#"+u)},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,e=t.createElement("div");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-anchor-"+this.getEditorId(),e.innerHTML=this.getTemplate(),this.attachFormEvents(e),e},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=e}(),function(){var e=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'<div class="medium-editor-toolbar-anchor-preview" id="medium-editor-toolbar-anchor-preview"> <a class="medium-editor-toolbar-anchor-preview-inner"></a></div>'},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(),c=this.diffLeft,l=this.diffTop,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={};e=this.anchorPreview.offsetWidth/2;var p=this.base.getExtensionByName("toolbar");p&&(c=p.diffLeft,l=p.diffTop),n=c-e,d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(t){h[t]=u[t]-i[t]}),h.width=u.width,h.height=u.height,u=h,a=i.width,o=f.scrollTop):o=this.window.pageYOffset,r=u.left+u.width/2,o+=s+u.top+u.height-l-this.anchorPreview.offsetHeight,this.anchorPreview.style.top=Math.round(o)+"px",this.anchorPreview.style.right="initial",r<e?(this.anchorPreview.style.left=n+e+"px",this.anchorPreview.style.right="initial"):a-r<e?(this.anchorPreview.style.left="auto",this.anchorPreview.style.right=0):(this.anchorPreview.style.left=n+r+"px",this.anchorPreview.style.right="initial")},attachToEditables:function(){this.subscribe("editableMouseover",this.handleEditableMouseover.bind(this)),this.subscribe("positionedToolbar",this.handlePositionedToolbar.bind(this))},handlePositionedToolbar:function(){this.showWhenToolbarIsVisible||this.hidePreview()},handleClick:function(t){var e=this.base.getExtensionByName("anchor"),n=this.activeAnchor;e&&n&&(t.preventDefault(),this.base.selectElement(this.activeAnchor),this.base.delay(function(){if(n){var t={value:n.attributes.href.value,target:n.getAttribute("target"),buttonClass:n.getAttribute("class")};e.showForm(t),n=null}}.bind(this))),this.hidePreview()},handleAnchorMouseout:function(){this.anchorToPreview=null,this.off(this.activeAnchor,"mouseout",this.instanceHandleAnchorMouseout),this.instanceHandleAnchorMouseout=null},handleEditableMouseover:function(e){var n=t.util.getClosestTag(e.target,"a");if(!1!==n){if(!this.showOnEmptyLinks&&(!/href=["']\S+["']/.test(n.outerHTML)||/href=["']#\S+["']/.test(n.outerHTML)))return!0;var r=this.base.getExtensionByName("toolbar");if(!this.showWhenToolbarIsVisible&&r&&r.isDisplayed&&r.isDisplayed())return!0;this.activeAnchor&&this.activeAnchor!==n&&this.detachPreviewHandlers(),this.anchorToPreview=n,this.instanceHandleAnchorMouseout=this.handleAnchorMouseout.bind(this),this.on(this.anchorToPreview,"mouseout",this.instanceHandleAnchorMouseout),this.base.delay(function(){this.anchorToPreview&&this.showPreview(this.anchorToPreview)}.bind(this))}},handlePreviewMouseover:function(){this.lastOver=(new Date).getTime(),this.hovering=!0},handlePreviewMouseout:function(t){t.relatedTarget&&/anchor-preview/.test(t.relatedTarget.className)||(this.hovering=!1)},updatePreview:function(){if(this.hovering)return!0;(new Date).getTime()-this.lastOver>this.hideDelay&&this.detachPreviewHandlers()},detachPreviewHandlers:function(){clearInterval(this.intervalTimer),this.instanceHandlePreviewMouseover&&(this.off(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.activeAnchor&&(this.off(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.off(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout))),this.hidePreview(),this.hovering=this.instanceHandlePreviewMouseover=this.instanceHandlePreviewMouseout=null},attachPreviewHandlers:function(){this.lastOver=(new Date).getTime(),this.hovering=!0,this.instanceHandlePreviewMouseover=this.handlePreviewMouseover.bind(this),this.instanceHandlePreviewMouseout=this.handlePreviewMouseout.bind(this),this.intervalTimer=setInterval(this.updatePreview.bind(this),200),this.on(this.anchorPreview,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.anchorPreview,"mouseout",this.instanceHandlePreviewMouseout),this.on(this.activeAnchor,"mouseover",this.instanceHandlePreviewMouseover),this.on(this.activeAnchor,"mouseout",this.instanceHandlePreviewMouseout)}});t.extensions.anchorPreview=e}(),function(){function e(e){return!t.util.getClosestTag(e,"a")}var n,r,i,o,a;n=[" ","\t","\n","\r"," "," "," "," "," ","\u2028","\u2029"],r="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",i="(((?:(https?://|ftps?://|nntp://)|www\\d{0,3}[.]|[a-z0-9.\\-]+[.]("+r+")\\/)\\S+(?:[^\\s`!\\[\\]{};:'\".,?«»“”‘’])))|(([a-z0-9\\-]+\\.)?[a-z0-9\\-]+\\.("+r+"))",o=new RegExp("^("+r+")$","i"),a=new RegExp(i,"gi");var s=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[e];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,[t.util.keyCode.SPACE,t.util.keyCode.ENTER])&&(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=[e]);for(var i=0;i<n.length;i++)r=this.removeObsoleteAutoLinkSpans(n[i])||r,r=this.performLinkingWithinElement(n[i])||r;return this.base.events.updateInput(e,{target:e,currentTarget:e}),r},removeObsoleteAutoLinkSpans:function(n){if(!n||3===n.nodeType)return!1;for(var r=n.querySelectorAll('span[data-auto-link="true"]'),i=!1,o=0;o<r.length;o++){var a=r[o].textContent;if(-1===a.indexOf("://")&&(a=t.util.ensureUrlHasProtocol(a)),r[o].getAttribute("data-href")!==a&&e(r[o])){i=!0;var s=a.replace(/\s+$/,"");if(r[o].getAttribute("data-href")===s){var u=a.length-s.length,c=t.util.splitOffDOMTree(r[o],this.splitTextBeforeEnd(r[o],u));r[o].parentNode.insertBefore(c,r[o].nextSibling)}else t.util.unwrap(r[o],this.document)}}return i},splitTextBeforeEnd:function(t,e){for(var n=this.document.createTreeWalker(t,NodeFilter.SHOW_TEXT,null,!1),r=!0;r;)r=null!==n.lastChild();for(var i,o,a;e>0&&null!==a;)i=n.currentNode,o=i.nodeValue,o.length>e?(a=i.splitText(o.length-e),e=0):(a=n.previousNode(),e-=o.length);return a},performLinkingWithinElement:function(e){for(var n=this.findLinkableText(e),r=0;r<n.length;r++){var i=t.util.findOrCreateMatchingTextNodes(this.document,e,n[r]);this.shouldNotLink(i)||this.createAutoLink(i,n[r].href)}return!1},shouldNotLink:function(e){for(var n=!1,r=0;r<e.length&&!1===n;r++)n=!!t.util.traverseUp(e[r],function(t){return"a"===t.nodeName.toLowerCase()||t.getAttribute&&"true"===t.getAttribute("data-auto-link")});return n},findLinkableText:function(t){for(var e=t.textContent,r=null,i=[];null!==(r=a.exec(e));){var s=!0,u=r.index+r[0].length;s=!(0!==r.index&&-1===n.indexOf(e[r.index-1])||u!==e.length&&-1===n.indexOf(e[u])),s=s&&(-1!==r[0].indexOf("/")||o.test(r[0].split(".").pop().split("?").shift())),s&&i.push({href:r[0],start:r.index,end:u})}return i},createAutoLink:function(e,n){n=t.util.ensureUrlHasProtocol(n);var r=t.util.createLink(this.document,e,n,this.getEditorOption("targetBlank")?"_blank":null),i=this.document.createElement("span");for(i.setAttribute("data-auto-link","true"),i.setAttribute("data-href",n),r.insertBefore(i,r.firstChild);r.childNodes.length>1;)i.appendChild(r.childNodes[1])}});t.extensions.autoLink=s}(),function(){function e(e){var r=t.util.getContainerEditorElement(e);Array.prototype.slice.call(r.parentElement.querySelectorAll("."+n)).forEach(function(t){t.classList.remove(n)})}var n="medium-editor-dragover",r=t.Extension.extend({name:"fileDragging",allowedTypes:["image"],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";var r=t.target.classList?t.target:t.target.parentElement;e(r),"dragover"===t.type&&r.classList.add(n)},handleDrop:function(t){t.preventDefault(),t.stopPropagation(),this.base.selectElement(t.target);var n=this.base.exportSelection();n.start=n.end,this.base.importSelection(n),t.dataTransfer.files&&Array.prototype.slice.call(t.dataTransfer.files).forEach(function(t){this.isAllowedFile(t)&&t.type.match("image")&&this.insertImageFile(t)},this),e(t.target)},isAllowedFile:function(t){return this.allowedTypes.some(function(e){return!!t.type.match(e)})},insertImageFile:function(e){if("function"==typeof FileReader){var n=new FileReader;n.readAsDataURL(e),n.addEventListener("load",function(e){var n=this.document.createElement("img");n.src=e.target.result,t.util.insertHTMLCommand(this.document,n.outerHTML)}.bind(this))}}});t.extensions.fileDragging=r}(),function(){var e=t.Extension.extend({name:"keyboard-commands",commands:[{command:"bold",key:"B",meta:!0,shift:!1,alt:!1},{command:"italic",key:"I",meta:!0,shift:!1,alt:!1},{command:"underline",key:"U",meta:!0,shift:!1,alt:!1}],init:function(){t.Extension.prototype.init.apply(this,arguments),this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.keys={},this.commands.forEach(function(t){var e=t.key.charCodeAt(0);this.keys[e]||(this.keys[e]=[]),this.keys[e].push(t)},this)},handleKeydown:function(e){var n=t.util.getKeyCode(e);if(this.keys[n]){var r=t.util.isMetaCtrlKey(e),i=!!e.shiftKey,o=!!e.altKey;this.keys[n].forEach(function(t){t.meta!==r||t.shift!==i||t.alt!==o&&void 0!==t.alt||(e.preventDefault(),e.stopPropagation(),"function"==typeof t.command?t.command.apply(this):!1!==t.command&&this.execAction(t.command))},this)}}});t.extensions.keyboardCommands=e}(),function(){var e=t.extensions.form.extend({name:"fontname",action:"fontName",aria:"change font name",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-font"></i>',fonts:["","Arial","Verdana","Times New Roman"],init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontName")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getSelect().value=""},showForm:function(t){var e=this.getSelect();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontName(),this.base.checkSelection()},createForm:function(){var t,e=this.document,n=e.createElement("div"),r=e.createElement("select"),i=e.createElement("a"),o=e.createElement("a");n.className="medium-editor-toolbar-form",n.id="medium-editor-toolbar-form-fontname-"+this.getEditorId(),this.on(n,"click",this.handleFormClick.bind(this));for(var a=0;a<this.fonts.length;a++)t=e.createElement("option"),t.innerHTML=this.fonts[a],t.value=this.fonts[a],r.appendChild(t);return r.className="medium-editor-toolbar-select",n.appendChild(r),this.on(r,"change",this.handleFontChange.bind(this)),o.setAttribute("href","#"),o.className="medium-editor-toobar-save",o.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",n.appendChild(o),this.on(o,"click",this.handleSaveClick.bind(this),!0),i.setAttribute("href","#"),i.className="medium-editor-toobar-close",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",n.appendChild(i),this.on(i,"click",this.handleCloseClick.bind(this)),n},getSelect:function(){return this.getForm().querySelector("select.medium-editor-toolbar-select")},clearFontName:function(){t.selection.getSelectedElements(this.document).forEach(function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("face")&&t.removeAttribute("face")})},handleFontChange:function(){var t=this.getSelect().value;""===t?this.clearFontName():this.execAction("fontName",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.fontName=e}(),function(){var e=t.extensions.form.extend({name:"fontsize",action:"fontSize",aria:"increase/decrease font size",contentDefault:"&#xB1;",contentFA:'<i class="fa fa-text-height"></i>',init:function(){t.extensions.form.prototype.init.apply(this,arguments)},handleClick:function(t){if(t.preventDefault(),t.stopPropagation(),!this.isDisplayed()){var e=this.document.queryCommandValue("fontSize")+"";this.showForm(e)}return!1},getForm:function(){return this.form||(this.form=this.createForm()),this.form},isDisplayed:function(){return"block"===this.getForm().style.display},hideForm:function(){this.getForm().style.display="none",this.getInput().value=""},showForm:function(t){var e=this.getInput();this.base.saveSelection(),this.hideToolbarDefaultActions(),this.getForm().style.display="block",this.setToolbarPosition(),e.value=t||"",e.focus()},destroy:function(){if(!this.form)return!1;this.form.parentNode&&this.form.parentNode.removeChild(this.form),delete this.form},doFormSave:function(){this.base.restoreSelection(),this.base.checkSelection()},doFormCancel:function(){this.base.restoreSelection(),this.clearFontSize(),this.base.checkSelection()},createForm:function(){var t=this.document,e=t.createElement("div"),n=t.createElement("input"),r=t.createElement("a"),i=t.createElement("a");return e.className="medium-editor-toolbar-form",e.id="medium-editor-toolbar-form-fontsize-"+this.getEditorId(),this.on(e,"click",this.handleFormClick.bind(this)),n.setAttribute("type","range"),n.setAttribute("min","1"),n.setAttribute("max","7"),n.className="medium-editor-toolbar-input",e.appendChild(n),this.on(n,"change",this.handleSliderChange.bind(this)),i.setAttribute("href","#"),i.className="medium-editor-toobar-save",i.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-check"></i>':"&#10003;",e.appendChild(i),this.on(i,"click",this.handleSaveClick.bind(this),!0),r.setAttribute("href","#"),r.className="medium-editor-toobar-close",r.innerHTML="fontawesome"===this.getEditorOption("buttonLabels")?'<i class="fa fa-times"></i>':"&times;",e.appendChild(r),this.on(r,"click",this.handleCloseClick.bind(this)),e},getInput:function(){return this.getForm().querySelector("input.medium-editor-toolbar-input")},clearFontSize:function(){t.selection.getSelectedElements(this.document).forEach(function(t){"font"===t.nodeName.toLowerCase()&&t.hasAttribute("size")&&t.removeAttribute("size")})},handleSliderChange:function(){var t=this.getInput().value;"4"===t?this.clearFontSize():this.execAction("fontSize",{value:t})},handleFormClick:function(t){t.stopPropagation()},handleSaveClick:function(t){t.preventDefault(),this.doFormSave()},handleCloseClick:function(t){t.preventDefault(),this.doFormCancel()}});t.extensions.fontSize=e}(),function(){function e(){return[[new RegExp(/^[\s\S]*<body[^>]*>\s*|\s*<\/body[^>]*>[\s\S]*$/g),""],[new RegExp(/<!--StartFragment-->|<!--EndFragment-->/g),""],[new RegExp(/<br>$/i),""],[new RegExp(/<[^>]*docs-internal-guid[^>]*>/gi),""],[new RegExp(/<\/b>(<br[^>]*>)?$/gi),""],[new RegExp(/<span class="Apple-converted-space">\s+<\/span>/g)," "],[new RegExp(/<br class="Apple-interchange-newline">/g),"<br>"],[new RegExp(/<span[^>]*(font-style:italic;font-weight:(bold|700)|font-weight:(bold|700);font-style:italic)[^>]*>/gi),'<span class="replace-with italic bold">'],[new RegExp(/<span[^>]*font-style:italic[^>]*>/gi),'<span class="replace-with italic">'],[new RegExp(/<span[^>]*font-weight:(bold|700)[^>]*>/gi),'<span class="replace-with bold">'],[new RegExp(/&lt;(\/?)(i|b|a)&gt;/gi),"<$1$2>"],[new RegExp(/&lt;a(?:(?!href).)+href=(?:&quot;|&rdquo;|&ldquo;|"|“|”)(((?!&quot;|&rdquo;|&ldquo;|"|“|”).)*)(?:&quot;|&rdquo;|&ldquo;|"|“|”)(?:(?!&gt;).)*&gt;/gi),'<a href="$1">'],[new RegExp(/<\/p>\n+/gi),"</p>"],[new RegExp(/\n+<p/gi),"<p"],[new RegExp(/<\/?o:[a-z]*>/gi),""],[new RegExp(/<!\[if !supportLists\]>(((?!<!).)*)<!\[endif]\>/gi),"$1"]]}function n(t,e,n){var r=t.clipboardData||e.clipboardData||n.dataTransfer,i={};if(!r)return i;if(r.getData){var o=r.getData("Text");o&&o.length>0&&(i["text/plain"]=o)}if(r.types)for(var a=0;a<r.types.length;a++){var s=r.types[a];i[s]=r.getData(s)}return i}var r=null,i=null,o=function(t){t.stopPropagation()},a=t.Extension.extend({forcePlainText:!0,cleanPastedHTML:!1,preCleanReplacements:[],cleanReplacements:[],cleanAttrs:["class","style","dir"],cleanTags:["meta"],unwrapTags:[],init:function(){t.Extension.prototype.init.apply(this,arguments),(this.forcePlainText||this.cleanPastedHTML)&&(this.subscribe("editableKeydown",this.handleKeydown.bind(this)),this.getEditorElements().forEach(function(t){this.on(t,"paste",this.handlePaste.bind(this))},this),this.subscribe("addElement",this.handleAddElement.bind(this)))},handleAddElement:function(t,e){this.on(e,"paste",this.handlePaste.bind(this))},destroy:function(){(this.forcePlainText||this.cleanPastedHTML)&&this.removePasteBin()},handlePaste:function(t,e){if(!t.defaultPrevented){var r=n(t,this.window,this.document),i=r["text/html"],o=r["text/plain"];this.window.clipboardData&&void 0===t.clipboardData&&!i&&(i=o),(i||o)&&(t.preventDefault(),this.doPaste(i,o,e))}},doPaste:function(e,n,r){var i,o,a="";if(this.cleanPastedHTML&&e)return this.cleanPaste(e);if(this.getEditorOption("disableReturn")||r&&r.getAttribute("data-disable-return"))a=t.util.htmlEntities(n);else if(i=n.split(/[\r\n]+/g),i.length>1)for(o=0;o<i.length;o+=1)""!==i[o]&&(a+="<p>"+t.util.htmlEntities(i[o])+"</p>");else a=t.util.htmlEntities(i[0]);t.util.insertHTMLCommand(this.document,a)},handlePasteBinPaste:function(t){if(t.defaultPrevented)return void this.removePasteBin();var e=n(t,this.window,this.document),r=e["text/html"],o=e["text/plain"],a=i;if(!this.cleanPastedHTML||r)return t.preventDefault(),this.removePasteBin(),this.doPaste(r,o,a),void this.trigger("editablePaste",{currentTarget:a,target:a},a);setTimeout(function(){this.cleanPastedHTML&&(r=this.getPasteBinHtml()),this.removePasteBin(),this.doPaste(r,o,a),this.trigger("editablePaste",{currentTarget:a,target:a},a)}.bind(this),0)},handleKeydown:function(e,n){t.util.isKey(e,t.util.keyCode.V)&&t.util.isMetaCtrlKey(e)&&(e.stopImmediatePropagation(),this.removePasteBin(),this.createPasteBin(n))},createPasteBin:function(e){var n,a=t.selection.getSelectionRange(this.document),s=this.window.pageYOffset;i=e,a&&(n=a.getClientRects(),n.length?s+=n[0].top:void 0!==a.startContainer.getBoundingClientRect?s+=a.startContainer.getBoundingClientRect().top:s+=a.getBoundingClientRect().top),r=a;var u=this.document.createElement("div");u.id=this.pasteBinId="medium-editor-pastebin-"+ +Date.now(),u.setAttribute("style","border: 1px red solid; position: absolute; top: "+s+"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",o),this.on(u,"focusin",o),this.on(u,"focusout",o),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!==r&&(t.selection.selectRange(this.document,r),r=null),null!==i&&(i=null);var e=this.getPasteBin();e&&e&&(this.off(e,"focus",o),this.off(e,"focusin",o),this.off(e,"focusout",o),this.off(e,"paste",this.boundHandlePaste),e.parentElement.removeChild(e))},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 n,r,i,o,a=/<p|<br|<div/.test(t),s=[].concat(this.preCleanReplacements||[],e(),this.cleanReplacements||[]);for(n=0;n<s.length;n+=1)t=t.replace(s[n][0],s[n][1]);if(!a)return this.pasteHTML(t);for(i=this.document.createElement("div"),i.innerHTML="<p>"+t.split("<br><br>").join("</p><p>")+"</p>",r=i.querySelectorAll("a,p,div,br"),n=0;n<r.length;n+=1)switch(o=r[n],o.innerHTML=o.innerHTML.replace(/\n/gi," "),o.nodeName.toLowerCase()){case"p":case"div":this.filterCommonBlocks(o);break;case"br":this.filterLineBreak(o)}this.pasteHTML(i.innerHTML)},pasteHTML:function(e,n){n=t.util.defaults({},n,{cleanAttrs:this.cleanAttrs,cleanTags:this.cleanTags,unwrapTags:this.unwrapTags});var r,i,o,a,s=this.document.createDocumentFragment();for(s.appendChild(this.document.createElement("body")),a=s.querySelector("body"),a.innerHTML=e,this.cleanupSpans(a),r=a.querySelectorAll("*"),o=0;o<r.length;o+=1)i=r[o],"a"===i.nodeName.toLowerCase()&&this.getEditorOption("targetBlank")&&t.util.setTargetBlank(i),t.util.cleanupAttrs(i,n.cleanAttrs),t.util.cleanupTags(i,n.cleanTags),t.util.unwrapTags(i,n.unwrapTags);t.util.insertHTMLCommand(this.document,a.innerHTML.replace(/&nbsp;/g," "))},isCommonBlock:function(t){return t&&("p"===t.nodeName.toLowerCase()||"div"===t.nodeName.toLowerCase())},filterCommonBlocks:function(t){/^\s*$/.test(t.textContent)&&t.parentNode&&t.parentNode.removeChild(t)},filterLineBreak:function(t){this.isCommonBlock(t.previousElementSibling)?this.removeWithParent(t):!this.isCommonBlock(t.parentNode)||t.parentNode.firstChild!==t&&t.parentNode.lastChild!==t?t.parentNode&&1===t.parentNode.childElementCount&&""===t.parentNode.textContent&&this.removeWithParent(t):this.removeWithParent(t)},removeWithParent:function(t){t&&t.parentNode&&(t.parentNode.parentNode&&1===t.parentNode.childElementCount?t.parentNode.parentNode.removeChild(t.parentNode):t.parentNode.removeChild(t))},cleanupSpans:function(e){var n,r,i,o=e.querySelectorAll(".replace-with"),a=function(t){return t&&"#text"!==t.nodeName&&"false"===t.getAttribute("contenteditable")};for(n=0;n<o.length;n+=1)r=o[n],i=this.document.createElement(r.classList.contains("bold")?"b":"i"),r.classList.contains("bold")&&r.classList.contains("italic")?i.innerHTML="<i>"+r.innerHTML+"</i>":i.innerHTML=r.innerHTML,r.parentNode.replaceChild(i,r);for(o=e.querySelectorAll("span"),n=0;n<o.length;n+=1){if(r=o[n],t.util.traverseUp(r,a))return!1;t.util.unwrap(r,this.document)}}});t.extensions.paste=a}(),function(){var e=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=e}(),function(){var e=t.Extension.extend({name:"toolbar",align:"center",allowMultiParagraphSelection:!0,buttons:["bold","italic","underline","anchor","h2","h3","quote"],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(r){"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"),r.length>0&&(r[0].classList.add(this.firstButtonClass),r[r.length-1].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=/<[^\/>][^>]*><\/[^>]+>/gim,n=new RegExp("<("+t.util.blockContainerElementNames.join("|")+")[^>]*>","g"),r=t.selection.getSelectionHtml(this.document).replace(e,""),i=r.match(n);return!!i&&i.length>1},modifySelection:function(){var e=this.window.getSelection(),n=e.getRangeAt(0);if(this.standardizeSelectionStart&&n.startContainer.nodeValue&&n.startOffset===n.startContainer.nodeValue.length){var r=t.util.findAdjacentTextNodeWithContent(t.selection.getSelectionElement(this.window),n.startContainer,this.document);if(r){for(var i=0;0===r.nodeValue.substr(i,1).trim().length;)i+=1;n=t.selection.select(this.document,r,i,n.endContainer,n.endOffset)}}},checkState:function(){if(!this.base.preventSelectionUpdates){if(!this.base.getFocusedElement()||t.selection.selectionInContentEditableFalse(this.window))return this.hideToolbar();var e=t.selection.getSelectionElement(this.window);return!e||-1===this.getEditorElements().indexOf(e)||e.getAttribute("data-disable-toolbar")?this.hideToolbar():this.updateOnEmptySelection&&this.static?this.showAndUpdateToolbar():!t.selection.selectionContainsContent(this.document)||!1===this.allowMultiParagraphSelection&&this.multipleBlockElementsSelected()?this.hideToolbar():void this.showAndUpdateToolbar()}},showAndUpdateToolbar:function(){this.modifySelection(),this.setToolbarButtonStates(),this.trigger("positionToolbar",{},this.base.getFocusedElement()),this.showToolbarDefaultActions(),this.setToolbarPosition()},setToolbarButtonStates:function(){this.forEachExtension(function(t){"function"==typeof t.isActive&&"function"==typeof t.setInactive&&t.setInactive()}),this.checkActiveButtons()},checkActiveButtons:function(){var e,n=[],r=null,i=t.selection.getSelectionRange(this.document),o=function(t){"function"==typeof t.checkState?t.checkState(e):"function"==typeof t.isActive&&"function"==typeof t.isAlreadyApplied&&"function"==typeof t.setActive&&!t.isActive()&&t.isAlreadyApplied(e)&&t.setActive()};if(i&&(this.forEachExtension(function(t){if("function"==typeof t.queryCommandState&&null!==(r=t.queryCommandState()))return void(r&&"function"==typeof t.setActive&&t.setActive());n.push(t)}),e=t.selection.getSelectedParentElement(i),this.getEditorElements().some(function(n){return t.util.isDescendant(n,e,!0)})))for(;e&&(n.forEach(o),!t.util.isMediumEditorElement(e));)e=e.parentNode},positionToolbarIfShown:function(){this.isDisplayed()&&this.setToolbarPosition()},setToolbarPosition:function(){var t=this.base.getFocusedElement(),e=this.window.getSelection();if(!t)return this;!this.static&&e.isCollapsed||(this.showToolbar(),this.relativeContainer||(this.static?this.positionStaticToolbar(t):this.positionToolbar(e)),this.trigger("positionedToolbar",{},this.base.getFocusedElement()))},positionStaticToolbar:function(t){this.getToolbarElement().style.left="0";var e,n=this.document.documentElement&&this.document.documentElement.scrollTop||this.document.body.scrollTop,r=this.window.innerWidth,i=this.getToolbarElement(),o=t.getBoundingClientRect(),a=o.top+n,s=o.left+o.width/2,u=i.offsetHeight,c=i.offsetWidth,l=c/2;switch(this.sticky?n>a+t.offsetHeight-u-this.stickyTopOffset?(i.style.top=a+t.offsetHeight-u+"px",i.classList.remove("medium-editor-sticky-toolbar")):n>a-u-this.stickyTopOffset?(i.classList.add("medium-editor-sticky-toolbar"),i.style.top=this.stickyTopOffset+"px"):(i.classList.remove("medium-editor-sticky-toolbar"),i.style.top=a-u+"px"):i.style.top=a-u+"px",this.align){case"left":e=o.left;break;case"right":e=o.right-c;break;case"center":e=s-l}e<0?e=0:e+c>r&&(e=r-Math.ceil(c)-1),i.style.left=e+"px"},positionToolbar:function(t){this.getToolbarElement().style.left="0",this.getToolbarElement().style.right="initial";var e=t.getRangeAt(0),n=e.getBoundingClientRect();(!n||0===n.height&&0===n.width&&e.startContainer===e.endContainer)&&(n=1===e.startContainer.nodeType&&e.startContainer.querySelector("img")?e.startContainer.querySelector("img").getBoundingClientRect():e.startContainer.getBoundingClientRect());var r,i,o=this.window.innerWidth,a=this.getToolbarElement(),s=a.offsetHeight,u=a.offsetWidth,c=u/2,l=this.diffLeft-c,f=this.getEditorOption("elementsContainer"),d=["absolute","fixed"].indexOf(window.getComputedStyle(f).getPropertyValue("position"))>-1,h={},p={};d?(i=f.getBoundingClientRect(),["top","left"].forEach(function(t){p[t]=n[t]-i[t]}),p.width=n.width,p.height=n.height,n=p,o=i.width,h.top=f.scrollTop):h.top=this.window.pageYOffset,r=n.left+n.width/2,h.top+=n.top-s,n.top<50?(a.classList.add("medium-toolbar-arrow-over"),a.classList.remove("medium-toolbar-arrow-under"),h.top+=50+n.height-this.diffTop):(a.classList.add("medium-toolbar-arrow-under"),a.classList.remove("medium-toolbar-arrow-over"),h.top+=this.diffTop),r<c?(h.left=l+c,h.right="initial"):o-r<c?(h.left="auto",h.right=0):(h.left=l+r,h.right="initial"),["top","left","right"].forEach(function(t){a.style[t]=h[t]+(isNaN(h[t])?"":"px")})}});t.extensions.toolbar=e}(),function(){var e=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){var n;e.preventDefault(),e.stopPropagation(),e.dataTransfer.files&&(n=Array.prototype.slice.call(e.dataTransfer.files,0),n.some(function(e){if(e.type.match("image")){var n,r;n=new FileReader,n.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(r);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=e}(),function(){function e(e){var n=t.selection.getSelectionStart(this.options.ownerDocument),r=n.textContent,i=t.selection.getCaretOffsets(n);(void 0===r[i.left-1]||""===r[i.left-1].trim()||void 0!==r[i.left]&&""===r[i.left].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+|<br\/?>)?$/i,a=/h\d/i;t.util.isKey(e,[t.util.keyCode.BACKSPACE,t.util.keyCode.ENTER])&&r.previousElementSibling&&a.test(i)&&0===t.selection.getCaretOffsets(r).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"),n.innerHTML="<br>",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(r),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"),n.innerHTML="<br>",r.parentElement.parentElement.insertBefore(n,r.parentElement),t.selection.moveCursor(this.options.ownerDocument,n),r.parentElement.removeChild(r),e.preventDefault()):t.util.isKey(e,t.util.keyCode.BACKSPACE)&&!1!==t.util.getClosestTag(r,"blockquote")&&0===t.selection.getCaretOffsets(r).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(r).right?(n=this.options.ownerDocument.createElement("p"),n.innerHTML="<br>",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(r))}function o(e){var n,r=t.selection.getSelectionStart(this.options.ownerDocument);r&&(t.util.isMediumEditorElement(r)&&0===r.children.length&&!t.util.isBlockContainer(r)&&this.options.ownerDocument.execCommand("formatBlock",!1,"p"),!t.util.isKey(e,t.util.keyCode.ENTER)||t.util.isListItem(r)||t.util.isBlockContainer(r)||(n=r.nodeName.toLowerCase(),"a"===n?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[medium-editor-textarea-id="'+e.getAttribute("medium-editor-textarea-id")+'"]');n&&(n.value=e.innerHTML.trim())}function s(t){t._mediumEditors||(t._mediumEditors=[null]),this.id||(this.id=t._mediumEditors.length),t._mediumEditors[this.id]=this}function u(t){t._mediumEditors&&t._mediumEditors[this.id]&&(t._mediumEditors[this.id]=null)}function c(e,n,r){var i=[];if(e||(e=[]),"string"==typeof e&&(e=n.querySelectorAll(e)),t.util.isElement(e)&&(e=[e]),r)for(var o=0;o<e.length;o++){var a=e[o];!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 l(t){var e=t.parentNode.querySelector('textarea[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]');e&&(e.classList.remove("medium-editor-hidden"),e.removeAttribute("medium-editor-textarea-id")),t.parentNode&&t.parentNode.removeChild(t)}function f(t,e){return Object.keys(e).forEach(function(n){void 0===t[n]&&(t[n]=e[n])}),t}function d(t,e,n){return t=f(t,{window:n.options.contentWindow,document:n.options.ownerDocument,base:n}),"function"==typeof t.init&&t.init(),t.name||(t.name=e),t}function h(){return!this.elements.every(function(t){return!!t.getAttribute("data-disable-toolbar")})&&!1!==this.options.toolbar}function p(){return!!h.call(this)&&!1!==this.options.anchorPreview}function v(){return!1!==this.options.placeholder}function y(){return!1!==this.options.autoLink}function m(){return!1!==this.options.imageDragging}function b(){return!1!==this.options.keyboardCommands}function g(){return!this.options.extensions.imageDragging}function w(t){for(var e=this.options.ownerDocument.createElement("div"),n=Date.now(),r="medium-editor-"+n,i=t.attributes;this.options.ownerDocument.getElementById(r);)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<a;o++)e.hasAttribute(i[o].nodeName)||e.setAttribute(i[o].nodeName,i[o].nodeValue);return t.form&&this.on(t.form,"reset",function(t){t.defaultPrevented||this.resetContent(this.options.ownerDocument.getElementById(r))}.bind(this)),t.classList.add("medium-editor-hidden"),t.parentNode.insertBefore(e,t),e}function _(e,r){if(!e.getAttribute("data-medium-editor-element")){"textarea"===e.nodeName.toLowerCase()&&(e=w.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),j[i]=e.innerHTML,this.events.attachAllEventsToElement(e)}return e}function k(){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[t]&&this.extensions.push(d(this.options.extensions[t],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:y.call(this),keyboardCommands:b.call(this),placeholder:v.call(this)};Object.keys(n).forEach(function(t){n[t]&&this.addBuiltInExtension(t)},this);var r=this.options.extensions.toolbar;if(!r&&h.call(this)){var i=t.util.extend({},this.options.toolbar,{allowMultiParagraphSelection:this.options.allowMultiParagraphSelection});r=new t.extensions.toolbar(i)}r&&this.extensions.push(d(r,"toolbar",this))}function E(e,n){var r=[["allowMultiParagraphSelection","toolbar.allowMultiParagraphSelection"]];return n&&r.forEach(function(e){n.hasOwnProperty(e[0])&&void 0!==n[e[0]]&&t.util.deprecated(e[0],e[1],"v6.0.0")}),t.util.defaults({},n,e)}function x(e,n){var r,i,o=/^append-(.+)$/gi,a=/justify([A-Za-z]*)$/g;if(r=o.exec(e))return t.util.execFormatBlock(this.options.ownerDocument,r[1]);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 s=this.options.contentWindow.getSelection().toString().trim();return this.options.ownerDocument.execCommand("insertImage",!1,s)}if("html"===e){var u=this.options.contentWindow.getSelection().toString().trim();return t.util.insertHTMLCommand(this.options.ownerDocument,u)}if(a.exec(e)){var c=this.options.ownerDocument.execCommand(e,!1,null),l=t.selection.getSelectedParentElement(t.selection.getSelectionRange(this.options.ownerDocument));return l&&C.call(this,t.util.getTopBlockContainer(l)),c}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(r){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 j={};t.prototype={init:function(t,e){return this.options=E.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),k.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")&&l(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={},r=this.elements.length;for(t=0;t<r;t+=1)e=""!==this.elements[t].id?this.elements[t].id:"element-"+t,n[e]={value:this.elements[t].innerHTML.trim()};return n},getExtensionByName:function(t){var e;return this.extensions&&this.extensions.length&&this.extensions.some(function(n){return n.name===t&&(e=n,!0)}),e},addBuiltInExtension:function(e,n){var r,i=this.getExtensionByName(e);if(i)return i;switch(e){case"anchor":r=t.util.extend({},this.options.anchor,n),i=new t.extensions.anchor(r);break;case"anchor-preview":i=new t.extensions.anchorPreview(this.options.anchorPreview);break;case"autoLink":i=new t.extensions.autoLink;break;case"fileDragging":i=new t.extensions.fileDragging(n);break;case"fontname":i=new t.extensions.fontName(this.options.fontName);break;case"fontsize":i=new t.extensions.fontSize(n);break;case"keyboardCommands":i=new t.extensions.keyboardCommands(this.options.keyboardCommands);break;case"paste":i=new t.extensions.paste(this.options.paste);break;case"placeholder":i=new t.extensions.placeholder(this.options.placeholder);break;default:t.extensions.button.isBuiltInButton(e)&&(n?(r=t.util.defaults({},n,t.extensions.button.prototype.defaults[e]),i=new t.extensions.button(r)):i=new t.extensions.button(e))}return i&&this.extensions.push(d(i,e,this)),i},stopSelectionUpdates:function(){this.preventSelectionUpdates=!0},startSelectionUpdates:function(){this.preventSelectionUpdates=!1},checkSelection:function(){var t=this.getExtensionByName("toolbar");return t&&t.checkState(),this},queryCommandState:function(t){var e,n=/^full-(.+)$/gi,r=null;(e=n.exec(t))&&(t=e[1]);try{r=this.options.ownerDocument.queryCommandState(t)}catch(t){r=null}return r},execAction:function(e,n){var r,i,o=/^full-(.+)$/gi;return r=o.exec(e),r?(this.saveSelection(),this.selectAllContents(),i=x.call(this,r[1],n),this.restoreSelection()):i=x.call(this,e,n),"insertunorderedlist"!==e&&"insertorderedlist"!==e||t.util.cleanListDOM(this.options.ownerDocument,this.getSelectedParentElement()),this.checkSelection(),i},getSelectedParentElement:function(e){return void 0===e&&(e=this.options.contentWindow.getSelection().getRangeAt(0)),t.selection.getSelectedParentElement(e)},selectAllContents:function(){var e=t.selection.getSelectionElement(this.options.contentWindow);if(e){for(;1===e.children.length;)e=e.children[0];this.selectElement(e)}},selectElement:function(e){t.selection.selectNode(e,this.options.ownerDocument);var n=t.selection.getSelectionElement(this.options.contentWindow);n&&this.events.focusElement(n)},getFocusedElement:function(){var t;return this.elements.some(function(e){return!t&&e.getAttribute("data-medium-focused")&&(t=e),!!t},this),t},exportSelection:function(){var e=t.selection.getSelectionElement(this.options.contentWindow),n=this.elements.indexOf(e),r=null;return n>=0&&(r=t.selection.exportSelection(e,this.options.ownerDocument)),null!==r&&0!==n&&(r.editableElementIndex=n),r},saveSelection:function(){this.selectionState=this.exportSelection()},importSelection:function(e,n){if(e){var r=this.elements[e.editableElementIndex||0];t.selection.importSelection(e,r,this.options.ownerDocument,n)}},restoreSelection:function(){this.importSelection(this.selectionState)},createLink:function(e){var n,r=t.selection.getSelectionElement(this.options.contentWindow),i={};if(-1!==this.elements.indexOf(r)){try{if(this.events.disableCustomEvent("editableInput"),e.url&&t.util.deprecated(".url option for createLink",".value","6.0.0"),(n=e.url||e.value)&&n.trim().length>0){var o=this.options.contentWindow.getSelection();if(o){var a,s,u,c,l=o.getRangeAt(0),f=l.commonAncestorContainer;if(3===l.endContainer.nodeType&&3!==l.startContainer.nodeType&&0===l.startOffset&&l.startContainer.firstChild===l.endContainer&&(f=l.endContainer),s=t.util.getClosestBlockContainer(l.startContainer),u=t.util.getClosestBlockContainer(l.endContainer),3!==f.nodeType&&0!==f.textContent.length&&s===u){var d=s||r,h=this.options.ownerDocument.createDocumentFragment();this.execAction("unlink"),a=this.exportSelection(),h.appendChild(d.cloneNode(!0)),r===d?t.selection.select(this.options.ownerDocument,d.firstChild,0,d.lastChild,3===d.lastChild.nodeType?d.lastChild.nodeValue.length:d.lastChild.childNodes.length):t.selection.select(this.options.ownerDocument,d,0,d,d.childNodes.length);var p=this.exportSelection();c=t.util.findOrCreateMatchingTextNodes(this.options.ownerDocument,h,{start:a.start-p.start,end:a.end-p.start,editableElementIndex:a.editableElementIndex}),0===c.length&&(h=this.options.ownerDocument.createDocumentFragment(),h.appendChild(f.cloneNode(!0)),c=[h.firstChild.firstChild,h.firstChild.lastChild]),t.util.createLink(this.options.ownerDocument,c,n.trim());var v=(h.firstChild.innerHTML.match(/^\s+/)||[""])[0].length;t.util.insertHTMLCommand(this.options.ownerDocument,h.firstChild.innerHTML.replace(/^\s+/,"")),a.start-=v,a.end-=v,this.importSelection(a)}else this.options.ownerDocument.execCommand("createLink",!1,n);this.options.targetBlank||"_blank"===e.target?t.util.setTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n):t.util.removeTargetBlank(t.selection.getSelectionStart(this.options.ownerDocument),n),e.buttonClass&&t.util.addClassToAnchors(t.selection.getSelectionStart(this.options.ownerDocument),e.buttonClass)}}if(this.options.targetBlank||"_blank"===e.target||e.buttonClass){i=this.options.ownerDocument.createEvent("HTMLEvents"),i.initEvent("input",!0,!0,this.options.contentWindow);for(var y=0,m=this.elements.length;y<m;y+=1)this.elements[y].dispatchEvent(i)}}finally{this.events.enableCustomEvent("editableInput")}this.events.triggerCustomEvent("editableInput",i,r)}},cleanPaste:function(t){this.getExtensionByName("paste").cleanPaste(t)},pasteHTML:function(t,e){this.getExtensionByName("paste").pasteHTML(t,e)},setContent:function(t,e){if(e=e||0,this.elements[e]){var n=this.elements[e];n.innerHTML=t,this.checkContentChanged(n)}},getContent:function(t){return t=t||0,this.elements[t]?this.elements[t].innerHTML.trim():null},checkContentChanged:function(e){e=e||t.selection.getSelectionElement(this.options.contentWindow),this.events.updateInput(e,{target:e,currentTarget:e})},resetContent:function(t){if(t){var e=this.elements.indexOf(t);return void(-1!==e&&this.setContent(j[t.getAttribute("medium-editor-index")],e))}this.elements.forEach(function(t,e){this.setContent(j[t.getAttribute("medium-editor-index")],e)},this)},addElements:function(t){var e=c(t,this.options.ownerDocument,!0);if(0===e.length)return!1;e.forEach(function(t){t=_.call(this,t,this.id),this.elements.push(t),this.trigger("addElement",{target:t,currentTarget:t},t)},this)},removeElements:function(t){var e=c(t,this.options.ownerDocument),n=e.map(function(t){return t.getAttribute("medium-editor-textarea-id")&&t.parentNode?t.parentNode.querySelector('div[medium-editor-textarea-id="'+t.getAttribute("medium-editor-textarea-id")+'"]'):t});this.elements=this.elements.filter(function(t){return-1===n.indexOf(t)||(this.events.cleanupElement(t),t.getAttribute("medium-editor-textarea-id")&&l(t),this.trigger("removeElement",{target:t,currentTarget:t},t),!1)},this)}},t.getEditorFromElement=function(t){var e=t.getAttribute("data-medium-editor-editor-index"),n=t&&t.ownerDocument&&(t.ownerDocument.defaultView||t.ownerDocument.parentWindow);return n&&n._mediumEditors&&n._mediumEditors[e]?n._mediumEditors[e]:null}}(),function(){t.prototype.defaults={activeButtonClass:"medium-editor-button-active",buttonLabels:!1,delay:0,disableReturn:!1,disableDoubleReturn:!1,disableExtraSpaces:!1,disableEditing:!1,autoLink:!1,elementsContainer:!1,contentWindow:window,ownerDocument:document,targetBlank:!1,extensions:{},spellcheck:!0}}(),t.parseVersionString=function(t){var e=t.split("-"),n=e[0].split("."),r=e.length>1?e[1]:"";return{major:parseInt(n[0],10),minor:parseInt(n[1],10),revision:parseInt(n[2],10),preRelease:r,toString:function(){return[n[0],n[1],n[2]].join(".")+(r?"-"+r:"")}}},t.version=t.parseVersionString.call(this,{version:"5.23.2"}.version),t}())}).call(e,n(91))},function(t,e,n){"use strict";function r(t){if(!(void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.start&&/\S{1}/.test(t.start)&&void 0!==t.end&&/\S{1}/.test(t.end)||void 0!==t.label&&/\S{1}/.test(t.label)&&void 0!==t.action&&/\S{1}/.test(t.action)))return void console.error('[Custom-Button] You need to specify "label", "start" and "end" OR "label" and "action"');t.start=void 0===t.start?"":t.start,t.end=void 0===t.end?"":t.end;var e=this;this.options=t,this.button=document.createElement("button"),this.button.className="medium-editor-action",this.button.innerHTML=t.label,this.button.onclick=function(){var n=i(),r=window.getSelection(),o=r.anchorNode.parentElement;void 0===t.start||-1==n.indexOf(t.start)&&-1==n.indexOf(t.end)?(void 0!=t.action&&(n=t.action(n,!0,o)),n=t.start+n+t.end):(void 0!=t.action&&(n=t.action(n,!1,o)),n=String(n).split(t.start).join(""),n=String(n).split(t.end).join(""));var a,s;if(r.getRangeAt&&r.rangeCount){if(a=window.getSelection().getRangeAt(0),a.deleteContents(),a.createContextualFragment)s=a.createContextualFragment(n);else{var u=document.createElement("div");for(u.innerHTML=n,s=document.createDocumentFragment();child=u.firstChild;)s.appendChild(child)}var c=s.firstChild,l=s.lastChild;a.insertNode(s),c&&(a.setStartBefore(c),a.setEndAfter(l)),r.removeAllRanges(),r.addRange(a)}e.base.checkContentChanged()}}function i(){var t,e="";if(void 0!==window.getSelection){if(t=window.getSelection(),t.rangeCount){for(var n=document.createElement("div"),r=0,i=t.rangeCount;r<i;++r)n.appendChild(t.getRangeAt(r).cloneContents());e=n.innerHTML}}else void 0!==document.selection&&"Text"==document.selection.type&&(e=document.selection.createRange().htmlText);return e}r.prototype.getButton=function(){return this.button},r.prototype.checkState=function(t){var e=i();""!=this.options.start&&e.indexOf(this.options.start)>-1&&e.indexOf(this.options.end)>-1?this.button.classList.add("medium-editor-button-active"):this.button.classList.remove("medium-editor-button-active")},void 0!==t&&t.exports&&(e=t.exports=r),e.MediumButton=r},function(t,e,n){"use strict";function r(t,e){var n=document.createElement("div");n.classList.add("ql-svt-container"),t.appendChild(n);var r=new a.a(n,i());return r.clipboard.dangerouslyPasteHTML(e.getContent()),r.history.clear(),r.on("text-change",function(){e.setContent(Object(s.a)(r))}),r.enable(),r}function i(){return{formats:["blockquote","bold","code","code-block","header","image","italic","link","list","script","strike","target","underline","video"],modules:{scrivitoApi:!0,scrivitoInternalLink:!0,scrivitoLinkTooltip:!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",readOnly:!0,theme:"scrivito"}}var o=n(73),a=n.n(o),s=n(330),u=n(331),c=(n(332),n(333));n(334),n(335);Object(u.a)(),Object(c.a)(),e.a=r},function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(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 c(this,t)}return a(this,t,e,n)}function a(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?d(t,e,n,r):"string"==typeof e?l(t,e,n):h(t,e)}function s(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 u(t,e,n,r){return s(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(s(e),t=i(t,e<0?0:0|p(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|y(e,n);t=i(t,r);var a=t.write(e,n);return a!==r&&(t=t.slice(0,a)),t}function f(t,e){var n=e.length<0?0:0|p(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function d(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");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=f(t,e),t}function h(t,e){if(o.isBuffer(e)){var n=0|p(e.length);return t=i(t,n),0===t.length?t:(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||$(e.length)?i(t,0):f(t,e);if("Buffer"===e.type&&X(e.data))return f(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function p(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function v(t){return+t!=t&&(t=0),o.alloc(+t)}function y(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return W(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Q(t).length;default:if(r)return W(t).length;e=(""+e).toLowerCase(),r=!0}}function m(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return P(this,e,n);case"utf8":case"utf-8":return S(this,e,n);case"ascii":return T(this,e,n);case"latin1":case"binary":return N(this,e,n);case"base64":return j(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return L(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function b(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function g(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:w(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):w(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function w(t,e,n,r,i){function o(t,e){return 1===a?t[e]:t.readUInt16BE(e*a)}var a=1,s=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;a=2,s/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;c<s;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*a}else-1!==l&&(c-=c-l),l=-1}else for(n+u>s&&(n=s-u),c=n;c>=0;c--){for(var f=!0,d=0;d<u;d++)if(o(t,c+d)!==o(e,d)){f=!1;break}if(f)return c}return-1}function _(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var a=0;a<r;++a){var s=parseInt(e.substr(2*a,2),16);if(isNaN(s))return a;t[n+a]=s}return a}function k(t,e,n,r){return Y(W(e,t.length-n),t,n,r)}function O(t,e,n,r){return Y(K(e),t,n,r)}function E(t,e,n,r){return O(t,e,n,r)}function x(t,e,n,r){return Y(Q(e),t,n,r)}function C(t,e,n,r){return Y(V(e,t.length-n),t,n,r)}function j(t,e,n){return 0===e&&n===t.length?Z.fromByteArray(t):Z.fromByteArray(t.slice(e,n))}function S(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],a=null,s=o>239?4:o>223?3:o>191?2:1;if(i+s<=n){var u,c,l,f;switch(s){case 1:o<128&&(a=o);break;case 2:u=t[i+1],128==(192&u)&&(f=(31&o)<<6|63&u)>127&&(a=f);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(f=(15&o)<<12|(63&u)<<6|63&c)>2047&&(f<55296||f>57343)&&(a=f);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(f=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&f<1114112&&(a=f)}}null===a?(a=65533,s=1):a>65535&&(a-=65536,r.push(a>>>10&1023|55296),a=56320|1023&a),r.push(a),i+=s}return A(r)}function A(t){var e=t.length;if(e<=J)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=J));return n}function T(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function N(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function P(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=H(t[o]);return i}function L(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function D(t,e,n,r,i,a){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<a)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function q(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function R(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function M(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function B(t,e,n,r,i){return i||M(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),G.write(t,e,n,r,23,4),n+4}function F(t,e,n,r,i){return i||M(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),G.write(t,e,n,r,52,8),n+8}function z(t){if(t=U(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function U(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function W(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],a=0;a<r;++a){if((n=t.charCodeAt(a))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(a+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function K(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function V(t,e){for(var n,r,i,o=[],a=0;a<t.length&&!((e-=2)<0);++a)n=t.charCodeAt(a),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function Q(t){return Z.toByteArray(z(t))}function Y(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function $(t){return t!==t}/*!
81
81
  * The buffer module from node.js, for the browser.
@@ -83,4 +83,4 @@ function(t){"use strict";if(t.URL=t.URL||t.webkitURL,t.Blob&&t.URL)try{return vo
83
83
  * @author Feross Aboukhadijeh <feross@feross.org> <http://feross.org>
84
84
  * @license MIT
85
85
  */
86
- var Z=n(327),G=n(328),X=n(329);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!X(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.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(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n),f=0;f<u;++f)if(c[f]!==l[f]){a=c[f],s=l[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},o.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(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:W(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(40))},function(t,e,n){"use strict";function r(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),[n,n===e?0:4-n%4]}function i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function a(t){for(var e,n=r(t),i=n[0],a=n[1],s=new d(o(t,i,a)),u=0,c=a>0?i-4:i,l=0;l<c;l+=4)e=f[t.charCodeAt(l)]<<18|f[t.charCodeAt(l+1)]<<12|f[t.charCodeAt(l+2)]<<6|f[t.charCodeAt(l+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===a&&(e=f[t.charCodeAt(l)]<<2|f[t.charCodeAt(l+1)]>>4,s[u++]=255&e),1===a&&(e=f[t.charCodeAt(l)]<<10|f[t.charCodeAt(l+1)]<<4|f[t.charCodeAt(l+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function u(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(r));return i.join("")}function c(t){for(var e,n=t.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(u(t,o,o+16383>a?a:o+16383));return 1===r?(e=t[n-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=a,e.fromByteArray=c;for(var l=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=h.length;p<v;++p)l[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?d/u:d*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";function r(t){return"\n"===t.getText()?"":t.root.innerHTML}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){s.a.register({"formats/target":o()}),s.a.register(c,!0)}function o(){var t=s.a.import("parchment");return new t.Attributor.Attribute("target","target",{scope:t.Scope.INLINE})}e.a=i;var a=n(73),s=n.n(a),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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"))},function(t,e,n){"use strict";function r(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}function i(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}var o=n(73),a=n.n(o),s=function(){function t(t){t.on("selection-change",function(e){if(e){var n=t.getModule("scrivitoApi").getTooltip(),o=t.getFormat(e).link,a=t.getModule("scrivitoApi").getLinkRange(e);if(a&&o){r(n,a,t.getFormat(a).target||"")}else i(n)}}),t.on("text-change",function(){var e=t.getModule("scrivitoApi").getTooltip(),n=e.linkRange;n&&e.root.setAttribute("data-svt-target",t.getFormat(n).target||"")})}return t}();a.a.register("modules/scrivitoLinkTooltip",s)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){a.a.register("modules/scrivitoApi",l)}e.a=i;var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=a.a.import("core/module"),c=a.a.import("formats/link"),l=function(t){function e(e){var n=t.call(this,e)||this;return n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(c,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return s(e,t),e}(u)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e={selection:[],selectionMode:"single"};scrivito.openContentBrowser(e).then(function(e){if(e.selection&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}})}var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=a.a.import("core/module"),c=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return i(e)},n}return s(e,t),e}(u);a.a.register("modules/scrivitoInternalLink",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(73),o=n.n(i),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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=o.a.import("themes/bubble"),u=o.a.import("themes/snow"),c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new u(e,n),r}return a(e,t),e.prototype.extendToolbar=function(e){var n=this;this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",l),this.tooltip.textbox.insertAdjacentHTML("afterend",f);var r=this.tooltip.root.querySelector("a.ql-svt-browse"),i=this.tooltip.root.querySelector("a.ql-svt-target");r.addEventListener("click",function(t){n.quill.getModule("scrivitoInternalLink").fromContentBrowser(),t.preventDefault()}),i.addEventListener("click",function(t){var e=n.tooltip.linkRange;if(e){var r=n.quill.getFormat(e).target;n.quill.formatText(e.index,e.length,"target",r?"":"_blank","user")}t.preventDefault()})},e}(s),l='\n <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',f='\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';o.a.register("themes/scrivito",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"onClick",value:function(){var t=this;scrivito.openContentBrowser({selection:this._currentSelection(),selectionMode:"single"}).then(function(e){var n=e.isSelected,r=e.selection;n&&t._saveContentBrowserSelection(r)})}},{key:"_currentSelection",value:function(){var t=this._controller.getContent();return t?[t.id()]:[]}},{key:"_saveContentBrowserSelection",value:function(t){this._controller.setContent(t[0]||null)}}],[{key:"canEdit",value:function(t){return"reference"===t.type}}]),a(e,t),e}(h.a);e.a=p},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(139),o=n(338),a=n(229),s=n(230),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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,Object(a.a)(t);var e=new s.a(t,this._controller);this._setCurrentContent(),Object(o.a)(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(i.a);e.a=c},function(t,e,n){"use strict";function r(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:d(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function i(t){u(t)}function o(t){h(t.jQueryElement())}function a(t){v(t.jQueryElement())}function s(t){u(t).done(function(){return t.trigger("scrivito_editors:blur")}),p(t),h(t.jQueryElement())}function u(t){var e=c(t.jQueryElement());return t.save(e).done(function(){return t.trigger("scrivito_editors:save")})}function c(t){return l(t),t[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,"")}function l(t){var e=f(t),n=e.not(t);n.length>0&&(n.remove(),t.text(e.text()))}function f(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings();return!e||n.filter(e).length<e.length?t.data("scrivito_editors_siblings_before_edit",n):t.siblings().addBack().not(e)}function d(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function h(t){if(d(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)}}function p(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}function v(t){var e=document.getSelection();e.anchorNode&&e.focusNode&&(t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0]))}function y(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur(function(){return s(t)}).click(function(){return a(t)}).focus(function(){return o(t)}).keypress(function(e){return r(e,t)}).keyup(function(e){return r(e,t)}),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",function(){return i(t)}),h(e),e.on("click",function(t){e.attr("contenteditable","true"),l(e),t.timeStamp-e.data("scrivito_editors_last_click")>=m&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)})}var m=300;e.a=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Link",function(){return P}),n.d(e,"Obj",function(){return L}),n.d(e,"ObjSearch",function(){return I}),n.d(e,"Widget",function(){return D}),n.d(e,"createObjClass",function(){return q}),n.d(e,"createWidgetClass",function(){return R}),n.d(e,"getClass",function(){return M}),n.d(e,"provideObjClass",function(){return B}),n.d(e,"provideWidgetClass",function(){return F});var r=n(26);n.d(e,"Binary",function(){return r.a});var i=n(71);n.d(e,"FutureBinary",function(){return i.a});var o=n(218);n.d(e,"ObjFacetValue",function(){return o.a});var a=n(7);n.d(e,"load",function(){return a.a});var s=n(1);n.d(e,"ArgumentError",function(){return s.ArgumentError}),n.d(e,"ScrivitoError",function(){return s.ScrivitoError});var u=n(225);n.d(e,"configure",function(){return u.a});var c=n(137);n.d(e,"configureContentBrowser",function(){return c.a});var l=n(60);n.d(e,"currentPage",function(){return l.a}),n.d(e,"currentPageParams",function(){return l.c});var f=n(340);n.d(e,"withPage",function(){return f.a});var d=n(81);n.d(e,"finishLoading",function(){return d.a});var h=n(341);n.d(e,"isInPlaceEditingActive",function(){return h.a});var p=n(129);n.d(e,"navigateTo",function(){return p.a});var v=n(82);n.d(e,"provideEditingConfig",function(){return v.b});var y=n(342);n.d(e,"urlFor",function(){return y.a});var m=n(72);n.d(e,"useHistory",function(){return m.f});var b=n(343);n.d(e,"BackgroundImageTag",function(){return b.a});var g=n(344);n.d(e,"ChildListTag",function(){return g.a});var w=n(234);n.d(e,"ContentTag",function(){return w.a});var _=n(356);n.d(e,"CurrentPage",function(){return _.a});var k=n(358);n.d(e,"ImageTag",function(){return k.a});var O=n(232);n.d(e,"LinkTag",function(){return O.a});var E=n(360);n.d(e,"NotFoundErrorPage",function(){return E.a});var x=n(140);n.d(e,"WidgetTag",function(){return x.b});var C=n(14);n.d(e,"connect",function(){return C.a});var j=n(361);n.d(e,"provideComponent",function(){return j.a});var S=n(362);n.d(e,"registerComponent",function(){return S.a});var A=n(61),T=n(363);n.d(e,"_internal",function(){return T});var N=Object(A.a)(),P=N.Link,L=N.Obj,I=N.ObjSearch,D=N.Widget,q=N.createObjClass,R=N.createWidgetClass,M=N.getClass,B=N.provideObjClass,F=N.provideWidgetClass},function(t,e,n){"use strict";function r(t,e){return Object(i.f)(t,e)}e.a=r;var i=n(60)},function(t,e,n){"use strict";function r(){return"published"!==scrivito.currentWorkspaceId()&&(!!i.b&&i.b.isEditingMode())}e.a=r;var i=n(17)},function(t,e,n){"use strict";function r(t,e){f(t,e);var n=e||{},r=n.query,a=n.fragment,s=Object(i.c)(t),u=r?"?".concat(r):"",c=a?"#".concat(a):"";return Object(o.a)(s).concat(u).concat(c)}e.a=r;var i=n(22),o=n(136),a=n(24),s=n(39),u=n(59),c=a.a.union([u.d,u.b,u.a]),l=a.a.struct({query:a.a.maybe(a.a.String),fragment:a.a.maybe(a.a.String)}),f=Object(s.a)("urlFor",[["target",c],["options",a.a.maybe(l)]],{docPermalink:"js-sdk/urlFor"})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e=o(t),n=e.backgrounds,r=e.passThroughStyle,i=a(n);return Object(f.extend)(i,r)}function o(t){var e={backgrounds:[],passThroughStyle:{}};for(var n in t)if(0!==n.indexOf("background"))e.passThroughStyle[n]=t[n];else if("background"===n){var r=t[n];e.backgrounds=Object(f.isArray)(r)?r:[r]}return e}function a(t){var e=t.map(s);return{backgroundAttachment:Object(f.pluck)(e,"backgroundAttachment").join(", "),backgroundImage:Object(f.pluck)(e,"backgroundImage").join(", "),backgroundOrigin:Object(f.pluck)(e,"backgroundOrigin").join(", "),backgroundPosition:Object(f.pluck)(e,"backgroundPosition").join(", "),backgroundRepeat:Object(f.pluck)(e,"backgroundRepeat").join(", "),backgroundSize:Object(f.pluck)(e,"backgroundSize").join(", ")}}function s(t){if(u(t))return c(t.image);if(r(t.image,h.a))return l(t.image);if(Object(v.a)(t.image)){var e=Object(m.c)(t.image).get("blob","binary");if(e)return l(e)}return c("none")}function u(t){return Object(f.isString)(t.image)}function c(t){return{backgroundAttachment:"scroll",backgroundImage:t,backgroundOrigin:"padding-box",backgroundPosition:"0% 0%",backgroundRepeat:"repeat",backgroundSize:"auto"}}function l(t){return{backgroundAttachment:"scroll",backgroundImage:"url("+Object(y.a)(t).url()+")",backgroundOrigin:"padding-box",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}var f=n(0),d=(n.n(f),n(13)),h=(n.n(d),n(26)),p=n(14),v=n(226),y=n(231),m=n(22),b=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),g=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.render=function(){var t=this.props.style,e=this.props.tag||"div",n=Object(f.omit)(this.props,"style","tag");return d.createElement(e,g({},n,{style:i(t)}))},e.displayName="Scrivito.BackgroundImageTag",e}(d.Component);e.a=Object(p.a)(w)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");f(t.prototype,e&&e.prototype),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function p(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?y(t):e}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var m=n(87),b=n(0),g=(n.n(b),n(13)),w=n.n(g),_=n(60),k=n(14),O=n(345),E=n(348),x=function(t){function e(t){var n;return c(this,e),n=p(this,v(e).call(this,t)),n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(y(y(n))),n._onMouseOut=n._onMouseOut.bind(y(y(n))),n}return h(e,[{key:"render",value:function(){var t=this,e=this.props.parent||Object(_.a)();if(!e)return null;e=e._scrivitoPrivateContent;var n,r=Object(b.omit)(this.props,"parent","tag","renderChild");return Object(m.a)()&&(r.onMouseOver=this._onMouseOver,r.onMouseOut=this._onMouseOut,r["data-scrivito-private-child-list-path"]=!0,this.state.hasFocus&&(r.className="scrivito_active scrivito_entered ".concat(r.className)),n=w.a.createElement(E.a,{key:"menuMarker",parent:e})),w.a.createElement(this.props.tag,r,[n].concat(o(e.orderedChildren().map(function(e){return w.a.createElement(O.a,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),this.setState({hasFocus:!0})}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),this.setState({hasFocus:!1})}}]),l(e,t),e}(w.a.Component);x.displayName="Scrivito.ChildListTag",x.defaultProps={tag:"ul"},e.a=Object(k.a)(x)},function(t,e,n){"use strict";function r(t){var e=t.child,n=t.renderChild,r=Object(a.a)().appModelAccessor.wrapInAppClass(e);return n?n(r):o.a.createElement("li",null,o.a.createElement(u.a,{to:r},e.get("title","string")))}var i=n(13),o=n.n(i),a=n(61),s=n(14),u=n(232);r.displayName="Scrivito.ChildListTag.ChildItem",e.a=Object(s.a)(r)},function(t,e,n){"use strict";var r=n(24),i=n(347);n.d(e,"b",function(){return r.a}),n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";function r(t,e,n,r){return["Invalid ".concat(e," supplied to ").concat(n,", should be a ").concat(a.a.getTypeName(r),"."),"Detected errors (".concat(t.length,"):")].concat(t.map(function(t,e){return" ".concat(e+1,". ").concat(t.message)})).join("\n")}function i(t){return a.a.Object.is(t)?a.a.struct(t):t}function o(t,e){var n=i(t),o="subtype"===n.meta.kind;a.a.assert(a.a.isType(n),"Invalid argument type supplied to propTypes()");var s={},u=o?n.meta.type:n;if("struct"===u.meta.kind||"interface"===u.meta.kind){var c=u.meta.props;Object.keys(c).forEach(function(t){var e=c[t],n=function t(n,i,o){var s=n[i],u=a.a.validate(s,e);if(!u.isValid()){var c=r(u.errors,"prop ".concat(a.a.stringify(i)),o,e);t.displayName=c,a.a.fail(c)}};n.tcomb=e,s[t]=n}),e&&!1===e.strict||(s.__strict__=function(t,e,n){var r=[];for(var i in t)"__strict__"!==i&&"__subtype__"!==i&&t.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&r.push(i);if(r.length>0){var o=a.a.stringify(r);a.a.fail("Invalid additional prop(s):\n\n".concat(o,"\n\nsupplied to ").concat(n,"."))}})}else s.__generictype__=function(t,e,n){var i=a.a.validate(t,u);i.isValid()||a.a.fail(r(i.errors,"props",n,u))};return o&&(s.__subtype__=function(t,e,r){n.meta.predicate(t)||a.a.fail("Invalid props:\n\n ".concat(a.a.stringify(t),"\n\nsupplied to ").concat(r)+", should be a ".concat(a.a.getTypeName(n),"."))},s.__subtype__.predicate=n.meta.predicate),s}n.d(e,"a",function(){return s});var a=n(24),s=o},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(14)),m=n(17),b=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t=this;return p.a.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick},p.a.createElement("i",{className:"scrivito_icon"}),p.a.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this._menuMarker&&m.b.showChildListMenu(Object(v.findDOMNode)(this._menuMarker),this.props.parent.id())}}]),a(e,t),e}(p.a.Component);b.displayName="Scrivito.ChildListTag.MenuMarker",e.a=Object(y.a)(b)},function(t,e,n){"use strict";function r(t){return i(t.target,t.currentTarget,Object(s.a)(t))}function i(t,e,n){if(t===e)return null;if("A"===t.nodeName){var r=t.href;if(n||"_blank"===t.getAttribute("target"))return{openInNewWindow:r};var s=o(r);return Object(a.f)(s)?{openInCurrentWindow:s.resource()}:null}return i(t.parentNode,e,n)}e.a=r;var o=n(33),a=(n.n(o),n(63)),s=n(233)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(237),v=n.n(p),y=n(13),m=n.n(y),b=n(1),g=n(22),w=n(87),_=n(62),k=n(86),O=n(14),E=n(140),x=function(t){function e(t){var n;return a(this,e),n=f(this,h(e).call(this,t)),n.state={hasError:!1},n}return l(e,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"shouldComponentUpdate",value:function(t){return this.props.widget.equals(t.widget)}},{key:"getChildContext",value:function(){return o({},E.a,this.props.widget)}},{key:"render",value:function(){return this.state.hasError?Object(w.a)()?m.a.createElement(E.b,null,m.a.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")):m.a.createElement(E.b,null):m.a.createElement(C,{widget:this.props.widget})}}]),s(e,t),e}(m.a.Component),C=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){var t=Object(g.e)(Object(_.a)(),this.props.widget);return m.a.createElement(this._getAppWidgetComponent(),{widget:t})}},{key:"_getAppWidgetComponent",value:function(){var t=this.props.widget.objClass(),e=Object(k.a)(t);if(!e)throw new b.ArgumentError('No component registered for widget class "'.concat(t,'"'));return e}}]),s(e,t),e}(m.a.Component);x.displayName="Scrivito.ContentTag.WidgetContent",x.childContextTypes=o({},E.a,v.a.object),e.a=Object(O.a)(x)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(14)),a=n(141),s=n(238),u=n(227),c=n(17),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),f=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 l(e,t),e.prototype.render=function(){var t=this;return i.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd,draggable:!0},i.createElement("i",{className:"scrivito_icon"}),i.createElement("span",{className:"scrivito_editing_marker_title"},this._title()))},e.prototype._onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this._menuMarker){var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.showWidgetMenu(this._menuMarker,n,r)}},e.prototype._onDragStart=function(t){Object(s.a)(t);var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.onDragStart(n,r),this.props.setDragState(!0)},e.prototype._onDragEnd=function(){c.b.onDragEnd(),this.props.setDragState(!1)},e.prototype._title=function(){var t=Object(a.a)(this.props.widget),e=t.objId,n=t.widgetId;return Object(u.a)(e,n)},e.displayName="Scrivito.ContentTag.MenuMarker",e}(i.Component);e.a=Object(o.a)(f)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(141)),m=n(14),b=n(17),g=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"componentDidMount",value:function(){if(this._widgetPlaceholder){var t=Object(v.findDOMNode)(this._widgetPlaceholder),e=Object(y.a)(this.props.field.container()),n=e.objId,r=e.widgetId,i=this.props.field.name();b.b.registerEmptyWidgetlistDropZoneInDom({domNode:t,objId:n,widgetId:r,attributeName:i})}}},{key:"render",value:function(){var t=this;return p.a.createElement("div",{ref:function(e){return t._widgetPlaceholder=e},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this._onClick})}},{key:"_onClick",value:function(t){if(t.preventDefault(),t.stopPropagation(),this._widgetPlaceholder){var e=this.props.field.name(),n=Object(y.a)(this.props.field.container()),r=n.objId,i=n.widgetId;b.b.showWidgetlistMenu(Object(v.findDOMNode)(this._widgetPlaceholder),{objId:r,widgetId:i,attributeName:e,mousePosition:{x:t.pageX,y:t.pageY}})}}}]),a(e,t),e}(p.a.Component);g.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",e.a=Object(m.a)(g)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(85)),a=(n.n(o),n(0)),s=(n.n(a),n(236)),u=n(18),c=n(14),l=n(354),f=n(355),d=n(4),h=n(135),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y=function(t){function e(e){var n=t.call(this,e)||this;return n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1,n._getContent=n._getContent.bind(n),n._setContent=n._setContent.bind(n),n._setDomMode=n._setDomMode.bind(n),n}return p(e,t),e.prototype.componentWillMount=function(){var t=this,e=this.props.editorClass;if(e){var n={getContent:this._getContent,setContent:this._setContent,setDomMode:this._setDomMode};this._editor=new e({controller:n}),this._editorWillBeActivated();var r=this._getContent();this._unsubscribe=d.g(function(){var e=t._getContent();if(!Object(f.a)(r,e)){if(r=e,t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()}})}},e.prototype.componentDidMount=function(){"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=this;if("Replace"===this.state.domMode)return i.createElement(this.props.tag,v({},Object(a.omit)(this.props.customProps,"children"),{ref:function(e){t._editorComponent=e}}));var e,n=this._editor;n&&n.onClick&&(e=function(t){return n.onClick(new l.a(t))});var r={ref:function(e){t._editorComponent=e},children:this.props.children,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:e};return i.createElement(s.a,r)},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(o.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(u.a)(function(){var e=t._field.get();if("html"===t._field.type()){var n=e;e=Object(h.a)(n)}return e}).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.displayName="Scrivito.ContentTag.Editor",e}(i.Component);e.a=Object(c.a)(y)},function(t,e,n){"use strict";var r=function(){function t(t){this._internalEvent=t}return t.prototype.preventDefault=function(){this._internalEvent.preventDefault()},t.prototype.stopPropagation=function(){this._internalEvent.stopPropagation()},t}();e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return!!o(t,e)||!(!Array.isArray(t)||!Array.isArray(e))&&(t.length===e.length&&Object(a.every)(Object(a.zip)(t,e),function(t){return o(t[0],t[1])}))}function o(t,e){return!Array.isArray(t)&&!Array.isArray(e)&&(r(t,s.a)?t.equals(e):r(t,u.default)?t.equals(e):r(t,l.a)?t.equals(e):r(t,c.a)?t.equals(e):Object(a.isEqual)(t,e))}e.a=i;var a=n(0),s=(n.n(a),n(26)),u=n(3),c=n(34),l=n(32)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(13),p=n.n(h),v=n(60),y=n(357),m=n(1),b=n(86),g=n(14),w=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"componentDidMount",value:function(){Object(y.a)()}},{key:"componentWillUnmount",value:function(){Object(y.b)()}},{key:"render",value:function(){var t=Object(v.a)(),e=Object(v.c)();if(!t)return null;var n=t.objClass(),r=Object(b.a)(n);if(!r)throw new m.ArgumentError('No component registered for obj class "'.concat(n,'"'));return p.a.createElement(r,{page:t,params:e})}}]),a(e,t),e}(p.a.Component);w.displayName="Scrivito.CurrentPage",e.a=Object(g.a)(w)},function(t,e,n){"use strict";function r(){a+=1,Object(o.a)()}function i(){0!==a&&0===(a-=1)&&Object(o.b)()}e.a=r,e.b=i;var o=n(72),a=0},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(){return i=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},i.apply(this,arguments)}function o(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function a(t,e){if(!o(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(13),v=n.n(p),y=n(0),m=(n.n(y),n(26)),b=n(234),g=n(42),w=n(14),_=n(359),k=n(231),O=n(1),E=n(37),x=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=Object(y.omit)(this.props,"content","attribute");if(o(this.props.content,m.a))return v.a.createElement("img",i({src:Object(k.a)(this.props.content).url()},t));var e=this._getBinary();if(void 0===e)return null;var n;return null===e?(n=_.a,t["data-scrivito-image-placeholder"]=!0):n=Object(k.a)(e).url(),v.a.createElement(b.a,i({attribute:this.props.attribute,content:this.props.content,tag:"img",src:n},t))}},{key:"_getBinary",value:function(){var t=g.a.forInstance(this.props.content);if(t){var e=t.attributes[this.props.attribute];if(!e)return void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object missing attribute "'.concat(this.props.attribute,'".')));var n=e[0];return"binary"===n?this.props.content.get(this.props.attribute):"reference"===n?this._getReferencedBinary():void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object, whose attribute "'.concat(this.props.attribute,'"')+' is of unexpected type "'.concat(n,'".')+' Valid attribute types are "binary" and "reference".'))}}},{key:"_getReferencedBinary",value:function(){var t=this.props.content.get(this.props.attribute);if(t){var e=t.get("blob");if(e)return e}return null}}]),s(e,t),e}(v.a.Component);x.displayName="Scrivito.ImageTag",x.defaultProps={attribute:"blob"},e.a=Object(w.a)(x)},function(t,e,n){"use strict";e.a="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"},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(60)),a=n(1),s=n(14),u=function(t){var e=t.children;return r(Object(o.b)(),a.CurrentPageNotFoundError)?e?i.createElement("div",null,e):i.createElement("div",null,i.createElement("h1",null,"The page you were looking for doesn't exist."),i.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};u.displayName="Scrivito.NotFoundErrorPage",e.a=Object(s.a)(u)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t,e){y(e),m(e),g(e)&&(e.displayName=t);var n=Object(x.a)(e),r=b(n);Object(E.c)(t,r)}function y(t){if("function"!=typeof t)throw new O.ArgumentError("Scrivito.provideComponent expected a valid React component"+", but received ".concat(Object(C.a)(t)))}function m(t){if(t.propTypes)throw new O.ArgumentError("Custom props are not allowed when providing a component.")}function b(t){var e=function(t){function e(){return o(this,e),l(this,p(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(this.props.widget){var t=d(p(e.prototype),"render",this).call(this);return Object(k.isArray)(t)||Object(k.isBoolean)(t)||Object(k.isNumber)(t)||Object(k.isString)(t)||null===t||t&&t.type!==j.b?_.a.createElement(j.b,{children:t}):t}return d(p(e.prototype),"render",this).call(this)}}]),a(e,t),e}(t);return e.displayName=Object(S.a)(t),e}function g(t){return!(t.displayName||t.name&&"_class"!==t.name)}e.a=v;var w=n(13),_=n.n(w),k=n(0),O=(n.n(k),n(1)),E=n(86),x=n(14),C=n(41),j=n(140),S=n(122)},function(t,e,n){"use strict";function r(t,e){Object(o.d)(t,Object(i.a)(e))}e.a=r;var i=n(14),o=n(86)},function(t,e,n){"use strict";function r(){o.a.enableForceVerification()}function i(){return o.a.currentPublicAuthorizationState()}Object.defineProperty(e,"__esModule",{value:!0}),e.enableForceVerification=r,e.currentPublicAuthorizationState=i;var o=n(21),a=n(240);n.d(e,"alwaysShowOptionMarkers",function(){return a.a});var s=n(101);n.d(e,"isFetchingActive",function(){return s.b})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(289),i=n(290),o=n(161),a=n(320),s=n(339);window.Scrivito=s;var u=Object(o.a)();u?u.installRailsApi():Object(r.a)(),Object(i.a)(u),Object(a.a)()}]);
86
+ var Z=n(327),G=n(328),X=n(329);e.Buffer=o,e.SlowBuffer=v,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return a(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,a=Math.min(n,r);i<a;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!X(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var a=t[n];if(!o.isBuffer(a))throw new TypeError('"list" argument must be an Array of Buffers');a.copy(r,i),i+=a.length}return r},o.byteLength=y,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)b(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)b(this,e,e+3),b(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)b(this,e,e+7),b(this,e+1,e+6),b(this,e+2,e+5),b(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?S(this,0,t):m.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.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(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var a=i-r,s=n-e,u=Math.min(a,s),c=this.slice(r,i),l=t.slice(e,n),f=0;f<u;++f)if(c[f]!==l[f]){a=c[f],s=l[f];break}return a<s?-1:s<a?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return g(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return g(this,t,e,n,!1)},o.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(r){case"hex":return _(this,t,e,n);case"utf8":case"utf-8":return k(this,t,e,n);case"ascii":return O(this,t,e,n);case"latin1":case"binary":return E(this,t,e,n);case"base64":return x(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var J=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var a=0;a<i;++a)r[a]=this[a+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),G.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),G.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){D(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):R(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=0,a=1,s=0;for(this[e]=255&t;++o<n&&(a*=256);)t<0&&0===s&&0!==this[e+o-1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);D(this,t,e,n,i-1,-i)}var o=n-1,a=1,s=0;for(this[e+o]=255&t;--o>=0&&(a*=256);)t<0&&0===s&&0!==this[e+o+1]&&(s=1),this[e+o]=(t/a>>0)-s&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):q(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):q(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):R(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||D(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):R(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return F(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return F(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,a=r-n;if(this===t&&n<e&&e<r)for(i=a-1;i>=0;--i)t[i+e]=this[i+n];else if(a<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<a;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+a),e);return a},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var a;if("number"==typeof t)for(a=e;a<n;++a)this[a]=t;else{var s=o.isBuffer(t)?t:W(new o(t,r).toString()),u=s.length;for(a=0;a<n-e;++a)this[a+e]=s[a%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n(40))},function(t,e,n){"use strict";function r(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),[n,n===e?0:4-n%4]}function i(t){var e=r(t),n=e[0],i=e[1];return 3*(n+i)/4-i}function o(t,e,n){return 3*(e+n)/4-n}function a(t){for(var e,n=r(t),i=n[0],a=n[1],s=new d(o(t,i,a)),u=0,c=a>0?i-4:i,l=0;l<c;l+=4)e=f[t.charCodeAt(l)]<<18|f[t.charCodeAt(l+1)]<<12|f[t.charCodeAt(l+2)]<<6|f[t.charCodeAt(l+3)],s[u++]=e>>16&255,s[u++]=e>>8&255,s[u++]=255&e;return 2===a&&(e=f[t.charCodeAt(l)]<<2|f[t.charCodeAt(l+1)]>>4,s[u++]=255&e),1===a&&(e=f[t.charCodeAt(l)]<<10|f[t.charCodeAt(l+1)]<<4|f[t.charCodeAt(l+2)]>>2,s[u++]=e>>8&255,s[u++]=255&e),s}function s(t){return l[t>>18&63]+l[t>>12&63]+l[t>>6&63]+l[63&t]}function u(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16&16711680)+(t[o+1]<<8&65280)+(255&t[o+2]),i.push(s(r));return i.join("")}function c(t){for(var e,n=t.length,r=n%3,i=[],o=0,a=n-r;o<a;o+=16383)i.push(u(t,o,o+16383>a?a:o+16383));return 1===r?(e=t[n-1],i.push(l[e>>2]+l[e<<4&63]+"==")):2===r&&(e=(t[n-2]<<8)+t[n-1],i.push(l[e>>10]+l[e>>4&63]+l[e<<2&63]+"=")),i.join("")}e.byteLength=i,e.toByteArray=a,e.fromByteArray=c;for(var l=[],f=[],d="undefined"!=typeof Uint8Array?Uint8Array:Array,h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",p=0,v=h.length;p<v;++p)l[p]=h[p],f[h.charCodeAt(p)]=p;f["-".charCodeAt(0)]=62,f["_".charCodeAt(0)]=63},function(t,e){e.read=function(t,e,n,r,i){var o,a,s=8*i-r-1,u=(1<<s)-1,c=u>>1,l=-7,f=n?i-1:0,d=n?-1:1,h=t[e+f];for(f+=d,o=h&(1<<-l)-1,h>>=-l,l+=s;l>0;o=256*o+t[e+f],f+=d,l-=8);for(a=o&(1<<-l)-1,o>>=-l,l+=r;l>0;a=256*a+t[e+f],f+=d,l-=8);if(0===o)o=1-c;else{if(o===u)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,r),o-=c}return(h?-1:1)*a*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var a,s,u,c=8*o-i-1,l=(1<<c)-1,f=l>>1,d=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:o-1,p=r?1:-1,v=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(s=isNaN(e)?1:0,a=l):(a=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-a))<1&&(a--,u*=2),e+=a+f>=1?d/u:d*Math.pow(2,1-f),e*u>=2&&(a++,u/=2),a+f>=l?(s=0,a=l):a+f>=1?(s=(e*u-1)*Math.pow(2,i),a+=f):(s=e*Math.pow(2,f-1)*Math.pow(2,i),a=0));i>=8;t[n+h]=255&s,h+=p,s/=256,i-=8);for(a=a<<i|s,c+=i;c>0;t[n+h]=255&a,h+=p,a/=256,c-=8);t[n+h-p]|=128*v}},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){"use strict";function r(t){return"\n"===t.getText()?"":t.root.innerHTML}e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){s.a.register({"formats/target":o()}),s.a.register(c,!0)}function o(){var t=s.a.import("parchment");return new t.Attributor.Attribute("target","target",{scope:t.Scope.INLINE})}e.a=i;var a=n(73),s=n.n(a),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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"))},function(t,e,n){"use strict";function r(t,e,n){t.linkRange=e,t.root.setAttribute("data-svt-target",n)}function i(t){t.root.setAttribute("data-mode",""),t.root.setAttribute("data-svt-target",""),delete t.linkRange}var o=n(73),a=n.n(o),s=function(){function t(t){t.on("selection-change",function(e){if(e){var n=t.getModule("scrivitoApi").getTooltip(),o=t.getFormat(e).link,a=t.getModule("scrivitoApi").getLinkRange(e);if(a&&o){r(n,a,t.getFormat(a).target||"")}else i(n)}}),t.on("text-change",function(){var e=t.getModule("scrivitoApi").getTooltip(),n=e.linkRange;n&&e.root.setAttribute("data-svt-target",t.getFormat(n).target||"")})}return t}();a.a.register("modules/scrivitoLinkTooltip",s)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(){a.a.register("modules/scrivitoApi",l)}e.a=i;var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=a.a.import("core/module"),c=a.a.import("formats/link"),l=function(t){function e(e){var n=t.call(this,e)||this;return n.getTooltip=function(){return e.theme.tooltip},n.getLinkRange=function(t){if(t){var n=e.scroll.scroll.descendant(c,t.index),r=n[0],i=n[1];return r?{index:t.index-i,length:r.length()}:void 0}},n}return s(e,t),e}(u)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e={selection:[],selectionMode:"single"};scrivito.openContentBrowser(e).then(function(e){if(e.selection&&e.selection.length){var n=e.selection[0];t.getModule("scrivitoApi").getTooltip().edit("link","/"+n)}})}var o=n(73),a=n.n(o),s=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),u=a.a.import("core/module"),c=function(t){function e(e){var n=t.call(this,e)||this;return n.fromContentBrowser=function(){return i(e)},n}return s(e,t),e}(u);a.a.register("modules/scrivitoInternalLink",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(73),o=n.n(i),a=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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=o.a.import("themes/bubble"),u=o.a.import("themes/snow"),c=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.snowTheme=new u(e,n),r}return a(e,t),e.prototype.extendToolbar=function(e){var n=this;this.snowTheme.extendToolbar(e),this.snowTheme.tooltip.root.classList.add("ql-svt-tooltip-snow"),t.prototype.extendToolbar.call(this,e),this.tooltip=this.snowTheme.tooltip,this.tooltip.textbox.setAttribute("data-link","Paste or type a link"),this.tooltip.textbox.insertAdjacentHTML("beforebegin",l),this.tooltip.textbox.insertAdjacentHTML("afterend",f);var r=this.tooltip.root.querySelector("a.ql-svt-browse"),i=this.tooltip.root.querySelector("a.ql-svt-target");r.addEventListener("click",function(t){n.quill.getModule("scrivitoInternalLink").fromContentBrowser(),t.preventDefault()}),i.addEventListener("click",function(t){var e=n.tooltip.linkRange;if(e){var r=n.quill.getFormat(e).target;n.quill.formatText(e.index,e.length,"target",r?"":"_blank","user")}t.preventDefault()})},e}(s),l='\n <a class="ql-svt ql-svt-browse" title="Browse">\n <i class="scrivito_icon scrivito_icon_content_browser"></i>\n </a>\n',f='\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';o.a.register("themes/scrivito",c)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(139),p=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"onClick",value:function(){var t=this;scrivito.openContentBrowser({selection:this._currentSelection(),selectionMode:"single"}).then(function(e){var n=e.isSelected,r=e.selection;n&&t._saveContentBrowserSelection(r)})}},{key:"_currentSelection",value:function(){var t=this._controller.getContent();return t?[t.id()]:[]}},{key:"_saveContentBrowserSelection",value:function(t){this._controller.setContent(t[0]||null)}}],[{key:"canEdit",value:function(t){return"reference"===t.type}}]),a(e,t),e}(h.a);e.a=p},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(139),o=n(338),a=n(229),s=n(230),u=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),c=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return u(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,Object(a.a)(t);var e=new s.a(t,this._controller);this._setCurrentContent(),Object(o.a)(e)},e.prototype.editorDomWasUnmounted=function(){this._currentDomNode=void 0},e.prototype._setCurrentContent=function(){this._currentDomNode&&(this._currentDomNode.textContent=this._controller.getContent())},e}(i.a);e.a=c},function(t,e,n){"use strict";function r(t,e){var n=e.jQueryElement();switch(t.keyCode||t.which){case 13:d(n)||(t.preventDefault(),n.blur());break;case 27:t.stopPropagation(),n.blur()}}function i(t){u(t)}function o(t){h(t.jQueryElement())}function a(t){v(t.jQueryElement())}function s(t){u(t).done(function(){return t.trigger("scrivito_editors:blur")}),p(t),h(t.jQueryElement())}function u(t){var e=c(t.jQueryElement());return t.save(e).done(function(){return t.trigger("scrivito_editors:save")})}function c(t){return l(t),t[0].innerText.replace(/\r\n/g,"\n").replace(/\n+$/,"")}function l(t){var e=f(t),n=e.not(t);n.length>0&&(n.remove(),t.text(e.text()))}function f(t){var e=t.data("scrivito_editors_siblings_before_edit"),n=t.siblings();return!e||n.filter(e).length<e.length?t.data("scrivito_editors_siblings_before_edit",n):t.siblings().addBack().not(e)}function d(t){return!0===t.data("scrivitoEditorsMultiline")||!1!==t.data("scrivitoEditorsMultiline")&&t.css("white-space").match(/pre/)}function h(t){if(d(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)}}function p(t){var e=t.jQueryElement();e.data("scrivito_editors_prepared_for_editing",!1),e.text(t.content())}function v(t){var e=document.getSelection();e.anchorNode&&e.focusNode&&(t.find(e.anchorNode).addBack(e.anchorNode).length&&t.find(e.focusNode).addBack(e.focusNode).length||e.selectAllChildren(t[0]))}function y(t){var e=t.jQueryElement();e.attr("contenteditable","true").blur(function(){return s(t)}).click(function(){return a(t)}).focus(function(){return o(t)}).keypress(function(e){return r(e,t)}).keyup(function(e){return r(e,t)}),"false"!==e.attr("data-scrivito-editors-autosave")&&e.on("cut input keypress keyup paste",function(){return i(t)}),h(e),e.on("click",function(t){e.attr("contenteditable","true"),l(e),t.timeStamp-e.data("scrivito_editors_last_click")>=m&&t.preventDefault(),e.data("scrivito_editors_last_click",t.timeStamp)})}var m=300;e.a=y},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"Link",function(){return P}),n.d(e,"Obj",function(){return L}),n.d(e,"ObjSearch",function(){return I}),n.d(e,"Widget",function(){return D}),n.d(e,"createObjClass",function(){return q}),n.d(e,"createWidgetClass",function(){return R}),n.d(e,"getClass",function(){return M}),n.d(e,"provideObjClass",function(){return B}),n.d(e,"provideWidgetClass",function(){return F});var r=n(26);n.d(e,"Binary",function(){return r.a});var i=n(71);n.d(e,"FutureBinary",function(){return i.a});var o=n(218);n.d(e,"ObjFacetValue",function(){return o.a});var a=n(7);n.d(e,"load",function(){return a.a});var s=n(1);n.d(e,"ArgumentError",function(){return s.ArgumentError}),n.d(e,"ScrivitoError",function(){return s.ScrivitoError});var u=n(225);n.d(e,"configure",function(){return u.a});var c=n(137);n.d(e,"configureContentBrowser",function(){return c.a});var l=n(60);n.d(e,"currentPage",function(){return l.a}),n.d(e,"currentPageParams",function(){return l.c});var f=n(340);n.d(e,"withPage",function(){return f.a});var d=n(81);n.d(e,"finishLoading",function(){return d.a});var h=n(341);n.d(e,"isInPlaceEditingActive",function(){return h.a});var p=n(129);n.d(e,"navigateTo",function(){return p.a});var v=n(82);n.d(e,"provideEditingConfig",function(){return v.b});var y=n(342);n.d(e,"urlFor",function(){return y.a});var m=n(72);n.d(e,"useHistory",function(){return m.f});var b=n(343);n.d(e,"BackgroundImageTag",function(){return b.a});var g=n(344);n.d(e,"ChildListTag",function(){return g.a});var w=n(234);n.d(e,"ContentTag",function(){return w.a});var _=n(356);n.d(e,"CurrentPage",function(){return _.a});var k=n(358);n.d(e,"ImageTag",function(){return k.a});var O=n(232);n.d(e,"LinkTag",function(){return O.a});var E=n(360);n.d(e,"NotFoundErrorPage",function(){return E.a});var x=n(140);n.d(e,"WidgetTag",function(){return x.b});var C=n(14);n.d(e,"connect",function(){return C.a});var j=n(361);n.d(e,"provideComponent",function(){return j.a});var S=n(362);n.d(e,"registerComponent",function(){return S.a});var A=n(61),T=n(363);n.d(e,"_internal",function(){return T});var N=Object(A.a)(),P=N.Link,L=N.Obj,I=N.ObjSearch,D=N.Widget,q=N.createObjClass,R=N.createWidgetClass,M=N.getClass,B=N.provideObjClass,F=N.provideWidgetClass},function(t,e,n){"use strict";function r(t,e){return Object(i.f)(t,e)}e.a=r;var i=n(60)},function(t,e,n){"use strict";function r(){return"published"!==scrivito.currentWorkspaceId()&&(!!i.b&&i.b.isEditingMode())}e.a=r;var i=n(17)},function(t,e,n){"use strict";function r(t,e){f(t,e);var n=e||{},r=n.query,a=n.fragment,s=Object(i.c)(t),u=r?"?".concat(r):"",c=a?"#".concat(a):"";return Object(o.a)(s).concat(u).concat(c)}e.a=r;var i=n(22),o=n(136),a=n(24),s=n(39),u=n(59),c=a.a.union([u.d,u.b,u.a]),l=a.a.struct({query:a.a.maybe(a.a.String),fragment:a.a.maybe(a.a.String)}),f=Object(s.a)("urlFor",[["target",c],["options",a.a.maybe(l)]],{docPermalink:"js-sdk/urlFor"})},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){var e=o(t),n=e.backgrounds,r=e.passThroughStyle,i=a(n);return Object(f.extend)(i,r)}function o(t){var e={backgrounds:[],passThroughStyle:{}};for(var n in t)if(0!==n.indexOf("background"))e.passThroughStyle[n]=t[n];else if("background"===n){var r=t[n];e.backgrounds=Object(f.isArray)(r)?r:[r]}return e}function a(t){var e=t.map(s);return{backgroundAttachment:Object(f.pluck)(e,"backgroundAttachment").join(", "),backgroundImage:Object(f.pluck)(e,"backgroundImage").join(", "),backgroundOrigin:Object(f.pluck)(e,"backgroundOrigin").join(", "),backgroundPosition:Object(f.pluck)(e,"backgroundPosition").join(", "),backgroundRepeat:Object(f.pluck)(e,"backgroundRepeat").join(", "),backgroundSize:Object(f.pluck)(e,"backgroundSize").join(", ")}}function s(t){if(u(t))return c(t.image);if(r(t.image,h.a))return l(t.image);if(Object(v.a)(t.image)){var e=Object(m.c)(t.image).get("blob","binary");if(e)return l(e)}return c("none")}function u(t){return Object(f.isString)(t.image)}function c(t){return{backgroundAttachment:"scroll",backgroundImage:t,backgroundOrigin:"padding-box",backgroundPosition:"0% 0%",backgroundRepeat:"repeat",backgroundSize:"auto"}}function l(t){return{backgroundAttachment:"scroll",backgroundImage:"url("+Object(y.a)(t).url()+")",backgroundOrigin:"padding-box",backgroundPosition:"center center",backgroundRepeat:"no-repeat",backgroundSize:"cover"}}var f=n(0),d=(n.n(f),n(13)),h=(n.n(d),n(26)),p=n(14),v=n(226),y=n(231),m=n(22),b=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),g=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},w=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return b(e,t),e.prototype.render=function(){var t=this.props.style,e=this.props.tag||"div",n=Object(f.omit)(this.props,"style","tag");return d.createElement(e,g({},n,{style:i(t)}))},e.displayName="Scrivito.BackgroundImageTag",e}(d.Component);e.a=Object(p.a)(w)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t){return u(t)||s(t)||a()}function a(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function s(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)}function u(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}}function c(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function l(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");f(t.prototype,e&&e.prototype),e&&f(t,e)}function f(t,e){return(f=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function h(t,e,n){return e&&d(t.prototype,e),n&&d(t,n),t}function p(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?y(t):e}function v(t){return(v=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function y(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var m=n(87),b=n(0),g=(n.n(b),n(13)),w=n.n(g),_=n(60),k=n(14),O=n(345),E=n(348),x=function(t){function e(t){var n;return c(this,e),n=p(this,v(e).call(this,t)),n.state={hasFocus:!1},n._onMouseOver=n._onMouseOver.bind(y(y(n))),n._onMouseOut=n._onMouseOut.bind(y(y(n))),n}return h(e,[{key:"render",value:function(){var t=this,e=this.props.parent||Object(_.a)();if(!e)return null;e=e._scrivitoPrivateContent;var n,r=Object(b.omit)(this.props,"parent","tag","renderChild");return Object(m.a)()&&(r.onMouseOver=this._onMouseOver,r.onMouseOut=this._onMouseOut,r["data-scrivito-private-child-list-path"]=!0,this.state.hasFocus&&(r.className="scrivito_active scrivito_entered ".concat(r.className)),n=w.a.createElement(E.a,{key:"menuMarker",parent:e})),w.a.createElement(this.props.tag,r,[n].concat(o(e.orderedChildren().map(function(e){return w.a.createElement(O.a,{key:e.id(),child:e,renderChild:t.props.renderChild})}))))}},{key:"_onMouseOver",value:function(t){t.stopPropagation(),this.setState({hasFocus:!0})}},{key:"_onMouseOut",value:function(t){t.stopPropagation(),this.setState({hasFocus:!1})}}]),l(e,t),e}(w.a.Component);x.displayName="Scrivito.ChildListTag",x.defaultProps={tag:"ul"},e.a=Object(k.a)(x)},function(t,e,n){"use strict";function r(t){var e=t.child,n=t.renderChild,r=Object(a.a)().appModelAccessor.wrapInAppClass(e);return n?n(r):o.a.createElement("li",null,o.a.createElement(u.a,{to:r},e.get("title","string")))}var i=n(13),o=n.n(i),a=n(61),s=n(14),u=n(232);r.displayName="Scrivito.ChildListTag.ChildItem",e.a=Object(s.a)(r)},function(t,e,n){"use strict";var r=n(24),i=n(347);n.d(e,"b",function(){return r.a}),n.d(e,"a",function(){return i.a})},function(t,e,n){"use strict";function r(t,e,n,r){return["Invalid ".concat(e," supplied to ").concat(n,", should be a ").concat(a.a.getTypeName(r),"."),"Detected errors (".concat(t.length,"):")].concat(t.map(function(t,e){return" ".concat(e+1,". ").concat(t.message)})).join("\n")}function i(t){return a.a.Object.is(t)?a.a.struct(t):t}function o(t,e){var n=i(t),o="subtype"===n.meta.kind;a.a.assert(a.a.isType(n),"Invalid argument type supplied to propTypes()");var s={},u=o?n.meta.type:n;if("struct"===u.meta.kind||"interface"===u.meta.kind){var c=u.meta.props;Object.keys(c).forEach(function(t){var e=c[t],n=function t(n,i,o){var s=n[i],u=a.a.validate(s,e);if(!u.isValid()){var c=r(u.errors,"prop ".concat(a.a.stringify(i)),o,e);t.displayName=c,a.a.fail(c)}};n.tcomb=e,s[t]=n}),e&&!1===e.strict||(s.__strict__=function(t,e,n){var r=[];for(var i in t)"__strict__"!==i&&"__subtype__"!==i&&t.hasOwnProperty(i)&&!c.hasOwnProperty(i)&&r.push(i);if(r.length>0){var o=a.a.stringify(r);a.a.fail("Invalid additional prop(s):\n\n".concat(o,"\n\nsupplied to ").concat(n,"."))}})}else s.__generictype__=function(t,e,n){var i=a.a.validate(t,u);i.isValid()||a.a.fail(r(i.errors,"props",n,u))};return o&&(s.__subtype__=function(t,e,r){n.meta.predicate(t)||a.a.fail("Invalid props:\n\n ".concat(a.a.stringify(t),"\n\nsupplied to ").concat(r)+", should be a ".concat(a.a.getTypeName(n),"."))},s.__subtype__.predicate=n.meta.predicate),s}n.d(e,"a",function(){return s});var a=n(24),s=o},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(14)),m=n(17),b=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"render",value:function(){var t=this;return p.a.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick},p.a.createElement("i",{className:"scrivito_icon"}),p.a.createElement("span",{className:"scrivito_editing_marker_title"},this.props.parent.objClass()))}},{key:"_onClick",value:function(t){t.preventDefault(),t.stopPropagation(),this._menuMarker&&m.b.showChildListMenu(Object(v.findDOMNode)(this._menuMarker),this.props.parent.id())}}]),a(e,t),e}(p.a.Component);b.displayName="Scrivito.ChildListTag.MenuMarker",e.a=Object(y.a)(b)},function(t,e,n){"use strict";function r(t){return i(t.target,t.currentTarget,Object(s.a)(t))}function i(t,e,n){if(t===e)return null;if("A"===t.nodeName){var r=t.href,s=o(r);return Object(a.f)(s)?n||"_blank"===t.getAttribute("target")?{openInNewWindow:r}:{openInCurrentWindow:s.resource()}:null}return i(t.parentNode,e,n)}e.a=r;var o=n(33),a=(n.n(o),n(63)),s=n(233)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function a(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(237),v=n.n(p),y=n(13),m=n.n(y),b=n(1),g=n(22),w=n(87),_=n(62),k=n(86),O=n(14),E=n(140),x=function(t){function e(t){var n;return a(this,e),n=f(this,h(e).call(this,t)),n.state={hasError:!1},n}return l(e,[{key:"componentDidCatch",value:function(){this.setState({hasError:!0})}},{key:"shouldComponentUpdate",value:function(t){return this.props.widget.equals(t.widget)}},{key:"getChildContext",value:function(){return o({},E.a,this.props.widget)}},{key:"render",value:function(){return this.state.hasError?Object(w.a)()?m.a.createElement(E.b,null,m.a.createElement("div",{className:"content_error"},"Widget could not be rendered due to application error.")):m.a.createElement(E.b,null):m.a.createElement(C,{widget:this.props.widget})}}]),s(e,t),e}(m.a.Component),C=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){var t=Object(g.e)(Object(_.a)(),this.props.widget);return m.a.createElement(this._getAppWidgetComponent(),{widget:t})}},{key:"_getAppWidgetComponent",value:function(){var t=this.props.widget.objClass(),e=Object(k.a)(t);if(!e)throw new b.ArgumentError('No component registered for widget class "'.concat(t,'"'));return e}}]),s(e,t),e}(m.a.Component);x.displayName="Scrivito.ContentTag.WidgetContent",x.childContextTypes=o({},E.a,v.a.object),e.a=Object(O.a)(x)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(14)),a=n(141),s=n(238),u=n(227),c=n(17),l=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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)}}(),f=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 l(e,t),e.prototype.render=function(){var t=this;return i.createElement("span",{ref:function(e){return t._menuMarker=e},className:"scrivito_editing_marker",onClick:this._onClick,onMouseOver:this.props.onMouseOver,onMouseOut:this.props.onMouseOut,onDragStart:this._onDragStart,onDragEnd:this._onDragEnd,draggable:!0},i.createElement("i",{className:"scrivito_icon"}),i.createElement("span",{className:"scrivito_editing_marker_title"},this._title()))},e.prototype._onClick=function(t){if(t.preventDefault(),t.stopPropagation(),this._menuMarker){var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.showWidgetMenu(this._menuMarker,n,r)}},e.prototype._onDragStart=function(t){Object(s.a)(t);var e=Object(a.a)(this.props.widget),n=e.objId,r=e.widgetId;c.b.onDragStart(n,r),this.props.setDragState(!0)},e.prototype._onDragEnd=function(){c.b.onDragEnd(),this.props.setDragState(!1)},e.prototype._title=function(){var t=Object(a.a)(this.props.widget),e=t.objId,n=t.widgetId;return Object(u.a)(e,n)},e.displayName="Scrivito.ContentTag.MenuMarker",e}(i.Component);e.a=Object(o.a)(f)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?d(t):e}function f(t){return(f=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var h=n(13),p=n.n(h),v=n(85),y=(n.n(v),n(141)),m=n(14),b=n(17),g=function(t){function e(t){var n;return o(this,e),n=l(this,f(e).call(this,t)),n._onClick=n._onClick.bind(d(d(n))),n}return c(e,[{key:"componentDidMount",value:function(){if(this._widgetPlaceholder){var t=Object(v.findDOMNode)(this._widgetPlaceholder),e=Object(y.a)(this.props.field.container()),n=e.objId,r=e.widgetId,i=this.props.field.name();b.b.registerEmptyWidgetlistDropZoneInDom({domNode:t,objId:n,widgetId:r,attributeName:i})}}},{key:"render",value:function(){var t=this;return p.a.createElement("div",{ref:function(e){return t._widgetPlaceholder=e},className:"scrivito_empty_widget_field","data-scrivito-private-dropzone":"true",onClick:this._onClick})}},{key:"_onClick",value:function(t){if(t.preventDefault(),t.stopPropagation(),this._widgetPlaceholder){var e=this.props.field.name(),n=Object(y.a)(this.props.field.container()),r=n.objId,i=n.widgetId;b.b.showWidgetlistMenu(Object(v.findDOMNode)(this._widgetPlaceholder),{objId:r,widgetId:i,attributeName:e,mousePosition:{x:t.pageX,y:t.pageY}})}}}]),a(e,t),e}(p.a.Component);g.displayName="Scrivito.ContentTag.WidgetlistPlaceholder",e.a=Object(m.a)(g)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(85)),a=(n.n(o),n(0)),s=(n.n(a),n(236)),u=n(18),c=n(14),l=n(354),f=n(355),d=n(4),h=n(135),p=this&&this.__extends||function(){var t=Object.setPrototypeOf||r({__proto__:[]},Array)&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[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=this&&this.__assign||Object.assign||function(t){for(var e,n=1,r=arguments.length;n<r;n++){e=arguments[n];for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])}return t},y=function(t){function e(e){var n=t.call(this,e)||this;return n._field=n.props.field,n.state={domMode:"None"},n._isPendingUpdate=!1,n._getContent=n._getContent.bind(n),n._setContent=n._setContent.bind(n),n._setDomMode=n._setDomMode.bind(n),n}return p(e,t),e.prototype.componentWillMount=function(){var t=this,e=this.props.editorClass;if(e){var n={getContent:this._getContent,setContent:this._setContent,setDomMode:this._setDomMode};this._editor=new e({controller:n}),this._editorWillBeActivated();var r=this._getContent();this._unsubscribe=d.g(function(){var e=t._getContent();if(!Object(f.a)(r,e)){if(r=e,t._isPendingUpdate&&t._pendingUpdateValue===e)return t._isPendingUpdate=!1,void(t._pendingUpdateValue=void 0);t._contentDidChange()}})}},e.prototype.componentDidMount=function(){"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=this;if("Replace"===this.state.domMode)return i.createElement(this.props.tag,v({},Object(a.omit)(this.props.customProps,"children"),{ref:function(e){t._editorComponent=e}}));var e,n=this._editor;n&&n.onClick&&(e=function(t){return n.onClick(new l.a(t))});var r={ref:function(e){t._editorComponent=e},children:this.props.children,customProps:this.props.customProps,field:this.props.field,key:this.state.domMode,tag:this.props.tag,onClick:e};return i.createElement(s.a,r)},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(o.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(u.a)(function(){var e=t._field.get();if("html"===t._field.type()){var n=e;e=Object(h.a)(n)}return e}).result},e.prototype._setContent=function(t){this._isPendingUpdate=!0,this._pendingUpdateValue=t,this._field.update(t)},e.displayName="Scrivito.ContentTag.Editor",e}(i.Component);e.a=Object(c.a)(y)},function(t,e,n){"use strict";var r=function(){function t(t){this._internalEvent=t}return t.prototype.preventDefault=function(){this._internalEvent.preventDefault()},t.prototype.stopPropagation=function(){this._internalEvent.stopPropagation()},t}();e.a=r},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t,e){return!!o(t,e)||!(!Array.isArray(t)||!Array.isArray(e))&&(t.length===e.length&&Object(a.every)(Object(a.zip)(t,e),function(t){return o(t[0],t[1])}))}function o(t,e){return!Array.isArray(t)&&!Array.isArray(e)&&(r(t,s.a)?t.equals(e):r(t,u.default)?t.equals(e):r(t,l.a)?t.equals(e):r(t,c.a)?t.equals(e):Object(a.isEqual)(t,e))}e.a=i;var a=n(0),s=(n.n(a),n(26)),u=n(3),c=n(34),l=n(32)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t){return(d=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var h=n(13),p=n.n(h),v=n(60),y=n(357),m=n(1),b=n(86),g=n(14),w=function(t){function e(){return o(this,e),l(this,d(e).apply(this,arguments))}return c(e,[{key:"componentDidMount",value:function(){Object(y.a)()}},{key:"componentWillUnmount",value:function(){Object(y.b)()}},{key:"render",value:function(){var t=Object(v.a)(),e=Object(v.c)();if(!t)return null;var n=t.objClass(),r=Object(b.a)(n);if(!r)throw new m.ArgumentError('No component registered for obj class "'.concat(n,'"'));return p.a.createElement(r,{page:t,params:e})}}]),a(e,t),e}(p.a.Component);w.displayName="Scrivito.CurrentPage",e.a=Object(g.a)(w)},function(t,e,n){"use strict";function r(){a+=1,Object(o.a)()}function i(){0!==a&&0===(a-=1)&&Object(o.b)()}e.a=r,e.b=i;var o=n(72),a=0},function(t,e,n){"use strict";function r(t){return(r="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})(t)}function i(){return i=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},i.apply(this,arguments)}function o(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function a(t,e){if(!o(t,e))throw new TypeError("Cannot call a class as a function")}function s(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");u(t.prototype,e&&e.prototype),e&&u(t,e)}function u(t,e){return(u=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function c(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function l(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t}function f(t,e){return!e||"object"!==r(e)&&"function"!=typeof e?d(t):e}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function h(t){return(h=Object.getPrototypeOf||function(t){return t.__proto__})(t)}var p=n(13),v=n.n(p),y=n(0),m=(n.n(y),n(26)),b=n(234),g=n(42),w=n(14),_=n(359),k=n(231),O=n(1),E=n(37),x=function(t){function e(){return a(this,e),f(this,h(e).apply(this,arguments))}return l(e,[{key:"render",value:function(){if(!this.props.content)return null;var t=Object(y.omit)(this.props,"content","attribute");if(o(this.props.content,m.a))return v.a.createElement("img",i({src:Object(k.a)(this.props.content).url()},t));var e=this._getBinary();if(void 0===e)return null;var n;return null===e?(n=_.a,t["data-scrivito-image-placeholder"]=!0):n=Object(k.a)(e).url(),v.a.createElement(b.a,i({attribute:this.props.attribute,content:this.props.content,tag:"img",src:n},t))}},{key:"_getBinary",value:function(){var t=g.a.forInstance(this.props.content);if(t){var e=t.attributes[this.props.attribute];if(!e)return void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object missing attribute "'.concat(this.props.attribute,'".')));var n=e[0];return"binary"===n?this.props.content.get(this.props.attribute):"reference"===n?this._getReferencedBinary():void Object(E.b)(new O.ArgumentError('Component "Scrivito.ImageTag" received prop "content"'+' with an object, whose attribute "'.concat(this.props.attribute,'"')+' is of unexpected type "'.concat(n,'".')+' Valid attribute types are "binary" and "reference".'))}}},{key:"_getReferencedBinary",value:function(){var t=this.props.content.get(this.props.attribute);if(t){var e=t.get("blob");if(e)return e}return null}}]),s(e,t),e}(v.a.Component);x.displayName="Scrivito.ImageTag",x.defaultProps={attribute:"blob"},e.a=Object(w.a)(x)},function(t,e,n){"use strict";e.a="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"},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}var i=n(13),o=(n.n(i),n(60)),a=n(1),s=n(14),u=function(t){var e=t.children;return r(Object(o.b)(),a.CurrentPageNotFoundError)?e?i.createElement("div",null,e):i.createElement("div",null,i.createElement("h1",null,"The page you were looking for doesn't exist."),i.createElement("p",null,"You may have mistyped the address or the page may have moved.")):null};u.displayName="Scrivito.NotFoundErrorPage",e.a=Object(s.a)(u)},function(t,e,n){"use strict";function r(t,e){return null!=e&&"undefined"!=typeof Symbol&&e[Symbol.hasInstance]?e[Symbol.hasInstance](t):t instanceof e}function i(t){return(i="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})(t)}function o(t,e){if(!r(t,e))throw new TypeError("Cannot call a class as a function")}function a(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");s(t.prototype,e&&e.prototype),e&&s(t,e)}function s(t,e){return(s=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e&&u(t.prototype,e),n&&u(t,n),t}function l(t,e){return!e||"object"!==i(e)&&"function"!=typeof e?f(t):e}function f(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function d(t,e,n){return(d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(t,e,n){var r=h(t,e);if(r){var i=Object.getOwnPropertyDescriptor(r,e);return i.get?i.get.call(n):i.value}})(t,e,n||t)}function h(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=p(t)););return t}function p(t){return(p=Object.getPrototypeOf||function(t){return t.__proto__})(t)}function v(t,e){y(e),m(e),g(e)&&(e.displayName=t);var n=Object(x.a)(e),r=b(n);Object(E.c)(t,r)}function y(t){if("function"!=typeof t)throw new O.ArgumentError("Scrivito.provideComponent expected a valid React component"+", but received ".concat(Object(C.a)(t)))}function m(t){if(t.propTypes)throw new O.ArgumentError("Custom props are not allowed when providing a component.")}function b(t){var e=function(t){function e(){return o(this,e),l(this,p(e).apply(this,arguments))}return c(e,[{key:"render",value:function(){if(this.props.widget){var t=d(p(e.prototype),"render",this).call(this);return Object(k.isArray)(t)||Object(k.isBoolean)(t)||Object(k.isNumber)(t)||Object(k.isString)(t)||null===t||t&&t.type!==j.b?_.a.createElement(j.b,{children:t}):t}return d(p(e.prototype),"render",this).call(this)}}]),a(e,t),e}(t);return e.displayName=Object(S.a)(t),e}function g(t){return!(t.displayName||t.name&&"_class"!==t.name)}e.a=v;var w=n(13),_=n.n(w),k=n(0),O=(n.n(k),n(1)),E=n(86),x=n(14),C=n(41),j=n(140),S=n(122)},function(t,e,n){"use strict";function r(t,e){Object(o.d)(t,Object(i.a)(e))}e.a=r;var i=n(14),o=n(86)},function(t,e,n){"use strict";function r(){o.a.enableForceVerification()}function i(){return o.a.currentPublicAuthorizationState()}Object.defineProperty(e,"__esModule",{value:!0}),e.enableForceVerification=r,e.currentPublicAuthorizationState=i;var o=n(21),a=n(240);n.d(e,"alwaysShowOptionMarkers",function(){return a.a});var s=n(101);n.d(e,"isFetchingActive",function(){return s.b})},,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(289),i=n(290),o=n(161),a=n(320),s=n(339);window.Scrivito=s;var u=Object(o.a)();u?u.installRailsApi():Object(r.a)(),Object(i.a)(u),Object(a.a)()}]);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.0.rc2
4
+ version: 1.14.0.rc3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Infopark AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-14 00:00:00.000000000 Z
11
+ date: 2018-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable