!function(){function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}return a}()({1:[function(a,b,c){"use strict";
// Selects the closes ratio
b.exports=function(a,b){return b=b||[[3,2],[4,3],[16,9],[3,4],[1,1]],b.map(function(b){return{ratio:b,diff:Math.abs(b[0]/b[1]-a[0]/a[1])}}).reduce(function(a,b){return!a||b.diff<a.diff?b:a},null).ratio}},{}],2:[function(a,b,c){/**
 * Returns a function, that, as long as it continues to be invoked, will not
 * be triggered. The function will be called after it stops being called for
 * N milliseconds. If `immediate` is passed, trigger the function on the
 * leading edge, instead of the trailing. The function also has a property 'clear' 
 * that is a function which will clear the timer to prevent previously scheduled executions. 
 *
 * @source underscore.js
 * @see http://unscriptable.com/2009/03/20/debouncing-javascript-methods/
 * @param {Function} function to wrap
 * @param {Number} timeout in ms (`100`)
 * @param {Boolean} whether to execute at the beginning (`false`)
 * @api public
 */
function d(a,b,c){function d(){var j=Date.now()-h;j<b&&j>=0?e=setTimeout(d,b-j):(e=null,c||(i=a.apply(g,f),g=f=null))}var e,f,g,h,i;null==b&&(b=100);var j=function(){g=this,f=arguments,h=Date.now();var j=c&&!e;return e||(e=setTimeout(d,b)),j&&(i=a.apply(g,f),g=f=null),i};return j.clear=function(){e&&(clearTimeout(e),e=null)},j.flush=function(){e&&(i=a.apply(g,f),g=f=null,clearTimeout(e),e=null)},j}
// Adds compatibility for ES modules
d.debounce=d,b.exports=d},{}],3:[function(a,b,c){/*!
  * domready (c) Dustin Diaz 2014 - License MIT
  */
!function(a,c){"undefined"!=typeof b?b.exports=c():"function"==typeof define&&"object"==typeof define.amd?define(c):this[a]=c()}("domready",function(){var a,b=[],c=document,d=c.documentElement.doScroll,e="DOMContentLoaded",f=(d?/^loaded|^c/:/^loaded|^i|^c/).test(c.readyState);return f||c.addEventListener(e,a=function(){for(c.removeEventListener(e,a),f=1;a=b.shift();)a()}),function(a){f?setTimeout(a,0):b.push(a)}})},{}],4:[function(a,b,c){/*! npm.im/intervalometer */
"use strict";function d(a,b,c,d){function e(c){
// must be requested before cb() because that might call .stop()
f=b(e,d),
// called with "ms since last call". 0 on start()
a(c-(g||c)),g=c}var f,g;return{start:function(){f||// prevent double starts
e(0)},stop:function(){c(f),f=null,g=0}}}function e(a){return d(a,requestAnimationFrame,cancelAnimationFrame)}function f(a,b){return d(a,setTimeout,clearTimeout,b)}Object.defineProperty(c,"__esModule",{value:!0}),c.intervalometer=d,c.frameIntervalometer=e,c.timerIntervalometer=f},{}],5:[function(a,b,c){/*! npm.im/iphone-inline-video */
"use strict";function d(a){return a&&"object"==typeof a&&"default"in a?a["default"]:a}function e(a,b,c,d){function e(b){Boolean(a[c])===Boolean(d)&&b.stopImmediatePropagation(),delete a[c]}
// Return handler to allow to disable the prevention. Usage:
// const preventionHandler = preventEvent(el, 'click');
// el.removeEventHandler('click', preventionHandler);
return a.addEventListener(b,e,!1),e}function f(a,b,c,d){function e(){return c[b]}function f(a){c[b]=a}d&&f(a[b]),Object.defineProperty(a,b,{get:e,set:f})}function g(a,b,c){c.addEventListener(b,function(){return a.dispatchEvent(new Event(b))})}function h(a,b){Promise.resolve().then(function(){a.dispatchEvent(new Event(b))})}/**
 * UTILS
 */
function i(a){var b=new Audio;
// if (audio.src === 'data:') {
//   TODO: wait for video to be selected
// }
// 'data:' causes audio.networkState > 0
// which then allows to keep <audio> in a resumable playing state
// i.e. once you set a real src it will keep playing if it was if .play() was called
return g(a,"play",b),g(a,"playing",b),g(a,"pause",b),b.crossOrigin=a.crossOrigin,b.src=a.src||a.currentSrc||"data:",b}function j(a,b,c){
// allow one timeupdate event every 200+ ms
(r||0)+200<Date.now()&&(a[w]=!0,r=Date.now()),c||(a.currentTime=b),z[++A%3]=100*b|0}function k(a){return a.driver.currentTime>=a.video.duration}function l(a){var b=this;
// console.log('update', player.video.readyState, player.video.networkState, player.driver.readyState, player.driver.networkState, player.driver.paused);
b.video.readyState>=b.video.HAVE_FUTURE_DATA?(b.hasAudio||(b.driver.currentTime=b.video.currentTime+a*b.video.playbackRate/1e3,b.video.loop&&k(b)&&(b.driver.currentTime=0)),j(b.video,b.driver.currentTime)):b.video.networkState!==b.video.NETWORK_IDLE||b.video.buffered.length||
// this should happen when the source is available but:
// - it's potentially playing (.paused === false)
// - it's not ready to play
// - it's not loading
// If it hasAudio, that will be loaded in the 'emptied' handler below
b.video.load(),
// console.assert(player.video.currentTime === player.driver.currentTime, 'Video not updating!');
b.video.ended&&(delete b.video[w],// allow timeupdate event
b.video.pause(!0))}/**
 * METHODS
 */
function m(){
// console.log('play');
var a=this,b=a[v];
// if it's fullscreen, use the native player
// if it's fullscreen, use the native player
// console.log('src changed on play', video.src);
// .load() causes the emptied event
// the alternative is .play()+.pause() but that triggers play/pause events, even worse
// possibly the alternative is preventing this event only once
// console.log('onplay');
return a.webkitDisplayingFullscreen?void a[x]():("data:"!==b.driver.src&&b.driver.src!==a.src&&(j(a,0,!0),b.driver.src=a.src),void(a.paused&&(b.paused=!1,a.buffered.length||a.load(),b.driver.play(),b.updater.start(),b.hasAudio||(h(a,"play"),b.video.readyState>=b.video.HAVE_ENOUGH_DATA&&h(a,"playing")))))}function n(a){
// console.log('pause');
var b=this,c=b[v];c.driver.pause(),c.updater.stop(),
// if it's fullscreen, the developer the native player.pause()
// This is at the end of pause() because it also
// needs to make sure that the simulation is paused
b.webkitDisplayingFullscreen&&b[y](),c.paused&&!a||(c.paused=!0,c.hasAudio||h(b,"pause"),b.ended&&(b[w]=!0,h(b,"ended")))}/**
 * SETUP
 */
function o(a,b){var c=a[v]={};c.paused=!0,// track whether 'pause' events have been fired
c.hasAudio=b,c.video=a,c.updater=t.frameIntervalometer(l.bind(c)),b?c.driver=i(a):(a.addEventListener("canplay",function(){a.paused||
// console.log('oncanplay');
h(a,"playing")}),c.driver={src:a.src||a.currentSrc||"data:",muted:!0,paused:!0,pause:function(){c.driver.paused=!0},play:function(){c.driver.paused=!1,
// media automatically goes to 0 if .play() is called when it's done
k(c)&&j(a,0)},get ended(){return k(c)}}),
// .load() causes the emptied event
a.addEventListener("emptied",function(){
// console.log('driver src is', player.driver.src);
var b=!c.driver.src||"data:"===c.driver.src;c.driver.src&&c.driver.src!==a.src&&(
// console.log('src changed to', video.src);
j(a,0,!0),c.driver.src=a.src,
// playing videos will only keep playing if no src was present when .play()’ed
b?c.driver.play():c.updater.stop())},!1),
// stop programmatic player when OS takes over
a.addEventListener("webkitbeginfullscreen",function(){a.paused?b&&!c.driver.buffered.length&&
// if the first play is native,
// the <audio> needs to be buffered manually
// so when the fullscreen ends, it can be set to the same current time
c.driver.load():(
// make sure that the <audio> and the syncer/updater are stopped
a.pause(),
// play video natively
a[x]())}),b&&(a.addEventListener("webkitendfullscreen",function(){
// sync audio to new video position
c.driver.currentTime=a.currentTime}),
// allow seeking
a.addEventListener("seeking",function(){z.indexOf(100*a.currentTime|0)<0&&(
// console.log('User-requested seeking');
c.driver.currentTime=a.currentTime)}))}function p(a){var b=a[v];a[x]=a.play,a[y]=a.pause,a.play=m,a.pause=n,f(a,"paused",b.driver),f(a,"muted",b.driver,!0),f(a,"playbackRate",b.driver,!0),f(a,"ended",b.driver),f(a,"loop",b.driver,!0),e(a,"seeking"),e(a,"seeked"),e(a,"timeupdate",w,!1),e(a,"ended",w,!1)}function q(a,b,c){void 0===b&&(b=!0),void 0===c&&(c=!0),c&&!u||a[v]||(o(a,b),p(a),a.classList.add("IIV"),!b&&a.autoplay&&a.play(),/iPhone|iPod|iPad/.test(navigator.platform)||console.warn("iphone-inline-video is not guaranteed to work in emulated environments"))}var r,s=d(a("poor-mans-symbol")),t=a("intervalometer"),u="object-fit"in document.head.style&&/iPhone|iPod/i.test(navigator.userAgent)&&!matchMedia("(-webkit-video-playable-inline)").matches,v=s(),w=s(),x=s("nativeplay"),y=s("nativepause"),z=[],A=0;q.isWhitelisted=u,b.exports=q},{intervalometer:4,"poor-mans-symbol":22}],6:[function(a,b,c){"use strict";
// Modified from Bootstrap scrollspy by Colin Gourlay
// Original: https://github.com/twbs/bootstrap/blob/master/js/scrollspy.js
/* ========================================================================
* Bootstrap: scrollspy.js v3.1.1
* http://getbootstrap.com/javascript/#scrollspy
* ========================================================================
* Copyright 2011-2014 Twitter, Inc.
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
* ======================================================================== */
// SCROLLSPY CLASS DEFINITION
// ==========================
function d(a,b){var c,e=$.proxy(this.process,this);this.$element=$(a).is("body")?$(window):$(a),this.$body=$("body"),this.$scrollElement=this.$element.on("scroll.bs.scroll-spy.data-api",e),this.options=$.extend({},d.DEFAULTS,b),this.selector=(this.options.target||(c=$(a).attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"")||//strip for ie7
"")+" .nav li > a",this.offsets=$([]),this.targets=$([]),this.activeTarget=null,this.refresh(),this.process()}d.DEFAULTS={offset:10},d.prototype.refresh=function(){var a=this.$element[0]===window?"offset":"position";this.offsets=$([]),this.targets=$([]);var b=this;this.$body.find(this.selector).map(function(){var c=$(this),d=c.data("target")||c.attr("href"),e=/^#./.test(d)&&$(d);return e&&e.length&&e.is(":visible")&&[[e[a]().top+(!$.isWindow(b.$scrollElement.get(0))&&b.$scrollElement.scrollTop()),d]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},d.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.$scrollElement[0].scrollHeight||this.$body[0].scrollHeight,d=c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(b>=d)return g!==(a=f.last()[0])&&this.activate(a);if(g&&b<=e[0])return g!==(a=f[0])&&this.activate(a);for(a=e.length;a--;)g!==f[a]&&b>=e[a]&&(!e[a+1]||b<=e[a+1])&&this.activate(f[a])},d.prototype.activate=function(a){this.activeTarget=a,$(this.selector).parentsUntil(this.options.target,".is-active").removeClass("is-active");var b=this.selector+'[data-target="'+a+'"],'+this.selector+'[href="'+a+'"]';$(b).parents("li").addClass("is-active")},b.exports=d},{}],7:[function(a,b,c){"use strict";function d(){var a=$(this).prev();return a.is("a")&&a.attr("name")&&0===a.attr("name").indexOf("chapter")}function e(a){return a.find("h2").filter(d).addClass("Narrative-chapterTitle")}b.exports=e},{}],8:[function(a,b,c){"use strict";b.exports=function(a,b){for(var c=a,d=!0,e=[];d;)c=c.next(),0===c.length||0===(c.attr("name")||"").indexOf(b)?d=!1:e.push(c.get(0));return{$before:a,$after:c,collection:e}}},{}],9:[function(a,b,c){"use strict";function d(){return $(this).attr("name")&&0===$(this).attr("name").indexOf("fold")}function e(){$(this).toggleClass("is-active")}function f(a){var b,c;return b=a.children("a").filter(d),c=[],b.each(function(){for(var a=$(this),b=a,d=!0,f=[],g=$("<div/>",{"class":"Narrative-fold",id:a.attr("name")}),h=$("<div/>",{"class":"Narrative-foldToggle"}).on("click",e),i=$("<div/>",{"class":"Narrative-foldContent"});d;)b=b.next(),0===b.length||0===(b.attr("name")||"").indexOf("endfold")?d=!1:f.push(b.get(0));b.remove(),g.append([h,i]),$(f).appendTo(i),c.push(g.get(0)),a.replaceWith(g)}),c}b.exports=f},{}],10:[function(a,b,c){"use strict";var d=a("./collect");b.exports=function(a,b,c){var e,f;
// TODO: Provide opportunity for calling functions to manipulate the DOM here *before* it gets inserted.
return e=d(a,b),f=e.collection,c=c||'<div id="'+a.attr("name")+'"></div>',e.$after.remove(),c=$("<div>").append(f).wrapInner(c).children().first(),a.replaceWith(c),c}},{"./collect":8}],11:[function(a,b,c){"use strict";function d(){return"undefined"!=typeof d.cached?d.cached:(d.cached="canPlayType"in document.createElement("video"),d.cached)}function e(a,b){var c,e,i;b.length&&d()&&(c=a.css("background-image").match(/url\(\"([^\)]+)\"\)/),e=c?c[1]:"",i=$('<video data-object-fit="cover" poster="'+e+'" webkit-playsinline playsinline autoplay loop muted>'+b.map(function(a){return'<source src="'+a.src+'" type="'+a.type+'">'}).join("")+"</video>"),a.prepend(i),setTimeout(function(){f&&f(),g(i.get(0),!1,!h)},0))}
// This initialises the header video in supported desktop browsers
var f=a("./objectFitPolyfill"),g=a("iphone-inline-video"),h=/iPhone|iPod|iPad/i.test(navigator.userAgent)&&!matchMedia("(-webkit-video-playable-inline)").matches;b.exports=e},{"./objectFitPolyfill":15,"iphone-inline-video":5}],12:[function(a,b,c){"use strict";function d(){var a=$(this).prev();return a.is("a")&&a.attr("name")&&0===a.attr("name").indexOf("title")}function e(){var a=$(this).prev();return a.is("a")&&a.attr("name")&&0===a.attr("name").indexOf("subtitle")}function f(a,b){var c=a.find("h1").first(),f=$('meta[name="replacement-title"]').first(),g=b.children("p").filter(d).first(),h=b.children("p").filter(e).first(),i=c.siblings(".byline, .attribution, .view-infosourcebyline").first(),j=c.siblings(".published, header > time, .view-publish-date").first(),k=$(".view-collection-subbanner-placed").first(),l=$("<div/>").addClass("Narrative-header"),m=$("<div/>").addClass("Narrative-headerContent");
// Deprecated
// Recommended
// Has to be contained in <article/> because the relative time plugin
// on the mobile site has a specific selector
return g.length&&(c.text(g.text()),g.remove()),f.length&&c.text(f.attr("content")),m.append(c.addClass("Narrative-headerTitle")),c.text().length<25&&c.addClass("Narrative-headerTitle--larger"),h.length&&m.append(h.addClass("Narrative-headerSubtitle")),i.length&&(m.append($("<p/>").addClass("Narrative-headerByline").html(i.html())),i.remove()),j.length&&(m.append($("<article/>").addClass("Narrative-headerPublished").append(j)),j.is("time")&&0===j.find("small").length&&j.prepend($("<small>Posted </small>"))),m.append(b.find(".tools").first()),l.append(m),k.length?k.after(l):a.prepend(l),l}a("util-news-selectors");b.exports=f},{"util-news-selectors":26}],13:[function(a,b,c){"use strict";function d(){var a,b,c,d,o,p,q,r,s,t;return a=$(e("story")).first(),b=a.closest(e("main")).hide().addClass("Narrative-page"),$("html").addClass("Narrative-document"),a.addClass("Narrative-article"),$('a[name="showmedia"]').length&&n(a),c=f(a),d=g(a),o=h(a),p=i(a),q=j(a),t=k(a),r=l(b,a),s=m(a),b.css("display",""),{$article:a,$panels:c,$walls:d,$folds:o,$photos:p,$quotes:q,$stacks:t,$header:r,$chapters:s}}var e=a("util-news-selectors"),f=a("./panelify"),g=a("./wallify"),h=a("./foldify"),i=a("./photoify"),j=a("./quotify"),k=a("./stackup"),l=a("./headerify"),m=a("./chapterify"),n=a("./showMedia");d.headerVideo=a("./headerVideo"),d.nav=a("./nav"),b.exports=d},{"./chapterify":7,"./foldify":9,"./headerVideo":11,"./headerify":12,"./nav":14,"./panelify":16,"./photoify":17,"./quotify":18,"./showMedia":19,"./stackup":20,"./wallify":21,"util-news-selectors":26}],14:[function(a,b,c){"use strict";function d(a){function b(){var a=g.position().top,b=d();b>a?k.addClass("is-visible"):k.removeClass("is-visible")}function c(){var a,b;l=l||0,b=d(),a=l-b,l=b,Math.abs(a)>10&&(a>0?k.removeClass("is-up"):k.addClass("is-up"))}function d(){return void 0!==window.pageYOffset?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop}var g,h,i,j,k,l;return a=a||{},a.shareURL=encodeURIComponent(a.shareURL||window.location.href),a.shareText=encodeURIComponent(a.shareText||document.title),a.shareHashtags=a.shareHashtags||[],g=$('<div class="Narrative-nav"></div>'),h=$('<a class="Narrative-navLogo" href="/news/"></a>'),g.append(h),i=$('<div class="Narrative-navGroups"></div>'),j=$('<ul class="Narrative-navSharing"></ul>'),j.append($('<li><a class="facebook" target="_blank" href="http://www.facebook.com/sharer.php?u='+a.shareURL+"&t="+a.shareText+'"></a></li>')),j.append($('<li><a class="twitter" target="_blank" href="http://twitter.com/intent/tweet?url='+a.shareURL+(a.shareHashtags.length?"&hashtags="+a.shareHashtags.join():"")+"&related=abcnews&text="+a.shareText+'"></a></li>')),j.append($('<li><a class="whatsapp" target="_blank" href="whatsapp://send?text='+a.shareText+"%20"+a.shareURL+'"></a></li>')),j.append($('<li><a class="reddit" target="_blank" href="http://www.reddit.com/submit?url='+a.shareURL+"&title="+a.shareText+'"></a></li>')),j.append($('<li><a class="email" target="_blank" href="https://www2b.abc.net.au/EAF/View/MailToQuery.aspx?'+window.location.href.replace("mobile.abc","www.abc")+'"></a></li>')),i.append(j),g.append(i),$("#abcHeader").first().after(g),setTimeout(function(){new e(document.body,{target:".Narrative-nav"})},1500),k=g.clone(!0,!0).addClass("is-fixed"),g.after(k),$(window).on("scroll",b),b(),a.hideOnScroll&&$(window).on("scroll",f(c,50)),g}var e=a("./ScrollSpy"),f=a("debounce");b.exports=d},{"./ScrollSpy":6,debounce:2}],15:[function(a,b,c){"use strict";/*----------------------------------------
* objectFitPolyfill 2.0
*
* Made by Constance Chen
* Released under the MIT license
*
* https://github.com/constancecchen/object-fit-polyfill
*--------------------------------------*/
!function(a,c){b.exports=c()}(void 0,function(){
// If the browser does support object-fit, we don't need to continue
if("objectFit"in document.documentElement.style==!1){/**
 * Check the container's parent element to make sure it will
 * correctly handle and clip absolutely positioned children
 * @private
 * @param $container - parent element
 */
var a=function(a){var b=window.getComputedStyle(a,null),c=b.getPropertyValue("position"),d=b.getPropertyValue("overflow"),e=b.getPropertyValue("display");c&&"static"!==c||(a.style.position="relative"),"hidden"!==d&&(a.style.overflow="hidden"),
// Guesstimating that people want the parent to act like full width/height wrapper here.
// Mostly attempts to target <picture> elements, which default to inline.
e&&"inline"!==e||(a.style.display="block"),0===a.clientHeight&&(a.style.height="100%"),a.className=a.className+" object-fit-polyfill"},b=function(a){var b=window.getComputedStyle(a,null),c={"max-width":"none","max-height":"none","min-width":"0px","min-height":"0px"};for(var d in c){var e=b.getPropertyValue(d);e!==c[d]&&(a.style[d]=c[d])}},c=function(a,b,c){c=c.split(" ");var d,e,f,g,h;if("x"===a)d=c[0],e=c[1],f="left",g="right",h=b.clientWidth;else{if("y"!==a)return;d=c[1],e=c[0],f="top",g="bottom",h=b.clientHeight}
// Percentage values (e.g., 30% 10%)
return d===f||e===f?void(b.style[f]="0"):d===g||e===g?void(b.style[g]="0"):"center"===d||"50%"===d?(b.style[f]="50%",void(b.style["margin-"+f]=h/-2+"px")):d.indexOf("%")>=0?(d=parseInt(d),void(d<50?(b.style[f]=d+"%",b.style["margin-"+f]=h*(d/-100)+"px"):(d=100-d,b.style[g]=d+"%",b.style["margin-"+g]=h*(d/-100)+"px"))):void(b.style[f]=d)},d=function(d){
// Fallbacks, IE 10- data
var e=d.dataset?d.dataset.objectFit:d.getAttribute("data-object-fit"),f=d.dataset?d.dataset.objectPosition:d.getAttribute("data-object-position");e=e||"cover",f=f||"50% 50%";
// If necessary, make the parent container work with absolutely positioned elements
var g=d.parentNode;a(g),
// Check for max-width/height or min-width/height, which can mess up image calculations
b(d),
// Mathematically figure out which side needs covering, and add CSS positioning & centering
d.style.position="absolute",d.style.height="100%",d.style.width="auto","scale-down"===e&&(d.style.height="auto",d.clientWidth<g.clientWidth&&d.clientHeight<g.clientHeight?(c("x",d,f),c("y",d,f)):(e="contain",d.style.height="100%")),"none"===e?(d.style.width="auto",d.style.height="auto",c("x",d,f),c("y",d,f)):"cover"===e&&d.clientWidth>g.clientWidth||"contain"===e&&d.clientWidth<g.clientWidth?(d.style.top="0",d.style.marginTop="0",c("x",d,f)):"scale-down"!==e&&(d.style.width="100%",d.style.height="auto",d.style.left="0",d.style.marginLeft="0",c("y",d,f))},e=function(){for(var a=document.querySelectorAll("[data-object-fit]"),b=0;b<a.length;b++){var c=a[b].nodeName.toLowerCase();"img"===c?a[b].complete?d(a[b]):a[b].addEventListener("load",function(){d(this)}):"video"===c&&(a[b].readyState>0?d(a[b]):a[b].addEventListener("loadedmetadata",function(){d(this)}))}};
// In case people want to add their own events
return document.addEventListener("DOMContentLoaded",function(){e()}),window.addEventListener("resize",function(){
// TODO: This could get expensive. Add a setTimeout limiter?
e()}),e}})},{}],16:[function(a,b,c){"use strict";function d(){return $(this).attr("name")&&0===$(this).attr("name").indexOf("panel")}function e(a){var b,c;return b=a.children("a").filter(d),c=[],b.each(function(){c.push(f($(this),"endpanel",'<div class="Narrative-panel" id="'+$(this).attr("name")+'"><div class="Narrative-panel-inner"></div></div>').get(0))}),c}var f=a("./group");b.exports=e},{"./group":10}],17:[function(a,b,c){"use strict";function d(a){var b,c;return b=a.find(g("embed:photo","p1s")+g("embed:full","p1s")).filter(function(){return 0===$(this).closest(g("embed:wysiwyg","p1s")).length}).each(f),c=a.find(g("embed:photo","p1m")).each(e),$([]).add(b).add(c)}function e(){var a,b;a=$(this).find("img"),b=a.prev(),b&&b.is("h3")&&a.after(b)}function f(){var a,b,c,d;d=940,a=$(this).find("img"),a.length&&null==a.data("srcset")&&(b=a.attr("src"),c=b.match(j),a.attr("src",h(i(b),c[0],d)).attr("width",d).attr("height",Math.round(d*(+c[0].split("x")[1]/+c[0].split("x")[0]))))}var g=a("util-news-selectors"),h=a("util-cmimg"),i=a("util-url2cmid"),j=/\d+x\d+/;b.exports=d},{"util-cmimg":23,"util-news-selectors":26,"util-url2cmid":27}],18:[function(a,b,c){"use strict";function d(a){var b=$(f("pullquote")),c=$(f("embed:quote")),d=$().add(b).add(c).addClass("Narrative-quote");return d.prev("p").filter(function(){return" "===$(this).html()}).remove(),d.filter("blockquote, figure").find("> :first-child").each(e),d.find(".quote > :first-child").each(e),d}function e(){var a=$(this);
// Fix widows and remove opening/closing quotes in the text
a.html(a.html().replace(g,"").replace(h,i)),
// Position graphical opening & closing quotes
a.prepend($("<span/>",{"class":"Narrative-quoteOpener"})),a.append($("<span/>",{"class":"Narrative-quoteCloser"}))}var f=a("util-news-selectors"),g=/^\"|\"$/g,h=/\s([^\s<]+)\s*$/,i="&nbsp;$1";b.exports=d},{"util-news-selectors":26}],19:[function(a,b,c){"use strict";function d(a){var b=$(".view-hero-media, .content > article > header + figure, .attached-content > .inline-content.photo").first();if(b){if(!$("img",b).length)
// Sorry, images only
return;b.hasClass("view-hero-media")?(b=b.children().first(),b.removeClass("comp-embedded-float-right").addClass("view-image-embed-full")):b.removeClass("left").addClass("full"),$("figcaption, .inline-caption",b).remove(),a.prepend(b)}}b.exports=d},{}],20:[function(a,b,c){"use strict";function d(a){var b,c;return b=a.children("a").filter(function(a,b){return $(b).attr("name")&&0===$(b).attr("name").indexOf("stackup")}),c=[],b.each(function(){var a,b;b=$('<div class="'+A()+'" name="'+$(this).attr("name")+'"></div>'),a=E($(this),"endstackup"),b.append(a.collection.map(function(a,b){return 0===b?$(a).remove().find("img").get(0):a})),a.$after.remove(),a.$before.replaceWith(b),new f(b.get(0)),c.push(b)}),c}/**
 * Update an internal variable with the current scroll position of the page.
 */
function e(){s={top:y.pageYOffset,left:y.pageXOffset}}
// Constructor
function f(a){var b,c,d;
// Make sure we're constructing
// Make sure we're constructing
// Initialise global code
// Make sure the node doesn't already have an instance
// Initialise
// Wait a tick so we know for sure imgDi	v is in DOM.
return b=this,b instanceof f?(m(),a.Stackup&&a.Stackup instanceof f?a.Stackup:(b.node=a,d=$(b.node).attr("name"),b.settings={backgroundPosition:!!d.match(/(bottom|top|left|right|center)/g)&&d.match(/(bottom|top|left|right|center)/g).slice(0,2).join(" "),fadeIn:d.indexOf("fadein")>-1?+d.match(/fadein(\d{1,2})?/)[1]||50:0,fadeOut:d.indexOf("fadeout")>-1?+d.match(/fadeout(\d{1,2})?/)[1]||50:0,stack:!0},c=a.getElementsByTagName("img"),void(0!==c.length&&(b.img=c[0],b.imgDiv=x.createElement("div"),b.settings.backgroundPosition&&(b.imgDiv.style.backgroundPosition=b.settings.backgroundPosition),b.imgDiv.style.top=b.img.style.top,b.imgDiv.style.display=b.img.style.display,b.imgDiv.className=A("image"),a.replaceChild(b.imgDiv,b.img),setTimeout(function(){b.getParams(),b.initElement(),a.className+=" activated",
// References for later
w.push(b),a.Stackup=b},0))))):new f(a)}function g(){
// console.log('scroll');
// console.log('scroll');
return y.pageXOffset!==s.left?void e():y.pageYOffset!==s.top?(e(),void i()):void 0}function h(){
// console.log('wheel');
setTimeout(function(){y.pageYOffset!==s.top&&(s.top=y.pageYOffset,i())},0)}function i(){w.forEach(function(a){a.recalcElementPos()})}function j(){v&&(l(),w.forEach(function(a){a.deInitElement()}),w.forEach(function(a){a.getParams()}),w.forEach(function(a){a.initElement()}))}function k(a,b){for(var c in b)b.hasOwnProperty(c)&&(a[c]=b[c])}function l(){u={height:$(y).height(),width:$(y).width()}}function m(){v||(
// Make sure there's an instances array;
w=w||[],e(),l(),y.addEventListener("scroll",g),y.addEventListener("wheel",h,{passive:!0}),
//watch for width changes
y.addEventListener("resize",j),y.addEventListener("orientationchange",j),n(),v=!0)}function n(){t=setInterval(function(){o()||j()},500)}function o(){return w.every(function(a){var b,c;return b=Math.abs(r(a.el.clone)-a.el.docOffsetTop),c=Math.abs(a.el.parent.node.offsetHeight-a.el.parent.height),!(b>=2||c>=2)})}function p(a){return parseFloat(a)||0}function q(a){var b;return b=a.getBoundingClientRect(),{doc:{top:b.top+y.pageYOffset,left:b.left+y.pageXOffset},win:b}}function r(a){for(var b=0;a;)b+=a.offsetTop,a=a.offsetParent;return b}b.exports=d;
// All module vars
var s,// current scroll position
t,u,// Size of the viewport
v,// has the module been initialised
w,x=document,y=window,z=x.documentElement,A=a("util-identifier")("Stackup"),B=a("util-cmimg"),C=a("util-url2cmid"),D=a("closest-ratio"),E=a("./collect");f.prototype.setImage=function(){var a,b,c,d;a=this,b=C(a.img.src||a.img.dataset.src),c=D([u.width,u.height]).join("x"),d=B(b,c,u.width),a.imgDiv.style.backgroundImage="url("+d+")"},f.prototype.getParams=function(){var a,b,c,d,e,f,g,h,i,j,k,l,m;a=this,c=a.imgDiv,b=getComputedStyle(c),f=c.parentNode,g=getComputedStyle(f),i=c.style.position,c.style.position="relative",k={top:b.top,marginTop:b.marginTop,marginBottom:b.marginBottom,marginLeft:b.marginLeft,marginRight:b.marginRight,cssFloat:b.cssFloat,display:b.display},l={top:p(b.top),marginBottom:p(b.marginBottom),paddingLeft:p(b.paddingLeft),paddingRight:p(b.paddingRight),borderLeftWidth:p(b.borderLeftWidth),borderRightWidth:p(b.borderRightWidth)},c.style.position=i,m={position:c.style.position,top:c.style.top,bottom:c.style.bottom,left:c.style.left,right:c.style.right,width:c.style.width,marginTop:c.style.marginTop,marginLeft:c.style.marginLeft,marginRight:c.style.marginRight},d=q(c),h=q(f),e={node:f,css:{position:f.style.position},computed:{position:g.position},numeric:{borderLeftWidth:p(g.borderLeftWidth),borderRightWidth:p(g.borderRightWidth),borderTopWidth:p(g.borderTopWidth),borderBottomWidth:p(g.borderBottomWidth)}},j=[],$(a.node).children("p").each(function(a,b){var c={};c.node=b,c.top=r(b),c.bottom=c.top+$(c.node).outerHeight(),j.push(c)}),a.el={node:c,box:{left:d.win.left,right:z.clientWidth-d.win.right},offset:{top:d.win.top-h.win.top-e.numeric.borderTopWidth,left:d.win.left-h.win.left-e.numeric.borderLeftWidth,right:-d.win.right+h.win.right-e.numeric.borderRightWidth},css:m,isCell:"table-cell"===b.display,computed:k,numeric:l,width:d.win.right-d.win.left,height:d.win.bottom-d.win.top,mode:-1,inited:!1,parent:e,children:j,limit:{start:d.doc.top-l.top,end:h.doc.top+f.offsetHeight-e.numeric.borderBottomWidth-c.offsetHeight-l.top-l.marginBottom}}},f.prototype.initElement=function(){var a,b;a=this,b=a.el,isNaN(parseFloat(b.computed.top))||b.isCell||"none"===b.computed.display||(b.inited=!0,
// semi-art directed image
a.setImage(),b.clone||a.clone(),"absolute"!==b.parent.computed.position&&"relative"!==b.parent.computed.position&&(b.parent.node.style.position="relative"),a.recalcElementPos(),b.parent.height=b.parent.node.offsetHeight,b.docOffsetTop=r(b.clone))},f.prototype.deInitElement=function(){var a,b;a=this,b=a.el,this.declone(b),k(b.node.style,b.css),b.mode=-1},f.prototype.declone=function(){this.el.clone&&(this.el.clone.parentNode.removeChild(this.el.clone),this.el.clone=void 0),this.el.clones&&(this.el.clones.parentNode.removeChild(this.el.clones),this.el.clones=void 0)},f.prototype.recalcElementPos=function(){var a,b,c,d;if(a=this,b=a.el,b.inited){var e=s.top<=b.limit.start?0:s.top>=b.limit.end?2:1;b.mode!==e&&a.switchElementMode(e),1===e&&(a.settings.stack?b.children.forEach(function(a){a.top-s.top<a.clone.top?(a.node.classList.add("is-hidden"),a.clone.node.classList.remove("is-hidden")):(a.node.classList.remove("is-hidden"),a.clone.node.classList.add("is-hidden"))}):(c=u.height*a.settings.fadeIn/100,d=u.height*a.settings.fadeOut/100,b.children.forEach(function(a){var b,e;b=a.bottom-s.top,e=s.top+u.height-a.top,$(a.node).css("opacity",Math.min(1,Math.max(0,Math.min(e/c,b/d))))})))}},f.prototype.switchElementMode=function(a){var b,c,d;switch(b=this,c=b.el,d=c.node.style,a){case 0:d.position="absolute",d.left=c.offset.left+"px",d.right=c.offset.right+"px",d.top=c.offset.top+"px",d.bottom="auto",d.width="auto",d.marginLeft=0,d.marginRight=0,d.marginTop=0;break;case 1:d.position="fixed",d.left=c.box.left+"px",d.right=c.box.right+"px",d.top=c.css.top||0,d.bottom="auto",d.width=c.width+"px",d.marginLeft=0,d.marginRight=0,d.marginTop=0;break;case 2:d.position="absolute",d.left=c.offset.left+"px",d.right=c.offset.right+"px",d.top="auto",d.bottom=0,d.width="auto",d.marginLeft=0,d.marginRight=0}c.mode=a},f.prototype.clone=function(){var a,b,c,d,e;a=this,b=a.el,
// Image clone
b.clone=document.createElement("div"),c=b.node.nextSibling||b.node,d=b.clone.style,d.height=b.height+"px",d.width=b.width+"px",d.marginTop=b.computed.marginTop,d.marginBottom=b.computed.marginBottom,d.marginLeft=b.computed.marginLeft,d.marginRight=b.computed.marginRight,d.padding=d.border=d.borderSpacing=0,d.fontSize="1em",d.position="static",d.cssFloat=b.computed.cssFloat,b.node.parentNode.insertBefore(b.clone,c),
// Text clone
// TODO: declone this
e=$('<div class="'+A("clones")+'">'),a.el.children.forEach(function(a){var b;b=$(a.node).clone().css("opacity","").addClass("is-hidden"),b.appendTo(e),a.clone={node:b.get(0)}}),b.clones=e.get(0),e.appendTo(b.node),setTimeout(function(){a.el.children.forEach(function(a){var b=$(a.clone.node);a.clone.top=b.position().top+parseInt(b.css("marginTop"),10)}),e.height()>u.height&&(a.settings.stack=!1)},0)}},{"./collect":8,"closest-ratio":1,"util-cmimg":23,"util-identifier":24,"util-url2cmid":27}],21:[function(a,b,c){"use strict";function d(){return $(this).attr("name")&&0===$(this).attr("name").indexOf("wall")}function e(a,b){return'<div class="Narrative-wall" id="'+a+'">'+b.map(function(a){return'<div class="Narrative-wallRow Narrative-wallRow--length-'+a.length+'">'+a.map(function(a){var b=a.markup;return null==b&&(b='<img class="is-sm" src="'+a.sm+'" title="'+a.title+'"/><img class="is-md" src="'+a.md+'" title="'+a.title+'"/><img class="is-lg" src="'+a.lg+'" title="'+a.title+'"/>'),'<div class="Narrative-wallCell">'+b+"</div>"}).join("")+"</div>"}).join("")+"</div>"}function f(a){return(i.exec(a.attr("name").substr(4))||[""])[0].split("").map(n).filter(o)}function g(a,b){var c=[[]];return a.forEach(function(a){var d=$(a),e={};e.title=d.attr("title"),null!=d.data("srcset")?e.markup=d.get(0).outerHTML:(e.sm=e.md=d.attr("src"),e.lg=e.md.replace(j,"16x9-2150x1210"),e.md.indexOf("-3x2-")>-1?(e.sm=e.sm.replace(k,"$1700x467"),e.md=e.md.replace(k,"$1940x627")):e.md.indexOf("-4x3-")>-1?(e.sm=e.sm.replace(l,"$1700x525"),e.md=e.md.replace(l,"$1940x705")):e.md.indexOf("-16x9-")>-1&&(e.sm=e.sm.replace(m,"$1700x394"),e.md=e.md.replace(m,"$1940x529"))),b.length?(c[c.length-1].push(e),b[0]--,0===b[0]&&(b.shift(),b.length&&c.push([]))):c.push([e])}),c.filter(p)}function h(a){var b,c;return b=a.children("a").filter(d),c=[],b.each(function(){for(var a,b,d,h=$(this),i=h,j=!0,k=[],l=[];j;)i=i.next(),a=null,0===i.length||0===(i.attr("name")||"").indexOf("endwall")?j=!1:(k.push(i.get(0)),a=i.is("img")?i:i.find("img")),null!=a&&a.length&&l.push(a.first().clone().get(0));b=g(l,f(h)),i.remove(),$(k).remove(),$(l).remove(),d=$(e(h.attr("name"),b)),c.push(d.get(0)),h.replaceWith(d)}),c}var i=/\d+/,j=/\d+x\d+-\d+x\d+/,k=/(-3x2-)\d+x\d+/,l=/(-4x3-)\d+x\d+/,m=/(-16x9-)\d+x\d+/,n=function(a){return parseInt(a,10)},o=function(a){return a>0},p=function(a){return!!a.length};b.exports=h},{}],22:[function(a,b,c){"use strict";var d="undefined"==typeof Symbol?function(a){return"@"+(a||"@")+Math.random()}:Symbol;b.exports=d},{}],23:[function(a,b,c){/*!
 * util-cmimg
 *
 * @version 4.18.2
 * @author Simon Elvery <elvery.simon@abc.net.au>
 */
// These sizes are straight from CM. See:
// /Settings/Options/CMChannel/Settings/Common - On-Demand Image Sizes
var d={"3x2":[[940,627],[820,547],[700,467],[600,400],[580,387],[460,307],[340,227],[340,227],[300,200],[285,190],[220,147],[160,107],[140,93],[100,67],[60,40]],"4x3":[[940,705],[820,615],[700,525],[580,435],[460,345],[340,255],[300,225],[220,165],[160,120],[140,105],[100,75],[80,60],[60,45]],"16x9":[[2150,1210],[940,529],[820,461],[700,394],[580,326],[460,259],[340,191],[320,180],[300,169],[220,124],[200,112],[512,288],[160,90],[140,79],[100,56],[60,34]],"3x4":[[940,1253],[820,1093],[700,933],[580,773],[460,613],[340,453],[300,400],[220,293],[200,267],[160,213],[140,187],[100,133],[60,80]],"1x1":[[1400,1400],[940,940],[820,820],[700,700],[600,600],[580,580],[460,460],[340,340],[300,300],[220,220],[160,160],[150,150],[144,144],[140,140],[100,100],[80,80],[60,60],[50,50],[16,16]]};/**
 * Returns a qualified URL for the CM image at the size and ratio requested,
 * or the closest available larger size.
 *
 * @param  {int}	cmid  	The Core Media ID for the image resource
 * @param  {string} ratio 	[optional] A string defining the ratio requested (default: '4x3')
 * @param  {int} 	size  	[optional] The width of the requested image (default: 700)
 * @return {string}    		The URL requested or a best guess.
 */
b.exports=function(a,b,c,e){var f,g;for(
// Defaults
b=d[b]?b:"4x3",e=e||"jpg",c=c||700,
// Available sizes for supplied ratio
g=d[b],
// Find the most appropriate size (rounding down)
f=0;g[f]&&g[f][0]>=c;)f++;
// Construct the URL
// TODO: Add the ability to specify a domain.
// Return the smallest if supplied size is too small
return g[f]||(f=g.length),"/news/image/"+a+"-"+b+"-"+g[Math.max(0,f-1)].join("x")+"."+e}},{}],24:[function(a,b,c){/*!
 * util-identifier
 *
 * @author Simon Elvery <elvery.simon@abc.net.au>
 */
b.exports=function(a){return function(b,c,d){return(d?d:"")+a+(b?"-"+b:"")+(c?"--"+c:"")}}},{}],25:[function(a,b,c){b.exports={
// Containers
main:{
// Wrapper for the main content
p1s:".page_margins#main_content",p1m:"body > .content",p2:".main-content-container"},story:{
// The main story / article on this page
p1s:".article.section",p1m:"article > .story.richtext",p2:".article-detail-page .article-text"},
// Inline content
blockquote:{
// An inline blockquote
p1s:"blockquote:not([class])",p1m:"blockquote:not([class])",p2:".source-blockquote"},pullquote:{
// An inline pullquote
p1s:".quote--pullquote",p1m:".quote--pullquote",p2:".source-pullquote"},
// Embedded content
embed:{
// Embedded content of any type
p1s:".inline-content",p1m:".embed-content",p2:'[class^="view-"]'},"embed:photo":{
// Embedded content containing an image and (optional) caption
p1s:".inline-content.photo",p1m:".embed-content .type-photo",p2:".view-image-embed-full"},"embed:video":{
// Embedded content containing a video and (optional) caption
p1s:".inline-content.video",p1m:".embed-content .type-video",p2:".view-inlineMediaPlayer"},"embed:quote":{
// Embedded teaser of viewtype "Quote"
p1s:".inline-content.quote",p1m:".embed-quote",p2:".view-inline-pullquote"},"embed:wysiwyg":{
// Embedded teaser of viewtype "WYSIWYG"
p1s:".inline-content.wysiwyg",p1m:".embed-wysiwyg.richtext",p2:".view-wysiwyg .comp-rich-text"},"embed:fragment":{
// Embedded HTML fragment',
p1s:".inline-content.html-fragment",p1m:".embed-fragment",p2:".view-html-fragment-embedded"},"embed:full":{
// Embedded content that is not inlined in a left/right position
p1s:".inline-content.full",p1m:".embed-content",p2:'[class*="embed-full"]'},"embed:left":{
// Embedded content that is inlined in a left position
p1s:".inline-content.left",p1m:".embed-content",p2:".comp-embedded-float-left"},"embed:right":{
// Embedded content that is inlined in a right position
p1s:".inline-content.right",p1m:".embed-content",p2:".comp-embedded-float-right"},
// Related content
related:{
// Embedded content containing a link to any related content
p1s:".attached-content .inline-content",p1m:"aside.related article",p2:".comp-related .view-simple"},"related:photo":{
// Embedded content containing a link to a related photo
p1s:".attached-content .inline-content.photo",p1m:"aside.related article.type-photo",p2:".comp-article-media .view-image-embed-full"},"related:story":{
// Embedded content containing a link to a related story
p1s:".attached-content .inline-content.story",p1m:"aside.related article:not([class])",p2:".comp-related .view-simple"},"related:video":{
// Embedded content containing a link to a related video
p1s:".attached-content .inline-content.video",p1m:"aside.related article.type-video",p2:".comp-article-media .view-inlineMediaPlayer"},
// Misc.
caption:{
// The caption of a piece of content
p1s:".inline-caption",p1m:'[class^="type"] h3',p2:"figcaption"},attribution:{
// The attribution of a piece of content
p1s:".inline-caption .source",p1m:".attribution",p2:"figcaption .byline"},publication:{
// The dates a piece of content was originally published / updated
p1s:".published",p1m:"time[class]",p2:".view-comp-publish-date time"}}},{}],26:[function(a,b,c){function d(a,b){var c,d,g;if(null==a)return h;if(c=a.split(" "),d=c.map(e),g=[],"string"==typeof b){if(
// Phase 1 platform-to-template backwards compatibility
"standard"===b&&(b="p1s"),"mobile"===b&&(b="p1m"),i.indexOf(b)<0)throw new Error(k.replace("#",b));g.push(f(b,c,d))}else i.forEach(function(a){g.push(f(a,c,d))});return g.join(", ")}function e(a){var b=g[a];if(null==b)throw new Error(j.replace("#",a));return b}function f(a,b,c){return c.map(function(c,d){var e=c[a];if(null==e)throw new Error(l.replace("#",b[d]).replace("$",a));return e}).join(" ")}/*!
 * util-news-selectors
 *
 * @author Colin Gourlay <gourlay.colin@abc.net.au>
 */
var g=a("./dictionary"),h=Object.keys(g).map(function(a){var b=g[a];return{key:a,p1s:b.p1s,p1m:b.p1m,p2:b.p2}}),i=["p1s","p1m","p2"],j='The given key "#" was not recognised.',k='The template "#" is not valid.',l='The selector for the given key "#" on template "$" was not found.';b.exports=d},{"./dictionary":25}],27:[function(a,b,c){/**
 * Returns the CoreMedia ID for a supplied URL if possible.
 * @param  {string} url A URL containing a CoreMedia ID
 * @return {string|false} The string representation of a CoreMedia ID or false if no CMID was found.
 */
b.exports=function(a){var b;return b=a.match(/\/([0-9]+)(\/|([\?\#].*)?$|-[0-9]+x[0-9]+-)/),!!b&&(b[1]||!1)}},{}],28:[function(a,b,c){"use strict";function d(){var a=$("meta[name=title]").attr("content")||"",b=a.length?a:document.title.split(" - ")[0];e(),e.nav({shareText:b})}/*!
 * narrative-basic
 *
 * @version 4.18.2
 * @author Colin Gourlay <gourlay.colin@abc.net.au>
 */
var e=a("narrative-core");a("domready")(d)},{domready:3,"narrative-core":13}]},{},[28]);