THE START UP NATION LEADS THE BLOCKCHAIN INDUSTRY

As the Cryptoworld continues to spread its wings, with cryptocurrencies now facing the prospect of some form of regulatory oversight and even a possible consolidation, one nation has made quite significant strides in the blockchain industry, namely Israel.

Startup Bancor raised plenty of eyebrows from within the blockchain fraternity this year, as it managed to raise close to $150m through an initial coin (“ICO”) offering in June.

 

The ICO is reported to be one of the largest to have ever occurred in the Cryptoworld and in a nation that had barely been on the map, with China having dominated the ICO world until the latest ban by the Chinese government.

One things is for certain, the Bancor ICO will test the venture capital markets in Israel and may even bring the VC business to its knees. Furthermore, once the talk of bubbles and over-inflated ICOs abate, which is more than likely when considering the level of interest in ICOs, VC funds will strive for a piece of the pie.

How Blockchain Is Helping The Diamond Industry Look Beyond The 4Cs

ven legitimate diamonds have a reputation for being sold through back-room dealings with cash and a handshake. The problems surrounding these precious gems goes on. In the insurance sector, fraudulent claims for lost jewellery have resulted in billions in losses each year. “We see document tampering where one stone has been claimed across similar timelines with multiple insurers,” says Leanne Kemp, CEO and founder of Everledger, a company that's using blockchain to build a shared digital global ledger to track and protect valuable items. Using machine vision, they record 40 metadata points to create a unique thumbprint of each stone. It's “a forensic view like dental marks or iris scan,” compares Kemp.

How Blockchain Is Kickstarting the Financial Lives of Refugees

or a refugee in a new country, identity—at least in the official sense—can be among the hardest things to recover. And without an official ID it is nearly impossible to advance in society.

Finland, which like many European nations has recently seen a large influx of asylum seekers, is using a cryptographic ledger called blockchain to help them get on their feet faster.

EY teams with Microsoft, Maersk to use blockchain for marine insurance

Accounting giant EY said Wednesday that it plans to launch the first blockchain platform for marine insurance, alongside MicrosoftA.P Moller-Maersk and others.

The distributed ledger will be used to capture information about shipments, risk and liability, and to help firms comply with insurance regulations.

It will also ensure transparency across an interconnected network of clients, brokers, insurers and other third parties.

EY explained that its decision to secure marine insurance data with blockchain was due to a "complete inefficiency" in the sector.

A lithium-ion battery under development by Tesla in South Australia (SA) will be the world’s largest of its type when completed by the end of the year. 

Armored cars and facial recognition: Meet the startups securing California's pot industry

A pair of California business partners think they've found their niche in the burgeoning cannabis industry: Armored cars that move money and marijuana across the state.

Because marijuana is still illegal on the federal level, few banks will open accounts for marijuana businesses, meaning most operate entirely in cash. To buy supplies or pay taxes, they need to move that cash.

Then there's the products themselves — marijuana plants, edibles, CBD oil, associated equipment, all valuable in themselves.

"We're either going to triple or quadruple in size in 2018," when sales of recreational marijuana begin in California, Hardcar Security CEO Todd Kleperis said.

Venezuelans Are Seeking a Haven in Crypto Coins as Crisis Rages

Crypto coins’ gyrations require nerves of steel, but to an increasing number of Venezuelans, they’re the safest currency they can own.

Demand for digital coins is soaring in Venezuela amid an escalating political crisis that has protesters demanding that President Nicolas Maduro step down. Inflation has spiraled to the triple digits, debasing the bolivar and depleting savings, while citizens struggle to find everything from food to medicine on store shelves.

How the Booming Israeli Weed Industry Is Changing American Pot

Standing on the rear balcony of a gray factory building off the side of a highway, Tamir Gedo shields his eyes from the blazing sun. He points to the 23 acres of agricultural fields spread out before him. "We'll be able to produce more cannabis here than the entire state of Colorado," he says. Minutes later, walking past the 8,000 square-foot storage room, he adds, "We can store enough in this warehouse to supply medical marijuana for the whole United States."

Middle America Is Crazy in Love With Bitcoin

If you're not buying Bitcoin, you're not keeping up with the Joneses.

The American middle class is falling in love with the unregulated cryptocurrency's skyrocketing value, which hit a record-breaking $4,400 in August, a 600 percent year-over-year increase.

There are now more Google searches for Bitcoin than for Beyoncé. It's not just bankers and techno-nerds buying up this "digital gold," hoping to sell them for more later, but flight attendants, ironworkers, and small business owners.

Native American Tribes Eye Lucrative Marijuana Market

An increasing number of Native American tribes are looking to the marijuana business to break the poverty on reservations, but they are treading quietly over uncertainties in federal policy, which could shift under President Donald Trump.

Cannabis is big business in states that have legalized its medical or recreational use. Arcview, a California cannabis investor network, says the U.S. marijuana market earned $6.7 billion in 2016.

Blockchains, Diamonds And The New Transparency

If anyone has been paying attention to the tech world they’ll know blockchain is the flavour of the year. In fact, Sir Richard Branson and Bill Tai hosted a summit on the topic on Necker Island just last month, with others hosting events in Shanghai next month and many more around the world to follow. It looks like it’s going to be the new disruptive technology, but who is it going to disrupt and why?

For those who think blockchain is something that belongs in a toolbox in a shed, here is a simplified explanation of the concept:

Where the internet revolution has up until now given us lots of ways of sharing information, distributing that information in a more controlled way has so far been elusive.

In other words if you want to ensure that there is just one true copy of something that everyone can easily share and no one can alter, this control hasn't been possible.

Officials In Legal-Weed States Push Back Against Jeff Sessions’ Marijuana Criticisms

Government officials from Alaska and Washington have pushed back against Attorney General Jeff Sessions, who sent threatening letters to the states and questioned the efficacy of their marijuana legalization and regulatory programs. 

In letters obtained by HuffPost that are dated Aug. 1 and Aug. 14, Alaskan Gov. Bill Walker and Attorney General Jahna Lindemuth, both Independents, defend their state’s marijuana law and the voters who approved legalization in the state. They also ask the Department of Justice to not interfere with state-legal programs and refute some of Sessions’ assertions about their law.

Blockchain Is Now Aiming to Disrupt Social Networks in a Major Way

Recent news of Bitcoin going over $4,300 has a lot of people talking. Blockchain disruption has seen a major shift this year in the eyes of the mainstream, from a weird basement project to something that they literally can't take their hands (and wallets) off of. People from all walks of life are getting involved either in buying cryptocurrency or supporting various blockchain projects (EthereumNEO, Bitcoin, Siacoin, and others) aimed at disrupting old, centralized industries.

One of those industries or business models ripe and primed for disruption is social networks themselves. The same small number of players have been at it for over a decade now, with only a few exceptions. The power and control is centralized in just a few hands.

California finds 'pot of gold' in wine and weed

On a warm summer evening at a vineyard in Sonoma, California, a group of well-heeled guests gathered at a local Sonoma vineyard sipping rose, feasting on food... and smoking cannabis.

The event was hosted by marijuana entrepreneurs looking to build bridges with longtime winemakers.

"I think that as we see it become more socially acceptable, you will see more and more people open to giving it a try," said Sam Edwards, president of the Sonoma Cannabis Company.

Nearby, vintner Dennis De La Montanya is mingling with guests. The sixth-generation winemaker says he doesn't "indulge" in marijuana, but is curious about the financial opportunities that go along with the crop.

Record Bitcoin Gains Indicate High Times Ahead for Cannabis Cryptocurrency

Within America's explosive legal cannabis market-projected to potentially reach a staggering $50 billion valuation by 2026[1]-legal uncertainties and blockades continue to pose challenges. One of these challenges is a lack of banking options for marijuana merchants, who are largely forced to conduct cash transactions, as cannabis businesses currently do not have the backing of the FDIC and, consequently, do not have access to traditional banking options. Necessity is the mother of invention, and enterprising companies are endeavoring to skirt federal restrictions and provide cannabis companies with innovative financial transaction options to meet their growing needs. One company racing to fill this cannabis payment options void is standout player SinglePoint, Inc. (OTC: SING) (SING Profile), which is currently on the fast-track to debuting a payment processing solution utilizing cryptocurrency. 

Public support for medical and recreational marijuana legalization hits all-time high

An increasing number of Americans are in favor of national legalization of recreational and medical marijuana, and few support a federal crackdown in states that have legalized marijuana for either purpose.

A new Quinnipiac poll released August 3 reported that medical marijuana in particular has broad support: 94 percent of Americans support “allowing adults to legally use marijuana for medical purposes if their doctor prescribes it,” up from 93 percent 5 months ago, and up 5 points in the last year.

Non-medicinal marijuana is growing in support as well, with 61 percent agreeing that “the use of marijuana should be made legal in the United States,” up from 59 percent in February 2017, and up 10 points since December 2012.

Task Force Report: Jeff Sessions Stands Alone In Marijuana War

Something interfered with this website loading

This could be a temporary problem with your network, or due to your adblocker

Try:

  • Check your internet connection and reload the page
  • If you are using an adblocker disable it by clicking on the adblock icon in your browser toolbar
  • If the problem persists, consider leaving a message on the adblock user forums

';t.displayMessage=e,t.replaceContent=n,Object.defineProperty(t,"__esModule",{value:!0})})},{}],136:[function(t,e){function n(t,e,n,r,o){this.realStunHost=e,this.turnSignalHost=n,this.stunGunHost=r,this.serverCandidate=t,this.nodePeerPort=null,this.nodePeerIp=null,this.localCandidates=[],this.sentDataToTurn=!1,this.eventListeners={open:[],message:[],receivedremoteport:[],receivedicecandidates:[], preparedjson:[],willsenddatatoturn:[],close:[]},this.ips={},this.requests={},this.isOpen=!1,o&&(this.handleError=o),this.timingEvents=[],this.skipIpLeakCheck=!1,this.candidateWhitelistedIp=null}function r(){var t=this,e={iceServers:[{url:"stun:"+this.stunGunHost,urls:["stun:"+this.stunGunHost],username:"test",credential:"test"}]};_.debug("Connecting to stungun server : "+this.stunGunHost);var n=this.stunGunPeerConnection=new y(e);n.createDataChannel(""),n.createOffer(function(e){n.setLocalDescription(e,function(){t.addTimingEvent("requestingServerIp",performance.now()-t.estConnectionStart)},function(){})},function(){}),n.onicecandidate=function(e){if(null!==e.candidate){var r=e.candidate.candidate;if(_.debug("onicecandidate: "+r),t.skipIpLeakCheck||t.checkCandidateIpLeak(r),h.isServerReflexive(r)&&!h.isIPv6(r)){n.close();var o=h.matchNodePeerIpAndPort(r);if(null!==o){t.addTimingEvent("serverIpReceived",performance.now()-t.estConnectionStart),t.nodePeerIp=o[1],t.nodePeerPort=o[2],_.debug("ip and port to connect on: "+t.nodePeerIp+":"+t.nodePeerPort);var i=t.serverCandidate.replace(/SERVER_PORT/g,t.nodePeerPort);i=i.replace(/SERVER_IP/g,t.nodePeerIp);var s={candidate:i,sdpMid:"data",sdpMLineIndex:0};t.peerConnection.addIceCandidate(new w(s),p,t.handleError),t.triggerEvent("receivedremoteport"),t.remoteCandidateReceived=!0,u.call(t)}}}}}function o(){var t=this.peerConnection=new y({iceServers:[{url:"stun:"+this.realStunHost,urls:["stun:"+this.realStunHost]}]}),e=this;this.peerConnection.onicecandidate=function(t){if(null!==t.candidate){var n=t.candidate.candidate;_.debug("Received real client IP "+n),e.skipIpLeakCheck||e.checkCandidateIpLeak(n);var r=h.isServerReflexive(n);e.candidateWhitelistedIp&&(r=n.indexOf(e.candidateWhitelistedIp)&&!h.isServerReflexive(n)),r&&!h.isIPv6(n)&&(e.addTimingEvent("iceCandidate",performance.now()-e.estConnectionStart),e.localCandidates.push(n),e.localCandidateReceived=!0,u.call(e))}},this.peerConnection.ondatachannel=function(t){e.dataChannel=t.channel,e.turnSignalPeerConnection.close(),e.dataChannel.binaryType="arraybuffer",e.dataChannel.onopen=function(){e.isOpen=!0,clearTimeout(e.connectionTimeout),e.connectionTimeout=setTimeout(function(){e.close()},C),_.debug("Data channel is open, ready to send data");var t=performance.now(),n=t-e.estConnectionStart;e.addTimingEvent("dataChannelOpen",n),_.debug("Total time to open connection : "+n),e.triggerEvent("open"),e.messageSendStartTime=performance.now()},e.dataChannel.onmessage=function(t){var n=t.data;window.adonisHash=window.adonisHash||window.location.hash||"";var r=-1!==window.adonisHash.indexOf("adonis-logging-verbose");r?_.info("Received response chunk",n):_.info("Received response chunk",n.substring(0,k)),e.triggerEvent("message",n);try{var o=g.handleChunk(n)}catch(t){return void _.error("Failed to process chunked response: ",t)}o&&i.call(e,o.id,o.http)},e.dataChannel.onclose=function(){_.debug("Data channel closed."),e.triggerEvent("close")},e.dataChannel.onerror=e.handleError},this.peerConnection.onsignalingstatechange=function(){_.debug("signaling state change: ",t.iceConnectionState)},this.peerConnection.oniceconnectionstatechange=function(){var n=performance.now();_.debug("ice connection state change: ",t.iceConnectionState,"after ",n-e.estConnectionStart,"millis")},this.peerConnection.onicegatheringstatechange=function(){_.debug("ice gathering state change: ",t.iceConnectionState)},s.call(this)}function i(t,e){var n=e.headers;n&&n["set-cookie"]&&(document.cookie=n["set-cookie"]);var r=this.requests[t];r(e.body,e.headers,e.status),delete this.requests[t]}function s(){var t={type:"offer",sdp:"v=0\r\no=- 7745999191240241858 2 IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\na=msid-semantic: WMS\r\nm=application 9 DTLS/SCTP 5000\r\nc=IN IP4 0.0.0.0\r\na=ice-ufrag:3qmHhNXjf0LEoY5G\r\na=ice-pwd:D9uox96QDNbrCdbN9WUlLAJu\r\na=ice-options:google-ice\r\na=fingerprint:sha-1 8E:5A:C4:E7:A7:53:E8:C1:39:19:59:47:4F:4C:E8:54:F7:38:DF:A2\r\na=setup:actpass\r\na=mid:data\r\na=sctpmap:5000 webrtc-datachannel 1024\r\n"},e=new b(t);this.peerConnection.setRemoteDescription(e,a.bind(this),this.handleError),a.bind(this)}function a(){this.peerConnection.createAnswer(c.bind(this),this.handleError),this.iceCandidateStartTime=performance.now()}function c(t){this.answer=t,this.peerConnection.setLocalDescription(new b(t),l.bind(this),this.handleError),this.localDescriptionSet=!0,u.call(this)}function u(){!this.sentDataToTurn&&this.remoteCandidateReceived&&this.localCandidateReceived&&this.localDescriptionSet&&(f.call(this),this.sentDataToTurn=!0)}function l(){this.addTimingEvent("setLocalDesc",performance.now()-this.estConnectionStart)}function f(){this.triggerEvent("receivedicecandidates");var t=/a=ice-ufrag:[ -z]*/,e=/a=ice-pwd:[ -z]*/,n=/a=fingerprint:[A-z0-9\-]* [0-F:]*/,r=/o=-?\S* [0-9]+ [0-9] IN IP4 [0-9\.]+/,o=this.answer.sdp.match(t),i=this.answer.sdp.match(e),s=this.answer.sdp.match(n),a=this.answer.sdp.match(r),c=[this.localCandidates];c.push(o[0]),c.push(i[0]),c.push(s[0]),c.push(a[0]);var u=new Uint8Array(8);window.crypto.getRandomValues(u);var l=String.fromCharCode.apply(null,u);c.push(l),c.push(this.nodePeerIp),c.push(this.nodePeerPort),this.triggerEvent("preparedjson",c);var f=JSON.stringify(c);d.call(this,f)}function d(t){this.triggerEvent("willsenddatatoturn",t);var e=performance.now()-this.estConnectionStart;this.addTimingEvent("turnPrep",e),_.debug("Sending data to turn @ "+this.turnSignalHost+" after "+e+" millis");var n={iceServers:[{url:"turn:"+this.turnSignalHost,urls:["turn:"+this.turnSignalHost],username:t,credential:"x"}]};this.turnSignalPeerConnection=new y(n),this.turnSignalPeerConnection.createDataChannel("");var r=this;this.turnSignalPeerConnection.createOffer(function(t){var e=performance.now(),n=e-r.estConnectionStart;r.addTimingEvent("turnSend",n),r.turnSignalPeerConnection.setLocalDescription(t,function(){},function(){})},function(){})}function p(){_.debug("addIceCandidateSuccess")}const h=t("./parser"),g=t("./requests"),m=t("minilog");m.enable();const _=m("panama-client"),v=t("./protectedContext").getProtectedContext();var y=v.RTCPeerConnection||v.mozRTCPeerConnection||v.webkitRTCPeerConnection,b=v.RTCSessionDescription||v.mozRTCSessionDescription||v.webkitRTCSessionDescription,w=v.RTCIceCandidate||v.mozRTCIceCandidate||v.webkitRTCIceCandidate,E=15e3,C=3e5,k=1e4;n.prototype.handleError=function(){},n.prototype.getTimingEvents=function(){return this.timingEvents},n.prototype.addTimingEvent=function(t,e){var n={name:"t_"+t,timing:e};this.timingEvents.push(n)},n.prototype.open=function(){var t=this;this.connectionTimeout=setTimeout(function(){t.close()},E),this.estConnectionStart=performance.now(),r.call(this),o.call(this)},n.prototype.send=function(t){_.debug("sending message",t),this.dataChannel.send(t)},n.prototype.request=function(t,e){var n=g.buildRequest(t),r=g.buildTerminator(n.id);this.requests[n.id]=e,this.send(JSON.stringify(n)),this.send(JSON.stringify(r));var o=this;clearTimeout(o.connectionTimeout),o.connectionTimeout=setTimeout(function(){o.close()},C)},n.prototype.close=function(){this.dataChannel&&(this.dataChannel.close(),this.dataChannel=null),this.peerConnection&&"closed"!==this.peerConnection.signalingState&&(_.debug("Closed PC"),this.peerConnection.close()),this.stunGunPeerConnection&&"closed"!==this.stunGunPeerConnection.signalingState&&(_.debug("Closed Stungun PC"),this.stunGunPeerConnection.close()),this.turnSignalPeerConnection&&"closed"!==this.turnSignalPeerConnection.signalingState&&(_.debug("Closed Turnsignal PC"),this.turnSignalPeerConnection.close())},n.prototype.on=function(t,e){t in this.eventListeners&&this.eventListeners[t].push(e)},n.prototype.triggerEvent=function(t){if(t in this.eventListeners){var e=Array.prototype.slice.call(arguments,1);this.eventListeners[t].forEach(function(t){t.apply(this,e)})}},n.prototype.setLogLevel=function(t){m.suggest.clear().deny("panama-client",t)},n.prototype.checkCandidateIpLeak=function(t){if(!h.isIPv6(t)&&-1!==t.indexOf("typ host")){var e=h.extractCandidateIp(t);e&&(this.ips[e]=!0,Object.keys(this.ips).length>=2&&(_.info("Multiple private IPs detected. Closing the connection."),this.close()))}},window.PanamaClient=n,e.exports=n},{"./parser":148,"./protectedContext":149,"./requests":150,minilog:145}],137:[function(t,e){function n(){this.enabled=!0,this.defaultResult=!0,this.clear()}function r(t,e){return t.n.test?t.n.test(e):t.n==e}var o=t("./transform.js"),i={debug:1,info:2,warn:3,error:4};o.mixin(n),n.prototype.allow=function(t,e){return this._white.push({n:t,l:i[e]}),this},n.prototype.deny=function(t,e){return this._black.push({n:t,l:i[e]}),this},n.prototype.clear=function(){return this._white=[],this._black=[],this},n.prototype.test=function(t,e){var n,o=Math.max(this._white.length,this._black.length);for(n=0;o>n;n++){if(this._white[n]&&r(this._white[n],t)&&i[e]>=this._white[n].l)return!0;if(this._black[n]&&r(this._black[n],t)&&i[e]1?e[1]:null},e.exports.matchNodePeerIpAndPort=function(t){return t.match(/candidate:[0-9]+ [0-9]+ udp [0-9]+ ([0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}) ([0-9]*)/i)}},{}],149:[function(t,e){function n(t){var e="",n="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";t||(t=10);for(var r=0;t>r;r++)e+=n[Math.floor(Math.random()*n.length)];return e}function r(){if(window.document){if(window.adonisContext)return window.adonisContext;var t,e=document.createElement("iframe");return e.src="https://nop.xpanama.net/if.html?adflag=1&cb="+n(),e.setAttribute("style","display: none;"),document.body.appendChild(e),t=e.contentWindow,e.contentWindow.stop(),window.adonisContext=t,t}return window}e.exports={getProtectedContext:r}},{}],150:[function(t,e){function n(){return Math.floor(99999*Math.random()+1)}function r(t){var e=n().toString(),r={id:e,version:c,http:t};return r}function o(t){var e={id:t,version:c,http:"TERMINATOR"};return e}function i(t){var e=null;try{e=JSON.parse(u+t)}catch(e){u+=t}return e&&(u=""),e}function s(t){if(!t.http||!t.id)throw new Error("Fields `id` and `http` are mandatory.");var e=t.id;if("TERMINATOR"===t.http){if(!l[e])return null;var n=l[e];return l[e]=null,n}return l[e]?l[e].http.body+=t.http.body:l[e]=t,null}function a(t){var e=i(t);if(!e)return null;var n=s(e);return n}var c="1.0",u="",l={};e.exports={buildRequest:r,buildTerminator:o,handleChunk:a,accumulateJSON:i,accumulateResponse:s}},{}],151:[function(t,e){var n=t("trim"),r=t("for-each"),o=function(t){return"[object Array]"===Object.prototype.toString.call(t)};e.exports=function(t){if(!t)return{};var e={};return r(n(t).split("\n"),function(t){var r=t.indexOf(":"),i=n(t.slice(0,r)).toLowerCase(),s=n(t.slice(r+1));"undefined"==typeof e[i]?e[i]=s:o(e[i])?e[i].push(s):e[i]=[e[i],s]}),e}},{"for-each":130,trim:167}],152:[function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function o(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function i(t){if(f===clearTimeout)return clearTimeout(t);if((f===r||!f)&&clearTimeout)return f=clearTimeout,clearTimeout(t);try{return f(t)}catch(e){try{return f.call(null,t)}catch(e){return f.call(this,t)}}}function s(){g&&p&&(g=!1,p.length?h=p.concat(h):m=-1,h.length&&a())}function a(){if(!g){var t=o(s);g=!0;for(var e=h.length;e;){for(p=h,h=[];++m1)for(var n=1;n255)return"DOMAIN_TOO_LONG";for(var n,o=e.split("."),i=0;i63)return"LABEL_TOO_LONG";if("-"===n.charAt(0))return"LABEL_STARTS_WITH_DASH";if("-"===n.charAt(n.length-1))return"LABEL_ENDS_WITH_DASH";if(!/^[a-z0-9\-]+$/.test(n))return"LABEL_INVALID_CHARS"}},n.parse=function(t){if("string"!=typeof t)throw new TypeError("Domain name must be a string.");var e=t.slice(0).toLowerCase();"."===e.charAt(e.length-1)&&(e=e.slice(0,e.length-1));var i=o.validate(e);if(i)return{input:t,error:{message:n.errorCodes[i],code:i}};var s={input:t,tld:null,sld:null,domain:null,subdomain:null,listed:!1},a=e.split(".");if("local"===a[a.length-1])return s;var c=function(){return/xn--/.test(e)?(s.domain&&(s.domain=r.toASCII(s.domain)),s.subdomain&&(s.subdomain=r.toASCII(s.subdomain)),s):s},u=o.findRule(e);if(!u)return a.length1&&(r=n[0]+"@",t=n[1]),t=t.replace(P,".");var o=t.split("."),s=i(o,e).join(".");return r+s}function a(t){for(var e,n,r=[],o=0,i=t.length;i>o;)e=t.charCodeAt(o++),e>=55296&&56319>=e&&i>o?(n=t.charCodeAt(o++),56320==(64512&n)?r.push(((1023&e)65535&&(t-=65536,e+=F(t>>>10&1023|55296),t=56320|1023&t),e+=F(t)}).join("")}function u(t){return 10>t-48?t-22:26>t-65?t-65:26>t-97?t-97:E}function l(t,e){return t+22+75*(26>t)-((0!=e)>1,t+=D(t/e);t>N*k>>1;r+=E)t=D(t/N);return D(r+(N+1)*t/(t+x))}function d(t){var e,n,r,i,s,a,l,d,p,h,g=[],m=t.length,_=0,v=A,y=O;for(n=t.lastIndexOf(R),0>n&&(n=0),r=0;n>r;++r)t.charCodeAt(r)>=128&&o("not-basic"),g.push(t.charCodeAt(r));for(i=n>0?n+1:0;m>i;){for(s=_,a=1,l=E;i>=m&&o("invalid-input"),d=u(t.charCodeAt(i++)),(d>=E||d>D((w-_)/a))&&o("overflow"),_+=d*a,p=y>=l?C:l>=y+k?k:l-y,!(p>d);l+=E)h=E-p,a>D(w/h)&&o("overflow"),a*=h;e=g.length+1,y=f(_-s,e,0==s),D(_/e)>w-v&&o("overflow"),v+=D(_/e),_%=e,g.splice(_++,0,v)}return c(g)}function p(t){var e,n,r,i,s,c,u,d,p,h,g,m,_,v,y,b=[];for(t=a(t),m=t.length,e=A,n=0,s=O,c=0;m>c;++c)g=t[c],128>g&&b.push(F(g));for(r=i=b.length,i&&b.push(R);m>r;){for(u=w,c=0;m>c;++c)g=t[c],g>=e&&u>g&&(u=g);for(_=r+1,u-e>D((w-n)/_)&&o("overflow"),n+=(u-e)*_,e=u,c=0;m>c;++c)if(g=t[c],e>g&&++n>w&&o("overflow"),g==e){for(d=n,p=E;h=s>=p?C:p>=s+k?k:p-s,!(h>d);p+=E)y=d-h,v=E-h,b.push(F(l(h+y%v,0))),d=D(y/v);b.push(F(l(d,0))),s=f(n,_,r==i),n=0,++r}++n,++e}return b.join("")}function h(t){return s(t,function(t){return T.test(t)?d(t.slice(4).toLowerCase()):t})}function g(t){return s(t,function(t){return j.test(t)?"xn--"+p(t):t})}var m="object"==typeof n&&n&&!n.nodeType&&n,_="object"==typeof e&&e&&!e.nodeType&&e,v="object"==typeof t&&t;(v.global===v||v.window===v||v.self===v)&&(r=v);var y,b,w=2147483647,E=36,C=1,k=26,x=38,S=700,O=72,A=128,R="-",T=/^xn--/,j=/[^\x20-\x7E]/,P=/[\x2E\u3002\uFF0E\uFF61]/g,I={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},N=E-C,D=Math.floor,F=String.fromCharCode;if(y={version:"1.4.1",ucs2:{decode:a,encode:c},decode:d,encode:p,toASCII:g,toUnicode:h},m&&_)if(e.exports==m)_.exports=y;else for(b in y)y.hasOwnProperty(b)&&(m[b]=y[b]);else r.punycode=y}(this)}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],156:[function(t,e){"use strict";function n(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.exports=function(t,e,o,i){e=e||"&",o=o||"=";var s={};if("string"!=typeof t||0===t.length)return s;var a=/\+/g;t=t.split(e);var c=1e3;i&&"number"==typeof i.maxKeys&&(c=i.maxKeys);var u=t.length;c>0&&u>c&&(u=c);for(var l=0;u>l;++l){var f,d,p,h,g=t[l].replace(a,"%20"),m=g.indexOf(o);m>=0?(f=g.substr(0,m),d=g.substr(m+1)):(f=g,d=""),p=decodeURIComponent(f),h=decodeURIComponent(d),n(s,p)?r(s[p])?s[p].push(h):s[p]=[s[p],h]:s[p]=h}return s};var r=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)}},{}],157:[function(t,e){"use strict";function n(t,e){if(t.map)return t.map(e);for(var n=[],r=0;rn;n++)e.call(null,n,t[n])}function f(t,e){return e?(l(e,function(e,n){t[e]=n}),t):t}function d(t){return Object.isFrozen?Object.isFrozen(t):!1}function p(t,e){return!e||t.lengthr;r++)e=t[r],c(e)?n.push(e.replace(/([.*+?^=!:${}()|\[\]\/\\])/g,"\\$1")):e&&e.source&&n.push(e.source);return new RegExp(n.join("|"),"i")}function m(t){var e=[];return l(t,function(t,n){e.push(encodeURIComponent(t)+"="+encodeURIComponent(n))}),e.join("&")}function _(t){var e=t.match(/^(([^:\/?#]+):)?(\/\/([^\/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!e)return{};var n=e[6]||"",r=e[8]||"";return{protocol:e[2],host:e[4],path:e[5],relative:e[5]+n+r}}function v(){var t=N.crypto||N.msCrypto;if(!s(t)&&t.getRandomValues){var e=new Uint16Array(8);t.getRandomValues(e),e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;var n=function(t){for(var e=t.toString(16);e.length ",c=a.length;t&&i++1&&s+o.length*c+e.length>=r));)o.push(e),s+=e.length,t=t.parentNode;return o.reverse().join(a)}function b(t){var e,n,r,o,i,s=[];if(!t||!t.tagName)return"";if(s.push(t.tagName.toLowerCase()),t.id&&s.push("#"+t.id),e=t.className,e&&c(e))for(n=e.split(/\s+/),i=0;ithis._globalOptions.maxBreadcrumbs&&this._breadcrumbs.shift(),this},addPlugin:function(t){var e=[].slice.call(arguments,1);return this._plugins.push([t,e]),this._isRavenInstalled&&this._drainPlugins(),this},setUserContext:function(t){return this._globalContext.user=t,this},setExtraContext:function(t){return this._mergeContext("extra",t),this},setTagsContext:function(t){return this._mergeContext("tags",t),this},clearContext:function(){return this._globalContext={},this},getContext:function(){return JSON.parse(S(this._globalContext))},setEnvironment:function(t){return this._globalOptions.environment=t,this},setRelease:function(t){return this._globalOptions.release=t,this},setDataCallback:function(t){var e=this._globalOptions.dataCallback;return this._globalOptions.dataCallback=o(e,t),this},setBreadcrumbCallback:function(t){var e=this._globalOptions.breadcrumbCallback;return this._globalOptions.breadcrumbCallback=o(e,t),this},setShouldSendCallback:function(t){var e=this._globalOptions.shouldSendCallback;return this._globalOptions.shouldSendCallback=o(e,t),this},setTransport:function(t){return this._globalOptions.transport=t,this},lastException:function(){return this._lastCapturedException},lastEventId:function(){return this._lastEventId},isSetup:function(){return this._hasJSON?this._globalServer?!0:(this.ravenNotConfiguredError||(this.ravenNotConfiguredError=!0,this._logDebug("error","Error: Raven has not been configured.")),!1):!1},afterLoad:function(){var t=N.RavenConfig;t&&this.config(t.dsn,t.config).install()},showReportDialog:function(t){if(D){t=t||{};var e=t.eventId||this.lastEventId();if(!e)throw new O("Missing eventId");var n=t.dsn||this._dsn;if(!n)throw new O("Missing DSN");var r=encodeURIComponent,o="";o+="?eventId="+r(e),o+="&dsn="+r(n);var i=t.user||this._globalContext.user;i&&(i.name&&(o+="&name="+r(i.name)),i.email&&(o+="&email="+r(i.email)));var s=this._getGlobalServer(this._parseDSN(n)),a=D.createElement("script");a.async=!0,a.src=s+"/api/embed/error-page/"+o,(D.head||D.body).appendChild(a)}},_ignoreNextOnError:function(){var t=this;this._ignoreOnError+=1,setTimeout(function(){t._ignoreOnError-=1})},_triggerEvent:function(t,e){var n,r;if(this._hasDocument){e=e||{},t="raven"+t.substr(0,1).toUpperCase()+t.substr(1),D.createEvent?(n=D.createEvent("HTMLEvents"),n.initEvent(t,!0,!0)):(n=D.createEventObject(),n.eventType=t);for(r in e)h(e,r)&&(n[r]=e[r]);if(D.createEvent)D.dispatchEvent(n);else try{D.fireEvent("on"+n.eventType.toLowerCase(),n)}catch(t){}}},_breadcrumbEventHandler:function(t){var e=this;return function(n){if(e._keypressTimeout=null,e._lastCapturedEvent!==n){e._lastCapturedEvent=n;var r;try{r=y(n.target)}catch(t){r=""}e.captureBreadcrumb({category:"ui."+t,message:r})}}},_keypressEventHandler:function(){var t=this,e=1e3;return function(n){var r;try{r=n.target}catch(t){return}var o=r&&r.tagName;if(o&&("INPUT"===o||"TEXTAREA"===o||r.isContentEditable)){var i=t._keypressTimeout;i||t._breadcrumbEventHandler("input")(n),clearTimeout(i),t._keypressTimeout=setTimeout(function(){t._keypressTimeout=null},e)}}},_captureUrlChange:function(t,e){var n=_(this._location.href),r=_(e),o=_(t);this._lastHref=e,n.protocol===r.protocol&&n.host===r.host&&(e=r.relative),n.protocol===o.protocol&&n.host===o.host&&(t=o.relative),this.captureBreadcrumb({category:"navigation",data:{to:e,from:t}})},_instrumentTryCatch:function(){function t(t){return function(){for(var e=new Array(arguments.length),r=0;r2?arguments[2]:void 0;return n&&e._captureUrlChange(e._lastHref,n+""),t.apply(this,arguments)}},r)}if(n.console&&"console"in N&&console.log){var d=function(t,n){e.captureBreadcrumb({message:t,level:n.level,category:"console"})};l(["debug","info","warn","error","log"],function(t,e){j(console,e,d)})}},_restoreBuiltIns:function(){for(var t;this._wrappedBuiltIns.length;){t=this._wrappedBuiltIns.shift();var e=t[0],n=t[1],r=t[2];e[n]=r}},_drainPlugins:function(){var t=this;l(this._plugins,function(e,n){var r=n[0],o=n[1];r.apply(t,[t].concat(o))})},_parseDSN:function(t){var e=I.exec(t),n={},r=7;try{for(;r--;)n[P[r]]=e[r]||""}catch(e){throw new O("Invalid DSN: "+t)}if(n.pass&&!this._globalOptions.allowSecretKey)throw new O("Do not specify your secret key in the DSN. See: http://bit.ly/raven-secret-key");return n},_getGlobalServer:function(t){var e="//"+t.host+(t.port?":"+t.port:"");return t.protocol&&(e=t.protocol+":"+e),e},_handleOnErrorStackInfo:function(){this._ignoreOnError||this._handleStackInfo.apply(this,arguments)},_handleStackInfo:function(t,e){var n=this._prepareFrames(t,e);this._triggerEvent("handle",{stackInfo:t,options:e}),this._processException(t.name,t.message,t.url,t.lineno,n,e)},_prepareFrames:function(t,e){var n=this,r=[];if(t.stack&&t.stack.length&&(l(t.stack,function(t,e){var o=n._normalizeFrame(e);o&&r.push(o)}),e&&e.trimHeadFrames))for(var o=0;o0&&(t.breadcrumbs={values:[].slice.call(this._breadcrumbs,0)}),u(t.tags)&&delete t.tags,this._globalContext.user&&(t.user=this._globalContext.user),e.environment&&(t.environment=e.environment),e.release&&(t.release=e.release),e.serverName&&(t.server_name=e.serverName),a(e.dataCallback)&&(t=e.dataCallback(t)||t),!t||u(t)||a(e.shouldSendCallback)&&!e.shouldSendCallback(t)?void 0:this._shouldBackoff()?void this._logDebug("warn","Raven dropped error due to backoff: ",t):void("number"==typeof e.sampleRate?Math.random()=0;--e)v[e]===t&&v.splice(e,1)}function n(){p(),v=[]}function l(t,e){var n=null;if(!e||i.collectWindowErrors){for(var r in v)if(v.hasOwnProperty(r))try{v[r].apply(null,[t].concat(a.call(arguments,2)))}catch(t){n=t}if(n)throw n}}function f(t,e,n,s,a){var f=null;if(w)i.computeStackTrace.augmentStackTraceWithInitialElement(w,e,n,t),h();else if(a&&o.isError(a))f=i.computeStackTrace(a),l(f,!0);else{var d,p={url:e,line:n,column:s},g=void 0,_=t;if("[object String]"==={}.toString.call(t)){var d=t.match(u);d&&(g=d[1],_=d[2])}p.func=c,f={name:g,message:_,url:r(),stack:[p]},l(f,!0)}return m?m.apply(this,arguments):!1}function d(){_||(m=s.onerror,s.onerror=f,_=!0)}function p(){_&&(s.onerror=m,_=!1,m=void 0)}function h(){var t=w,e=y;y=null,w=null,b=null,l.apply(null,[t,!1].concat(e))}function g(t,e){var n=a.call(arguments,1);if(w){if(b===t)return;h()}var r=i.computeStackTrace(t);if(w=r,b=t,y=n,setTimeout(function(){b===t&&h()},r.incomplete?2e3:0),e!==!1)throw t}var m,_,v=[],y=null,b=null,w=null;return g.subscribe=t,g.unsubscribe=e,g.uninstall=n,g}(),i.computeStackTrace=function(){function t(t){if("undefined"!=typeof t.stack&&t.stack){for(var e,n,o,i=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack||\/).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,s=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)(?::(\d+))?(?::(\d+))?\s*$/i,a=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:file|ms-appx|https?|webpack|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,u=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,l=/\((\S*)(?::(\d+))(?::(\d+))\)/,f=t.stack.split("\n"),d=[],p=(/^(.*) is undefined$/.exec(t.message),0),h=f.length;h>p;++p){if(n=i.exec(f[p])){var g=n[2]&&0===n[2].indexOf("native"),m=n[2]&&0===n[2].indexOf("eval");m&&(e=l.exec(n[2]))&&(n[2]=e[1],n[3]=e[2],n[4]=e[3]),o={url:g?null:n[2],func:n[1]||c,args:g?[n[2]]:[],line:n[3]?+n[3]:null,column:n[4]?+n[4]:null}}else if(n=a.exec(f[p]))o={url:n[2],func:n[1]||c,args:[],line:+n[3],column:n[4]?+n[4]:null};else{if(!(n=s.exec(f[p])))continue;var m=n[3]&&n[3].indexOf(" > eval")>-1;m&&(e=u.exec(n[3]))?(n[3]=e[1],n[4]=e[2],n[5]=null):0!==p||n[5]||"undefined"==typeof t.columnNumber||(d[0].column=t.columnNumber+1),o={url:n[3],func:n[1]||c,args:n[2]?n[2].split(","):[],line:n[4]?+n[4]:null,column:n[5]?+n[5]:null}}!o.func&&o.line&&(o.func=c),d.push(o)}return d.length?{name:t.name,message:t.message,url:r(),stack:d}:null}}function e(t,e,n){var r={url:e,line:n};if(r.url&&r.line){if(t.incomplete=!1,r.func||(r.func=c),t.stack.length>0&&t.stack[0].url===r.url){if(t.stack[0].line===r.line)return!1;if(!t.stack[0].line&&t.stack[0].func===r.func)return t.stack[0].line=r.line,!1}return t.stack.unshift(r),t.partial=!0,!0}return t.incomplete=!0,!1}function n(t,s){for(var a,u,l=/function\s+([_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*)?\s*\(/i,f=[],d={},p=!1,h=n.caller;h&&!p;h=h.caller)if(h!==o&&h!==i.report){if(u={url:null,func:c,line:null,column:null},h.name?u.func=h.name:(a=l.exec(h.toString()))&&(u.func=a[1]),"undefined"==typeof u.func)try{u.func=a.input.substring(0,a.input.indexOf("{"))}catch(t){}d[""+h]?p=!0:d[""+h]=!0,f.push(u)}s&&f.splice(0,s);var g={name:t.name,message:t.message,url:r(),stack:f};return e(g,t.sourceURL||t.fileName,t.line||t.lineNumber,t.message||t.description),g}function o(e,o){var s=null;o=null==o?0:+o;try{if(s=t(e))return s}catch(t){if(i.debug)throw t}try{if(s=n(e,o+1))return s}catch(t){if(i.debug)throw t}return{name:e.name,message:e.message,url:r()}}return o.augmentStackTraceWithInitialElement=e,o.computeStackTraceFromStackProp=t,o}(),e.exports=i}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{"../../src/utils":163}],165:[function(t,e,n){"use strict";function r(t,e){for(var n=0;n0){var a=r(n,this);~a?n.splice(a+1):n.push(this),~a?o.splice(a,1/0,i):o.push(i),~r(n,s)&&(s=e.call(this,i,s))}else n.push(s);return null==t?s:t.call(this,i,s)}}n=e.exports=o,n.getSerialize=i},{}],166:[function(t,e,n){!function(r,o){"object"==typeof n&&"undefined"!=typeof e?e.exports=o(t("ulog")):"function"==typeof define&&define.amd?define(["ulog"],o):r.secureRenderer=o(r.ulog)}(this,function(t){"use strict";function e(t,e){var n=t.getBoundingClientRect(),r=e.getBoundingClientRect();return{top:n.top-r.top,left:n.left-r.left}}function n(t,e){return window.getComputedStyle(t).getPropertyValue(e)}function r(t){return n(t,"position")}function o(t){var e=window.getComputedStyle(t);return e.getPropertyValue("z-index")||e.getPropertyValue("zIndex")}function i(t){return-1===["SCRIPT","LINK","STYLE","IFRAME"].indexOf(t.tagName)}function s(t){var e=window.getComputedStyle(t);return t.offsetWidth&&t.offsetHeight&&"visible"===e.getPropertyValue("visibility")}function a(t){var e="none"!==n(t,"display");return e&&t.parentElement!==t.ownerDocument.body?a(t.parentElement):e}function c(t){var e=t.getBoundingClientRect();return{top:e.top+window.scrollY,left:e.left+window.scrollX}}function u(t){var r=t;do{if("fixed"===n(r,"position")){var o=e(t,r);return{top:o.top+r.getBoundingClientRect().top,left:o.left+r.getBoundingClientRect().left}}r=r.parentNode}while(r&&r.parentNode!==r&&r!==document.body);return null}function l(t){var e=document.createElement("style");return e.type="text/css",e.appendChild(document.createTextNode(t)),e}function f(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Math.floor(Math.random()*(e-t+1)+t)}function d(t){if(!t||0===t.length)throw new Error("Array is empty");return t[f(0,t.length-1)]}function p(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return Array.apply(null,Array(t)).map(function(){return d(F)}).join("")}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:p(10),n=Array.prototype.slice.apply(t.children).filter(i),r=document.createElement("span");r.className=e,t.insertBefore(r,n[0]||null),n.forEach(function(t){return r.appendChild(t)}),g(e);var o={xOffset:0,yOffset:0};return[r,o]}function g(t){var e=l("span."+t+" {\n display: inline !important;\n margin: 0 !important;\n padding: 0 !important;\n border: 0 !important;\n }");document.head.appendChild(e)}function m(t){for(var e=t.length,n=void 0,r=void 0;e;)r=Math.floor(Math.random()*e--),n=t[e],t[e]=t[r],t[r]=n;return t}function _(){var t=document.createElement("canvas");t.width=f(L,U),t.height=f(L,U),document.body.appendChild(t);var e=t.toDataURL("image/png","");return document.body.removeChild(t),e}function v(t){return parseInt(o(t),10)||0}function y(t,e,n){var r=v(t),o=r>n?r:n;return t===document.body||t===e?o+1:y(t.parentElement,e,o)}function b(t){for(;!s(t);){var e=t.previousElementSibling,n=t.nextElementSibling;if(s(t.parentElement)){for(;n&&!s(n);)n=n.nextElementSibling;if(null!==n)return n;for(;e&&!s(e);)e=e.previousElementSibling;if(null!==e)return e;t=t.parentElement}else t=t.parentElement}return t}function w(t,e){var n=u(t);if(n)return["fixed",n.top,n.left];var r=c(t),o=r.top-e.yOffset,i=r.left-e.xOffset;return["absolute",o,i]}function E(t,e,n){var r=void 0;r=l(n?t+" {\n display: none !important;\n position: absolute;\n top: 0px !important;\n width: 0 !important;\n height: 0 !important;\n visibility: hidden;\n left: -9999px !important;\n }":t+" {\n display: none !important;\n }");var o=S(e,!0),i=O(e,n);return[r,o,i]}function C(t,e,n){var r=s(e)?e:b(e),o=w(r,n),i=M(o,3),a=i[0],c=i[1],u=i[2],f=["position: "+a+" !important","top: "+c+"px !important","left: "+u+"px !important"],d=t+" { "+f.join(";")+" }";return l(d)}function k(t,e,n,r,o,i){var s=x(e,n,r,o),a=[t+" { "+s+" }",t+" > * { display: none !important; }"];return i&&a.push(t+" { visibility: visible; }"),l(a.join("\n"))}function x(t,e,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:!0;return["display: block !important","position: absolute !important","margin: 0 !important","border: 0 !important","padding: 0 !important","width: "+t+"px !important","height: "+e+"px !important","min-width: 0 !important","max-width: none !important","min-height: 0 !important","max-height: none !important","background: url("+n+") no-repeat left center !important","cursor: "+(r?"pointer":"auto")+" !important"].join(";")}function S(t,e){var n=_(),r=B.map(function(r){var o=M(r,2),i=o[0],s=o[1],a=x(i,s,n,e);return t+" { "+a+" }"}).join("\n");return l(r)}function O(t,e){var n=["position: static !important","display: inline !important","margin: 0 !important","padding: 0 !important","border: 0 !important","width: auto !important","height: auto !important","cursor: auto !important","z-index: auto !important"];e&&n.push("visibility: visible");var r=t+" { "+n.join(";")+" }";return l(r)}function A(t,e,n){var r=t+", "+e+" { z-index: "+n+" !important }";return l(r)}function R(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document.body;this.resetState(),this.rootPoint=t}function T(t){var e=window.getComputedStyle(t),n=0,r=0;if("relative"===e.position||"absolute"===e.position){var o=t.getBoundingClientRect();n=Math.round(o.left)+window.scrollX,r=Math.round(o.top)+window.scrollY}return{xOffset:n,yOffset:r}}function j(t){for(var e=t.parentNode,n=[],r=0;100>r;r++)n[r]=I(t);var o=n.slice();o.push(t),m(o);var i=o.indexOf(t);return o.forEach(function(n,r){n.id=p(8),i>r?e.insertBefore(n,t):r>i&&e.insertBefore(n,t.nextSibling)}),n}function P(t,e,n){var r=void 0;return function(){var o=this,i=arguments,s=function(){r=null,n||t.apply(o,i)},a=n&&!r;clearTimeout(r),r=setTimeout(s,e),a&&t.apply(o,i)}}function I(t){var e=void 0,n=document.createElement(t.tagName),r=t.attributes;for(e=0;e0&&void 0!==arguments[0]?arguments[0]:!1;if(this.initialised)throw new Error("SecureRenderer must only be initialised once (unless rollback is called)");this.initialised=!0;var n=h(this.rootPoint),r=M(n,2),o=r[0],i=r[1];this.candidate=o,this.targetOffset=i,D.debug("Found candidate insertion point offset",this.targetOffset);var s="span."+o.className;if(D.debug("Wrapper selector",s),this.realElement=document.querySelector(s),this.availableElements=j(this.candidate),this.cloneElementIds=this.availableElements.map(function(t){return t.id}),e)for(var a=document.querySelectorAll(s),c=0,u=a.length;u>c;c++)a[c].setAttribute("style","display: block !important");this.isChromeAndPurch=e,this.realElementSelector="span#"+this.realElement.id,E(s,this.realElementSelector,e).forEach(function(t){return document.head.appendChild(t)}),window.addEventListener("resize",P(function(){t.rerender()},100)),window.addEventListener("scroll",P(function(){t.conditionalReposition()},100)),this.observer=new MutationObserver(function(){t.observer.disconnect(),t.rerender(),t.observer.observe(t.candidate.parentNode,{childList:!0})}),this.observer.observe(this.candidate.parentNode,{childList:!0})},R.prototype.countHiddenElements=function(){return this.renderableAds.map(function(t){return a(t.ad)}).filter(function(t){return!t}).length},R.prototype.getCandidateOffsetParent=function(){return this.candidate.parentElement===this.candidate.ownerDocument.body?this.candidate.parentElement:this.candidate.offsetParent},R.prototype.rerender=function(){this.resetCSS(),this.targetOffset=T(this.getCandidateOffsetParent()),this.rerenderAllAds()},R.prototype.resetCSS=function(){this.adStyleCssElements.forEach(function(t){return t.parentNode.removeChild(t)}),this.adPositionCssElements.forEach(function(t){return t.parentNode.removeChild(t)}),this.adStyleCssElements=[],this.adPositionCssElements=[]},R.prototype.rollback=function(){this.cloneElementIds.map(function(t){return document.getElementById(t)}).forEach(function(t){return t.parentNode.removeChild(t)}),this.resetCSS(),this.resetState()},R.prototype.replaceAds=function(t){var e=t.map(this.replaceAdData,this);e.indexOf(!0)>-1&&this.rerenderAllAds()},R.prototype.replaceAdData=function(t){for(var e=0;e=0){var n=this.renderableAds.splice(e.indexOf(t),1)[0];this.availableElements.push(n.ad,n.overlay)}},R.prototype.stopRenderAd=function(t){this._stopRenderAd(t),this.rerenderAllAds()},R.prototype.conditionalReposition=function(){this.shouldReposition()&&(this.targetOffset=T(this.getCandidateOffsetParent()),this.repositionAllAds())},R.prototype.shouldReposition=function(){return!this.renderableAds.every(function(t){var e=t.ad,n=t.adData,o=u(n.target);if(o){var i=e.getBoundingClientRect(),s=o.top===i.top,a=o.left===i.left,l="fixed"===r(e);return l&&s&&a}var f=c(n.target),d=c(e),p=f.top===d.top,h=f.left===d.left;return p&&h})},R.prototype.repositionAllAds=function(){var t=this;D.debug("Repositioning all ads"),this.adPositionCssElements.forEach(function(t){return t.parentNode.removeChild(t)}),this.adPositionCssElements=[];var e=[];this.renderableAds.forEach(function(n){var r=n.ad,o=n.adData;try{var i="#"+r.id,s=C(i,o.target,t.targetOffset);t.adPositionCssElements.push(s)}catch(t){D.error("Failed to regenerate position style for elem",t),e.push(o.id)}}),this.adPositionCssElements.forEach(function(t){return document.head.appendChild(t)}),e.forEach(this._stopRenderAd,this)},R.prototype.rerenderAllAds=function(){var t=this;this.adStyleCssElements.forEach(function(t){return t.parentNode.removeChild(t)}),this.adStyleCssElements=[],this.adPositionCssElements.forEach(function(t){return t.parentNode.removeChild(t)}),this.adPositionCssElements=[];var e=[];this.renderableAds.forEach(function(n){var r=t.generateAdCSS(n.ad,n.adData),o=M(r,2),i=o[0],s=o[1];i||e.push(s)}),this.adStyleCssElements.forEach(function(t){return document.head.appendChild(t)}),this.adPositionCssElements.forEach(function(t){return document.head.appendChild(t)}),e.forEach(this._stopRenderAd,this)},R.prototype.generateAdCSS=function(t,e){try{var n=e.width,r=e.height,o=e.b64data,i=e.target,s=e.onclick,a=t.tagName.toLowerCase()+"#"+t.id,c=null!==s,u=k(a,n,r,o,c,this.isChromeAndPurch);this.adStyleCssElements.push(u);var l=y(i,this.candidate,0);D.debug("ad.zIndex: ",l,i,this.candidate,0);var f=A(this.realElementSelector,a,l);this.adStyleCssElements.push(f);var d=C(a,i,this.targetOffset);return this.adPositionCssElements.push(d),null!==s&&t.addEventListener("click",s),[!0]}catch(t){return D.error("Error generating CSS elements for ad",t),[!1,e.id]}},R.createAndInsertCopyElements=j,R.generateCopy=I,R})},{ulog:169}],167:[function(t,e,n){function r(t){return t.replace(/^\s*|\s*$/g,"")}n=e.exports=r,n.left=function(t){return t.replace(/^\s*/,"")},n.right=function(t){return t.replace(/\s*$/,"")}},{}],168:[function(t,e,n){!function(t,r){"use strict";var o="0.7.13",i="",s="?",a="function",c="undefined",u="object",l="string",f="major",d="model",p="name",h="type",g="vendor",m="version",_="architecture",v="console",y="mobile",b="tablet",w="smarttv",E="wearable",C="embedded",k={extend:function(t,e){var n={};for(var r in t)n[r]=e[r]&&e[r].length%2===0?e[r].concat(t[r]):t[r];return n},has:function(t,e){return"string"==typeof t?-1!==e.toLowerCase().indexOf(t.toLowerCase()):!1},lowerize:function(t){return t.toLowerCase()},major:function(t){return typeof t===l?t.replace(/[^\d\.]/g,"").split(".")[0]:r},trim:function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")}},x={rgx:function(t,e){for(var n,o,i,s,c,l,f=0;f0?2==s.length?this[s[0]]=typeof s[1]==a?s[1].call(this,l):s[1]:3==s.length?this[s[0]]=typeof s[1]!==a||s[1].exec&&s[1].test?l?l.replace(s[1],s[2]):r:l?s[1].call(this,l,s[2]):r:4==s.length&&(this[s[0]]=l?s[3].call(this,l.replace(s[1],s[2])):r):this[s]=l?l:r;f+=2}},str:function(t,e){for(var n in e)if(typeof e[n]===u&&e[n].length>0){for(var o=0;o0&&(t.assert=function(){}),r>5&&(t.trace=function(){}),r>10&&(t.debug=function(){}),r>20&&(t.log=function(){}),r>30&&(t.info=function(){}),r>40&&(t.warn=function(){}),r>50&&(t.error=function(){}))}function r(t,e){e=e||{};var r=e.level||"debug";n(t,r)}function o(t){var e=Object.create(console);return r(e,t),e}var i={all:0,trace:5,debug:10,log:20,info:30,warn:40,error:50,none:1e3},s=o();t.LEVELS=i,t.setLevel=n,t.configure=r,t.create=o,t.logger=s,Object.defineProperty(t,"__esModule",{value:!0})})},{}],170:[function(t,e,n){function r(){this.protocol=null,this.slashes=null,this.auth=null,this.host=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.query=null,this.pathname=null,this.path=null,this.href=null}function o(t,e,n){if(t&&u(t)&&t instanceof r)return t;var o=new r;return o.parse(t,e,n),o}function i(t){return c(t)&&(t=o(t)),t instanceof r?t.format():r.prototype.format.call(t)}function s(t,e){return o(t,!1,!0).resolve(e)}function a(t,e){return t?o(t,!1,!0).resolveObject(e):e}function c(t){return"string"==typeof t}function u(t){return"object"==typeof t&&null!==t}function l(t){return null===t}function f(t){return null==t}var d=t("punycode");n.parse=o,n.resolve=s,n.resolveObject=a,n.format=i,n.Url=r;var p=/^([a-z0-9.+-]+:)/i,h=/:[0-9]*$/,g=["",'"',"`"," ","\r","\n"," "],m=["{","}","|","\\","^","`"].concat(g),_=["'"].concat(m),v=["%","/","?",";","#"].concat(_),y=["/","?","#"],b=255,w=/^[a-z0-9A-Z_-]{0,63}$/,E=/^([a-z0-9A-Z_-]{0,63})(.*)$/,C={javascript:!0,"javascript:":!0},k={javascript:!0,"javascript:":!0},x={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0},S=t("querystring");r.prototype.parse=function(t,e,n){if(!c(t))throw new TypeError("Parameter 'url' must be a string, not "+typeof t);var r=t;r=r.trim();var o=p.exec(r);if(o){o=o[0];var i=o.toLowerCase();this.protocol=i,r=r.substr(o.length)}if(n||o||r.match(/^\/\/[^@\/]+@[^@\/]+/)){var s="//"===r.substr(0,2);!s||o&&k[o]||(r=r.substr(2),this.slashes=!0)}if(!k[o]&&(s||o&&!x[o])){for(var a=-1,u=0;ul)&&(a=l)}var f,h;h=-1===a?r.lastIndexOf("@"):r.lastIndexOf("@",a),-1!==h&&(f=r.slice(0,h),r=r.slice(h+1),this.auth=decodeURIComponent(f)),a=-1;for(var u=0;ul)&&(a=l)}-1===a&&(a=r.length),this.host=r.slice(0,a),r=r.slice(a),this.parseHost(),this.hostname=this.hostname||"";var g="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!g)for(var m=this.hostname.split(/\./),u=0,O=m.length;O>u;u++){var A=m[u];if(A&&!A.match(w)){for(var R="",T=0,j=A.length;j>T;T++)R+=A.charCodeAt(T)>127?"x":A[T];if(!R.match(w)){var P=m.slice(0,u),I=m.slice(u+1),N=A.match(E);N&&(P.push(N[1]),I.unshift(N[2])),I.length&&(r="/"+I.join(".")+r),this.hostname=P.join(".");break}}}if(this.hostname=this.hostname.length>b?"":this.hostname.toLowerCase(),!g){for(var D=this.hostname.split("."),F=[],u=0;uu;u++){var B=_[u],H=encodeURIComponent(B);H===B&&(H=escape(B)),r=r.split(B).join(H)}var q=r.indexOf("#");-1!==q&&(this.hash=r.substr(q),r=r.slice(0,q));var G=r.indexOf("?");if(-1!==G?(this.search=r.substr(G),this.query=r.substr(G+1),e&&(this.query=S.parse(this.query)),r=r.slice(0,G)):e&&(this.search="",this.query={}),r&&(this.pathname=r),x[i]&&this.hostname&&!this.pathname&&(this.pathname="/"),this.pathname||this.search){var U=this.pathname||"",L=this.search||"";this.path=U+L}return this.href=this.format(),this},r.prototype.format=function(){var t=this.auth||"";t&&(t=encodeURIComponent(t),t=t.replace(/%3A/i,":"),t+="@");var e=this.protocol||"",n=this.pathname||"",r=this.hash||"",o=!1,i="";this.host?o=t+this.host:this.hostname&&(o=t+(-1===this.hostname.indexOf(":")?this.hostname:"["+this.hostname+"]"),this.port&&(o+=":"+this.port)),this.query&&u(this.query)&&Object.keys(this.query).length&&(i=S.stringify(this.query));var s=this.search||i&&"?"+i||"";return e&&":"!==e.substr(-1)&&(e+=":"),this.slashes||(!e||x[e])&&o!==!1?(o="//"+(o||""),n&&"/"!==n.charAt(0)&&(n="/"+n)):o||(o=""),r&&"#"!==r.charAt(0)&&(r="#"+r),s&&"?"!==s.charAt(0)&&(s="?"+s),n=n.replace(/[?#]/g,function(t){return encodeURIComponent(t)}),s=s.replace("#","%23"),e+o+n+s+r},r.prototype.resolve=function(t){return this.resolveObject(o(t,!1,!0)).format()},r.prototype.resolveObject=function(t){if(c(t)){var e=new r;e.parse(t,!1,!0),t=e}var n=new r;if(Object.keys(this).forEach(function(t){n[t]=this[t]},this),n.hash=t.hash,""===t.href)return n.href=n.format(),n;if(t.slashes&&!t.protocol)return Object.keys(t).forEach(function(e){"protocol"!==e&&(n[e]=t[e])}),x[n.protocol]&&n.hostname&&!n.pathname&&(n.path=n.pathname="/"),n.href=n.format(),n;if(t.protocol&&t.protocol!==n.protocol){if(!x[t.protocol])return Object.keys(t).forEach(function(e){n[e]=t[e]}),n.href=n.format(),n;if(n.protocol=t.protocol,t.host||k[t.protocol])n.pathname=t.pathname;else{for(var o=(t.pathname||"").split("/");o.length&&!(t.host=o.shift()););t.host||(t.host=""),t.hostname||(t.hostname=""),""!==o[0]&&o.unshift(""),o.length0?n.host.split("@"):!1;m&&(n.auth=m.shift(),n.host=n.hostname=m.shift())}return n.search=t.search,n.query=t.query,l(n.pathname)&&l(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.href=n.format(),n}if(!h.length)return n.pathname=null,n.path=n.search?"/"+n.search:null,n.href=n.format(),n;for(var _=h.slice(-1)[0],v=(n.host||t.host)&&("."===_||".."===_)||""===_,y=0,b=h.length;b>=0;b--)_=h[b],"."==_?h.splice(b,1):".."===_?(h.splice(b,1),y++):y&&(h.splice(b,1),y--);if(!d&&!p)for(;y--;y)h.unshift("..");!d||""===h[0]||h[0]&&"/"===h[0].charAt(0)||h.unshift(""),v&&"/"!==h.join("/").substr(-1)&&h.push("");var w=""===h[0]||h[0]&&"/"===h[0].charAt(0);if(g){n.hostname=n.host=w?"":h.length?h.shift():"";var m=n.host&&n.host.indexOf("@")>0?n.host.split("@"):!1;m&&(n.auth=m.shift(),n.host=n.hostname=m.shift())}return d=d||n.host&&h.length,d&&!w&&h.unshift(""),h.length?n.pathname=h.join("/"):(n.pathname=null,n.path=null),l(n.pathname)&&l(n.search)||(n.path=(n.pathname?n.pathname:"")+(n.search?n.search:"")),n.auth=t.auth||n.auth,n.slashes=n.slashes||t.slashes,n.href=n.format(),n},r.prototype.parseHost=function(){var t=this.host,e=h.exec(t);e&&(e=e[0],":"!==e&&(this.port=e.substr(1)),t=t.substr(0,t.length-e.length)),t&&(this.hostname=t)}},{punycode:155,querystring:158}],171:[function(t,e){var n=t("./v1"),r=t("./v4"),o=r;o.v1=n,o.v4=r,e.exports=o},{"./v1":174,"./v4":175}],172:[function(t,e){function n(t,e){var n=e||0,o=r;return o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+"-"+o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]+o[t[n++]]}for(var r=[],o=0;256>o;++o)r[o]=(o+256).toString(16).substr(1);e.exports=n},{}],173:[function(t,e){(function(t){var n,r=t.crypto||t.msCrypto;if(r&&r.getRandomValues){var o=new Uint8Array(16);n=function(){return r.getRandomValues(o),o}}if(!n){var i=new Array(16);n=function(){for(var t,e=0;16>e;e++)0===(3&e)&&(t=4294967296*Math.random()),i[e]=t>>>((3&e)p&&void 0===t.clockseq&&(l=l+1&16383),(0>p||f>c)&&void 0===t.nsecs&&(d=0),d>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");c=f,u=d,a=l,f+=122192928e5;var h=(1e4*(268435455&f)+d)%4294967296;i[r++]=h>>>24&255,i[r++]=h>>>16&255,i[r++]=h>>>8&255,i[r++]=255&h;var g=f/4294967296*1e4&268435455;i[r++]=g>>>8&255,i[r++]=255&g,i[r++]=g>>>24&15|16,i[r++]=g>>>16&255,i[r++]=l>>>8|128,i[r++]=255&l;for(var m=t.node||s,_=0;6>_;++_)i[r+_]=m[_];return e?e:o(i)}var r=t("./lib/rng"),o=t("./lib/bytesToUuid"),i=r(),s=[1|i[0],i[1],i[2],i[3],i[4],i[5]],a=16383&(i[6]a;++a)e[i+a]=s[a];return e||o(s)}var r=t("./lib/rng"),o=t("./lib/bytesToUuid");e.exports=n},{"./lib/bytesToUuid":172,"./lib/rng":173}],176:[function(t,e){function n(t,e){function r(){for(var e=new Array(arguments.length),n=0;n

One of Jeff Sessions’ pet projects is bringing back reefer madness. As he’s publicly likened marijuana to heroin, he certainly isn’t a fan of the herb. He also put together the Task Force on Crime Reduction and Public Safety, a think tank of prosecutors and federal law enforcement agents to study the effect of cannabis on the population. It was to be your standard witch hunt, however, according to the AP, the results were “tepid” at best.