UNPKG

javaparser

Version:
2 lines 135 kB
!function(){var t;Function&&Function.prototype&&Function.prototype.bind&&(/MSIE [678]/.test(navigator.userAgent)||(window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.loaded&&window.twttr.widgets.load&&window.twttr.widgets.load(),window.__twttr&&window.__twttr.widgets&&window.__twttr.widgets.init||!function e(t,n,r){function i(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(o)return o(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var d=n[a]={exports:{}};t[a][0].call(d.exports,function(e){var n=t[a][1][e];return i(n?n:e)},d,d.exports,e,t,n,r)}return n[a].exports}for(var o="function"==typeof require&&require,a=0;a<r.length;a++)i(r[a]);return i}({1:[function(e,n,r){(function(){"use strict";function r(t){return"function"==typeof t||"object"==typeof t&&null!==t}function i(t){return"function"==typeof t}function o(t){return"object"==typeof t&&null!==t}function a(t){H=t}function s(t){Q=t}function u(){var t=process.nextTick,e=process.versions.node.match(/^(?:(\d+)\.)?(?:(\d+)\.)?(\*|\d+)$/);return Array.isArray(e)&&"0"===e[1]&&"10"===e[2]&&(t=setImmediate),function(){t(h)}}function c(){return function(){q(h)}}function d(){var t=0,e=new Y(h),n=document.createTextNode("");return e.observe(n,{characterData:!0}),function(){n.data=t=++t%2}}function l(){var t=new MessageChannel;return t.port1.onmessage=h,function(){t.port2.postMessage(0)}}function f(){return function(){setTimeout(h,1)}}function h(){for(var t=0;K>t;t+=2){var e=tt[t],n=tt[t+1];e(n),tt[t]=void 0,tt[t+1]=void 0}K=0}function p(){try{var t=e,n=t("vertx");return q=n.runOnLoop||n.runOnContext,c()}catch(r){return f()}}function m(){}function g(){return new TypeError("You cannot resolve a promise with itself")}function v(){return new TypeError("A promises callback cannot return that same promise.")}function w(t){try{return t.then}catch(e){return it.error=e,it}}function b(t,e,n,r){try{t.call(e,n,r)}catch(i){return i}}function y(t,e,n){Q(function(t){var r=!1,i=b(n,e,function(n){r||(r=!0,e!==n?_(t,n):A(t,n))},function(e){r||(r=!0,I(t,e))},"Settle: "+(t._label||" unknown promise"));!r&&i&&(r=!0,I(t,i))},t)}function x(t,e){e._state===nt?A(t,e._result):e._state===rt?I(t,e._result):C(e,void 0,function(e){_(t,e)},function(e){I(t,e)})}function E(t,e){if(e.constructor===t.constructor)x(t,e);else{var n=w(e);n===it?I(t,it.error):void 0===n?A(t,e):i(n)?y(t,e,n):A(t,e)}}function _(t,e){t===e?I(t,g()):r(e)?E(t,e):A(t,e)}function T(t){t._onerror&&t._onerror(t._result),S(t)}function A(t,e){t._state===et&&(t._result=e,t._state=nt,0!==t._subscribers.length&&Q(S,t))}function I(t,e){t._state===et&&(t._state=rt,t._result=e,Q(T,t))}function C(t,e,n,r){var i=t._subscribers,o=i.length;t._onerror=null,i[o]=e,i[o+nt]=n,i[o+rt]=r,0===o&&t._state&&Q(S,t)}function S(t){var e=t._subscribers,n=t._state;if(0!==e.length){for(var r,i,o=t._result,a=0;a<e.length;a+=3)r=e[a],i=e[a+n],r?P(n,r,i,o):i(o);t._subscribers.length=0}}function N(){this.error=null}function k(t,e){try{return t(e)}catch(n){return ot.error=n,ot}}function P(t,e,n,r){var o,a,s,u,c=i(n);if(c){if(o=k(n,r),o===ot?(u=!0,a=o.error,o=null):s=!0,e===o)return void I(e,v())}else o=r,s=!0;e._state!==et||(c&&s?_(e,o):u?I(e,a):t===nt?A(e,o):t===rt&&I(e,o))}function R(t,e){try{e(function(e){_(t,e)},function(e){I(t,e)})}catch(n){I(t,n)}}function j(t,e){var n=this;n._instanceConstructor=t,n.promise=new t(m),n._validateInput(e)?(n._input=e,n.length=e.length,n._remaining=e.length,n._init(),0===n.length?A(n.promise,n._result):(n.length=n.length||0,n._enumerate(),0===n._remaining&&A(n.promise,n._result))):I(n.promise,n._validationError())}function D(t){return new at(this,t).promise}function O(t){function e(t){_(i,t)}function n(t){I(i,t)}var r=this,i=new r(m);if(!$(t))return I(i,new TypeError("You must pass an array to race.")),i;for(var o=t.length,a=0;i._state===et&&o>a;a++)C(r.resolve(t[a]),void 0,e,n);return i}function L(t){var e=this;if(t&&"object"==typeof t&&t.constructor===e)return t;var n=new e(m);return _(n,t),n}function z(t){var e=this,n=new e(m);return I(n,t),n}function F(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function M(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}function W(t){this._id=lt++,this._state=void 0,this._result=void 0,this._subscribers=[],m!==t&&(i(t)||F(),this instanceof W||M(),R(this,t))}function B(){var t;if("undefined"!=typeof global)t=global;else if("undefined"!=typeof self)t=self;else try{t=Function("return this")()}catch(e){throw new Error("polyfill failed because global object is unavailable in this environment")}var n=t.Promise;(!n||"[object Promise]"!==Object.prototype.toString.call(n.resolve())||n.cast)&&(t.Promise=ft)}var U;U=Array.isArray?Array.isArray:function(t){return"[object Array]"===Object.prototype.toString.call(t)};var q,H,V,$=U,K=0,Q=({}.toString,function(t,e){tt[K]=t,tt[K+1]=e,K+=2,2===K&&(H?H(h):V())}),G="undefined"!=typeof window?window:void 0,J=G||{},Y=J.MutationObserver||J.WebKitMutationObserver,X="undefined"!=typeof process&&"[object process]"==={}.toString.call(process),Z="undefined"!=typeof Uint8ClampedArray&&"undefined"!=typeof importScripts&&"undefined"!=typeof MessageChannel,tt=new Array(1e3);V=X?u():Y?d():Z?l():void 0===G&&"function"==typeof e?p():f();var et=void 0,nt=1,rt=2,it=new N,ot=new N;j.prototype._validateInput=function(t){return $(t)},j.prototype._validationError=function(){return new Error("Array Methods must be provided an Array")},j.prototype._init=function(){this._result=new Array(this.length)};var at=j;j.prototype._enumerate=function(){for(var t=this,e=t.length,n=t.promise,r=t._input,i=0;n._state===et&&e>i;i++)t._eachEntry(r[i],i)},j.prototype._eachEntry=function(t,e){var n=this,r=n._instanceConstructor;o(t)?t.constructor===r&&t._state!==et?(t._onerror=null,n._settledAt(t._state,e,t._result)):n._willSettleAt(r.resolve(t),e):(n._remaining--,n._result[e]=t)},j.prototype._settledAt=function(t,e,n){var r=this,i=r.promise;i._state===et&&(r._remaining--,t===rt?I(i,n):r._result[e]=n),0===r._remaining&&A(i,r._result)},j.prototype._willSettleAt=function(t,e){var n=this;C(t,void 0,function(t){n._settledAt(nt,e,t)},function(t){n._settledAt(rt,e,t)})};var st=D,ut=O,ct=L,dt=z,lt=0,ft=W;W.all=st,W.race=ut,W.resolve=ct,W.reject=dt,W._setScheduler=a,W._setAsap=s,W._asap=Q,W.prototype={constructor:W,then:function(t,e){var n=this,r=n._state;if(r===nt&&!t||r===rt&&!e)return this;var i=new this.constructor(m),o=n._result;if(r){var a=arguments[r-1];Q(function(){P(r,i,a,o)})}else C(n,i,t,e);return i},"catch":function(t){return this.then(null,t)}};var ht=B,pt={Promise:ft,polyfill:ht};"function"==typeof t&&t.amd?t(function(){return pt}):"undefined"!=typeof n&&n.exports&&(n.exports=pt)}).call(this)},{}],2:[function(e,n,r){!function(e){"use strict";function r(){this.frames=[],this.lastId=0,this.raf=i,this.batch={hash:{},read:[],write:[],mode:null}}var i=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.msRequestAnimationFrame||function(t){return window.setTimeout(t,1e3/60)};r.prototype.read=function(t,e){var n=this.add("read",t,e),r=n.id;this.batch.read.push(n.id);var i="reading"===this.batch.mode||this.batch.scheduled;return i?r:(this.scheduleBatch(),r)},r.prototype.write=function(t,e){var n=this.add("write",t,e),r=this.batch.mode,i=n.id;this.batch.write.push(n.id);var o="writing"===r||"reading"===r||this.batch.scheduled;return o?i:(this.scheduleBatch(),i)},r.prototype.defer=function(t,e,n){"function"==typeof t&&(n=e,e=t,t=1);var r=this,i=t-1;return this.schedule(i,function(){r.run({fn:e,ctx:n})})},r.prototype.clear=function(t){if("function"==typeof t)return this.clearFrame(t);t=Number(t);var e=this.batch.hash[t];if(e){var n=this.batch[e.type],r=n.indexOf(t);delete this.batch.hash[t],~r&&n.splice(r,1)}},r.prototype.clearFrame=function(t){var e=this.frames.indexOf(t);~e&&this.frames.splice(e,1)},r.prototype.scheduleBatch=function(){var t=this;this.schedule(0,function(){t.batch.scheduled=!1,t.runBatch()}),this.batch.scheduled=!0},r.prototype.uniqueId=function(){return++this.lastId},r.prototype.flush=function(t){for(var e;e=t.shift();)this.run(this.batch.hash[e])},r.prototype.runBatch=function(){try{this.batch.mode="reading",this.flush(this.batch.read),this.batch.mode="writing",this.flush(this.batch.write),this.batch.mode=null}catch(t){throw this.runBatch(),t}},r.prototype.add=function(t,e,n){var r=this.uniqueId();return this.batch.hash[r]={id:r,fn:e,ctx:n,type:t}},r.prototype.run=function(t){var e=t.ctx||this,n=t.fn;if(delete this.batch.hash[t.id],!this.onError)return n.call(e);try{n.call(e)}catch(r){this.onError(r)}},r.prototype.loop=function(){var t=this,e=this.raf;this.looping||(e(function n(){var r=t.frames.shift();t.frames.length?e(n):t.looping=!1,r&&r()}),this.looping=!0)},r.prototype.schedule=function(t,e){return this.frames[t]?this.schedule(t+1,e):(this.loop(),this.frames[t]=e)},e=e||new r,"undefined"!=typeof n&&n.exports?n.exports=e:"function"==typeof t&&t.amd?t(function(){return e}):window.fastdom=e}(window.fastdom)},{}],3:[function(t,e,n){function r(){return s.builtUrl(d)}function i(t){return"dark"===t?"dark":"light"}function o(t,e,n){var r,o;return n=i(n),r=a.isRtlLang(e)?"rtl":"ltr",o=[t,u.css,n,r,"css"].join("."),s.base()+"/css/"+o}var a=t(32),s=t(61),u=t(115),c=t(89),d="embed/timeline.css";e.exports={tweet:c(o,null,"tweet"),timeline:r,video:c(o,null,"video"),grid:c(o,null,"grid")}},{115:115,32:32,61:61,89:89}],4:[function(t,e,n){function r(t){return t.input.lang||m}function i(t,e){var n={ids:[],lang:t};return n=e.reduce(function(t,e){return t.ids.push(e.input.id),t},n),n.ids=n.ids.sort().join(","),n}function o(t,e){t.forEach(function(t){var n=e[t.input.id];n?t.taskDoneDeferred.resolve(n):t.taskDoneDeferred.reject(new Error("not found"))})}function a(t){t.forEach(function(t){t.taskDoneDeferred.reject(new Error("request failed"))})}function s(t,e){var n=l(e,r);h.forIn(n,function(e,n){var r=i(e,n),s=p(o,null,n),u=p(a,null,n);d.fetch(t,r,c).then(s,u)})}function u(t){this.requestQueue=new f(p(s,null,t))}var c=t(5),d=t(7),l=t(73),f=t(76),h=t(109),p=t(89),m="en";u.prototype.fetch=function(t,e){return this.requestQueue.add({id:t,lang:e})},e.exports=u},{109:109,5:5,7:7,73:73,76:76,89:89}],5:[function(t,e,n){function r(t){return{success:!0,resp:t}}e.exports=r},{}],6:[function(t,e,n){function r(){var t=9e5;return Math.floor(+new Date/t)}e.exports=r},{}],7:[function(t,e,n){function r(){return d+l++}function i(t,e,n,i){var d,l,f;return i=i||r(),d=a.fullPath(["callbacks",i]),l=o.createElement("script"),f=new s,e=u.aug({},e,{callback:d,suppress_response_codes:!0}),a.set(["callbacks",i],function(t){var e,r;e=n(t||!1),t=e.resp,r=e.success,r?f.resolve(t):f.reject(t),l.onload=l.onreadystatechange=null,l.parentNode&&l.parentNode.removeChild(l),a.unset(["callbacks",i])}),l.onerror=function(){f.reject(new Error("failed to fetch "+l.src))},l.src=c.url(t,e),l.async="async",o.body.appendChild(l),f.promise}var o=t(17),a=t(28),s=t(97),u=t(109),c=t(100),d="cb",l=0;e.exports={fetch:i}},{100:100,109:109,17:17,28:28,97:97}],8:[function(t,e,n){function r(t){var e,n;return e=t.headers&&t.headers.status,n=t&&!t.error&&200===e,!n&&t.headers&&t.headers.message&&i.warn(t.headers.message),{success:n,resp:t}}var i=t(94);e.exports=r},{94:94}],9:[function(t,e,n){function r(t){return 10>t?"0"+t:t}function i(t){function e(t,e){return n&&n[t]&&(t=n[t]),t.replace(/%\{([\w_]+)\}/g,function(t,n){return void 0!==e[n]?e[n]:t})}var n=t&&t.phrases,o=t&&t.months||u,a=t&&t.formats||c;this.timeAgo=function(t){var n,r=i.parseDate(t),s=+new Date,u=s-r;return r?isNaN(u)||2*d>u?e("now"):l>u?(n=Math.floor(u/d),e(a.abbr,{number:n,symbol:e(p,{abbr:e("s"),expanded:e(n>1?"seconds":"second")})})):f>u?(n=Math.floor(u/l),e(a.abbr,{number:n,symbol:e(p,{abbr:e("m"),expanded:e(n>1?"minutes":"minute")})})):h>u?(n=Math.floor(u/f),e(a.abbr,{number:n,symbol:e(p,{abbr:e("h"),expanded:e(n>1?"hours":"hour")})})):365*h>u?e(a.shortdate,{day:r.getDate(),month:e(o[r.getMonth()])}):e(a.longdate,{day:r.getDate(),month:e(o[r.getMonth()]),year:r.getFullYear().toString().slice(2)}):""},this.localTimeStamp=function(t){var n=i.parseDate(t),s=n&&n.getHours();return n?e(a.full,{day:n.getDate(),month:e(o[n.getMonth()]),year:n.getFullYear(),hours24:r(s),hours12:13>s?s?s:"12":s-12,minutes:r(n.getMinutes()),seconds:r(n.getSeconds()),amPm:e(12>s?"AM":"PM")}):""}}var o=/(\d{4})-?(\d{2})-?(\d{2})T(\d{2}):?(\d{2}):?(\d{2})(Z|[\+\-]\d{2}:?\d{2})/,a=/[a-z]{3,4} ([a-z]{3}) (\d{1,2}) (\d{1,2}):(\d{2}):(\d{2}) ([\+\-]\d{2}:?\d{2}) (\d{4})/i,s=/^\d+$/,u=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],c={abbr:"%{number}%{symbol}",shortdate:"%{day} %{month}",longdate:"%{day} %{month} %{year}",full:"%{hours12}:%{minutes} %{amPm} - %{day} %{month} %{year}"},d=1e3,l=60*d,f=60*l,h=24*f,p='<abbr title="%{expanded}">%{abbr}</abbr>';i.parseDate=function(t){var e,n,r=t||"",i=r.toString();return(e=function(){var t;return s.test(i)?parseInt(i,10):(t=i.match(a))?Date.UTC(t[7],u.indexOf(t[1]),t[2],t[3],t[4],t[5]):(t=i.match(o))?Date.UTC(t[1],t[2]-1,t[3],t[4],t[5],t[6]):void 0}())?(n=new Date(e),!isNaN(n.getTime())&&n):!1},e.exports=i},{}],10:[function(t,e,n){function r(t){return new o(i.compact({months:(t.getAttribute("data-dt-months")||"").split("|"),phrases:{AM:t.getAttribute("data-dt-am"),PM:t.getAttribute("data-dt-pm"),now:t.getAttribute("data-dt-now"),s:t.getAttribute("data-dt-s"),m:t.getAttribute("data-dt-m"),h:t.getAttribute("data-dt-h"),second:t.getAttribute("data-dt-second"),seconds:t.getAttribute("data-dt-seconds"),minute:t.getAttribute("data-dt-minute"),minutes:t.getAttribute("data-dt-minutes"),hour:t.getAttribute("data-dt-hour"),hours:t.getAttribute("data-dt-hours")},formats:{full:t.getAttribute("data-dt-full"),abbr:t.getAttribute("data-dt-abbr"),shortdate:t.getAttribute("data-dt-short"),longdate:t.getAttribute("data-dt-long")}}))}var i=t(109),o=t(9);e.exports=r},{109:109,9:9}],11:[function(t,e,n){function r(t){return new RegExp("\\b"+t+"\\b","g")}function i(t,e){return t.classList?void t.classList.add(e):void(r(e).test(t.className)||(t.className+=" "+e))}function o(t,e){return t.classList?void t.classList.remove(e):void(t.className=t.className.replace(r(e)," "))}function a(t,e,n){return void 0===n&&t.classList&&t.classList.toggle?t.classList.toggle(e,n):(n?i(t,e):o(t,e),n)}function s(t,e,n){return t.classList&&u(t,e)?(o(t,e),void i(t,n)):void(t.className=t.className.replace(r(e),n))}function u(t,e){return t.classList?t.classList.contains(e):d.contains(c(t),e)}function c(t){return d.toRealArray(t.classList?t.classList:t.className.match(l))}var d=t(109),l=/\b([\w-_]+)\b/g;e.exports={add:i,remove:o,replace:s,toggle:a,present:u,list:c}},{109:109}],12:[function(t,e,n){function r(t){var e=t.getAttribute("data-twitter-event-id");return e?e:(t.setAttribute("data-twitter-event-id",++g),g)}function i(t,e,n){var r=0,i=t&&t.length||0;for(r=0;i>r;r++)t[r].call(e,n,e)}function o(t,e,n){for(var r=n||t.target||t.srcElement,a=p.list(r),s=0,u=a.length;u>s;s++)i(e["."+a[s]],r,t);i(e[r.tagName],r,t),t.cease||r!==this&&o.call(this,t,e,r.parentElement||r.parentNode)}function a(t,e,n,r){function i(r){o.call(t,r,n[e])}s(t,i,e,r),t.addEventListener(e,i,!1)}function s(t,e,n,r){t.id&&(v[t.id]=v[t.id]||[],v[t.id].push({el:t,listener:e,type:n,rootId:r}))}function u(t){var e=v[t];e&&(e.forEach(function(t){t.el.removeEventListener(t.type,t.listener,!1),delete m[t.rootId]}),delete v[t])}function c(t,e,n,i){var o=r(t);m[o]=m[o]||{},m[o][e]||(m[o][e]={},a(t,e,m[o],o)),m[o][e][n]=m[o][e][n]||[],m[o][e][n].push(i)}function d(t,e,n){var i=r(e),a=m[i]&&m[i];o.call(e,{target:n},a[t])}function l(t){return h(t),f(t),!1}function f(t){t&&t.preventDefault?t.preventDefault():t.returnValue=!1}function h(t){t&&(t.cease=!0)&&t.stopPropagation?t.stopPropagation():t.cancelBubble=!0}var p=t(11),m={},g=-1,v={};e.exports={stop:l,stopPropagation:h,preventDefault:f,delegate:c,simulate:d,removeDelegatesForWidget:u}},{11:11}],13:[function(t,e,n){function r(t){var e=t.charAt(0);return"."===e?function(e){var n=e.className?e.className.split(/\s+/):[];return o.contains(n,t.slice(1))}:"#"===e?function(e){return e.id===t.slice(1)}:function(e){return e.tagName===t.toUpperCase()}}function i(t,e,n){var a;if(e)return n=n||e&&e.ownerDocument,a=o.isType("function",t)?t:r(t),e===n?a(e)?e:void 0:a(e)?e:i(a,e.parentNode,n)}var o=t(109);e.exports={closest:i}},{109:109}],14:[function(t,e,n){function r(t,e){return function(){try{e.resolve(t.call(this))}catch(n){e.reject(n)}}}function i(t,e){t.call(e)}function o(t,e){var n=new c;return u.read(r(t,n),e),n.promise}function a(t,e){var n=new c;return u.write(r(t,n),e),n.promise}function s(t,e,n){var i=new c;return d.isType("function",t)&&(n=e,e=t,t=1),u.defer(t,r(e,i),n),i.promise}var u=t(2),c=t(97),d=t(109);e.exports={sync:i,read:o,write:a,defer:s}},{109:109,2:2,97:97}],15:[function(t,e,n){function r(t){return t=t||o,t.getSelection&&t.getSelection()}function i(t){var e=r(t);return e?e.toString():""}var o=t(20);e.exports={getSelection:r,getSelectedText:i}},{20:20}],16:[function(t,e,n){function r(t){return t&&1===t.nodeType?t.offsetWidth||r(t.parentNode):0}e.exports={effectiveWidth:r}},{}],17:[function(t,e,n){e.exports=document},{}],18:[function(t,e,n){e.exports=location},{}],19:[function(t,e,n){e.exports=navigator},{}],20:[function(t,e,n){e.exports=window},{}],21:[function(t,e,n){function r(t,e,n){e.ready=i(t.then,t),n&&Array.isArray(e[n])&&(e[n].forEach(i(t.then,t)),delete e[n])}var i=t(89);e.exports={exposeReadyPromise:r}},{89:89}],22:[function(t,e,n){function r(){return!0}function i(t){return t}function o(t,e,n){var r=null;return t.some(function(t){return t=s.isType("function",t)?t():t,e(t)?(r=n(t),!0):void 0}),r}function a(){function t(t){var e=this;t=t||{},this.params=Object.keys(this.paramConfigs).reduce(function(n,a){var s=[],u=e.boundParams,c=e.paramConfigs[a],d=c.validate||r,l=c.transform||i;if(a in u&&s.push(u[a]),a in t&&s.push(t[a]),s="fallback"in c?s.concat(c.fallback):s,n[a]=o(s,d,l),c.required&&null==n[a])throw new Error(a+" is a required parameter");return n},{}),this.initialize()}return s.aug(t.prototype,{paramConfigs:{},boundParams:{},initialize:function(){}}),t}var s=t(109);e.exports=a},{109:109}],23:[function(t,e,n){function r(t,e,n){var r=this[e];if(!r)throw new Error(e+" does not exist");this[e]=t(r,n)}function i(){this.Component=this.factory(),this._adviceArgs=[],this._lastArgs=[]}var o=t(24),a=t(71),s=t(109),u=t(22);s.aug(i.prototype,{factory:u,build:function(t){var e=this,n=this.Component;return s.aug(this.Component.prototype.boundParams,t),o.ifEnabled(function(){Object.freeze(n.prototype.boundParams),Object.freeze(n.prototype.paramConfigs)}),this._adviceArgs.concat(this._lastArgs).forEach(function(t){r.apply(e.Component.prototype,t)}),delete this._lastArgs,delete this._adviceArgs,this.Component},params:function(t){var e=this.Component.prototype.paramConfigs;t=t||{},this.Component.prototype.paramConfigs=s.aug({},t,e)},define:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.override(t,e)},override:function(t,e){this.Component.prototype[t]=e},defineProperty:function(t,e){if(t in this.Component.prototype)throw new Error(t+" has previously been defined");this.overrideProperty(t,e)},overrideProperty:function(t,e){var n=s.aug({configurable:!0},e);Object.defineProperty(this.Component.prototype,t,n)},before:function(t,e){this._adviceArgs.push([a.before,t,e])},after:function(t,e){this._adviceArgs.push([a.after,t,e])},around:function(t,e){this._adviceArgs.push([a.around,t,e])},last:function(t,e){this._lastArgs.push([a.after,t,e])}}),e.exports=i},{109:109,22:22,24:24,71:71}],24:[function(t,e,n){function r(){c=!0}function i(){c=!1}function o(t){c&&t()}function a(t){o(function(){u.warn(t)})}function s(t){o(function(){throw new Error(t)})}var u=t(94),c=!1;e.exports={enable:r,disable:i,ifEnabled:o,fail:s,warn:a}},{94:94}],25:[function(t,e,n){function r(){return s.toRealArray(arguments)}function i(t,e,n){var r=new t;return e=a(o(e||[])),e.forEach(function(t){t.call(null,r)}),r.build(n)}var o=t(72),a=t(74),s=t(109);e.exports={couple:r,build:i}},{109:109,72:72,74:74}],26:[function(t,e,n){function r(t){return s.isType("string",t)?t.split("."):s.isType("array",t)?t:[]}function i(t,e){var n=r(e),i=n.slice(0,-1);return i.reduce(function(t,e,n){if(t[e]=t[e]||{},!s.isObject(t[e]))throw new Error(i.slice(0,n+1).join(".")+" is already defined with a value.");return t[e]},t)}function o(t,e){e=e||a,e[t]=e[t]||{},Object.defineProperty(this,"base",{value:e[t]}),Object.defineProperty(this,"name",{value:t})}var a=t(20),s=t(109);s.aug(o.prototype,{get:function(t){var e=r(t);return e.reduce(function(t,e){return s.isObject(t)?t[e]:void 0},this.base)},set:function(t,e,n){var o=r(t),a=i(this.base,t),s=o.slice(-1);return n&&s in a?a[s]:a[s]=e},init:function(t,e){return this.set(t,e,!0)},unset:function(t){var e=r(t),n=this.get(e.slice(0,-1));n&&delete n[e.slice(-1)]},aug:function(t){var e=this.get(t),n=s.toRealArray(arguments).slice(1);if(e="undefined"!=typeof e?e:{},n.unshift(e),!n.every(s.isObject))throw new Error("Cannot augment non-object.");return this.set(t,s.aug.apply(null,n))},call:function(t){var e=this.get(t),n=s.toRealArray(arguments).slice(1);if(!s.isType("function",e))throw new Error("Function "+t+"does not exist.");return e.apply(null,n)},fullPath:function(t){var e=r(t);return e.unshift(this.name),e.join(".")}}),e.exports=o},{109:109,20:20}],27:[function(t,e,n){function r(t){var e,n,r,i=0;for(o={},t=t||a,e=t.getElementsByTagName("meta");n=e[i];i++)/^twitter:/.test(n.name)&&(r=n.name.replace(/^twitter:/,""),o[r]=n.content)}function i(t){return o[t]}var o,a=t(17);r(),e.exports={init:r,val:i}},{17:17}],28:[function(t,e,n){var r=t(26);e.exports=new r("__twttr")},{26:26}],29:[function(t,e,n){var r=t(26);e.exports=new r("twttr")},{26:26}],30:[function(t,e,n){function r(t){return"en"===t||i.contains(o,t)}var i=t(109),o=t(31);e.exports=r},{109:109,31:31}],31:[function(t,e,n){e.exports=["hi","zh-cn","fr","zh-tw","msa","fil","fi","sv","pl","ja","ko","de","it","pt","es","ru","id","tr","da","no","nl","hu","fa","ar","ur","he","th","cs","uk","vi","ro","bn","el"]},{}],32:[function(t,e,n){function r(t){return t=String(t).toLowerCase(),o.contains(s,t)}function i(t){return t=(t||"").toLowerCase(),t=t.replace("_","-"),a(t)?t:(t=t.replace(/\-.*/,""),a(t)?t:"en")}var o=t(109),a=t(30),s=["ar","fa","he","ur"];e.exports={isRtlLang:r,matchLanguage:i}},{109:109,30:30}],33:[function(t,e,n){function r(t){var e=~a.host.indexOf("poptip.com")?"https://poptip.com":a.href,n="original_referer="+e;return[t,n].join(-1==t.indexOf("?")?"?":"&")}function i(t){var e,n;t.altKey||t.metaKey||t.shiftKey||(e=u.closest(function(t){return"A"===t.tagName||"AREA"===t.tagName},t.target),e&&d.isIntentURL(e.href)&&(n=r(e.href),n=n.replace(/^http[:]/,"https:"),n=n.replace(/^\/\//,"https://"),c.open(n,e),s.preventDefault(t)))}function o(t){t.addEventListener("click",i,!1)}var a=t(18),s=t(12),u=t(13),c=t(65),d=t(103);e.exports={attachTo:o}},{103:103,12:12,13:13,18:18,65:65}],34:[function(t,e,n){function r(t){var e=[];return f.forIn(t,function(t,n){e.push(t+"="+n)}),e.join(",")}function i(){return h+l.generate()}function o(t,e){function n(t){return Math.round(t/2)}return t>e?{coordinate:0,size:e}:{coordinate:n(e)-n(t),size:t}}function a(t,e,n){var i,a;e=s.parse(e),n=n||{},i=o(e.width,n.width||p),e.left=i.coordinate,e.width=i.size,a=o(e.height,n.height||m),e.top=a.coordinate,e.height=a.size,this.win=t,this.features=r(e)}var s,u=t(20),c=t(95),d=t(103),l=t(105),f=t(109),h="intent_",p=u.screen.width,m=u.screen.height;s=(new c).defaults({width:550,height:520,personalbar:"0",toolbar:"0",location:"1",scrollbars:"1",resizable:"1"}),a.prototype.open=function(t){return d.isTwitterURL(t)?(this.name=i(),this.popup=this.win.open(t,this.name,this.features),this):void 0},a.open=function(t,e){var n=new a(u,e);return n.open(t)},e.exports=a},{103:103,105:105,109:109,20:20,95:95}],35:[function(t,e,n){function r(t){return function(e){var n=t.srcEl,r=t.targetEl;n?r.insertBefore(e,n):r.appendChild(e)}}function i(t){return c.write(function(){t&&t.parentNode&&t.parentNode.removeChild(t)})}function o(t){t.forEach(function(t){var e=t.input;try{a(e).then(t.taskDoneDeferred.resolve,t.taskDoneDeferred.reject)}catch(n){t.taskDoneDeferred.reject(n)}})}function a(t){function e(){return i(t.srcEl).then(function(){return o.sandboxEl})}function n(){return i(o.sandboxEl).then(function(){return t.srcEl?p.always(c.write(function(){u.add(t.srcEl,f)}),function(){return t.srcEl}):void 0})}var o=new t.sandbox,a=new t.module(t.parameters,o),s=t.className+"-rendered",f=t.className+"-error",m=o.insert(a.id,[t.className,s],r(t)),g=a.hydrate();return h.all([m,g]).then(function(){return a.render(o)}).then(function(){d.add(a,o.sandboxEl),o.onResize(function(){return a.resize().then(function(){l.trigger("resize",{target:o.sandboxEl})})})}).then(e,n).then(function(t){return t?(l.trigger("rendered",{target:t}),t):void 0})}function s(t){return m.add(t)}var u=t(11),c=t(14),d=t(50),l=t(66),f=t(76),h=t(98),p=t(99),m=new f(o);e.exports={addWidget:s}},{11:11,14:14,50:50,66:66,76:76,98:98,99:99}],36:[function(t,e,n){function r(t,e,n,r,i,o){this.module=t,this.sandbox=e,this.srcEl=o,this.targetEl=i,this.parameters=r,this.className=n}r.prototype.destroy=function(){this.srcEl=this.targetEl=null},e.exports=r},{}],37:[function(t,e,n){function r(t){c[t]=+new Date}function i(t){return c[t]?+new Date-c[t]:null}function o(t,e,n,r,o){var s=i(e);s&&a(t,n,r,s,o)}function a(t,e,n,r,i){var o,a=void 0===i?d:i;100*Math.random()>a||(n=u.aug(n||{},{duration_ms:r}),o={page:e,component:"performance",action:t},s.clientEvent(o,n,!0))}var s=t(57),u=t(109),c={},d=1;e.exports={start:r,end:i,track:a,endAndTrack:o}},{109:109,57:57}],38:[function(t,e,n){e.exports={PARSE_ERROR:{code:-32700,message:"Parse error"},INVALID_REQUEST:{code:-32600,message:"Invalid Request"},INVALID_PARAMS:{code:-32602,message:"Invalid params"},METHOD_NOT_FOUND:{code:-32601,message:"Method not found"},INTERNAL_ERROR:{code:-32603,message:"Internal error"}}},{}],39:[function(t,e,n){function r(t){this.registry=t||{}}function i(t){return h.isType("string",t)?l.parse(t):t}function o(t){var e,n,r;return h.isObject(t)?(e=t.jsonrpc===g,n=h.isType("string",t.method),r=!("id"in t)||a(t.id),e&&n&&r):!1}function a(t){var e,n,r;return e=h.isType("string",t),n=h.isType("number",t),r=null===t,e||n||r}function s(t){return h.isObject(t)&&!h.isType("function",t)}function u(t,e){return{jsonrpc:g,id:t,result:e}}function c(t,e){return{jsonrpc:g,id:a(t)?t:null,error:e}}function d(t){return p.all(t).then(function(t){return t=t.filter(function(t){return void 0!==t}),t.length?t:void 0})}var l=t(93),f=t(38),h=t(109),p=t(98),m=t(99),g="2.0";r.prototype._invoke=function(t,e){var n,r,i;n=this.registry[t.method],r=t.params||[],r=h.isType("array",r)?r:[r];try{i=n.apply(e.source||null,r)}catch(o){i=p.reject(o.message)}return m.isPromise(i)?i:p.resolve(i)},r.prototype._processRequest=function(t,e){function n(e){return u(t.id,e)}function r(){return c(t.id,f.INTERNAL_ERROR)}var i;return o(t)?(i="params"in t&&!s(t.params)?p.resolve(c(t.id,f.INVALID_PARAMS)):this.registry[t.method]?this._invoke(t,{source:e}).then(n,r):p.resolve(c(t.id,f.METHOD_NOT_FOUND)),null!=t.id?i:p.resolve()):p.resolve(c(t.id,f.INVALID_REQUEST))},r.prototype.attachReceiver=function(t){return t.attachTo(this),this},r.prototype.bind=function(t,e){return this.registry[t]=e,this},r.prototype.receive=function(t,e){var n,r,o,a=this;try{t=i(t)}catch(s){return p.resolve(c(null,f.PARSE_ERROR))}return e=e||null,n=h.isType("array",t),r=n?t:[t],o=r.map(function(t){return a._processRequest(t,e)}),n?d(o):o[0]},e.exports=r},{109:109,38:38,93:93,98:98,99:99}],40:[function(t,e,n){function r(t,e,n){var r;t&&t.postMessage&&(v?r=(n||"")+l.stringify(e):n?(r={},r[n]=e):r=e,t.postMessage(r,"*"))}function i(t){return p.isType("string",t)?t:"JSONRPC"}function o(t,e){return e?p.isType("string",t)&&0===t.indexOf(e)?t.substring(e.length):t[e]?t[e]:void 0:t}function a(t,e){var n=t.document;this.filter=i(e),this.server=null,this.isTwitterFrame=m.isTwitterURL(n.location.href),t.addEventListener("message",g(this._onMessage,this),!1)}function s(t,e){this.pending={},this.target=t,this.isTwitterHost=m.isTwitterURL(c.href),this.filter=i(e),d.addEventListener("message",g(this._onMessage,this),!1)}function u(t){return arguments.length>0&&(v=!!t),v}var c=t(18),d=t(20),l=t(93),f=t(97),h=t(86),p=t(109),m=t(103),g=t(89),v=h.ie9();p.aug(a.prototype,{_onMessage:function(t){var e,n=this;this.server&&(!this.isTwitterFrame||m.isTwitterURL(t.origin))&&(e=o(t.data,this.filter),e&&this.server.receive(e,t.source).then(function(e){e&&r(t.source,e,n.filter)}))},attachTo:function(t){this.server=t},detach:function(){this.server=null}}),p.aug(s.prototype,{_processResponse:function(t){var e=this.pending[t.id];e&&(e.resolve(t),delete this.pending[t.id])},_onMessage:function(t){var e;if((!this.isTwitterHost||m.isTwitterURL(t.origin))&&(e=o(t.data,this.filter))){if(p.isType("string",e))try{e=l.parse(e)}catch(n){return}e=p.isType("array",e)?e:[e],e.forEach(g(this._processResponse,this))}},send:function(t){var e=new f;return t.id?this.pending[t.id]=e:e.resolve(),r(this.target,t,this.filter),e.promise}}),e.exports={Receiver:a,Dispatcher:s,_stringifyPayload:u}},{103:103,109:109,18:18,20:20,86:86,89:89,93:93,97:97}],41:[function(t,e,n){function r(t,e,n,r){var a,c=this;this.readyDeferred=new o,this.attrs=t||{},this.styles=e||{},this.appender=n||function(t){i.body.appendChild(t)},this.layout=r||function(t){return u.resolve(t())},this.frame=a=s(this.attrs,this.styles),a.onreadystatechange=a.onload=this.getCallback(this.onLoad),this.layout(function(){c.appender(a)})}var i=t(17),o=t(97),a=t(86),s=t(92),u=t(98),c=t(28),d=0;r.prototype.getCallback=function(t){var e=this,n=!1;return function(){n||(n=!0,t.call(e))}},r.prototype.registerCallback=function(t){var e="cb"+d++;return c.set(["sandbox",e],t),e},r.prototype.onLoad=function(){try{this.document=this.frame.contentWindow.document}catch(t){return void this.setDocDomain()}this.writeStandardsDoc(),this.readyDeferred.resolve(this)},r.prototype.ready=function(){return this.readyDeferred.promise},r.prototype.setDocDomain=function(){var t=this,e=s(this.attrs,this.styles),n=this.registerCallback(this.getCallback(this.onLoad));e.src=["javascript:",'document.write("");',"try { window.parent.document; }","catch (e) {",'document.domain="'+i.domain+'";',"}","window.parent."+c.fullPath(["sandbox",n])+"();"].join(""),this.layout(function(){t.frame.parentNode.removeChild(t.frame),t.frame=null,t.appender?t.appender(e):i.body.appendChild(e),t.frame=e})},r.prototype.writeStandardsDoc=function(){if(a.anyIE()&&!a.cspEnabled()){var t=["<!DOCTYPE html>","<html>","<head>","<scr","ipt>","try { window.parent.document; }",'catch (e) {document.domain="'+i.domain+'";}',"</scr","ipt>","</head>","<body></body>","</html>"].join("");this.document.write(t),this.document.close()}},e.exports=r},{17:17,28:28,86:86,92:92,97:97,98:98}],42:[function(t,e,n){var r=t(46),i=t(48);e.exports=r.build([i])},{46:46,48:48}],43:[function(t,e,n){var r=t(46),i=t(49);e.exports=r.build([i])},{46:46,49:49}],44:[function(t,e,n){function r(){var t=a();return u.aug(t.prototype,{id:null,initialized:!1,width:0,height:0,sandboxEl:null,insert:function(){return s.reject()},onResize:function(){},addClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],o.write(function(){t.forEach(function(t){i.add(e,t)})})},removeClass:function(t){var e=this.sandboxEl;return t=Array.isArray(t)?t:[t],o.write(function(){t.forEach(function(t){i.remove(e,t)})})},styleSelf:function(t){var e=this;return o.write(function(){u.forIn(t,function(t,n){e.sandboxEl.style[t]=n})})}}),t}var i=t(11),o=t(14),a=t(22),s=t(98),u=t(109);e.exports=r; },{109:109,11:11,14:14,22:22,98:98}],45:[function(t,e,n){function r(){i.apply(this,arguments)}var i=t(23),o=t(109),a=t(44);r.prototype=Object.create(i.prototype),o.aug(r.prototype,{factory:a}),e.exports=r},{109:109,23:23,44:44}],46:[function(t,e,n){var r=t(25),i=t(45),o=t(89);r=Object.create(r),r.build=o(r.build,null,i),e.exports=r},{25:25,45:45,89:89}],47:[function(t,e,n){function r(t,e){t&&(this._frame=t,this._win=t.contentWindow,this._doc=this._win.document,this._body=this._doc.body,this._head=this._body.parentNode.children[0],this.layout=e,this.root=this._doc.documentElement,this.root.className="SandboxRoot")}var i=t(41),o=t(109);o.aug(r.prototype,{createElement:function(t){return this._doc.createElement(t)},createDocumentFragment:function(){return this._doc.createDocumentFragment()},appendChild:function(t){var e=this;return this.layout(function(){return e._body.appendChild(t)})},setBaseTarget:function(t){var e=this,n=this._doc.createElement("base");return n.target=t,this.layout(function(){return e._head.appendChild(n)})},setTitle:function(t){t&&(this._frame.title=t)},element:function(){return this._frame},document:function(){return this._doc}}),r.createSandbox=function(t,e,n,o){var a=new i(t,e,n,o);return a.ready().then(function(t){return new r(t.frame,t.layout)})},e.exports=r},{109:109,41:41}],48:[function(t,e,n){function r(t,e){var n=b.aug({id:t,"class":e},_);return m(n,T)}function i(t){try{t.contentWindow.document}catch(e){return w.reject(e)}return w.resolve(t)}function o(t){var e=new v,n=x.generate(),i=r(t.id,t.className);return y.set(["sandbox",n],function(){var t=i.contentWindow.document,n="<!DOCTYPE html><html><head></head><body></body></html>";d.write(function(){t.write(n)}).then(function(){t.close(),e.resolve(i)})}),i.src=["javascript:",'document.write("");',"try { window.parent.document; }",'catch (e) { document.domain="'+u.domain+'"; }',"window.parent."+y.fullPath(["sandbox",n])+"();"].join(""),i.addEventListener("error",e.reject,!1),d.write(function(){t.parentNode.replaceChild(i,t)}),e.promise}function a(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.win}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.defineProperty("rootEl",{get:function(){return this.doc&&this.doc.documentElement}}),t.defineProperty("widgetEl",{get:function(){return this.doc&&this.doc.body.firstElementChild}}),t.defineProperty("win",{get:function(){return this.iframeEl&&this.iframeEl.contentWindow}}),t.defineProperty("doc",{get:function(){return this.win&&this.win.document}}),t.define("updateCachedDimensions",function(){var t=this;return d.read(function(){var e,n=g(t.sandboxEl);"visible"==t.sandboxEl.style.visibility?t._width=n.width:(e=g(t.sandboxEl.parentElement).width,t._width=Math.min(n.width,e)),t._height=n.height})}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.define("createElement",function(t){return this.doc.createElement(t)}),t.define("createFragment",function(){return this.doc.createDocumentFragment()}),t.define("htmlToElement",function(t){var e;return e=this.createElement("div"),e.innerHTML=t,e.firstElementChild}),t.define("hasSelectedText",function(){return!!l.getSelectedText(this.win)}),t.define("setTargetToBlank",function(){var t=this.createElement("base");t.target="_blank",this.doc.head.appendChild(t)}),t.define("addRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?d.write(function(){t.forEach(function(t){c.add(e,t)})}):w.reject(new Error("sandbox not initialized"))}),t.define("removeRootClass",function(t){var e=this.rootEl;return t=Array.isArray(t)?t:[t],this.initialized?d.write(function(){t.forEach(function(t){c.remove(e,t)})}):w.reject(new Error("sandbox not initialized"))}),t.define("hasRootClass",function(t){return c.present(this.rootEl,t)}),t.define("addStyleSheet",function(t,e){function n(){var t=o.doc.head.firstElementChild;return t?o.doc.head.insertBefore(i,t):o.doc.head.appendChild(i)}function r(){return o.doc.head.appendChild(i)}var i,o=this,a=new v;return this.initialized?(i=this.createElement("link"),i.type="text/css",i.rel="stylesheet",i.href=t,i.addEventListener("load",a.resolve,!1),i.addEventListener("error",a.reject,!1),d.write(e?n:r).then(function(){var e=o.createElement("img");return e.src=t,e.onerror=function(){s.setTimeout(a.resolve,50)},a.promise})):w.reject(new Error("sandbox not initialized"))}),t.define("prependStyleSheet",function(t){return this.addStyleSheet(t,!0)}),t.define("appendStyleSheet",function(t){return this.addStyleSheet(t,!1)}),t.define("addCss",function(t,e){function n(){var t=o.doc.head.firstElementChild;return t?o.doc.head.insertBefore(i,t):o.doc.head.appendChild(i)}function r(){return o.doc.head.appendChild(i)}var i,o=this;return h.cspEnabled()?(f.warn("CSP enabled; cannot embed inline styles"),w.resolve()):(i=this.createElement("style"),i.type="text/css",i.appendChild(this.doc.createTextNode(t)),d.write(e?n:r))}),t.define("prependCss",function(t){return this.addCss(t,!0)}),t.define("appendCss",function(t){return this.addCss(t,!1)}),t.define("makeVisible",function(){var t=this;return this.styleSelf(A).then(function(){t.updateCachedDimensions()})}),t.define("injectWidgetEl",function(t){var e=this;return this.initialized?this.widgetEl?w.reject(new Error("widget already injected")):d.write(function(){e.doc.body.appendChild(t)}):w.reject(new Error("sandbox not initialized"))}),t.define("matchHeightToContent",function(){var t,e=this;return d.read(function(){t=e.widgetEl?g(e.widgetEl).height:0}),d.write(function(){e.sandboxEl.style.height=t+"px"}).then(function(){return e.updateCachedDimensions()})}),t.define("didResize",function(){var t=this,e=t._resizeHandlers.length>0;return this.updateCachedDimensions().then(function(){e&&t._resizeHandlers.forEach(function(e){e(t)})})}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n){var a=this,s=new v,u=r(t,e.join(" "));return d.write(E(n,null,u)),u.addEventListener("load",function(){i(u).then(null,E(o,null,u)).then(s.resolve,s.reject)},!1),u.addEventListener("error",s.reject,!1),s.promise.then(function(t){var e=p(a.didResize,S,a);return a._iframe=t,a.win.addEventListener("resize",e,!1),w.all([a.setTargetToBlank(),a.addRootClass(I),a.prependCss(C)])})}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this.updateCachedDimensions()})}var s=t(20),u=t(17),c=t(11),d=t(14),l=t(15),f=t(24),h=t(86),p=t(91),m=t(92),g=t(82),v=t(97),w=t(98),b=t(109),y=t(28),x=t(105),E=t(89),_={allowfullscreen:"true"},T={position:"absolute",visibility:"hidden",display:"block",width:"0px",height:"0px",padding:"0",border:"none"},A={position:"static",visibility:"visible"},I="SandboxRoot",C=".SandboxRoot { display: none; }",S=50;e.exports=a},{105:105,109:109,11:11,14:14,15:15,17:17,20:20,24:24,28:28,82:82,86:86,89:89,91:91,92:92,97:97,98:98}],49:[function(t,e,n){function r(t){t.overrideProperty("id",{get:function(){return this.sandboxEl&&this.sandboxEl.id}}),t.overrideProperty("initialized",{get:function(){return!!this.iframeEl}}),t.overrideProperty("width",{get:function(){return this._width}}),t.overrideProperty("height",{get:function(){return this._height}}),t.overrideProperty("sandboxEl",{get:function(){return this.iframeEl}}),t.defineProperty("iframeEl",{get:function(){return this._iframe}}),t.define("updateCachedDimensions",function(){var t=this;return this.initialized?i.read(function(){t._width=t.sandboxEl.offsetWidth,t._height=t.sandboxEl.offsetHeight}):c.resolve()}),t.define("setTitle",function(t){this.iframeEl.title=t}),t.define("makeVisible",function(){return this.styleSelf(f)}),t.define("didResize",function(){var t=this,e=t._resizeHandlers.length>0;return this.updateCachedDimensions().then(function(){e&&t._resizeHandlers.forEach(function(e){e(t)})})}),t.define("loadDocument",function(t){var e=new u;return this.initialized?this.iframeEl.src?c.reject(new Error("widget already loaded")):(this.iframeEl.addEventListener("load",e.resolve,!1),this.iframeEl.addEventListener("error",e.reject,!1),this.iframeEl.src=t,e.promise):c.reject(new Error("sandbox not initialized"))}),t.after("initialize",function(){this._iframe=null,this._width=this._height=0,this._resizeHandlers=[]}),t.override("insert",function(t,e,n){var r=this,o=this._iframe=s({id:t,"class":e.join(" ")},l);return h[t]=this,this.onResize(a(function(){r.makeVisible()})),i.write(d(n,null,o))}),t.override("onResize",function(t){this._resizeHandlers.push(t)}),t.after("styleSelf",function(){return this.updateCachedDimensions()})}var i=t(14),o=t(64),a=t(90),s=t(92),u=t(97),c=t(98),d=t(89),l={position:"absolute",visibility:"hidden",width:"0px",height:"0px"},f={position:"static",visibility:"visible"},h={};o(function(t,e,n){var r=h[t];if(r)return r.styleSelf({width:e+"px",height:n+"px"}).then(function(){r.didResize()})}),e.exports=r},{14:14,64:64,89:89,90:90,92:92,97:97,98:98}],50:[function(t,e,n){function r(t,e){c[t.id]=e}function i(t){d[t.id]=t}function o(t){return c[t]}function a(t){var e=d[t];return e&&e.element}function s(t){return o(t)||a(t)}function u(){d={}}var c={},d={};e.exports={add:r,addClassic:i,getSandboxElement:s,resetClassic:u}},{}],51:[function(t,e,n){e.exports={CONVERSATION_ORIGIN:4}},{}],52:[function(t,e,n){function r(){return d.formatGenericEventData("syndicated_impression",{})}function i(){u("tweet")}function o(){u("timeline")}function a(){u("video")}function s(){u("partnertweet")}function u(t){l.isHostPageSensitive()||f[t]||(f[t]=!0,c.scribe(d.formatClientEventNamespace({page:t,action:"impression"}),r(),d.AUDIENCE_ENDPOINT))}var c=t(57),d=t(59),l=t(102),f={};e.exports={scribeAudienceImpression:u,scribePartnerTweetAudienceImpression:s,scribeTweetAudienceImpression:i,scribeTimelineAudienceImpression:o,scribeVideoAudienceImpression:a}},{102:102,57:57,59:59}],53:[function(t,e,n){e.exports={CLIENT_SIDE_USER:0,CLIENT_SIDE_APP:2}},{}],54:[function(t,e,n){function r(t){return t?(t=Array.isArray(t)?t:[t],t.reduce(function(t,e){var n=e.getAttribute("data-tweet-id"),r=e.getAttribute("data-rendered-tweet-id")||n;return n===r?t[r]={item_type:i.TWEET}:n&&(t[r]={item_type:i.RETWEET,target_type:i.TWEET,target_id:n}),t},{})):{}}var i=t(56);e.exports=r},{56:56}],55:[function(t,e,n){function r(){return A?I.promise:(m.createSandbox({id:"rufous-sandbox"},{display:"none"}).then(function(t){f=t,d=u(),l=c(),I.resolve([d,l])}),A=!0,I.promise)}function i(t,e){var n,r,i;b.isObject(t)&&b.isObject(e)&&(i=w.flattenClientEventPayload(t,e),n=d.firstChild,n.value=+(+n.value||i.dnt||0),r=f.createElement("input"),r.type="hidden",r.name="l",r.value=w.stringify(i),d.appendChild(r))}function o(t,e,n){var r=!b.isObject(t),o=e?!b.isObject(e):!1;r||o||I.promise.then(function(){i(w.formatClientEventNamespace(t),w.formatClientEventData(e,n))})}function a(){return I.promise.then(function(){if(d.children.length<=2)return v.reject();var t=v.all([f.appendChild(d),f.appendChild(l)]).then(function(t){var e=t[0],n=t[1];return n.addEventListener("load",function(){s(e,n)(),y.get("events").trigger("logFlushed")}),e.submit(),t});return d=u(),l=c(),t})}function s(t,e){return function(){var n=t.parentNode;n&&(n.removeChild(t),n.removeChild(e))}}function u(){var t=f.createElement("form"),e=f.createElement("input"),n=f.createElement("input");return T++,t.action=w.CLIENT_EVENT_ENDPOINT,t.method="POST",t.target=E+T,t.id=_+T,e.type="hidden",e.name="dnt",e.value=p.enabled(),n.type="hidden",n.name="tfw_redirect",n.value=w.RUFOUS_REDIRECT,t.appendChild(e),t.appendChild(n),t}function c(){var t=E+T;return h({id:t,name:t,width:0,height:0,border:0},{display:"none"},f.document())}var d,l,f,h=t(92),p=t(81),m=t(47),g=t(97),v=t(98),w=t(59),b=t(109),y=t(29),x=Math.floor(1e3*Math.random())+"_",E="rufous-frame-"+x+"-",_="rufous-form-"+x+"-",T=0,A=!1,I=new g;e.exports={clientEvent:o,flush:a,init:r}},{109:109,29:29,47:47,59:59,81:81,92:92,97:97,98:98}],56:[function(t,e,n){e.exports={TWEET:0,RETWEET:10,CUSTOM_TIMELINE:17}},{}],57:[function(t,e,n){function r(t,e,n){return i(t,e,n,2)}function i(t,e,n,r){var i=!p.isObject(t),o=e?!p.isObject(e):!1;i||o||a(h.formatClientEventNamespace(t),h.formatClientEventData(e,n,r),h.CLIENT_EVENT_ENDPOINT)}function o(t,e,n,r){var o=h.extractTermsFromDOM(t.target||t.srcElement);o.action=r||"click",i(o,e,n)}function a(t,e,n){var r,i;n&&p.isObject(t)&&p.isObject(e)&&(r=h.flattenClientEventPayload(t,e),i={l:h.stringify(r)},r.dnt&&(i.dnt=1),d(f.url(n,i)))}function s(t,e,n,r){var i,o=!p.isObject(t),a=e?!p.isObject(e):!1;if(!o&&!a)return i=h.flattenClientEventPayload(h.formatClientEventNamespace(t),h.formatClientEventData(e,n,r)),u(i)}function u(t){return g.push(t),g}function c(){var t,e,n=f.url(h.CLIENT_EVENT_ENDPOINT,{dnt:0,l:""}),r=encodeURIComponent(n).length;return g.length>1&&s({page:"widgets_js",component:"scribe_pixel",action:"batch_log"},{}),t=g,g=[],e=t.reduce(function(e,n,i){var o,a,s=e.length,u=s&&e[s-1],c=i+1==t.length;return c&&n.event_namespace&&"batch_log"==n.event_namespace.action&&(n.message=["entries:"+i,"requests:"+s].join("/")),o=h.stringify(n),a=encodeURIComponent(o).length+3,r+a>m?e:((!u||u.urlLength+a>m)&&(u={urlLength:r,items:[]},e.push(u)),u.urlLength+=a,u.items.push(o),e)},[]),e.map(function(t){var e={l:t.items};return l.enabled()&&(e.dnt=1),d(f.url(h.CLIENT_EVENT_ENDPOINT,e))})}function d(t){var e=new Image;return e.src=t}var l=t(81),f=t(100),h=t(59),p=t(109),m=2083,g=[];e.exports={_enqueueRawObject:u,scribe:a,clientEvent:i,clientEvent2:r,enqueueClientEvent:s,flushClientEvents:c,interaction:o}},{100:100,109:109,59:59,81:81}],58:[function(t,e,n){function r(t){t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,i=t.input.version;u.clientEvent(e,n,r,i),t.taskDoneDeferred.resolve()})}function i(t){function e(){t.forEach(function(t){t.taskDoneDeferred.resolve()})}function n(){t.forEach(function(t){t.taskDoneDeferred.reject()})}s.init(),t.forEach(function(t){var e=t.input.namespace,n=t.input.data,r=t.input.offsite,i=t.input.version;s.clientEvent(e,n,r,i)}),s.flush().then(e,n)}function o(t){(1===t.length?r:i)(t)}function a(t,e,n,r){return d.add({namespace:t,data:e,offsite:n,version:r})}var s=t(55),u=t(57),c=t(76),d=new c(o);e.exports={scribe:a}},{55:55,57:57,76:76}],59:[function(t,e,n){function r(t,e){var n;return e=e||{},t&&t.nodeType===Node.ELEMENT_NODE?((n=t.getAttribute("data-scribe"))&&n.split(" ").forEach(function(t){var n=t.trim().split(":"),r=n[0],i=n[1];r&&i&&!e[r]&&(e[r]=i)}),r(t.parentNode,e)):e}function i(t){return f.aug({client:"tfw"},t||{})}function o(t,e,n){var r=t&&t.widget_origin||c.referrer;return t=a("tfw_client_event",t,r),t.client_version=m,t.format_version=void 0!==n?n:1,e||(t.widget_origin=r),t}function a(t,e,n){return e=e||{},f.aug({},e,{_category_:t,triggered_on:e.triggered_on||+new Date,dnt:l.enabled(n)})}function s(t,e){return f.aug({},e,{event_namespace:t})}function u(t){var e,n=Array.prototype.toJSON;return delete Array.prototype.toJSON,e=d.stringify(t),n&&(Array.prototype.toJSON=n),e}var c=t(17),d=t(93),l=t(81),f=t(109),h=t(114),p=t(28),m=h.version,g=p.get("endpoints.rufous")||"https://syndication.twitter.com/i/jot",v=p.get("endpoints.rufousAudience")||"https://syndication.twitter.com/i/jot/syndication",w=p.get("endpoints.rufousRedirect")||"https://platform.twitter.com/jot.html";e.exports={extractTermsFromDOM:r,flattenClientEventPayload:s,formatGenericEventData:a,formatClientEventData:o,formatClientEventNamespace:i,stringify:u,AUDIENCE_ENDPOINT:v,CLIENT_EVENT_ENDPOINT:g,RUFOUS_REDIRECT:w}},{109:109,114:114,17:17,28:28,81:81,93:93}],60:[function(t,e,n){function r(t,e){var n=c.connect({src:t,iframe:{name:e,style:"position:absolute;top:-9999em;width:10px;height:10px"}});return d(n).expose({trigger:function(t,e,n){e=e||{};var r=e.region;delete e.region,f.get("events").trigger(t,{target:h.getSandboxElement(n),data:e,region:r,type:t})},initXPHub:function(){o(!0)}}),n}function i(t){return t?l.secureHubId:l.contextualHubId}function o(t){var e=u.base(t)+"/widgets/hub.86c71f88b184f2d5cb2f57cd5a1066ce.html",n=i(t);if(!s.getElementById(n))return r(e,n)}function a(t,e){var n=c.connect({window:{width:550,height:450},src:t});d(n).expose({trigger:function(t,n){f.get("events").trigger(t,{target:e,region:"intent",type:t,data:n})}})}var s=t(17),u=t(61),c=t(196),d=t(195),l=t(110),f=t(29),h=t(50);e.exports={init:o,openIntent:a}},{110:110,17:17,195:195,196:196,29:29,50:50,61:61}],61:[function(t,e,n){function r(t,e){var n,r=c[t];return"embed/timeline.css"===t&&u.contains(o.href,"localhost.twitter.com")?"/node_modules/syndication-templates/lib/css/index.css":(n=s.retina()?"2x":"default",e&&(n+=".rtl"),i()+"/"+r[n])}function i(t){var e=a.get("host");return d(t)+"://"+e}var o=t(18),a=t(28),s=t(86),u=t(109),c={"embed/timeline.css":{"default":"embed/timeline.93933550310288c77a13ff57ab42950b.default.css","2x":"embed/timeline.93933550310288c77a13ff57ab42950b.2x.css",gif:"embed/timeline.93933550310288c77a13ff57ab42950b.gif.css","default.rtl":"embed/timeline.93933550310288c77a13ff57ab42950b.default.rtl.css","2x.rtl":"embed/timeline.93933550310288c77a13ff57ab42950b.2x.rtl.css","gif.rtl":"embed/timeline.93933550310288c77a13ff57ab42950b.gif.rtl.css"}},d=function(){return/^http\:$/.test(o.protocol)?function(t){return t?"https":"http"}:function(){return"https"}}();e.exports={builtUrl:r,base:i}},{109:109,18:18,28:28,86:86}],62:[function(t,e,n){function r(){var t=36e5,e=a.combined(o)._;return void 0!==i?i:(i=!1,e&&/^\d+$/.test(e)&&(i=+new Date-parseInt(e)<t),i)}var i,o=t(18),a=t(96);e.exports={isDynamicWidget:r}},{18:18,96:96}],63:[function(t,e,n){function r(t){var e=t.split(" ");this.url=decodeURIComponent(e[0].trim()),th