X-Git-Url: http://git.squeep.com/?a=blobdiff_plain;ds=sidebyside;f=priv%2Fstatic%2Fpacks%2Fcontainers%2Fmedia_container.js;h=4aa63542fa9920edc83f7ef1c9bfd0a49d69af2c;hb=04b1c135543965860029557fc216eb38fd63b6c7;hp=6d86a7442c8a66fb1d876b91621a0b410ae3299a;hpb=8dc715b30bf310d040f72c0c01a5c668c3696b2a;p=akkoma diff --git a/priv/static/packs/containers/media_container.js b/priv/static/packs/containers/media_container.js index 6d86a7442..4aa63542f 100644 --- a/priv/static/packs/containers/media_container.js +++ b/priv/static/packs/containers/media_container.js @@ -1,2 +1,2 @@ -webpackJsonp([34,33],{7:function(e,t,n){"use strict";function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];(Array.isArray(e)?e:[e]).forEach(function(e){e&&e.locale&&(F.a.__addLocaleData(e),E.a.__addLocaleData(e))})}function a(e){for(var t=(e||"").split("-");t.length>0;){if(o(t.join("-")))return!0;t.pop()}return!1}function o(e){var t=e&&e.toLowerCase();return!(!F.a.__localeData__[t]||!E.a.__localeData__[t])}function i(e){return(""+e).replace(_e,function(e){return be[e]})}function s(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.reduce(function(t,r){return e.hasOwnProperty(r)?t[r]=e[r]:n.hasOwnProperty(r)&&(t[r]=n[r]),t},{})}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.intl;U()(t,"[React Intl] Could not find required `intl` object. needs to exist in the component ancestry.")}function u(e,t){if(e===t)return!0;if("object"!==(void 0===e?"undefined":q(e))||null===e||"object"!==(void 0===t?"undefined":q(t))||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(t),o=0;o3&&void 0!==arguments[3]?arguments[3]:{},c=i.intl,d=void 0===c?{}:c,f=l.intl,p=void 0===f?{}:f;return!u(t,r)||!u(n,a)||!(p===d||u(s(p,ye),s(d,ye)))}function d(e){return e.displayName||e.name||"Component"}function f(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.intlPropName,r=void 0===n?"intl":n,a=t.withRef,o=void 0!==a&&a,i=function(t){function n(e,t){H(this,n);var r=Q(this,(n.__proto__||Object.getPrototypeOf(n)).call(this,e,t));return l(t),r}return Z(n,t),J(n,[{key:"getWrappedInstance",value:function(){return U()(o,"[React Intl] To access the wrapped instance, the `{withRef: true}` option must be set when calling: `injectIntl()`"),this.refs.wrappedInstance}},{key:"render",value:function(){return R.a.createElement(e,B({},this.props,G({},r,this.context.intl),{ref:o?"wrappedInstance":null}))}}]),n}(A.Component);return i.displayName="InjectIntl("+d(e)+")",i.contextTypes={intl:pe},i.WrappedComponent=e,i}function p(e){return e}function h(e){return F.a.prototype._resolveLocale(e)}function m(e){return F.a.prototype._findPluralRuleFunction(e)}function v(e){var t=E.a.thresholds;t.second=e.second,t.minute=e.minute,t.hour=e.hour,t.day=e.day,t.month=e.month}function g(e,t,n){var r=e&&e[t]&&e[t][n];if(r)return r}function y(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,o=e.formats,i=r.format,l=new Date(n),u=i&&g(o,"date",i),c=s(r,Oe,u);try{return t.getDateTimeFormat(a,c).format(l)}catch(e){}return String(l)}function b(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,o=e.formats,i=r.format,l=new Date(n),u=i&&g(o,"time",i),c=s(r,Oe,u);c.hour||c.minute||c.second||(c=B({},c,{hour:"numeric",minute:"numeric"}));try{return t.getDateTimeFormat(a,c).format(l)}catch(e){}return String(l)}function _(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,o=e.formats,i=r.format,l=new Date(n),u=new Date(r.now),c=i&&g(o,"relative",i),d=s(r,ke,c),f=B({},E.a.thresholds);v(Ne);try{return t.getRelativeFormat(a,d).format(l,{now:isFinite(u)?u:t.now()})}catch(e){}finally{v(f)}return String(l)}function w(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,o=e.formats,i=r.format,l=i&&g(o,"number",i),u=s(r,xe,l);try{return t.getNumberFormat(a,u).format(n)}catch(e){}return String(n)}function O(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,o=s(r,Ce);try{return t.getPluralFormat(a,o).format(n)}catch(e){}return"other"}function x(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},a=e.locale,o=e.formats,i=e.messages,s=e.defaultLocale,l=e.defaultFormats,u=n.id,c=n.defaultMessage;U()(u,"[React Intl] An `id` must be provided to format a message.");var d=i&&i[u];if(!(Object.keys(r).length>0))return d||c||u;var f=void 0;if(d)try{f=t.getMessageFormat(d,a,o).format(r)}catch(e){}if(!f&&c)try{f=t.getMessageFormat(c,s,l).format(r)}catch(e){}return f||d||c||u}function k(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return x(e,t,n,Object.keys(r).reduce(function(e,t){var n=r[t];return e[t]="string"==typeof n?i(n):n,e},{}))}function C(e){var t=Math.abs(e);return t=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n},Q=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},X=function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t":">","<":"<",'"':""","'":"'"},_e=/[&><"']/g,we=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};H(this,e);var r="ordinal"===n.style,a=m(h(t));this.format=function(e){return a(e,r)}},Oe=Object.keys(he),xe=Object.keys(me),ke=Object.keys(ve),Ce=Object.keys(ge),Ne={second:60,minute:60,hour:24,day:30,month:12},je=Object.freeze({formatDate:y,formatTime:b,formatRelative:_,formatNumber:w,formatPlural:O,formatMessage:x,formatHTMLMessage:k}),Me=Object.keys(de),Pe=Object.keys(fe),Te={formats:{},messages:{},textComponent:"span",defaultLocale:"en",defaultFormats:{}},Fe=function(e){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};H(this,t);var r=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));U()("undefined"!=typeof Intl,"[React Intl] The `Intl` APIs must be available in the runtime, and do not appear to be built-in. An `Intl` polyfill should be loaded.\nSee: http://formatjs.io/guides/runtime-environments/");var a=n.intl,o=void 0;o=isFinite(e.initialNow)?Number(e.initialNow):a?a.now():Date.now();var i=a||{},s=i.formatters,l=void 0===s?{getDateTimeFormat:z()(Intl.DateTimeFormat),getNumberFormat:z()(Intl.NumberFormat),getMessageFormat:z()(F.a),getRelativeFormat:z()(E.a),getPluralFormat:z()(we)}:s;return r.state=B({},l,{now:function(){return r._didDisplay?Date.now():o}}),r}return Z(t,e),J(t,[{key:"getConfig",value:function(){var e=this.context.intl,t=s(this.props,Me,e);for(var n in Te)void 0===t[n]&&(t[n]=Te[n]);if(!a(t.locale)){var r=t,o=(r.locale,r.defaultLocale),i=r.defaultFormats;t=B({},t,{locale:o,formats:i,messages:Te.messages})}return t}},{key:"getBoundFormatFns",value:function(e,t){return Pe.reduce(function(n,r){return n[r]=je[r].bind(null,e,t),n},{})}},{key:"getChildContext",value:function(){var e=this.getConfig(),t=this.getBoundFormatFns(e,this.state),n=this.state,r=n.now,a=K(n,["now"]);return{intl:B({},e,t,{formatters:a,now:r})}}},{key:"shouldComponentUpdate",value:function(){for(var e=arguments.length,t=Array(e),n=0;n1?r-1:0),o=1;o0){var h=Math.floor(1099511627776*Math.random()).toString(16),m=function(){var e=0;return function(){return"ELEMENT-"+h+"-"+(e+=1)}}();d="@__"+h+"__@",f={},p={},Object.keys(s).forEach(function(e){var t=s[e];if(Object(A.isValidElement)(t)){var n=m();f[e]=d+n+d,p[n]=t}else f[e]=t})}var v={id:a,description:o,defaultMessage:i},g=t(v,f||s),y=void 0;return y=p&&Object.keys(p).length>0?g.split(d).filter(function(e){return!!e}).map(function(e){return p[e]||e}):[g],"function"==typeof c?c.apply(void 0,X(y)):A.createElement.apply(void 0,[u,null].concat(X(y)))}}]),t}(A.Component);Ve.displayName="FormattedMessage",Ve.contextTypes={intl:pe},Ve.defaultProps={values:{}};var qe=function(e){function t(e,n){H(this,t);var r=Q(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return l(n),r}return Z(t,e),J(t,[{key:"shouldComponentUpdate",value:function(e){var t=this.props.values;if(!u(e.values,t))return!0;for(var n=B({},e,{values:t}),r=arguments.length,a=Array(r>1?r-1:0),o=1;o0)&&(s=50),2===r?0===n?f="2px":c="2px":3===r?(0===n?f="2px":n>0&&(c="2px"),1===n?d="2px":n>1&&(l="2px")):4===r&&(0!==n&&2!==n||(f="2px"),1!==n&&3!==n||(c="2px"),n<2?d="2px":l="2px");var p="";if("image"===t.get("type")){var h=t.get("preview_url"),m=t.getIn(["meta","small","width"]),v=t.get("url"),g=t.getIn(["meta","original","width"]),y="number"==typeof g&&"number"==typeof m,b=y?v+" "+g+"w, "+h+" "+m+"w":null,_=y?o*(i/100)+"px":null,O=t.getIn(["meta","focus","x"])||0,C=t.getIn(["meta","focus","y"])||0,N=100*(O/2+.5),j=100*(C/-2+.5);p=u()("a",{className:"media-gallery__item-thumbnail",href:t.get("remote_url")||v,onClick:this.handleClick,target:"_blank"},void 0,u()("img",{src:h,srcSet:b,sizes:_,alt:t.get("description"),title:t.get("description"),style:{objectPosition:N+"% "+j+"%"}}))}else if("audio"===t.get("type"))p=u()("div",{className:"media-gallery__audio"},void 0,u()("audio",{className:"media-gallery__item-audio-thumbnail","aria-label":t.get("description"),role:"application",src:t.get("url"),loop:!0,controls:!0}));else if("gifv"===t.get("type")){var M=!Object(w.a)()&&k.a;p=u()("div",{className:x()("media-gallery__gifv",{autoplay:M})},void 0,u()("video",{className:"media-gallery__item-gifv-thumbnail","aria-label":t.get("description"),role:"application",src:t.get("url"),onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,autoPlay:M,loop:!0,muted:!0}),u()("span",{className:"media-gallery__gifv__label"},void 0,"GIF"))}return u()("div",{className:x()("media-gallery__item",{standalone:a}),style:{left:c,top:l,right:f,bottom:d,width:i+"%",height:s+"%"}},t.get("id"),p)},t}(g.a.PureComponent),r.defaultProps={standalone:!1,index:0,size:1},a),j=Object(_.g)((s=i=function(e){function t(){var n,r,a;d()(this,t);for(var o=arguments.length,i=Array(o),s=0;st?"…":"")},k=new DOMParser,C=function(e){var t=k.parseFromString(e,"text/html").documentElement,n=t.querySelector("iframe");return n?(-1!==n.src.indexOf("?")?n.src+="&":n.src+="?",n.src+="autoplay=1&auto_play=1",t.querySelector("body").innerHTML):e},N=(a=r=function(e){function t(){var n,r,a;l()(this,t);for(var o=arguments.length,i=Array(o),s=0;se.get("height")?n/r:n*r;return h.a.createElement("div",{ref:this.setRef,className:"status-card__image status-card-video",dangerouslySetInnerHTML:t,style:{height:a}})},t.prototype.render=function(){var e=this.props,t=e.card,n=e.maxDescription,r=this.state,a=r.width,o=r.embedded;if(null===t)return null;var s=0===t.get("provider_name").length?w(O(t.get("url"))):t.get("provider_name"),l=t.get("width")>t.get("height")&&t.get("width")+100>=a||"link"!==t.get("type"),u=_()("status-card",{horizontal:l}),c="link"!==t.get("type"),d=c?i()("a",{className:"status-card__title",href:t.get("url"),title:t.get("title"),rel:"noopener",target:"_blank"},void 0,i()("strong",{},void 0,t.get("title"))):i()("strong",{className:"status-card__title",title:t.get("title")},void 0,t.get("title")),f=t.get("width")/t.get("height"),p=t.get("width")>t.get("height")?a/f:a*f,m=i()("div",{className:"status-card__content"},void 0,d,!l&&i()("p",{className:"status-card__description"},void 0,x(t.get("description")||"",n)),i()("span",{className:"status-card__host"},void 0,s)),v="",g=i()("div",{style:{backgroundImage:"url("+t.get("image")+")",width:l?a:null,height:l?p:null},className:"status-card__image-image"});if(c){if(o)v=this.renderVideo();else{var y="play";"photo"===t.get("type")&&(y="search-plus"),v=i()("div",{className:"status-card__image"},void 0,g,i()("div",{className:"status-card__actions"},void 0,i()("div",{},void 0,i()("button",{onClick:this.handleEmbedClick},void 0,i()("i",{className:"fa fa-"+y})),i()("a",{href:t.get("url"),target:"_blank",rel:"noopener"},void 0,i()("i",{className:"fa fa-external-link"})))))}return h.a.createElement("div",{className:u,ref:this.setRef},v,m)}return t.get("image")&&(v=i()("div",{className:"status-card__image"},void 0,g)),h.a.createElement("a",{href:t.get("url"),className:u,target:"_blank",rel:"noopener",ref:this.setRef},v,m)},t}(h.a.PureComponent),r.defaultProps={maxDescription:50},a)},900:function(e,t,n){(function(e,r){var a;!function(o){function i(e){throw new RangeError(S[e])}function s(e,t){for(var n=e.length,r=[];n--;)r[n]=t(e[n]);return r}function l(e,t){var n=e.split("@"),r="";return n.length>1&&(r=n[0]+"@",e=n[1]),e=e.replace(F,"."),r+s(e.split("."),t).join(".")}function u(e){for(var t,n,r=[],a=0,o=e.length;a=55296&&t<=56319&&a65535&&(e-=65536,t+=I(e>>>10&1023|55296),e=56320|1023&e),t+=I(e)}).join("")}function d(e){return e-48<10?e-22:e-65<26?e-65:e-97<26?e-97:w}function f(e,t){return e+22+75*(e<26)-((0!=t)<<5)}function p(e,t,n){var r=0;for(e=n?D(e/C):e>>1,e+=D(e/t);e>E*x>>1;r+=w)e=D(e/E);return D(r+(E+1)*e/(e+k))}function h(e){var t,n,r,a,o,s,l,u,f,h,m=[],v=e.length,g=0,y=j,b=N;for(n=e.lastIndexOf(M),n<0&&(n=0),r=0;r=128&&i("not-basic"),m.push(e.charCodeAt(r));for(a=n>0?n+1:0;a=v&&i("invalid-input"),u=d(e.charCodeAt(a++)),(u>=w||u>D((_-g)/s))&&i("overflow"),g+=u*s,f=l<=b?O:l>=b+x?x:l-b,!(uD(_/h)&&i("overflow"),s*=h;t=m.length+1,b=p(g-o,t,0==o),D(g/t)>_-y&&i("overflow"),y+=D(g/t),g%=t,m.splice(g++,0,y)}return c(m)}function m(e){var t,n,r,a,o,s,l,c,d,h,m,v,g,y,b,k=[];for(e=u(e),v=e.length,t=j,n=0,o=N,s=0;s=t&&mD((_-n)/g)&&i("overflow"),n+=(l-t)*g,t=l,s=0;s_&&i("overflow"),m==t){for(c=n,d=w;h=d<=o?O:d>=o+x?x:d-o,!(c= 0x80 (not a basic code point)","invalid-input":"Invalid input"},E=w-O,D=Math.floor,I=String.fromCharCode;b={version:"1.4.1",ucs2:{decode:u,encode:c},decode:h,encode:m,toASCII:g,toUnicode:v},void 0!==(a=function(){return b}.call(t,n,t,e))&&(e.exports=a)}()}).call(t,n(101)(e),n(57))}}); +(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{100:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=Object.assign||function(e){for(var t=1;t10*w&&(g.accumulatedTime=0),0===g.accumulatedTime)return g.animationID=null,void g.startAnimationIfNecessary();var i=(g.accumulatedTime-Math.floor(g.accumulatedTime/w)*w)/w,o=Math.floor(g.accumulatedTime/w),a={},s={},u={},c={};for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)){var d=t[l];if("number"==typeof d)u[l]=d,c[l]=0,a[l]=d,s[l]=0;else{for(var f=g.state.lastIdealStyle[l],h=g.state.lastIdealVelocity[l],p=0;p, or pass a custom React context provider to and the corresponding React context consumer to '+a+" in connect options.");var t,n=e.storeState,r=e.store,i=this.props;m&&(i=this.props.wrapperProps,t=this.props.forwardedRef);var o=this.selectDerivedProps(n,i,r);return this.selectChildElement(o,t)},t.render=function(){var e=this.props.context||O;return S.a.createElement(e.Consumer,null,this.renderWrappedComponent)},e}(n);if(r.WrappedComponent=e,r.displayName=a,m){var i=S.a.forwardRef(function(e,t){return S.a.createElement(r,{wrapperProps:e,forwardedRef:t})});return i.displayName=a,i.WrappedComponent=e,I()(i,e)}return I()(r,e)}}var s=Object.prototype.hasOwnProperty;function u(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function g(e,t){if(u(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var i=0;i>",r={listOf:function(e){return s(e,"List",y.List.isList)},mapOf:function(e,t){return o(e,t,"Map",y.Map.isMap)},orderedMapOf:function(e,t){return o(e,t,"OrderedMap",y.OrderedMap.isOrderedMap)},setOf:function(e){return s(e,"Set",y.Set.isSet)},orderedSetOf:function(e){return s(e,"OrderedSet",y.OrderedSet.isOrderedSet)},stackOf:function(e){return s(e,"Stack",y.Stack.isStack)},iterableOf:function(e){return s(e,"Iterable",y.Iterable.isIterable)},recordOf:function(v){return c(function(e,t,n,r,i){for(var o=arguments.length,a=Array(5 key("+c[l]+")"].concat(a));if(f instanceof Error)return f}})).apply(void 0,t);var h})}function a(p){var v=void 0===arguments[1]?"Iterable":arguments[1],m=void 0===arguments[2]?y.Iterable.isIterable:arguments[2];return c(function(e,t,n,r,i){for(var o=arguments.length,a=Array(5e.clientWidth||0e.clientHeight)&&n.push({element:e,scrollWidth:e.scrollWidth,scrollHeight:e.scrollHeight,clientWidth:e.clientWidth,clientHeight:e.clientHeight,scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}),e=e.parentNode}return n}var g=null;function _(e){var t=e.domTreeShapes,o=e.pageX,a=e.startX,s=e.axis;return t.some(function(e){var t=a<=o;"x"!==s&&"y"!==s||(t=!t);var n=e[T.scrollPosition[s]],r=0m.constant.UNCERTAINTY_THRESHOLD;if(!a&&("y"===n||"y-reverse"===n)&&(0===v.indexCurrent&&v.startXs.pageX))return void(v.isSwiping=!1);if(cm.constant.UNCERTAINTY_THRESHOLD)return v.isSwiping=l,void(v.startX=s.pageX)}if(!0===v.isSwiping){e.preventDefault(),v.vx=.5*v.vx+.5*(s.pageX-v.lastX),v.lastX=s.pageX;var d=(0,m.computeIndex)({children:r,resistance:a,pageX:s.pageX,startIndex:v.startIndex,startX:v.startX,viewLength:v.viewLength}),f=d.index,h=d.startX;if(null===g&&!i)if(_({domTreeShapes:b(e.target,v.rootNode),startX:v.startX,pageX:s.pageX,axis:n}))return;h?v.startX=h:null===g&&(g=v.rootNode),v.setIndexCurrent(f);var p=function(){o&&o(f,"move")};!v.state.displaySameSlide&&v.state.isDragging||v.setState({displaySameSlide:!1,isDragging:!0},p),p()}}}else v.handleTouchStart(e)},v.handleSwipeEnd=function(){if(g=null,v.started&&!(v.started=!1)===v.isSwiping){var e,t=v.state.indexLatest,n=v.indexCurrent,r=t-n;e=Math.abs(v.vx)>v.props.threshold?0v.props.hysteresis?0>>0;if(""+n!==t||4294967295===n)return NaN;t=n}return t<0?E(e)+t:t}function C(){return!0}function I(e,t,n){return(0===e||void 0!==n&&e<=-n)&&(void 0===t||void 0!==n&&n<=t)}function P(e,t){return L(e,t,0)}function k(e,t){return L(e,t,t)}function L(e,t,n){return void 0===e?n:e<0?Math.max(0,t+e):void 0===t?e:Math.min(t,e)}var T=0,D=1,N=2,z="function"==typeof Symbol&&Symbol.iterator,R="@@iterator",A=z||R;function q(e){this.next=e}function U(e,t,n,r){var i=0===e?t:1===e?n:[t,n];return r?r.value=i:r={value:i,done:!1},r}function W(){return{value:void 0,done:!0}}function F(e){return!!X(e)}function V(e){return e&&"function"==typeof e.next}function H(e){var t=X(e);return t&&t.call(e)}function X(e){var t=e&&(z&&e[z]||e[R]);if("function"==typeof t)return t}function B(e){return e&&"number"==typeof e.length}function K(e){return null==e?ae():l(e)?e.toSeq():function(e){var t=ce(e)||"object"==typeof e&&new ne(e);if(t)return t;throw new TypeError("Expected Array or iterable object of values, or keyed object: "+e)}(e)}function Y(e){return null==e?ae().toKeyedSeq():l(e)?d(e)?e.toSeq():e.fromEntrySeq():se(e)}function $(e){return null==e?ae():l(e)?d(e)?e.entrySeq():e.toIndexedSeq():ue(e)}function J(e){return(null==e?ae():l(e)?d(e)?e.entrySeq():e:ue(e)).toSetSeq()}q.prototype.toString=function(){return"[Iterator]"},q.KEYS=T,q.VALUES=D,q.ENTRIES=N,q.prototype.inspect=q.prototype.toSource=function(){return this.toString()},q.prototype[A]=function(){return this},e(K,u),K.of=function(){return K(arguments)},K.prototype.toSeq=function(){return this},K.prototype.toString=function(){return this.__toString("Seq {","}")},K.prototype.cacheResult=function(){return!this._cache&&this.__iterateUncached&&(this._cache=this.entrySeq().toArray(),this.size=this._cache.length),this},K.prototype.__iterate=function(e,t){return le(this,e,t,!0)},K.prototype.__iterator=function(e,t){return de(this,e,t,!0)},e(Y,K),Y.prototype.toKeyedSeq=function(){return this},e($,K),$.of=function(){return $(arguments)},$.prototype.toIndexedSeq=function(){return this},$.prototype.toString=function(){return this.__toString("Seq [","]")},$.prototype.__iterate=function(e,t){return le(this,e,t,!1)},$.prototype.__iterator=function(e,t){return de(this,e,t,!1)},e(J,K),J.of=function(){return J(arguments)},J.prototype.toSetSeq=function(){return this},K.isSeq=oe,K.Keyed=Y,K.Set=J,K.Indexed=$;var G,Q,Z,ee="@@__IMMUTABLE_SEQ__@@";function te(e){this._array=e,this.size=e.length}function ne(e){var t=Object.keys(e);this._object=e,this._keys=t,this.size=t.length}function re(e){this._iterable=e,this.size=e.length||e.size}function ie(e){this._iterator=e,this._iteratorCache=[]}function oe(e){return!(!e||!e[ee])}function ae(){return G||(G=new te([]))}function se(e){var t=Array.isArray(e)?new te(e).fromEntrySeq():V(e)?new ie(e).fromEntrySeq():F(e)?new re(e).fromEntrySeq():"object"==typeof e?new ne(e):void 0;if(!t)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+e);return t}function ue(e){var t=ce(e);if(!t)throw new TypeError("Expected Array or iterable object of values: "+e);return t}function ce(e){return B(e)?new te(e):V(e)?new ie(e):F(e)?new re(e):void 0}function le(e,t,n,r){var i=e._cache;if(i){for(var o=i.length-1,a=0;a<=o;a++){var s=i[n?o-a:a];if(!1===t(s[1],r?s[0]:a,e))return a+1}return a}return e.__iterateUncached(t,n)}function de(e,t,n,r){var i=e._cache;if(i){var o=i.length-1,a=0;return new q(function(){var e=i[n?o-a:a];return a++>o?{value:void 0,done:!0}:U(t,r?e[0]:a-1,e[1])})}return e.__iteratorUncached(t,n)}function fe(e,t){return t?function n(r,i,e,t){return Array.isArray(i)?r.call(t,e,$(i).map(function(e,t){return n(r,e,t,i)})):pe(i)?r.call(t,e,Y(i).map(function(e,t){return n(r,e,t,i)})):i}(t,e,"",{"":e}):he(e)}function he(e){return Array.isArray(e)?$(e).map(he).toList():pe(e)?Y(e).map(he).toMap():e}function pe(e){return e&&(e.constructor===Object||void 0===e.constructor)}function ve(e,t){if(e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1;if("function"==typeof e.valueOf&&"function"==typeof t.valueOf){if(e=e.valueOf(),t=t.valueOf(),e===t||e!=e&&t!=t)return!0;if(!e||!t)return!1}return!("function"!=typeof e.equals||"function"!=typeof t.equals||!e.equals(t))}function me(n,e){if(n===e)return!0;if(!l(e)||void 0!==n.size&&void 0!==e.size&&n.size!==e.size||void 0!==n.__hash&&void 0!==e.__hash&&n.__hash!==e.__hash||d(n)!==d(e)||f(n)!==f(e)||p(n)!==p(e))return!1;if(0===n.size&&0===e.size)return!0;var r=!h(n);if(p(n)){var i=n.entries();return e.every(function(e,t){var n=i.next().value;return n&&ve(n[1],e)&&(r||ve(n[0],t))})&&i.next().done}var o=!1;if(void 0===n.size)if(void 0===e.size)"function"==typeof n.cacheResult&&n.cacheResult();else{o=!0;var t=n;n=e,e=t}var a=!0,s=e.__iterate(function(e,t){if(r?!n.has(e):o?!ve(e,n.get(t,b)):!ve(n.get(t,b),e))return a=!1});return a&&n.size===s}function ye(e,t){if(!(this instanceof ye))return new ye(e,t);if(this._value=e,this.size=void 0===t?1/0:Math.max(0,t),0===this.size){if(Q)return Q;Q=this}}function be(e,t){if(!e)throw new Error(t)}function ge(e,t,n){if(!(this instanceof ge))return new ge(e,t,n);if(be(0!==n,"Cannot step a Range by 0"),e=e||0,void 0===t&&(t=1/0),n=void 0===n?1:Math.abs(n),to?{value:void 0,done:!0}:U(t,e,r[e])})},ne.prototype[a]=!0,e(re,$),re.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);var n=this._iterable,r=H(n),i=0;if(V(r))for(var o;!(o=r.next()).done&&!1!==e(o.value,i++,this););return i},re.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=this._iterable,r=H(n);if(!V(r))return new q(W);var i=0;return new q(function(){var e=r.next();return e.done?e:U(t,i++,e.value)})},e(ie,$),ie.prototype.__iterateUncached=function(e,t){if(t)return this.cacheResult().__iterate(e,t);for(var n,r=this._iterator,i=this._iteratorCache,o=0;o=r.length){var e=n.next();if(e.done)return e;r[i]=e.value}return U(t,i,r[i++])})},e(ye,$),ye.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ye.prototype.get=function(e,t){return this.has(e)?this._value:t},ye.prototype.includes=function(e){return ve(this._value,e)},ye.prototype.slice=function(e,t){var n=this.size;return I(e,t,n)?this:new ye(this._value,k(t,n)-P(e,n))},ye.prototype.reverse=function(){return this},ye.prototype.indexOf=function(e){return ve(this._value,e)?0:-1},ye.prototype.lastIndexOf=function(e){return ve(this._value,e)?this.size:-1},ye.prototype.__iterate=function(e,t){for(var n=0;n>>16)*r+n*(t>>>16)<<16>>>0)|0};function xe(e){return e>>>1&1073741824|3221225471&e}function Ee(e){if(!1===e||null==e)return 0;if("function"==typeof e.valueOf&&(!1===(e=e.valueOf())||null==e))return 0;if(!0===e)return 1;var t,n,r=typeof e;if("number"===r){if(e!=e||e===1/0)return 0;var i=0|e;for(i!==e&&(i^=4294967295*e);4294967295De?(void 0===(n=Re[t=e])&&(n=Me(t),ze===Ne&&(ze=0,Re={}),ze++,Re[t]=n),n):Me(e);if("function"==typeof e.hashCode)return e.hashCode();if("object"===r)return function(e){var t;if(ke&&void 0!==(t=Ce.get(e)))return t;if(void 0!==(t=e[Te]))return t;if(!Pe){if(void 0!==(t=e.propertyIsEnumerable&&e.propertyIsEnumerable[Te]))return t;if(void 0!==(t=function(e){if(e&&0=n.length)throw new Error("Missing value for key: "+n[t]);e.set(n[t],n[t+1])}})},qe.prototype.toString=function(){return this.__toString("Map {","}")},qe.prototype.get=function(e,t){return this._root?this._root.get(0,void 0,e,t):t},qe.prototype.set=function(e,t){return et(this,e,t)},qe.prototype.setIn=function(e,t){return this.updateIn(e,b,function(){return t})},qe.prototype.remove=function(e){return et(this,e,b)},qe.prototype.deleteIn=function(e){return this.updateIn(e,function(){return b})},qe.prototype.update=function(e,t,n){return 1===arguments.length?e(this):this.updateIn([e],t,n)},qe.prototype.updateIn=function(e,t,n){n||(n=t,t=void 0);var r=function e(t,n,r,i){var o=t===b,a=n.next();if(a.done){var s=o?r:t,u=i(s);return u===s?t:u}be(o||t&&t.set,"invalid keyPath");var c=a.value,l=o?b:t.get(c,b),d=e(l,n,r,i);return d===l?t:d===b?t.remove(c):(o?Ze():t).set(c,d)}(this,rn(e),t,n);return r===b?void 0:r},qe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._root=null,this.__hash=void 0,this.__altered=!0,this):Ze()},qe.prototype.merge=function(){return it(this,void 0,arguments)},qe.prototype.mergeWith=function(e){var t=r.call(arguments,1);return it(this,e,t)},qe.prototype.mergeIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,Ze(),function(e){return"function"==typeof e.merge?e.merge.apply(e,t):t[t.length-1]})},qe.prototype.mergeDeep=function(){return it(this,ot,arguments)},qe.prototype.mergeDeepWith=function(e){var t=r.call(arguments,1);return it(this,at(e),t)},qe.prototype.mergeDeepIn=function(e){var t=r.call(arguments,1);return this.updateIn(e,Ze(),function(e){return"function"==typeof e.mergeDeep?e.mergeDeep.apply(e,t):t[t.length-1]})},qe.prototype.sort=function(e){return Pt(Bt(this,e))},qe.prototype.sortBy=function(e,t){return Pt(Bt(this,t,e))},qe.prototype.withMutations=function(e){var t=this.asMutable();return e(t),t.wasAltered()?t.__ensureOwner(this.__ownerID):this},qe.prototype.asMutable=function(){return this.__ownerID?this:this.__ensureOwner(new S)},qe.prototype.asImmutable=function(){return this.__ensureOwner()},qe.prototype.wasAltered=function(){return this.__altered},qe.prototype.__iterator=function(e,t){return new $e(this,e,t)},qe.prototype.__iterate=function(t,e){var n=this,r=0;return this._root&&this._root.iterate(function(e){return r++,t(e[1],e[0],n)},e),r},qe.prototype.__ensureOwner=function(e){return e===this.__ownerID?this:e?Qe(this.size,this._root,e,this.__hash):(this.__ownerID=e,this.__altered=!1,this)},qe.isMap=Ue;var We,Fe="@@__IMMUTABLE_MAP__@@",Ve=qe.prototype;function He(e,t){this.ownerID=e,this.entries=t}function Xe(e,t,n){this.ownerID=e,this.bitmap=t,this.nodes=n}function Be(e,t,n){this.ownerID=e,this.count=t,this.nodes=n}function Ke(e,t,n){this.ownerID=e,this.keyHash=t,this.entries=n}function Ye(e,t,n){this.ownerID=e,this.keyHash=t,this.entry=n}function $e(e,t,n){this._type=t,this._reverse=n,this._stack=e._root&&Ge(e._root)}function Je(e,t){return U(e,t[0],t[1])}function Ge(e,t){return{node:e,index:0,__prev:t}}function Qe(e,t,n,r){var i=Object.create(Ve);return i.size=e,i._root=t,i.__ownerID=n,i.__hash=r,i.__altered=!1,i}function Ze(){return We||(We=Qe(0))}function et(e,t,n){var r,i;if(e._root){var o=_(m),a=_(y);if(r=tt(e._root,e.__ownerID,0,void 0,t,n,o,a),!a.value)return e;i=e.size+(o.value?n===b?-1:1:0)}else{if(n===b)return e;i=1,r=new He(e.__ownerID,[[t,n]])}return e.__ownerID?(e.size=i,e._root=r,e.__hash=void 0,e.__altered=!0,e):r?Qe(i,r):Ze()}function tt(e,t,n,r,i,o,a,s){return e?e.update(t,n,r,i,o,a,s):o===b?e:(w(s),w(a),new Ye(t,r,[i,o]))}function nt(e){return e.constructor===Ye||e.constructor===Ke}function rt(e,t,n,r,i){if(e.keyHash===r)return new Ke(t,r,[e.entry,i]);var o,a=(0===n?e.keyHash:e.keyHash>>>n)&g,s=(0===n?r:r>>>n)&g,u=a===s?[rt(e,t,n+O,r,i)]:(o=new Ye(t,r,i),a>1&1431655765))+(e>>2&858993459))+(e>>4)&252645135,e+=e>>8,127&(e+=e>>16)}function ct(e,t,n,r){var i=r?e:x(e);return i[t]=n,i}Ve[Fe]=!0,Ve[v]=Ve.remove,Ve.removeIn=Ve.deleteIn,He.prototype.get=function(e,t,n,r){for(var i=this.entries,o=0,a=i.length;o=lt)return function(e,t,n,r){e||(e=new S);for(var i=new Ye(e,Ee(n),[n,r]),o=0;o>>e)&g),o=this.bitmap;return 0==(o&i)?r:this.nodes[ut(o&i-1)].get(e+O,t,n,r)},Xe.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ee(r));var s=(0===t?n:n>>>t)&g,u=1<=dt)return function(e,t,n,r,i){for(var o=0,a=new Array(j),s=0;0!==n;s++,n>>>=1)a[s]=1&n?t[o++]:void 0;return a[r]=i,new Be(e,o+1,a)}(e,f,c,s,p);if(l&&!p&&2===f.length&&nt(f[1^d]))return f[1^d];if(l&&p&&1===f.length&&nt(p))return p;var v=e&&e===this.ownerID,m=l?p?c:c^u:c|u,y=l?p?ct(f,d,p,v):function(e,t,n){var r=e.length-1;if(n&&t===r)return e.pop(),e;for(var i=new Array(r),o=0,a=0;a>>e)&g,o=this.nodes[i];return o?o.get(e+O,t,n,r):r},Be.prototype.update=function(e,t,n,r,i,o,a){void 0===n&&(n=Ee(r));var s=(0===t?n:n>>>t)&g,u=i===b,c=this.nodes,l=c[s];if(u&&!l)return this;var d=tt(l,e,t+O,n,r,i,o,a);if(d===l)return this;var f=this.count;if(l){if(!d&&--f=e.size||t<0)return e.withMutations(function(e){t<0?Mt(e,t).set(0,n):Mt(e,0,t+1).set(t,n)});t+=e._origin;var r=e._tail,i=e._root,o=_(y);return t>=It(e._capacity)?r=St(r,e.__ownerID,0,t,n,o):i=St(i,e.__ownerID,e._level,t,n,o),o.value?e.__ownerID?(e._root=i,e._tail=r,e.__hash=void 0,e.__altered=!0,e):jt(e._origin,e._capacity,e._level,i,r):e}(this,e,t)},ht.prototype.remove=function(e){return this.has(e)?0===e?this.shift():e===this.size-1?this.pop():this.splice(e,1):this},ht.prototype.insert=function(e,t){return this.splice(e,0,t)},ht.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=O,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):wt()},ht.prototype.push=function(){var n=arguments,r=this.size;return this.withMutations(function(e){Mt(e,0,r+n.length);for(var t=0;t>>t&g;if(r>=this.array.length)return new yt([],e);var i,o=0===r;if(0>>t&g;if(i>=this.array.length)return this;if(0>i,j<(c=1+(y-o>>i))&&(c=j),function(){for(;;){if(a){var e=a();if(e!==_t)return e;a=null}if(u===c)return _t;var t=v?--c:u++;a=_(s&&s[t],i-O,o+(t<>>n&g,u=e&&s=It(e._capacity))return e._tail;if(t<1<>>r&g],r-=O;return n}}function Mt(e,t,n){void 0!==t&&(t|=0),void 0!==n&&(n|=0);var r=e.__ownerID||new S,i=e._origin,o=e._capacity,a=i+t,s=void 0===n?o:n<0?o+n:i+n;if(a===i&&s===o)return e;if(s<=a)return e.clear();for(var u=e._level,c=e._root,l=0;a+l<0;)c=new yt(c&&c.array.length?[void 0,c]:[],r),l+=1<<(u+=O);l&&(a+=l,i+=l,s+=l,o+=l);for(var d=It(o),f=It(s);1<>>m&g;v=v.array[y]=xt(v.array[y],r)}v.array[d>>>O&g]=h}if(s>>u&g;if(b!==f>>>u&g)break;b&&(l+=(1<i&&(i=s.size),l(a)||(s=s.map(function(e){return fe(e)})),r.push(s)}return i>e.size&&(e=e.setSize(i)),st(e,t,r)}function It(e){return e>>O<=j&&a.size>=2*o.size?(i=a.filter(function(e,t){return void 0!==e&&s!==t}),r=i.toKeyedSeq().map(function(e){return e[0]}).flip().toMap(),e.__ownerID&&(r.__ownerID=i.__ownerID=e.__ownerID)):(r=o.remove(t),i=s===a.size-1?a.pop():a.set(s,void 0))}else if(u){if(n===a.get(s)[1])return e;r=o,i=a.set(s,[t,n])}else r=o.set(t,a.size),i=a.set(a.size,[t,n]);return e.__ownerID?(e.size=r.size,e._map=r,e._list=i,e.__hash=void 0,e):Lt(r,i)}function Nt(e,t){this._iter=e,this._useKeys=t,this.size=e.size}function zt(e){this._iter=e,this.size=e.size}function Rt(e){this._iter=e,this.size=e.size}function At(e){this._iter=e,this.size=e.size}function qt(i){var e=en(i);return e._iter=i,e.size=i.size,e.flip=function(){return i},e.reverse=function(){var e=i.reverse.apply(this);return e.flip=function(){return i.reverse()},e},e.has=function(e){return i.includes(e)},e.includes=function(e){return i.has(e)},e.cacheResult=tn,e.__iterateUncached=function(n,e){var r=this;return i.__iterate(function(e,t){return!1!==n(t,e,r)},e)},e.__iteratorUncached=function(e,t){if(e!==N)return i.__iterator(e===D?T:D,t);var n=i.__iterator(e,t);return new q(function(){var e=n.next();if(!e.done){var t=e.value[0];e.value[0]=e.value[1],e.value[1]=t}return e})},e}function Ut(o,a,s){var e=en(o);return e.size=o.size,e.has=function(e){return o.has(e)},e.get=function(e,t){var n=o.get(e,b);return n===b?t:a.call(s,n,e,o)},e.__iterateUncached=function(r,e){var i=this;return o.__iterate(function(e,t,n){return!1!==r(a.call(s,e,t,n),t,i)},e)},e.__iteratorUncached=function(r,e){var i=o.__iterator(N,e);return new q(function(){var e=i.next();if(e.done)return e;var t=e.value,n=t[0];return U(r,n,a.call(s,t[1],n,o),e)})},e}function Wt(i,n){var e=en(i);return e._iter=i,e.size=i.size,e.reverse=function(){return i},i.flip&&(e.flip=function(){var e=qt(i);return e.reverse=function(){return i.flip()},e}),e.get=function(e,t){return i.get(n?e:-1-e,t)},e.has=function(e){return i.has(n?e:-1-e)},e.includes=function(e){return i.includes(e)},e.cacheResult=tn,e.__iterate=function(n,e){var r=this;return i.__iterate(function(e,t){return n(e,t,r)},!e)},e.__iterator=function(e,t){return i.__iterator(e,!t)},e}function Ft(s,u,c,l){var e=en(s);return l&&(e.has=function(e){var t=s.get(e,b);return t!==b&&!!u.call(c,t,e,s)},e.get=function(e,t){var n=s.get(e,b);return n!==b&&u.call(c,n,e,s)?n:t}),e.__iterateUncached=function(r,e){var i=this,o=0;return s.__iterate(function(e,t,n){if(u.call(c,e,t,n))return o++,r(e,l?t:o-1,i)},e),o},e.__iteratorUncached=function(i,e){var o=s.__iterator(N,e),a=0;return new q(function(){for(;;){var e=o.next();if(e.done)return e;var t=e.value,n=t[0],r=t[1];if(u.call(c,r,n,s))return U(i,l?n:a++,r,e)}})},e}function Vt(s,e,t,u){var n=s.size;if(void 0!==e&&(e|=0),void 0!==t&&(t===1/0?t=n:t|=0),I(e,t,n))return s;var c=P(e,n),r=k(t,n);if(c!=c||r!=r)return Vt(s.toSeq().cacheResult(),e,t,u);var l,i=r-c;i==i&&(l=i<0?0:i);var o=en(s);return o.size=0===l?l:s.size&&l||void 0,!u&&oe(s)&&0<=l&&(o.get=function(e,t){return 0<=(e=M(this,e))&&el)return{value:void 0,done:!0};var e=n.next();return u||t===D?e:U(t,i-1,t===T?void 0:e.value[1],e)})},o}function Ht(t,c,l,d){var e=en(t);return e.__iterateUncached=function(r,e){var i=this;if(e)return this.cacheResult().__iterate(r,e);var o=!0,a=0;return t.__iterate(function(e,t,n){if(!o||!(o=c.call(l,e,t,n)))return a++,r(e,d?t:a-1,i)}),a},e.__iteratorUncached=function(i,e){var o=this;if(e)return this.cacheResult().__iterator(i,e);var a=t.__iterator(N,e),s=!0,u=0;return new q(function(){var e,t,n;do{if((e=a.next()).done)return d||i===D?e:U(i,u++,i===T?void 0:e.value[1],e);var r=e.value;t=r[0],n=r[1],s&&(s=c.call(l,n,t,o))}while(s);return i===N?e:U(i,t,n,e)})},e}function Xt(e,u,c){var t=en(e);return t.__iterateUncached=function(o,t){var a=0,s=!1;return function n(e,r){var i=this;e.__iterate(function(e,t){return(!u||r>>-15,461845907),n=Se(n<<13|n>>>-13,5),n=Se((n=(n+3864292196|0)^t)^n>>>16,2246822507),n=xe((n=Se(n^n>>>13,3266489909))^n>>>16)}(this))}});var kn=u.prototype;kn[t]=!0,kn[A]=kn.values,kn.__toJS=kn.toArray,kn.__toStringMapper=Rn,kn.inspect=kn.toSource=function(){return this.toString()},kn.chain=kn.flatMap,kn.contains=kn.includes,Pn(s,{flip:function(){return Jt(this,qt(this))},mapEntries:function(n,r){var i=this,o=0;return Jt(this,this.toSeq().map(function(e,t){return n.call(r,[t,e],o++,i)}).fromEntrySeq())},mapKeys:function(n,r){var i=this;return Jt(this,this.toSeq().flip().map(function(e,t){return n.call(r,e,t,i)}).flip())}});var Ln=s.prototype;function Tn(e,t){return t}function Dn(e,t){return[t,e]}function Nn(e){return function(){return!e.apply(this,arguments)}}function zn(e){return function(){return-e.apply(this,arguments)}}function Rn(e){return"string"==typeof e?JSON.stringify(e):String(e)}function An(){return x(arguments)}function qn(e,t){return e>2)|0}return Ln[n]=!0,Ln[A]=kn.entries,Ln.__toJS=kn.toObject,Ln.__toStringMapper=function(e,t){return JSON.stringify(t)+": "+Rn(e)},Pn(c,{toKeyedSeq:function(){return new Nt(this,!1)},filter:function(e,t){return Jt(this,Ft(this,e,t,!1))},findIndex:function(e,t){var n=this.findEntry(e,t);return n?n[0]:-1},indexOf:function(e){var t=this.keyOf(e);return void 0===t?-1:t},lastIndexOf:function(e){var t=this.lastKeyOf(e);return void 0===t?-1:t},reverse:function(){return Jt(this,Wt(this,!1))},slice:function(e,t){return Jt(this,Vt(this,e,t,!1))},splice:function(e,t){var n=arguments.length;if(t=Math.max(0|t,0),0===n||2===n&&!t)return this;e=P(e,e<0?this.count():this.size);var r=this.slice(0,e);return Jt(this,1===n?r:r.concat(x(arguments,2),this.slice(e+t)))},findLastIndex:function(e,t){var n=this.findLastEntry(e,t);return n?n[0]:-1},first:function(){return this.get(0)},flatten:function(e){return Jt(this,Xt(this,e,!1))},get:function(n,e){return(n=M(this,n))<0||this.size===1/0||void 0!==this.size&&n>this.size?e:this.find(function(e,t){return t===n},void 0,e)},has:function(e){return 0<=(e=M(this,e))&&(void 0!==this.size?this.size===1/0||e