YUI.add("hermes-lang-refencing-announcement",function(e,o){e.Intl.add("hermes/refencing-announcement","en-US",{LETS_BE_CANDID:["Let’s be candid."],FLICKR_AT_ITS_BEST:["Flickr at its best is a place to connect, to discover, and to evolve as photographers and lovers of photography. This is the world’s largest photographer-focused community. Here, together, this newly-independent community can shape the future of photography itself."],TODAY_WE_ARE_ANNOUNCING:["Today we are announcing updates to Flickr’s Pro and Free account offerings."],FLICKR_PRO_BETTER_THAN_EVER:['Flickr Pro is better than ever. For only ',"${price}",' per year, get unlimited storage, ad-free browsing, advanced stats, an unmatched community, and more.'],UNLIMITED_STORAGE:["Unlimited Storage."],ONLY_LIMIT_IS_IMAGINATION:["The only limit is your imagination. Upload as many photos as you can take, always at true full resolution."],AD_FREE_BROWSING:["Ad-free Browsing."],FOCUS_ON_WHAT_MATTERS:["Focus on what matters. A fully ad-free Flickr experience for you and your visitors."],ADVANCED_STATS:["Advanced Stats."],SEE_WHICH_PHOTOS_ARE_TRENDING:["See which of your photos are trending now, and which have performed the best over the life of your Flickr Pro account."],PLUS_ALL_THESE_PRO_FEATURES:['Plus all these great new Pro-only features.'],PREMIER_SUPPORT:["Premier Support"],PREMIER_PRODUCT_SUPPORT:["Premier Product Support"],SKIP_THE_LINE:['Skip the line. Flickr Pros now receive priority assistance from our new world-class support team. Available now.'],MORE_PARTNER_DISCOUNTS:["More Partner Discounts"],SAVE_ON_PHOTOGRAPHY_ESSENTIALS:["Save on photography essentials. Discounts on Creative Cloud from Adobe, ","${smPercent}",'% off a custom portfolio site on SmugMug, gear from Peak Design, and many more. Coming November.'],ADVANCED_STATS_ON_MOBILE:["Advanced Stats on Mobile"],STATS_IN_YOUR_POCKET:['Stats in your pocket. All the photo stats you know and love, available in-app. Coming November.'],INCREASED_EXPOSURE:["Increased Exposure"],ALL_PROS_PRIORITY_EXPOSURE:['All Pro members as of January 1, 2019 are eligible for priority exposure in the next iteration of Explore. Coming early 2019.'],NEW_5K_PHOTO_OPTION:["New 5K Photo Display Option"],LOOK_YOUR_BEST:['Look your best. Your images are beautifully optimized for any screen, from smartphone to jumbotron. Pro images display at resolutions up to 5K. Coming early 2019.'],TEN_MINUTE_VIDEOS:["10 Minute Videos"],MORE_TIME_TO_TELL_STORY:['More time to tell your story. Play back videos for up to 10 minutes, increased from 3. Coming early 2019.'],HANDS_DOWN_BEST_DEAL:["Hands down the best deal in photos."],BEST_DEAL_REASON:["Unlimited storage, ad-free browsing, and a global community of over 100 million photographers for less than half the cost of Apple, Amazon, or Google. Sign up today and get ","${percent}","% off the first year. Discount available through November 30."],GET_PRO_30_OFF:["Get Pro today for ","${percent}","% off"],FREE_ACCOUNTS_1000_PHOTOS:['Free accounts will soon be limited to 1,000 photos or videos. Flickr isn’t Flickr without the contributions and participation of our free members, and we remain committed to a vibrant free offering.'],IF_YOU_ARE_FREE_MEMBER:["If you are a free member with more than 1,000 photos or videos, you will have ample time to upgrade to Pro (for ","${percent}",'% off your first year) or download your photos and videos.*'],READ_MORE_ABOUT_DECISION:["Read more about this decision."],YOUR_PHOTOGRAPHY_COMMUNITY:["Your Photography Community"],SHARE_DISCOVER_GROW:["Share, discover, and grow. No matter your passion, there are photographers here who share it."],ORGANIZE_BEAUTIFULLY:["Organize Beautifully"],POWERFUL_INTUITIVE_TOOLS:["Powerful, intuitive tools to organize your photos and share them with the people who matter to you."],FREE_MEMBERS_NOTICE:["*Free members with more than 1,000 photos or videos uploaded to Flickr have until Tuesday, January 8, 2019, to upgrade to Pro or download content over the limit. After January 8, 2019, members over the limit will no longer be able to upload new photos to Flickr. After February 5, 2019, free accounts that contain over 1,000 photos or videos will have content actively deleted -- starting from oldest to newest date uploaded -- to meet the new limit."],READY_FOR_PRO:["Ready for Pro?"],NEW_PROS_RECEIVE_DISCOUNT:["New Pros receive ","${percent}","% off their first year. Discounted price available until Nov 30."],UPGRADE_TO_PRO:["Upgrade to Pro"],NEW_SIMPLE_LOGIN:["New simple login!"],COMING_IN_JANUARY_LOGIN:["Coming in January, there will be no need for a Yahoo account to use Flickr."],ANNOUNCEMENT_BANNER_ACCOUNTS_CHANGING:["Flickr’s Pro and Free account offerings are changing. See what it means for you."],SAVE_ON_PHOTOGRAPHY_ESSENTIALS_NOW:["Save on photography essentials. Discounts on Creative Cloud from Adobe, ","${smPercent}",'% off a custom portfolio site on SmugMug, gear from Peak Design, and many more. Available Now.'],STATS_IN_YOUR_POCKET_NOW:['Stats in your pocket. All the photo stats you know and love, available in-app. Available Now.'],BEST_DEAL_REASON_JAN:["Unlimited storage, ad-free browsing, and a global community of over 100 million photographers for less than half the cost of Apple, Amazon, or Google. Sign up today and get ","${percent}","% off the first year. Discount available through January 8."],BEST_DEAL_REASON_JAN_X:["Unlimited storage, ad-free browsing, and a global community of over 100 million photographers for less than half the cost of Apple, Amazon, or Google. Sign up today and get ","${percent}","% off the first year. Discount available through January ","${dateNumber}","."],NEW_PROS_RECEIVE_DISCOUNT_JAN:["New Pros receive ","${percent}","% off their first year. Discounted price available until January 8."],NEW_PROS_RECEIVE_DISCOUNT_JAN_X:["New Pros receive ","${percent}","% off their first year. Discounted price available until January ","${dateNumber}","."],WE_ARE_ANNOUNCING:["We are announcing updates to Flickr’s Pro and Free account offerings."],ALL_PROS_PRIORITY_EXPOSURE_2:["All Pro members are eligible for priority exposure in the next iteration of Explore. Coming early 2019."],BEST_DEAL_REASON_2:["Unlimited storage, ad-free browsing, and a global community of more than 100 million photographers for less than half the cost of Apple, Amazon, or Google."],GET_PRO_TODAY:["Get Pro today"],IF_YOU_ARE_FREE_MEMBER_2:["If you are a free member with more than ","${limitCount}"," photos or videos, you will have ample time to upgrade to Pro or download your photos and videos.*"],FREE_MEMBERS_NOTICE_2:["*Free members with more than ","${limitCount}"," photos or videos uploaded to Flickr have until Tuesday, January 8, 2019, to upgrade to Pro or download content over the limit. After January 8, 2019, members over the limit will no longer be able to upload new photos to Flickr. On February 5, 2019, photos and videos over the free account ","${limitCount}"," item limit will be at risk of deletion beginning with the oldest photos and videos."],JOIN_LARGEST_COMMUNITY:["Join the largest, most influential group of photographers on the planet, and find your community today."],COMING_SOON_LOGIN:["Coming soon, there will be no need for a Yahoo account to use Flickr."],ALL_PROS_PRIORITY_EXPOSURE_3:["All Pro members are eligible for priority exposure in the next iteration of Explore."],COMING_LATE_2019:["Coming late 2019."]})},"@VERSION@",{requires:["intl"]});YUI.add("hermes-template-vr-overlay",function(e,a){var r=e.Template.Handlebars.revive({compiler:[7,">= 4.0.0"],main:function(e,a,r,t,s){return''},useData:!0}),t={};e.Array.each([],function(a){var r=e.Template.get("hermes/"+a);r&&(t[a]=r)}),e.Template.register("hermes/vr-overlay",function(a,s){return s=s||{},s.partials=s.partials?e.merge(t,s.partials):t,r(a,s)})},"@VERSION@",{requires:["template-base","handlebars-base"]});YUI.add("hermes-template-flickr-balls",function(e,a){var l=e.Template.Handlebars.revive({compiler:[7,">= 4.0.0"],main:function(e,a,l,r,s){return'
\n\t
\n
'},useData:!0}),r={};e.Array.each([],function(a){var l=e.Template.get("hermes/"+a);l&&(r[a]=l)}),e.Template.register("hermes/flickr-balls",function(a,s){return s=s||{},s.partials=s.partials?e.merge(r,s.partials):r,l(a,s)})},"@VERSION@",{requires:["template-base","handlebars-base"]});YUI.add("flickr-photos-removeTag-deletor",function(o,e){"use strict";o.namespace("ModelDeletors")["flickr-photos-removeTag"]={run:function(r,t){var i={};return"string"==typeof r?i.tag_id=r:"object"==typeof r&&(i.global_tag_ids=r.globalTagIds.join(","),i.photo_ids=r.photoIds.join(",")),t.callAPI("flickr.photos.removeTag",i).then(null,o.FetcherErrorLogger(e))}}},"@VERSION@",{requires:["flickr-promise"],optional:[]});YUI.add("tag-models",function(t){function e(t){e.superclass.constructor.call(this,t)}t.Models[this.name]=e,t.extend(e,t.FlickrModelRegistry,{name:this.name,remote:{create:function(e){return t.ModelCreators["flickr-photos-addTags"].run(e,this.appContext)},delete:function(e){return t.ModelDeletors["flickr-photos-removeTag"].run(e,this.appContext)}},attributes:{tagValue:{validator:function(e){return t.AttributeHelpers.validateString(e)},setter:function(e){return t.AttributeHelpers.coerceString(e.trim().replace(/\s/g,""))}},tagRaw:{validator:function(e){return t.AttributeHelpers.validateString(e)},setter:function(e){return t.AttributeHelpers.coerceString(e)}},tagAuthorNSID:{},isMachineTag:{validator:function(e){return t.AttributeHelpers.validateBoolean(e)},setter:function(e){return t.AttributeHelpers.coerceBoolean(e)},defaultValue:!1},url:{derivedBy:["tagValue"],readOnly:!0,defaultFn:function(t){var e=this.getValue(t,"tagValue");return e?"/photos/tags/"+e:void 0}},searchUrl:{derivedBy:["tagValue","tagRaw","isMachineTag"],readOnly:!0,defaultFn:function(t){var e,r=this.getValue(t,"tagRaw"),a=this.getValue(t,"tagValue"),i=this.getValue(t,"isMachineTag");return r&&i?(r.indexOf(" ")>0&&(e=r.indexOf("=")+1,r=r.substring(0,e)+'"'+r.substring(e)+'"'),"/search/?tags="+r):a?"/search/?tags="+a:void 0}},duplicateAutotagId:{validator:function(e){return t.AttributeHelpers.validateString(e)},setter:function(e){return t.AttributeHelpers.coerceString(e)}}}})},"@VERSION@",{requires:["flickr-model-registry","flickr-photos-addTags-creator","flickr-photos-removeTag-deletor"]});YUI.add("flickr-tags-getListPhoto-fetcher",function(t,o){"use strict";t.namespace("ModelFetchers")["flickr-tags-getListPhoto"]={run:function(a,e){var s=a.id,g={photo_id:s,extras:"autotags",lang:e.lang},r=this;return t.Promise.all([e.callAPI("flickr.tags.getListPhoto",g),e.getModelRegistry("photo-tags-models"),e.getModelRegistry("tag-models"),e.getModelRegistry("photo-autotags-models"),e.getModelRegistry("autotag-models")]).then(function(t){return r._processResponse(t,s,e.flipper)},t.FetcherErrorLogger(o))},_processResponse:function(o,a,e){var s,g=o[0],r=o[1],i=o[2],n=g.photo&&g.photo.tags&&void 0!==g.photo.tags.tag?g.photo.tags.tag.length:0,p=[],u=o[3],d=o[4],h=0,l=[];return n>0&&t.Array.each(g.photo.tags.tag,function(t){"string"==typeof t.content&&p.push(i.addOrUpdate({id:t.id,tagRaw:t.raw,tagValue:t.content,tagAuthorNSID:t.author,isMachineTag:t.machineTag,duplicateAutotagId:t.duplicateAutotag}))}),r.exists(a)?r.setValue(a,"tags",p):r.add({id:a,tags:p}),s={id:a},g.photo&&g.photo.autotags&&void 0!==g.photo.autotags.autotag&&(h=g.photo.autotags.autotag.length),h>0&&t.Array.each(g.photo.autotags.autotag,function(t){"string"==typeof t.content&&l.push(d.addOrUpdate({id:t.id,autotagValue:t.content,score:t.confidence,isPrivate:t.private}))}),s.autotags={page:1,perPage:1e3,pageContent:l,totalItems:h},u.exists(a)?u.setValue(a,"autotags",s.autotags):u.add(s),r.proxy(a)}}},"@VERSION@",{requires:["flickr-promise","api-helper"],optional:["tag-models","photo-tags-models"]});YUI.add("photo-tags-models",function(t){function e(t){e.superclass.constructor.call(this,t)}t.Models[this.name]=e,t.extend(e,t.FlickrModelRegistry,{name:this.name,remote:{read:function(e){return t.ModelFetchers["flickr-tags-getListPhoto"].run(e,this.appContext)},create:function(e){return t.ModelCreators["flickr-photos-addTags"].run(e,this.appContext)},delete:function(e){return t.ModelDeletors["flickr-photos-removeTag"].run(e,this.appContext)}},attributes:{tags:{isCollection:!0}}})},"@VERSION@",{requires:["flickr-model-registry","flickr-tags-getListPhoto-fetcher","flickr-photos-addTags-creator","flickr-photos-removeTag-deletor"]});YUI.add("flickr-photos-addTags-creator",function(t,o){"use strict";t.namespace("ModelCreators")["flickr-photos-addTags"]={run:function(s,e){var r=this;return t.Promise.all([e.callAPI("flickr.photos.addTags",this._processParams(s)),e.getModelRegistry("photo-tags-models"),e.getModelRegistry("tag-models")]).then(function(t){return r._processResponse(t,s)},function(t){throw s.fullResponse&&(t.photoIds=s.photoId),t}).then(null,t.FetcherErrorLogger(o))},_processParams:function(t){t.tags=t.tags||[];var o={};return o.photo_ids=t.photoId.join(","),o.tags=t.tags.join(","),t.fullResponse&&(o.full_response=1),o.extras="is_autotag",o},_processResponse:function(t,o){var s,e,r,a=t[0],n=t[1],i=t[2],d=[];if(s=a.errors,!o.fullResponse){for(a.tags.tag.forEach(function(t){i.exists(t.id)||i.add({id:t.id,tagRaw:t.raw,tagValue:t.content.replace(/\s/g,""),tagAuthorNSID:t.author,duplicateAutotagId:t.duplicateAutotag}),d.push(i.proxy(t.id))}),e=0;e0)return s}}},"@VERSION@",{requires:["flickr-promise"],optional:["photo-tags-models","tag-models"]});