
/*************************************************************************
* ADOBE CONFIDENTIAL
* ___________________
*
* Copyright 2017 Adobe. All Rights Reserved.
*
* NOTICE: All information contained herein is, and remains
* the property of Adobe and its suppliers, if any. The intellectual
* and technical concepts contained herein are proprietary to Adobe
* and its suppliers and are protected by all applicable intellectual
* property laws, including trade secret and copyright laws.
* Dissemination of this information or reproduction of this material
* is strictly forbidden unless prior written permission is obtained
* from Adobe.
**************************************************************************/

(window.webpackJsonp=window.webpackJsonp||[]).push([[241],{1416:function(module,__webpack_exports__,__webpack_require__){"use strict";function TorqView_mount(content,parent,scope){const app=new TorqView_Application;return app.render=()=>content,app.start(parent,null,scope),app}__webpack_require__.r(__webpack_exports__);var platform=__webpack_require__(56),log=__webpack_require__(1),host=__webpack_require__(355),imsBridge=__webpack_require__(25),cepBridge=__webpack_require__(11),analytics_ingest=__webpack_require__(50),LrSDKHelper=__webpack_require__(418),react=__webpack_require__(357),mobx_module=__webpack_require__(51),index_module=__webpack_require__(360),prop_types=__webpack_require__(358),prop_types_default=__webpack_require__.n(prop_types);const TorqView_styles=__webpack_require__(822),{Binder:TorqView_Binder,Scope:TorqView_Scope,Application:TorqView_Application}=__webpack_require__(478).lrimporter.default;class TorqView_TorqView extends react.Component{constructor(props){super(props),this._disposables=[]}componentDidMount(){const content=this.makeTemplate(),scope=this.makeScope();this._disposables.push(TorqView_mount(content,this.container,scope))}componentWillUnmount(){this._disposables.forEach(d=>d.dispose()),this._disposables.length=0}componentWillReceiveProps(nextProps){const props=this.props;for(let key in props)props[key]!==nextProps[key]&&TorqView_Binder.recordChange(this,key,props[key],nextProps[key])}makeTemplate(){return this.props.view.make({attributes:this.makeAttributes(),events:this.makeEvents()})}makeAttributes(){const view=this.props.view,attributes=[];return view.prototype.definedAttributes&&Object.keys(view.prototype.definedAttributes).forEach(key=>{attributes.push({name:key,get:()=>(TorqView_Binder.active&&TorqView_Binder.recordEvent(this,key),this.props[key]),set:value=>{this.props.onAttributeChange&&this.props.onAttributeChange(key,value)}})}),attributes}makeEvents(){const view=this.props.view,events=[];if(Array.isArray(view.prototype.events)){const eventList=view.prototype.events;eventList.forEach(eventName=>{const reactHandlerName="on-"+eventName;this.props.hasOwnProperty(reactHandlerName)&&events.push({name:eventName,value:this.props[reactHandlerName]})})}return events}makeScope(){const object=this.props.scope;if(!object)return null;if(object instanceof TorqView_Scope)return object;const scope=new TorqView_Scope;for(let key in this._disposables.push(scope),object)object.hasOwnProperty(key)&&(scope[key]=object[key]);return scope}render(){return react.createElement("div",{className:"panel-ccphotos "+TorqView_styles.root,style:this.props.style,ref:el=>this.container=el})}}TorqView_TorqView.propTypes={view(props,propName,componentName){if("function"!=typeof props[propName]||"function"!=typeof props[propName].make)return new Error("Invalid prop `"+propName+"` supplied to `"+componentName+"`, expected a Torq Directive.")},onAttributeChange:prop_types_default.a.func};var LRImporter_decorate=function(decorators,target,key,desc){var c=arguments.length,r=3>c?target:null===desc?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;0<=i;i--)(d=decorators[i])&&(r=(3>c?d(r):3<c?d(target,key,r):d(target,key))||r);return 3<c&&r&&Object.defineProperty(target,key,r),r},LRImporter_metadata=function(k,v){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(k,v)};const{Importer:LRImporter_Importer}=__webpack_require__(478).lrimporter.default;__webpack_require__(831);let LRImporter_LRImporter=class extends react.Component{constructor(){super(...arguments),this.updatePanelHeight=()=>{this.panelHeight=window.innerHeight-114-74-10},this.updateColorStop=()=>{let interfaceColor=cepBridge["default"].getUIThemeColor();this.colorStop=interfaceColor&&184<=interfaceColor.red?"light":"darkest"},this.handleImportCompleted=files=>{let promise=Promise.resolve();files.forEach(({path,filename,xmpString,adobeUserOrientation,assetId,extension,contentType})=>{promise=promise.then(()=>new Promise(resolve=>{try{analytics_ingest.a.logClickedEvent("lightroom-view",{subtype:"open",content:{id:assetId,extension,mimetype:contentType,category:"image"}});let onOpenFileHandler=status=>{if(!status)analytics_ingest.a.logMiscellaneousEvent("lightroom",{eventType:"error",subtype:"open",errorDesc:"Failed to open photo",content:{id:assetId,extension,mimetype:contentType,category:"image",open_with_xmp:!!xmpString}}),log.a.logJSON("Unable to open photo",{path,xmpString,adobeUserOrientation}),resolve();else{let newTitle=filename.replace(/\.\w+$/,"");host["default"].releaseFileReference(newTitle),analytics_ingest.a.logRenderedEvent("lightroom-edit",{id:assetId,extension,mimetype:contentType,category:"image"}),resolve()}};xmpString?(log.a.toConsole("Open file with ACR settings"),host["default"].openPathWithXMP(path,xmpString,adobeUserOrientation,onOpenFileHandler)):host["default"].openDocument(path,!0,onOpenFileHandler)}catch(err){log.a.logJSON(`Unable to open photo: ${err}`,{path,xmpString,adobeUserOrientation}),resolve()}}))})},this.handleRequestAccessToken=()=>new Promise((resolve,reject)=>{imsBridge.a.isUserSignedIn(signedIn=>signedIn?void imsBridge.a.getAccessToken(token=>{token?resolve(token):reject("Failed to acquire access token.")}):void resolve())}),this.handleOpenLink=url=>{analytics_ingest.a.logClickedEvent("lightroom-view",{subtype:"open",action:url}),platform["default"].openDefaultBrowserAuthenicated("ADOBEACCOUNT",url)},this.handleEscapeKey=()=>{const iframe=document.getElementById("lrimporter-iframe");iframe&&iframe.contentWindow&&iframe.contentWindow.addEventListener("keydown",e=>{"Escape"===e.key&&cepBridge["default"].closeExtensionOnStatus("true")})},this.handleReportEvent=(eventName,data)=>{"initialize-lr-organizer"===eventName?analytics_ingest.a.logMiscellaneousEvent("lightroom",{eventType:"initialize"}):"initialize-lr-organizer-failed"===eventName?analytics_ingest.a.logMiscellaneousEvent("lightroom",{eventType:"error",errorDesc:`Message: ${data.message}, Stack: ${data.stack}`.slice(0,1024)}):"rendered-lr-organizer"===eventName?(analytics_ingest.a.logRenderedEvent("lightroom-organizer"),this.handleEscapeKey()):"clicked-asset"===eventName?analytics_ingest.a.logClickedEvent("lightroom-view",{subtype:"select",content:{id:data.assetId,extension:data.extension,mimetype:data.contentType,category:"image"}}):"clicked-import"===eventName?analytics_ingest.a.logClickedEvent("lightroom-view",{subtype:"import",count:data.count}):"clicked-cancel-download"===eventName?analytics_ingest.a.logClickedEvent("lightroom-view",{subtype:"cancel-download",count:data.count}):"clicked-refresh"===eventName?analytics_ingest.a.logClickedEvent("lightroom-view",{subtype:"refresh"}):"download-failed"===eventName?analytics_ingest.a.logMiscellaneousEvent("lightroom",{eventType:"error",subtype:"download",errorDesc:data.error,content:{id:data.assetId,extension:data.extension,mimetype:data.contentType,original_file_size:data.originalFileSize,category:"image"}}):void 0}}componentDidMount(){window.addEventListener("resize",this.updatePanelHeight),this.updatePanelHeight(),cepBridge["default"].addThemeChangeListener(this.updateColorStop),this.updateColorStop()}componentWillUnmount(){window.removeEventListener("resize",this.updatePanelHeight),cepBridge["default"].removeThemeChangeListener(this.updateColorStop)}render(){return react.createElement(TorqView_TorqView,{view:LRImporter_Importer,style:{height:this.panelHeight,position:"relative",display:this.props.hidden?"none":void 0},colorStop:this.colorStop,clientId:"CCXInAppWelcomeStart",lrSDKHelper:LrSDKHelper.b,requestAccessToken:this.handleRequestAccessToken,locale:host["default"].data.language,onImportCompleted:this.handleImportCompleted,onOpenLink:this.handleOpenLink,onReportEvent:this.handleReportEvent})}};LRImporter_decorate([mobx_module.t,LRImporter_metadata("design:type",Object)],LRImporter_LRImporter.prototype,"panelHeight",void 0),LRImporter_decorate([mobx_module.t,LRImporter_metadata("design:type",Object)],LRImporter_LRImporter.prototype,"colorStop",void 0),LRImporter_LRImporter=LRImporter_decorate([index_module.a],LRImporter_LRImporter);__webpack_exports__["default"]=LRImporter_LRImporter},477:function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"f9f2588c69e26a9fe4224df056eeceb6.svg"},478:function(module,exports,__webpack_require__){var _Mathmin=Math.min,_Mathround=Math.round,_Mathmax=Math.max;exports.lrimporter=function(modules){function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={i:moduleId,l:!1,exports:{}};return modules[moduleId].call(module.exports,module,module.exports,__webpack_require__),module.l=!0,module.exports}var installedModules={};return __webpack_require__.m=modules,__webpack_require__.c=installedModules,__webpack_require__.d=function(exports,name,getter){__webpack_require__.o(exports,name)||Object.defineProperty(exports,name,{configurable:!1,enumerable:!0,get:getter})},__webpack_require__.n=function(module){var getter=module&&module.__esModule?function(){return module["default"]}:function(){return module};return __webpack_require__.d(getter,"a",getter),getter},__webpack_require__.o=function(object,property){return Object.prototype.hasOwnProperty.call(object,property)},__webpack_require__.p="",__webpack_require__(__webpack_require__.s=54)}([function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(classObject,{decorators,properties}){if(decorators)for(let i=0,l=decorators.length;i<l;++i)classObject=decorators[i](classObject)||classObject;if(properties)for(let i=0,l=properties.length;i<l;++i){var property=properties[i],ref=property.static?classObject:classObject.prototype,propertyBuilder=new _PropertyBuilder2.default(ref,property,classObject),propDecorators=property.decorators;if(propDecorators)for(var j=0,k=propDecorators.length;j<k;++j)propDecorators[j](propertyBuilder);propertyBuilder.finish()}return classObject};var _PropertyBuilder=__webpack_require__(62),_PropertyBuilder2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_PropertyBuilder)},function(module,exports,__webpack_require__){"use strict";function getCacheState(){return enableCache}Object.defineProperty(exports,"__esModule",{value:!0}),exports.setCacheState=function(enable){enableCache=enable},exports.getCacheState=getCacheState;var _defaults=__webpack_require__(59),_defaults2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_defaults),enableCache=!0;const defaultMethods={render(){},init(){},dispose(){},move(){},reuse(){}};var lastId=0;class Template{static make(methods){if(!methods.firstChild)return console.warn("Template didn't provide a first child method, so we cannot use it. Switching to EmptyTemplate.",methods),Template.EmptyTemplate;methods.lastChild||(methods.lastChild=methods.firstChild);var id=++lastId;const useTemplateCache=!1!==methods.cache;var template=(0,_defaults2.default)(methods,defaultMethods),{render,init,dispose,move,reuse,prepare}=template,didPrepare={};return template.render=function(f,data){++f.depth,render(f,data),init(f,data),--f.depth},template.dispose=function(f,data){if(data.$_disposed)throw new Error("Invalid dispose on disposed template.");var{parentNode,nextNode}=f;dispose(f,data),data.$_disposed=!0,f.parentNode=parentNode,f.nextNode=nextNode},template.reuse=function(f,data){if(!data.$_disposed)throw new Error("Invalid reuse on live template.");data.$_disposed=!1;var{parentNode,nextNode}=f;++f.depth,reuse(f,data),init(f,data),--f.depth,f.parentNode=parentNode,f.nextNode=nextNode},template.cache=function(f,data){var savedParentNode=f.parentNode,savedNextNode=f.nextNode;data.$_disposed||(data.$_disposed=!0,dispose(f,data)),data.$_cache||(f.parentNode=data.$_cache=f.makeFragment(),f.nextNode=null,move(f,data),enableCache&&useTemplateCache&&f.templates.put(id,data)),f.parentNode=savedParentNode,f.nextNode=savedNextNode},template.run=function(f,data){var cache=data.$_cache;if(!cache)return++f.depth,render(f,data),init(f,data),void--f.depth;f.pushNode(data.$_cache),data.$_cache=null,data.$_disposed=!1;var{parentNode,nextNode}=f;++f.depth,reuse(f,data),init(f,data),--f.depth,f.parentNode=parentNode,f.nextNode=nextNode},template.make=function(f){if(didPrepare[f.id]||(prepare&&prepare(f),didPrepare[f.id]=!0,enableCache&&useTemplateCache&&f.templates.init(id)),enableCache&&useTemplateCache){var item=f.templates.take(id);if(item)return item}return{template,$_cache:null,$_disposed:!1}},template.releaseCache=function(f){f.templates.removeAll(id)},template}}exports.default=Template,Template.EmptyTemplate=Template.make({render(f,data){data.comment=f.pushCommentNode("empty template")},move(f,data){f.pushNode(data.comment)},firstChild(f,data){return data.comment}})},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _AttributeDescriptor=__webpack_require__(61),_AttributeDescriptor2=_interopRequireDefault(_AttributeDescriptor),_Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_SignalDispatcher=__webpack_require__(19),_SignalDispatcher2=_interopRequireDefault(_SignalDispatcher),_Logger=__webpack_require__(28),_Logger2=_interopRequireDefault(_Logger),_uniqueId=__webpack_require__(89),_uniqueId2=_interopRequireDefault(_uniqueId),injectorState=null,injectorStateStorage={};const addToChildAttributes=Symbol("addToChildAttributes"),shouldPropagateChildAttribute=Symbol("shouldPropagateChildAttribute"),attachSpreads=Symbol("attachSpreads");class Component extends _SignalDispatcher2.default{constructor(){if(super(),injectorState){var{scope,factory,data,spreads}=injectorState;data.$_component=this,this.scope=scope,this.$_depth=factory.depth,this.$_factory=factory,this.$_view=data,spreads&&this[attachSpreads](spreads)}}get children(){return this.renderChildWithName("children")}attached(){}detached(){}_getChildTemplate(name){return this.childrenBlocks?this.childrenBlocks[name]||this.childrenBlocks[name.replace(/:/g,"_")]:void 0}renderChildWithName(name){let childTemplate=this._getChildTemplate(name);return childTemplate?this.renderChildTemplate(childTemplate):null}renderChildTemplate(childTemplate){return{template:childTemplate,$_parent:this.$_view}}childrenWithArgs(...args){return this.renderChildWithNameAndArgs("children",...args)}renderChildWithNameAndArgs(name,...args){let childTemplate=this._getChildTemplate(name);return childTemplate?this.renderChildTemplateWithArgs(childTemplate,...args):null}renderChildTemplateWithArgs(childTemplate,...args){return{template:childTemplate,$_parent:this.$_view,$_injectScope:data=>{for(var i=0,l=args.length;i<l;++i)data[`v${i}`]=args[i]}}}[shouldPropagateChildAttribute](descriptor){if(descriptor.isEvent){if(this.events&&(-1<this.events.indexOf(descriptor.name)||-1<this.events.indexOf(descriptor.normalizedName)))return!1;}else if(this.definedAttributes&&!0===this.definedAttributes[descriptor.normalizedName])return!1;return!0}[addToChildAttributes](childAttrs,descriptor,namespace){descriptor.matchesNamespace(namespace)&&this[shouldPropagateChildAttribute](descriptor)&&childAttrs.push(descriptor.toChildAttribute(this,!namespace))}childAttributes(namespace){const childAttrs=[];if(this.sourceAttributes)for(let attr of this.sourceAttributes)this[addToChildAttributes](childAttrs,new _AttributeDescriptor2.default(attr),namespace);if(this.spreadAttributes&&_AttributeDescriptor2.default.forEachSpread(this.$_view,this.spreadAttributes,descriptor=>{this[addToChildAttributes](childAttrs,descriptor,namespace)}),this.eventAttributes)for(let attr of this.eventAttributes)this[addToChildAttributes](childAttrs,new _AttributeDescriptor2.default(attr,!0),namespace);return childAttrs}static attachAttributes(attributes,obj={},requireDefinedAttributes=!1){if(!attributes)return obj;for(var i=0,l=attributes.length;i<l;++i){const descriptor=new _AttributeDescriptor2.default(attributes[i]),normalizedName=descriptor.normalizedName,isDefinedAttribute=obj.definedAttributes&&obj.definedAttributes[normalizedName];if(!isDefinedAttribute){const isObservable=obj.definedObservables&&obj.definedObservables[normalizedName],isProperty=normalizedName in obj;if(isObservable)console.warn(`WARNING: The JSX attribute "${normalizedName}" was passed to a component declaring an `+`@Observable of the same name. The JSX attribute will be ignored in a future Torq release. `+`Use the @Attribute decorator to declare JSX attributes.`);else if(isProperty)console.warn(`WARNING: The JSX attribute "${normalizedName}" was passed to a component declaring a `+`property of the same name. The JSX attribute will be ignored in a future Torq release. `+`Use the @Attribute decorator to declare JSX attributes.`);else if(requireDefinedAttributes)continue}Object.defineProperty(obj,normalizedName,descriptor)}return obj}[attachSpreads](spreadAttributes){const events=this.events,definedAttributes=this.definedAttributes;(definedAttributes||events)&&_AttributeDescriptor2.default.forEachSpread(this.$_view,spreadAttributes,descriptor=>{const name=descriptor.name,normalizedName=descriptor.normalizedName;definedAttributes&&definedAttributes[normalizedName]?Object.defineProperty(this,normalizedName,descriptor):descriptor.isEvent&&events&&-1<events.indexOf(name)&&!descriptor.namespace&&descriptor.value&&this.on(name,descriptor.value)})}static getBlockTemplate(blocks,name="children"){if(blocks)for(var i=0,l=blocks.length,block;i<l;++i)if(block=blocks[i],block.name===name)return block.template}static attachBlockTemplates(blocks,obj={}){if(blocks)for(var i=0,l=blocks.length,block;i<l;++i)block=blocks[i],obj[block.name]=block.template;return obj}static make(options){function updateClass(parent){if(ParentClass=parent,ComponentSubclass=class extends ParentClass{},Component.attachAttributes(attributes,ComponentSubclass.prototype,!0),ComponentSubclass.prototype.childrenBlocks=Component.attachBlockTemplates(blocks),ComponentSubclass.prototype.sourceAttributes=attributes,ComponentSubclass.prototype.spreadAttributes=spreads,ComponentSubclass.prototype.eventAttributes=events,fork=ComponentSubclass.prototype.fork,render=ComponentSubclass.prototype.render,attached=ComponentSubclass.prototype.attached,detached=ComponentSubclass.prototype.detached,attached===Component.prototype.attached&&(attached=null),detached===Component.prototype.detached&&(detached=null),dispose=ComponentSubclass.prototype.dispose,definedAttributes=ComponentSubclass.prototype.definedAttributes,definedEvents=ComponentSubclass.prototype.events,definedEvents&&events){localEvents=[];for(let i=0,len=events.length;i<len;++i){const ev=events[i];if(-1<definedEvents.indexOf(ev.name))localEvents.push(ev);else{var normalizedName=_AttributeDescriptor2.default.normalizeName(ev.name);-1<definedEvents.indexOf(normalizedName)&&(ev.name=normalizedName,localEvents.push(ev))}}}}function attachEvents(component){for(var i=0,l=localEvents.length,ev;i<l;++i)ev=localEvents[i],component.on(ev.name,ev.value)}function detachEvents(component){for(var i=0,l=localEvents.length,ev;i<l;++i)ev=localEvents[i],component.off(ev.name,ev.value)}function componentRender(f,data){var oldInjectorState=injectorState;injectorState=injectorStateStorage||{},injectorStateStorage=null,injectorState.scope=fork?f.scope.fork():f.scope,injectorState.data=data,injectorState.factory=f,injectorState.spreads=spreads,injectorState.definedAttributes=definedAttributes;var component=new ComponentSubclass;injectorState.scope=null,injectorState.data=null,injectorStateStorage=injectorState,injectorState=oldInjectorState,init&&init(data,component),localEvents&&attachEvents(component);var savedScope=f.pushScope(component.scope),{parentNode,nextNode}=f,renderResult=render&&render.call(component),view;renderResult&&renderResult.template?(view=renderResult.template.make(f),view.$_parent=data,view.$_scope=renderResult):view=_Template2.default.EmptyTemplate.make(f),f.parentNode=parentNode,f.nextNode=nextNode,data.$_view=view,view.template.run(f,view),f.restoreScope(savedScope),attached&&attached.call(component),hotReloader&&(data.$_hotReloadFactory=f,data.$_hotReloadScope=f.scope,data.$_hotReloadNext=firstLiveInstance,firstLiveInstance&&(firstLiveInstance.$_hotReloadPrevious=data),firstLiveInstance=data)}function componentReuse(f,data,ignoreLiveInstance){var oldInjectorState=injectorState;injectorState=injectorStateStorage||{},injectorStateStorage=null,injectorState.scope=fork?f.scope.fork():f.scope,injectorState.data=data,injectorState.factory=f,injectorState.spreads=spreads,injectorState.definedAttributes=definedAttributes;var component=new ComponentSubclass;injectorState.scope=null,injectorState.data=null,injectorStateStorage=injectorState,injectorState=oldInjectorState,init&&init(data,component),localEvents&&attachEvents(component);var savedScope=f.pushScope(component.scope);f.gotoAfterView(data.$_view),data.$_view.template.cache(f,data.$_view);var{parentNode,nextNode}=f,renderResult=render&&render.call(component),view;renderResult&&renderResult.template?(view=renderResult.template.make(f),view.$_parent=data,view.$_scope=renderResult):view=_Template2.default.EmptyTemplate.make(f),f.parentNode=parentNode,f.nextNode=nextNode,data.$_view=view,view.template.run(f,view),f.restoreScope(savedScope),attached&&attached.call(component),!ignoreLiveInstance&&hotReloader&&(data.$_hotReloadFactory=f,data.$_hotReloadScope=f.scope,data.$_hotReloadNext=firstLiveInstance,firstLiveInstance&&(firstLiveInstance.$_hotReloadPrevious=data),firstLiveInstance=data)}function componentDispose(f,data,ignoreLiveInstance){var component=data.$_component;!ignoreLiveInstance&&hotReloader&&(data.$_hotReloadFactory=f,firstLiveInstance===data&&(firstLiveInstance=data.$_hotReloadNext),data.$_hotReloadNext&&(data.$_hotReloadNext.$_hotReloadPrevious=data.$_hotReloadPrevious),data.$_hotReloadPrevious&&(data.$_hotReloadPrevious.$_hotReloadNext=data.$_hotReloadNext),data.$_hotReloadScope=null,data.$_hotReloadNext=null,data.$_hotReloadPrevious=null,data.$_hotReloadFactory=null,cachedFactorySet.add(f)),detached&&detached.call(component);var view=data.$_view;view.template.dispose(f,view),localEvents&&detachEvents(component),init&&init(data,null),dispose&&dispose.call(component),view.$_parent=null,view.$_scope=null,view.$_factory=null,component.scope=null,component.$_view=null,data.$_component=null}var{attributes,spreads,blocks,init,events}=options||{},ParentClass,ComponentSubclass,fork,render,attached,detached,dispose,localEvents,definedAttributes,definedEvents;updateClass(this);var generatedTemplate=_Template2.default.make({render:componentRender,reuse:componentReuse,dispose:componentDispose,move:function(f,data){var view=data.$_view;view.template.move(f,view)},firstChild:function(f,data){var view=data.$_view;return view.template.firstChild(f,view)},lastChild:function(f,data){var view=data.$_view;return view.template.lastChild(f,view)}}),hotReloader,firstLiveInstance,cachedFactorySet;return hotReloader=ParentClass.hotReloader,hotReloader&&(cachedFactorySet=new Set,hotReloader.signal.add(()=>{_Logger2.default.log("[HMR] Patching component",hotReloader.name);let count=0;for(let data=firstLiveInstance;data;data=data.$_hotReloadNext)++count,componentDispose(data.$_hotReloadFactory,data,!0);_Logger2.default.log("[HMR] Disposed ",count," instances of ",hotReloader.name),updateClass(hotReloader.instance),cachedFactorySet.forEach(f=>generatedTemplate.releaseCache(f)),count=0;for(let data=firstLiveInstance;data;data=data.$_hotReloadNext){++count;let f=data.$_hotReloadFactory,savedScope=f.pushScope(data.$_hotReloadScope);componentReuse(f,data,!0),f.restoreScope(savedScope)}_Logger2.default.log("[HMR] Updated ",count," instances of ",hotReloader.name)})),generatedTemplate}static makeDynamic(options){var id=(0,_uniqueId2.default)("_dynamicTemplate");return{make(factory,base){if(!base)return _Template2.default.EmptyTemplate;var cachedTemplate=base[id];return cachedTemplate&&cachedTemplate.$_base===base||(cachedTemplate=base[id]=factory.makeComponent(base,options),cachedTemplate.$_base=base),cachedTemplate}}}}exports.default=Component},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.register=function(fn){return templates.push(fn)-1};var templates=exports.templates=[]},function(module,exports,__webpack_require__){(function(process,global,setImmediate){!function(e){module.exports=e()}(function(){var define,module,exports;return function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a="function"==typeof _dereq_&&_dereq_;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}for(var i="function"==typeof _dereq_&&_dereq_,o=0;o<r.length;o++)s(r[o]);return s}({1:[function(_dereq_,module){"use strict";module.exports=function(Promise){function any(promises){var ret=new SomePromiseArray(promises),promise=ret.promise();return ret.setHowMany(1),ret.setUnwrap(),ret.init(),promise}var SomePromiseArray=Promise._SomePromiseArray;Promise.any=function(promises){return any(promises)},Promise.prototype.any=function(){return any(this)}}},{}],2:[function(_dereq_,module){"use strict";function Async(){this._customScheduler=!1,this._isTickUsed=!1,this._lateQueue=new Queue(16),this._normalQueue=new Queue(16),this._haveDrainedQueues=!1,this._trampolineEnabled=!0;var self=this;this.drainQueues=function(){self._drainQueues()},this._schedule=schedule}function AsyncInvokeLater(fn,receiver,arg){this._lateQueue.push(fn,receiver,arg),this._queueTick()}function AsyncInvoke(fn,receiver,arg){this._normalQueue.push(fn,receiver,arg),this._queueTick()}function AsyncSettlePromises(promise){this._normalQueue._pushOne(promise),this._queueTick()}var firstLineError;try{throw new Error}catch(e){firstLineError=e}var schedule=_dereq_("./schedule"),Queue=_dereq_("./queue"),util=_dereq_("./util");Async.prototype.setScheduler=function(fn){var prev=this._schedule;return this._schedule=fn,this._customScheduler=!0,prev},Async.prototype.hasCustomScheduler=function(){return this._customScheduler},Async.prototype.enableTrampoline=function(){this._trampolineEnabled=!0},Async.prototype.disableTrampolineIfNecessary=function(){util.hasDevTools&&(this._trampolineEnabled=!1)},Async.prototype.haveItemsQueued=function(){return this._isTickUsed||this._haveDrainedQueues},Async.prototype.fatalError=function(e,isNode){isNode?(process.stderr.write("Fatal "+(e instanceof Error?e.stack:e)+"\n"),process.exit(2)):this.throwLater(e)},Async.prototype.throwLater=function(fn,arg){if(1===arguments.length&&(arg=fn,fn=function(){throw arg}),"undefined"!=typeof setTimeout)setTimeout(function(){fn(arg)},0);else try{this._schedule(function(){fn(arg)})}catch(e){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}},util.hasDevTools?(Async.prototype.invokeLater=function(fn,receiver,arg){this._trampolineEnabled?AsyncInvokeLater.call(this,fn,receiver,arg):this._schedule(function(){setTimeout(function(){fn.call(receiver,arg)},100)})},Async.prototype.invoke=function(fn,receiver,arg){this._trampolineEnabled?AsyncInvoke.call(this,fn,receiver,arg):this._schedule(function(){fn.call(receiver,arg)})},Async.prototype.settlePromises=function(promise){this._trampolineEnabled?AsyncSettlePromises.call(this,promise):this._schedule(function(){promise._settlePromises()})}):(Async.prototype.invokeLater=AsyncInvokeLater,Async.prototype.invoke=AsyncInvoke,Async.prototype.settlePromises=AsyncSettlePromises),Async.prototype._drainQueue=function(queue){for(;0<queue.length();){var fn=queue.shift();if("function"!=typeof fn){fn._settlePromises();continue}var receiver=queue.shift(),arg=queue.shift();fn.call(receiver,arg)}},Async.prototype._drainQueues=function(){this._drainQueue(this._normalQueue),this._reset(),this._haveDrainedQueues=!0,this._drainQueue(this._lateQueue)},Async.prototype._queueTick=function(){this._isTickUsed||(this._isTickUsed=!0,this._schedule(this.drainQueues))},Async.prototype._reset=function(){this._isTickUsed=!1},module.exports=Async,module.exports.firstLineError=firstLineError},{"./queue":26,"./schedule":29,"./util":36}],3:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL,tryConvertToPromise,debug){var calledBind=!1,rejectThis=function(_,e){this._reject(e)},targetRejected=function(e,context){context.promiseRejectionQueued=!0,context.bindingPromise._then(rejectThis,rejectThis,null,this,e)},bindingResolved=function(thisArg,context){0==(50397184&this._bitField)&&this._resolveCallback(context.target)},bindingRejected=function(e,context){context.promiseRejectionQueued||this._reject(e)};Promise.prototype.bind=function(thisArg){calledBind||(calledBind=!0,Promise.prototype._propagateFrom=debug.propagateFromFunction(),Promise.prototype._boundValue=debug.boundValueFunction());var maybePromise=tryConvertToPromise(thisArg),ret=new Promise(INTERNAL);ret._propagateFrom(this,1);var target=this._target();if(ret._setBoundTo(maybePromise),maybePromise instanceof Promise){var context={promiseRejectionQueued:!1,promise:ret,target:target,bindingPromise:maybePromise};target._then(INTERNAL,targetRejected,void 0,ret,context),maybePromise._then(bindingResolved,bindingRejected,void 0,ret,context),ret._setOnCancel(maybePromise)}else ret._resolveCallback(target);return ret},Promise.prototype._setBoundTo=function(obj){obj===void 0?this._bitField&=-2097153:(this._bitField|=2097152,this._boundTo=obj)},Promise.prototype._isBound=function(){return 2097152==(2097152&this._bitField)},Promise.bind=function(thisArg,value){return Promise.resolve(value).bind(thisArg)}}},{}],4:[function(_dereq_,module){"use strict";function noConflict(){try{Promise===bluebird&&(Promise=old)}catch(e){}return bluebird}var old;"undefined"!=typeof Promise&&(old=Promise);var bluebird=_dereq_("./promise")();bluebird.noConflict=noConflict,module.exports=bluebird},{"./promise":22}],5:[function(_dereq_,module){"use strict";var cr=Object.create;if(cr){var callerCache=cr(null),getterCache=cr(null);callerCache[" size"]=getterCache[" size"]=0}module.exports=function(Promise){function ensureMethod(obj,methodName){var fn;if(null!=obj&&(fn=obj[methodName]),"function"!=typeof fn){var message="Object "+util.classString(obj)+" has no method '"+util.toString(methodName)+"'";throw new Promise.TypeError(message)}return fn}function caller(obj){var methodName=this.pop(),fn=ensureMethod(obj,methodName);return fn.apply(obj,this)}function namedGetter(obj){return obj[this]}function indexedGetter(obj){var index=+this;return 0>index&&(index=_Mathmax(0,index+obj.length)),obj[index]}var util=_dereq_("./util"),canEvaluate=util.canEvaluate,isIdentifier=util.isIdentifier,getGetter;Promise.prototype.call=function(methodName){var args=[].slice.call(arguments,1);return args.push(methodName),this._then(caller,void 0,void 0,args,void 0)},Promise.prototype.get=function(propertyName){var getter;if(!!("number"==typeof propertyName))getter=indexedGetter;else if(canEvaluate){var maybeGetter=getGetter(propertyName);getter=null===maybeGetter?namedGetter:maybeGetter}else getter=namedGetter;return this._then(getter,void 0,void 0,propertyName,void 0)}}},{"./util":36}],6:[function(_dereq_,module){"use strict";module.exports=function(Promise,PromiseArray,apiRejection,debug){var util=_dereq_("./util"),tryCatch=util.tryCatch,errorObj=util.errorObj,async=Promise._async;Promise.prototype["break"]=Promise.prototype.cancel=function(){if(!debug.cancellation())return this._warn("cancellation is disabled");for(var promise=this,child=promise;promise._isCancellable();){if(!promise._cancelBy(child)){child._isFollowing()?child._followee().cancel():child._cancelBranched();break}var parent=promise._cancellationParent;if(null==parent||!parent._isCancellable()){promise._isFollowing()?promise._followee().cancel():promise._cancelBranched();break}else promise._isFollowing()&&promise._followee().cancel(),promise._setWillBeCancelled(),child=promise,promise=parent}},Promise.prototype._branchHasCancelled=function(){this._branchesRemainingToCancel--},Promise.prototype._enoughBranchesHaveCancelled=function(){return this._branchesRemainingToCancel===void 0||0>=this._branchesRemainingToCancel},Promise.prototype._cancelBy=function(canceller){return canceller===this?(this._branchesRemainingToCancel=0,this._invokeOnCancel(),!0):!(this._branchHasCancelled(),!this._enoughBranchesHaveCancelled())&&(this._invokeOnCancel(),!0)},Promise.prototype._cancelBranched=function(){this._enoughBranchesHaveCancelled()&&this._cancel()},Promise.prototype._cancel=function(){this._isCancellable()&&(this._setCancelled(),async.invoke(this._cancelPromises,this,void 0))},Promise.prototype._cancelPromises=function(){0<this._length()&&this._settlePromises()},Promise.prototype._unsetOnCancel=function(){this._onCancelField=void 0},Promise.prototype._isCancellable=function(){return this.isPending()&&!this._isCancelled()},Promise.prototype.isCancellable=function(){return this.isPending()&&!this.isCancelled()},Promise.prototype._doInvokeOnCancel=function(onCancelCallback,internalOnly){if(util.isArray(onCancelCallback))for(var i=0;i<onCancelCallback.length;++i)this._doInvokeOnCancel(onCancelCallback[i],internalOnly);else if(onCancelCallback!==void 0)if("function"!=typeof onCancelCallback)onCancelCallback._resultCancelled(this);else if(!internalOnly){var e=tryCatch(onCancelCallback).call(this._boundValue());e===errorObj&&(this._attachExtraTrace(e.e),async.throwLater(e.e))}},Promise.prototype._invokeOnCancel=function(){var onCancelCallback=this._onCancel();this._unsetOnCancel(),async.invoke(this._doInvokeOnCancel,this,onCancelCallback)},Promise.prototype._invokeInternalOnCancel=function(){this._isCancellable()&&(this._doInvokeOnCancel(this._onCancel(),!0),this._unsetOnCancel())},Promise.prototype._resultCancelled=function(){this.cancel()}}},{"./util":36}],7:[function(_dereq_,module){"use strict";module.exports=function(NEXT_FILTER){var util=_dereq_("./util"),getKeys=_dereq_("./es5").keys,tryCatch=util.tryCatch,errorObj=util.errorObj;return function(instances,cb,promise){return function(e){var boundTo=promise._boundValue();predicateLoop:for(var i=0,item;i<instances.length;++i)if(item=instances[i],item===Error||null!=item&&item.prototype instanceof Error){if(e instanceof item)return tryCatch(cb).call(boundTo,e);}else if("function"==typeof item){var matchesPredicate=tryCatch(item).call(boundTo,e);if(matchesPredicate===errorObj)return matchesPredicate;if(matchesPredicate)return tryCatch(cb).call(boundTo,e)}else if(util.isObject(e)){for(var keys=getKeys(item),j=0,key;j<keys.length;++j)if(key=keys[j],item[key]!=e[key])continue predicateLoop;return tryCatch(cb).call(boundTo,e)}return NEXT_FILTER}}}},{"./es5":13,"./util":36}],8:[function(_dereq_,module){"use strict";module.exports=function(Promise){function Context(){this._trace=new Context.CapturedTrace(peekContext())}function createContext(){if(longStackTraces)return new Context}function peekContext(){var lastIndex=contextStack.length-1;return 0<=lastIndex?contextStack[lastIndex]:void 0}var longStackTraces=!1,contextStack=[];return Promise.prototype._promiseCreated=function(){},Promise.prototype._pushContext=function(){},Promise.prototype._popContext=function(){return null},Promise._peekContext=Promise.prototype._peekContext=function(){},Context.prototype._pushContext=function(){void 0!==this._trace&&(this._trace._promiseCreated=null,contextStack.push(this._trace))},Context.prototype._popContext=function(){if(void 0!==this._trace){var trace=contextStack.pop(),ret=trace._promiseCreated;return trace._promiseCreated=null,ret}return null},Context.CapturedTrace=null,Context.create=createContext,Context.deactivateLongStackTraces=function(){},Context.activateLongStackTraces=function(){var Promise_pushContext=Promise.prototype._pushContext,Promise_popContext=Promise.prototype._popContext,Promise_PeekContext=Promise._peekContext,Promise_peekContext=Promise.prototype._peekContext,Promise_promiseCreated=Promise.prototype._promiseCreated;Context.deactivateLongStackTraces=function(){Promise.prototype._pushContext=Promise_pushContext,Promise.prototype._popContext=Promise_popContext,Promise._peekContext=Promise_PeekContext,Promise.prototype._peekContext=Promise_peekContext,Promise.prototype._promiseCreated=Promise_promiseCreated,longStackTraces=!1},longStackTraces=!0,Promise.prototype._pushContext=Context.prototype._pushContext,Promise.prototype._popContext=Context.prototype._popContext,Promise._peekContext=Promise.prototype._peekContext=peekContext,Promise.prototype._promiseCreated=function(){var ctx=this._peekContext();ctx&&null==ctx._promiseCreated&&(ctx._promiseCreated=this)}},Context}},{}],9:[function(_dereq_,module){"use strict";module.exports=function(Promise,Context){function generatePromiseLifecycleEventObject(name,promise){return{promise:promise}}function defaultFireEvent(){return!1}function cancellationExecute(executor,resolve,reject){var promise=this;try{executor(resolve,reject,function(onCancel){if("function"!=typeof onCancel)throw new TypeError("onCancel must be a function, got: "+util.toString(onCancel));promise._attachCancellationCallback(onCancel)})}catch(e){return e}}function cancellationAttachCancellationCallback(onCancel){if(!this._isCancellable())return this;var previousOnCancel=this._onCancel();void 0===previousOnCancel?this._setOnCancel(onCancel):util.isArray(previousOnCancel)?previousOnCancel.push(onCancel):this._setOnCancel([previousOnCancel,onCancel])}function cancellationOnCancel(){return this._onCancelField}function cancellationSetOnCancel(onCancel){this._onCancelField=onCancel}function cancellationClearCancellationData(){this._cancellationParent=void 0,this._onCancelField=void 0}function cancellationPropagateFrom(parent,flags){if(0!=(1&flags)){this._cancellationParent=parent;var branchesRemainingToCancel=parent._branchesRemainingToCancel;void 0===branchesRemainingToCancel&&(branchesRemainingToCancel=0),parent._branchesRemainingToCancel=branchesRemainingToCancel+1}0!=(2&flags)&&parent._isBound()&&this._setBoundTo(parent._boundTo)}function boundValueFunction(){var ret=this._boundTo;return void 0!==ret&&ret instanceof Promise?ret.isFulfilled()?ret.value():void 0:ret}function longStackTracesCaptureStackTrace(){this._trace=new CapturedTrace(this._peekContext())}function longStackTracesAttachExtraTrace(error,ignoreSelf){if(canAttachTrace(error)){var trace=this._trace;if(void 0!==trace&&ignoreSelf&&(trace=trace._parent),void 0!==trace)trace.attachExtraTrace(error);else if(!error.__stackCleaned__){var parsed=parseStackAndMessage(error);util.notEnumerableProp(error,"stack",parsed.message+"\n"+parsed.stack.join("\n")),util.notEnumerableProp(error,"__stackCleaned__",!0)}}}function checkForgottenReturns(returnValue,promiseCreated,name,promise,parent){if(void 0===returnValue&&null!==promiseCreated&&wForgottenReturn){if(void 0!==parent&&parent._returnedNonUndefined())return;if(0==(65535&promise._bitField))return;name&&(name+=" ");var handlerLine="",creatorLine="";if(promiseCreated._trace){for(var traceLines=promiseCreated._trace.stack.split("\n"),stack=cleanStack(traceLines),i=stack.length-1,line;0<=i;--i)if(line=stack[i],!nodeFramePattern.test(line)){var lineMatches=line.match(parseLinePattern);lineMatches&&(handlerLine="at "+lineMatches[1]+":"+lineMatches[2]+":"+lineMatches[3]+" ");break}if(0<stack.length)for(var firstUserLine=stack[0],i=0;i<traceLines.length;++i)if(traceLines[i]===firstUserLine){0<i&&(creatorLine="\n"+traceLines[i-1]);break}}var msg="a promise was created in a "+name+"handler "+handlerLine+"but was not returned from it, see http://goo.gl/rRqMUw"+creatorLine;promise._warn(msg,!0,promiseCreated)}}function warn(message,shouldUseOwnTrace,promise){if(config.warnings){var warning=new Warning(message),ctx;if(shouldUseOwnTrace)promise._attachExtraTrace(warning);else if(config.longStackTraces&&(ctx=Promise._peekContext()))ctx.attachExtraTrace(warning);else{var parsed=parseStackAndMessage(warning);warning.stack=parsed.message+"\n"+parsed.stack.join("\n")}activeFireEvent("warning",warning)||formatAndLogError(warning,"",!0)}}function reconstructStack(message,stacks){for(var i=0;i<stacks.length-1;++i)stacks[i].push("From previous event:"),stacks[i]=stacks[i].join("\n");return i<stacks.length&&(stacks[i]=stacks[i].join("\n")),message+"\n"+stacks.join("\n")}function removeDuplicateOrEmptyJumps(stacks){for(var i=0;i<stacks.length;++i)(0===stacks[i].length||i+1<stacks.length&&stacks[i][0]===stacks[i+1][0])&&(stacks.splice(i,1),i--)}function removeCommonRoots(stacks){for(var current=stacks[0],i=1;i<stacks.length;++i){for(var prev=stacks[i],currentLastIndex=current.length-1,currentLastLine=current[currentLastIndex],commonRootMeetPoint=-1,j=prev.length-1;0<=j;--j)if(prev[j]===currentLastLine){commonRootMeetPoint=j;break}for(var j=commonRootMeetPoint,line;0<=j&&(line=prev[j],current[currentLastIndex]===line);--j)current.pop(),currentLastIndex--;current=prev}}function cleanStack(stack){for(var ret=[],i=0;i<stack.length;++i){var line=stack[i],isTraceLine="    (No stack trace)"===line||stackFramePattern.test(line),isInternalFrame=isTraceLine&&shouldIgnore(line);isTraceLine&&!isInternalFrame&&(indentStackFrames&&" "!==line.charAt(0)&&(line="    "+line),ret.push(line))}return ret}function stackFramesAsArray(error){for(var stack=error.stack.replace(/\s+$/g,"").split("\n"),i=0,line;i<stack.length&&(line=stack[i],!("    (No stack trace)"===line||stackFramePattern.test(line)));++i);return 0<i&&"SyntaxError"!=error.name&&(stack=stack.slice(i)),stack}function parseStackAndMessage(error){var stack=error.stack,message=error.toString();return stack="string"==typeof stack&&0<stack.length?stackFramesAsArray(error):["    (No stack trace)"],{message:message,stack:"SyntaxError"==error.name?stack:cleanStack(stack)}}function formatAndLogError(error,title,isSoft){if("undefined"!=typeof console){var message;if(util.isObject(error)){var stack=error.stack;message=title+formatStack(stack,error)}else message=title+(error+"");"function"==typeof printWarning?printWarning(message,isSoft):("function"==typeof console.log||"object"==typeof console.log)&&console.log(message)}}function fireRejectionEvent(name,localHandler,reason,promise){var localEventFired=!1;try{"function"==typeof localHandler&&(localEventFired=!0,"rejectionHandled"===name?localHandler(promise):localHandler(reason,promise))}catch(e){async.throwLater(e)}"unhandledRejection"===name?!activeFireEvent(name,reason,promise)&&!localEventFired&&formatAndLogError(reason,"Unhandled rejection "):activeFireEvent(name,promise)}function formatNonError(obj){var str;if("function"==typeof obj)str="[function "+(obj.name||"anonymous")+"]";else{str=obj&&"function"==typeof obj.toString?obj.toString():util.toString(obj);var ruselessToString=/\[object [a-zA-Z0-9$_]+\]/;if(ruselessToString.test(str))try{var newStr=JSON.stringify(obj);str=newStr}catch(e){}0===str.length&&(str="(empty array)")}return"(<"+snip(str)+">, no stack trace)"}function snip(str){var maxChars=41;return str.length<maxChars?str:str.substr(0,maxChars-3)+"..."}function longStackTracesIsSupported(){return"function"==typeof captureStackTrace}function parseLineInfo(line){var matches=line.match(parseLineInfoRegex);if(matches)return{fileName:matches[1],line:parseInt(matches[2],10)}}function CapturedTrace(parent){this._parent=parent,this._promisesCreated=0;var length=this._length=1+(void 0===parent?0:parent._length);captureStackTrace(this,CapturedTrace),32<length&&this.uncycle()}var getDomain=Promise._getDomain,async=Promise._async,Warning=_dereq_("./errors").Warning,util=_dereq_("./util"),canAttachTrace=util.canAttachTrace,bluebirdFramePattern=/[\\\/]bluebird[\\\/]js[\\\/](release|debug|instrumented)/,nodeFramePattern=/\((?:timers\.js):\d+:\d+\)/,parseLinePattern=/[\/<\(](.+?):(\d+):(\d+)\)?\s*$/,stackFramePattern=null,formatStack=null,indentStackFrames=!1,debugging=!(0==util.env("BLUEBIRD_DEBUG")||0),warnings=!!(0!=util.env("BLUEBIRD_WARNINGS")&&(debugging||util.env("BLUEBIRD_WARNINGS"))),longStackTraces=!!(0!=util.env("BLUEBIRD_LONG_STACK_TRACES")&&(debugging||util.env("BLUEBIRD_LONG_STACK_TRACES"))),wForgottenReturn=0!=util.env("BLUEBIRD_W_FORGOTTEN_RETURN")&&(warnings||!!util.env("BLUEBIRD_W_FORGOTTEN_RETURN")),unhandledRejectionHandled,possiblyUnhandledRejection,printWarning;Promise.prototype.suppressUnhandledRejections=function(){var target=this._target();target._bitField=524288|-1048577&target._bitField},Promise.prototype._ensurePossibleRejectionHandled=function(){if(0==(524288&this._bitField)){this._setRejectionIsUnhandled();var self=this;setTimeout(function(){self._notifyUnhandledRejection()},1)}},Promise.prototype._notifyUnhandledRejectionIsHandled=function(){fireRejectionEvent("rejectionHandled",unhandledRejectionHandled,void 0,this)},Promise.prototype._setReturnedNonUndefined=function(){this._bitField|=268435456},Promise.prototype._returnedNonUndefined=function(){return 0!=(268435456&this._bitField)},Promise.prototype._notifyUnhandledRejection=function(){if(this._isRejectionUnhandled()){var reason=this._settledValue();this._setUnhandledRejectionIsNotified(),fireRejectionEvent("unhandledRejection",possiblyUnhandledRejection,reason,this)}},Promise.prototype._setUnhandledRejectionIsNotified=function(){this._bitField|=262144},Promise.prototype._unsetUnhandledRejectionIsNotified=function(){this._bitField&=-262145},Promise.prototype._isUnhandledRejectionNotified=function(){return 0<(262144&this._bitField)},Promise.prototype._setRejectionIsUnhandled=function(){this._bitField|=1048576},Promise.prototype._unsetRejectionIsUnhandled=function(){this._bitField&=-1048577,this._isUnhandledRejectionNotified()&&(this._unsetUnhandledRejectionIsNotified(),this._notifyUnhandledRejectionIsHandled())},Promise.prototype._isRejectionUnhandled=function(){return 0<(1048576&this._bitField)},Promise.prototype._warn=function(message,shouldUseOwnTrace,promise){return warn(message,shouldUseOwnTrace,promise||this)},Promise.onPossiblyUnhandledRejection=function(fn){var domain=getDomain();possiblyUnhandledRejection="function"==typeof fn?null===domain?fn:util.domainBind(domain,fn):void 0},Promise.onUnhandledRejectionHandled=function(fn){var domain=getDomain();unhandledRejectionHandled="function"==typeof fn?null===domain?fn:util.domainBind(domain,fn):void 0};var disableLongStackTraces=function(){};Promise.longStackTraces=function(){if(async.haveItemsQueued()&&!config.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");if(!config.longStackTraces&&longStackTracesIsSupported()){var Promise_captureStackTrace=Promise.prototype._captureStackTrace,Promise_attachExtraTrace=Promise.prototype._attachExtraTrace;config.longStackTraces=!0,disableLongStackTraces=function(){if(async.haveItemsQueued()&&!config.longStackTraces)throw new Error("cannot enable long stack traces after promises have been created\n\n    See http://goo.gl/MqrFmX\n");Promise.prototype._captureStackTrace=Promise_captureStackTrace,Promise.prototype._attachExtraTrace=Promise_attachExtraTrace,Context.deactivateLongStackTraces(),async.enableTrampoline(),config.longStackTraces=!1},Promise.prototype._captureStackTrace=longStackTracesCaptureStackTrace,Promise.prototype._attachExtraTrace=longStackTracesAttachExtraTrace,Context.activateLongStackTraces(),async.disableTrampolineIfNecessary()}},Promise.hasLongStackTraces=function(){return config.longStackTraces&&longStackTracesIsSupported()};var fireDomEvent=function(){try{if("function"==typeof CustomEvent){var event=new CustomEvent("CustomEvent");return util.global.dispatchEvent(event),function(name,event){var domEvent=new CustomEvent(name.toLowerCase(),{detail:event,cancelable:!0});return!util.global.dispatchEvent(domEvent)}}if("function"==typeof Event){var event=new Event("CustomEvent");return util.global.dispatchEvent(event),function(name,event){var domEvent=new Event(name.toLowerCase(),{cancelable:!0});return domEvent.detail=event,!util.global.dispatchEvent(domEvent)}}var event=document.createEvent("CustomEvent");return event.initCustomEvent("testingtheevent",!1,!0,{}),util.global.dispatchEvent(event),function(name,event){var domEvent=document.createEvent("CustomEvent");return domEvent.initCustomEvent(name.toLowerCase(),!1,!0,event),!util.global.dispatchEvent(domEvent)}}catch(e){}return function(){return!1}}(),fireGlobalEvent=function(){return util.isNode?function(){return process.emit.apply(process,arguments)}:util.global?function(name){var methodName="on"+name.toLowerCase(),method=util.global[methodName];return!!method&&(method.apply(util.global,[].slice.call(arguments,1)),!0)}:function(){return!1}}(),eventToObjectGenerator={promiseCreated:generatePromiseLifecycleEventObject,promiseFulfilled:generatePromiseLifecycleEventObject,promiseRejected:generatePromiseLifecycleEventObject,promiseResolved:generatePromiseLifecycleEventObject,promiseCancelled:generatePromiseLifecycleEventObject,promiseChained:function(name,promise,child){return{promise:promise,child:child}},warning:function(name,warning){return{warning:warning}},unhandledRejection:function(name,reason,promise){return{reason:reason,promise:promise}},rejectionHandled:generatePromiseLifecycleEventObject},activeFireEvent=function(name){var globalEventFired=!1;try{globalEventFired=fireGlobalEvent.apply(null,arguments)}catch(e){async.throwLater(e),globalEventFired=!0}var domEventFired=!1;try{domEventFired=fireDomEvent(name,eventToObjectGenerator[name].apply(null,arguments))}catch(e){async.throwLater(e),domEventFired=!0}return domEventFired||globalEventFired};Promise.config=function(opts){if(opts=Object(opts),"longStackTraces"in opts&&(opts.longStackTraces?Promise.longStackTraces():!opts.longStackTraces&&Promise.hasLongStackTraces()&&disableLongStackTraces()),"warnings"in opts){var warningsOption=opts.warnings;config.warnings=!!warningsOption,wForgottenReturn=config.warnings,util.isObject(warningsOption)&&"wForgottenReturn"in warningsOption&&(wForgottenReturn=!!warningsOption.wForgottenReturn)}if("cancellation"in opts&&opts.cancellation&&!config.cancellation){if(async.haveItemsQueued())throw new Error("cannot enable cancellation after promises are in use");Promise.prototype._clearCancellationData=cancellationClearCancellationData,Promise.prototype._propagateFrom=cancellationPropagateFrom,Promise.prototype._onCancel=cancellationOnCancel,Promise.prototype._setOnCancel=cancellationSetOnCancel,Promise.prototype._attachCancellationCallback=cancellationAttachCancellationCallback,Promise.prototype._execute=cancellationExecute,propagateFromFunction=cancellationPropagateFrom,config.cancellation=!0}return"monitoring"in opts&&(opts.monitoring&&!config.monitoring?(config.monitoring=!0,Promise.prototype._fireEvent=activeFireEvent):!opts.monitoring&&config.monitoring&&(config.monitoring=!1,Promise.prototype._fireEvent=defaultFireEvent)),Promise},Promise.prototype._fireEvent=defaultFireEvent,Promise.prototype._execute=function(executor,resolve,reject){try{executor(resolve,reject)}catch(e){return e}},Promise.prototype._onCancel=function(){},Promise.prototype._setOnCancel=function(){},Promise.prototype._attachCancellationCallback=function(){},Promise.prototype._captureStackTrace=function(){},Promise.prototype._attachExtraTrace=function(){},Promise.prototype._clearCancellationData=function(){},Promise.prototype._propagateFrom=function(){};var propagateFromFunction=function(parent,flags){0!=(2&flags)&&parent._isBound()&&this._setBoundTo(parent._boundTo)},shouldIgnore=function(){return!1},parseLineInfoRegex=/[\/<\(]([^:\/]+):(\d+):(?:\d+)\)?\s*$/;util.inherits(CapturedTrace,Error),Context.CapturedTrace=CapturedTrace,CapturedTrace.prototype.uncycle=function(){var length=this._length;if(!(2>length)){for(var nodes=[],stackToIndex={},i=0,node=this;void 0!==node;++i)nodes.push(node),node=node._parent;length=this._length=i;for(var i=length-1,stack;0<=i;--i)stack=nodes[i].stack,void 0===stackToIndex[stack]&&(stackToIndex[stack]=i);for(var i=0;i<length;++i){var currentStack=nodes[i].stack,index=stackToIndex[currentStack];if(void 0!==index&&index!==i){0<index&&(nodes[index-1]._parent=void 0,nodes[index-1]._length=1),nodes[i]._parent=void 0,nodes[i]._length=1;var cycleEdgeNode=0<i?nodes[i-1]:this;index<length-1?(cycleEdgeNode._parent=nodes[index+1],cycleEdgeNode._parent.uncycle(),cycleEdgeNode._length=cycleEdgeNode._parent._length+1):(cycleEdgeNode._parent=void 0,cycleEdgeNode._length=1);for(var currentChildLength=cycleEdgeNode._length+1,j=i-2;0<=j;--j)nodes[j]._length=currentChildLength,currentChildLength++;return}}}},CapturedTrace.prototype.attachExtraTrace=function(error){if(!error.__stackCleaned__){this.uncycle();for(var parsed=parseStackAndMessage(error),message=parsed.message,stacks=[parsed.stack],trace=this;void 0!==trace;)stacks.push(cleanStack(trace.stack.split("\n"))),trace=trace._parent;removeCommonRoots(stacks),removeDuplicateOrEmptyJumps(stacks),util.notEnumerableProp(error,"stack",reconstructStack(message,stacks)),util.notEnumerableProp(error,"__stackCleaned__",!0)}};var captureStackTrace=function(){var v8stackFramePattern=/^\s*at\s*/,v8stackFormatter=function(stack,error){return"string"==typeof stack?stack:void 0!==error.name&&void 0!==error.message?error.toString():formatNonError(error)};if("number"==typeof Error.stackTraceLimit&&"function"==typeof Error.captureStackTrace){Error.stackTraceLimit+=6,stackFramePattern=v8stackFramePattern,formatStack=v8stackFormatter;var captureStackTrace=Error.captureStackTrace;return shouldIgnore=function(line){return bluebirdFramePattern.test(line)},function(receiver,ignoreUntil){Error.stackTraceLimit+=6,captureStackTrace(receiver,ignoreUntil),Error.stackTraceLimit-=6}}var err=new Error;if("string"==typeof err.stack&&0<=err.stack.split("\n")[0].indexOf("stackDetection@"))return stackFramePattern=/@/,formatStack=v8stackFormatter,indentStackFrames=!0,function(o){o.stack=new Error().stack};var hasStackAfterThrow;try{throw new Error}catch(e){hasStackAfterThrow="stack"in e}return!("stack"in err)&&hasStackAfterThrow&&"number"==typeof Error.stackTraceLimit?(stackFramePattern=v8stackFramePattern,formatStack=v8stackFormatter,function(o){Error.stackTraceLimit+=6;try{throw new Error}catch(e){o.stack=e.stack}Error.stackTraceLimit-=6}):(formatStack=function(stack,error){return"string"==typeof stack?stack:("object"==typeof error||"function"==typeof error)&&void 0!==error.name&&void 0!==error.message?error.toString():formatNonError(error)},null)}([]);"undefined"!=typeof console&&"undefined"!=typeof console.warn&&(printWarning=function(message){console.warn(message)},util.isNode&&process.stderr.isTTY?printWarning=function(message,isSoft){var color=isSoft?"\x1B[33m":"\x1B[31m";console.warn(color+message+"\x1B[0m\n")}:!util.isNode&&"string"==typeof new Error().stack&&(printWarning=function(message,isSoft){console.warn("%c"+message,isSoft?"color: darkorange":"color: red")}));var config={warnings:warnings,longStackTraces:!1,cancellation:!1,monitoring:!1};return longStackTraces&&Promise.longStackTraces(),{longStackTraces:function(){return config.longStackTraces},warnings:function(){return config.warnings},cancellation:function(){return config.cancellation},monitoring:function(){return config.monitoring},propagateFromFunction:function(){return propagateFromFunction},boundValueFunction:function(){return boundValueFunction},checkForgottenReturns:checkForgottenReturns,setBounds:function(firstLineError,lastLineError){if(longStackTracesIsSupported()){for(var firstStackLines=firstLineError.stack.split("\n"),lastStackLines=lastLineError.stack.split("\n"),firstIndex=-1,lastIndex=-1,i=0,firstFileName,lastFileName,result;i<firstStackLines.length;++i)if(result=parseLineInfo(firstStackLines[i]),result){firstFileName=result.fileName,firstIndex=result.line;break}for(var i=0,result;i<lastStackLines.length;++i)if(result=parseLineInfo(lastStackLines[i]),result){lastFileName=result.fileName,lastIndex=result.line;break}0>firstIndex||0>lastIndex||!firstFileName||!lastFileName||firstFileName!==lastFileName||firstIndex>=lastIndex||(shouldIgnore=function(line){if(bluebirdFramePattern.test(line))return!0;var info=parseLineInfo(line);return!!(info&&info.fileName===firstFileName&&firstIndex<=info.line&&info.line<=lastIndex)})}},warn:warn,deprecated:function(name,replacement){var message=name+" is deprecated and will be removed in a future version.";return replacement&&(message+=" Use "+replacement+" instead."),warn(message)},CapturedTrace:CapturedTrace,fireDomEvent:fireDomEvent,fireGlobalEvent:fireGlobalEvent}}},{"./errors":12,"./util":36}],10:[function(_dereq_,module){"use strict";module.exports=function(Promise){function returner(){return this.value}function thrower(){throw this.reason}Promise.prototype["return"]=Promise.prototype.thenReturn=function(value){return value instanceof Promise&&value.suppressUnhandledRejections(),this._then(returner,void 0,void 0,{value:value},void 0)},Promise.prototype["throw"]=Promise.prototype.thenThrow=function(reason){return this._then(thrower,void 0,void 0,{reason:reason},void 0)},Promise.prototype.catchThrow=function(reason){if(1>=arguments.length)return this._then(void 0,thrower,void 0,{reason:reason},void 0);var _reason=arguments[1];return this.caught(reason,function(){throw _reason})},Promise.prototype.catchReturn=function(value){if(1>=arguments.length)return value instanceof Promise&&value.suppressUnhandledRejections(),this._then(void 0,returner,void 0,{value:value},void 0);var _value=arguments[1];_value instanceof Promise&&_value.suppressUnhandledRejections();return this.caught(value,function(){return _value})}}},{}],11:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL){function promiseAllThis(){return PromiseAll(this)}var PromiseReduce=Promise.reduce,PromiseAll=Promise.all;Promise.prototype.each=function(fn){return PromiseReduce(this,fn,INTERNAL,0)._then(promiseAllThis,void 0,void 0,this,void 0)},Promise.prototype.mapSeries=function(fn){return PromiseReduce(this,fn,INTERNAL,INTERNAL)},Promise.each=function(promises,fn){return PromiseReduce(promises,fn,INTERNAL,0)._then(promiseAllThis,void 0,void 0,promises,void 0)},Promise.mapSeries=function(promises,fn){return PromiseReduce(promises,fn,INTERNAL,INTERNAL)}}},{}],12:[function(_dereq_,module){"use strict";function subError(nameProperty,defaultMessage){function SubError(message){return this instanceof SubError?void(notEnumerableProp(this,"message","string"==typeof message?message:defaultMessage),notEnumerableProp(this,"name",nameProperty),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):Error.call(this)):new SubError(message)}return inherits(SubError,Error),SubError}function OperationalError(message){return this instanceof OperationalError?void(notEnumerableProp(this,"name","OperationalError"),notEnumerableProp(this,"message",message),this.cause=message,this.isOperational=!0,message instanceof Error?(notEnumerableProp(this,"message",message.message),notEnumerableProp(this,"stack",message.stack)):Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)):new OperationalError(message)}var es5=_dereq_("./es5"),Objectfreeze=es5.freeze,util=_dereq_("./util"),inherits=util.inherits,notEnumerableProp=util.notEnumerableProp,Warning=subError("Warning","warning"),CancellationError=subError("CancellationError","cancellation error"),TimeoutError=subError("TimeoutError","timeout error"),AggregateError=subError("AggregateError","aggregate error"),_TypeError,_RangeError;try{_TypeError=TypeError,_RangeError=RangeError}catch(e){_TypeError=subError("TypeError","type error"),_RangeError=subError("RangeError","range error")}for(var methods="join pop push shift unshift slice filter forEach some every map indexOf lastIndexOf reduce reduceRight sort reverse".split(" "),i=0;i<methods.length;++i)"function"==typeof Array.prototype[methods[i]]&&(AggregateError.prototype[methods[i]]=Array.prototype[methods[i]]);es5.defineProperty(AggregateError.prototype,"length",{value:0,configurable:!1,writable:!0,enumerable:!0}),AggregateError.prototype.isOperational=!0;var level=0;AggregateError.prototype.toString=function(){var indent=Array(4*level+1).join(" "),ret="\n"+indent+"AggregateError of:\n";level++,indent=Array(4*level+1).join(" ");for(var i=0;i<this.length;++i){for(var str=this[i]===this?"[Circular AggregateError]":this[i]+"",lines=str.split("\n"),j=0;j<lines.length;++j)lines[j]=indent+lines[j];str=lines.join("\n"),ret+=str+"\n"}return level--,ret},inherits(OperationalError,Error);var errorTypes=Error.__BluebirdErrorTypes__;errorTypes||(errorTypes=Objectfreeze({CancellationError:CancellationError,TimeoutError:TimeoutError,OperationalError:OperationalError,RejectionError:OperationalError,AggregateError:AggregateError}),es5.defineProperty(Error,"__BluebirdErrorTypes__",{value:errorTypes,writable:!1,enumerable:!1,configurable:!1})),module.exports={Error:Error,TypeError:_TypeError,RangeError:_RangeError,CancellationError:errorTypes.CancellationError,OperationalError:errorTypes.OperationalError,TimeoutError:errorTypes.TimeoutError,AggregateError:errorTypes.AggregateError,Warning:Warning}},{"./es5":13,"./util":36}],13:[function(_dereq_,module){var isES5=function(){"use strict";return this===void 0}();if(isES5)module.exports={freeze:Object.freeze,defineProperty:Object.defineProperty,getDescriptor:Object.getOwnPropertyDescriptor,keys:Object.keys,names:Object.getOwnPropertyNames,getPrototypeOf:Object.getPrototypeOf,isArray:Array.isArray,isES5:isES5,propertyIsWritable:function(obj,prop){var descriptor=Object.getOwnPropertyDescriptor(obj,prop);return!!(!descriptor||descriptor.writable||descriptor.set)}};else{var has={}.hasOwnProperty,str={}.toString,proto={}.constructor.prototype,ObjectKeys=function(o){var ret=[];for(var key in o)has.call(o,key)&&ret.push(key);return ret},ObjectGetDescriptor=function(o,key){return{value:o[key]}},ObjectDefineProperty=function(o,key,desc){return o[key]=desc.value,o},ObjectFreeze=function(obj){return obj},ObjectGetPrototypeOf=function(obj){try{return Object(obj).constructor.prototype}catch(e){return proto}},ArrayIsArray=function(obj){try{return"[object Array]"===str.call(obj)}catch(e){return!1}};module.exports={isArray:ArrayIsArray,keys:ObjectKeys,names:ObjectKeys,defineProperty:ObjectDefineProperty,getDescriptor:ObjectGetDescriptor,freeze:ObjectFreeze,getPrototypeOf:ObjectGetPrototypeOf,isES5:isES5,propertyIsWritable:function(){return!0}}}},{}],14:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL){var PromiseMap=Promise.map;Promise.prototype.filter=function(fn,options){return PromiseMap(this,fn,options,INTERNAL)},Promise.filter=function(promises,fn,options){return PromiseMap(promises,fn,options,INTERNAL)}}},{}],15:[function(_dereq_,module){"use strict";module.exports=function(Promise,tryConvertToPromise,NEXT_FILTER){function PassThroughHandlerContext(promise,type,handler){this.promise=promise,this.type=type,this.handler=handler,this.called=!1,this.cancelPromise=null}function FinallyHandlerCancelReaction(finallyHandler){this.finallyHandler=finallyHandler}function checkCancel(ctx,reason){return null!=ctx.cancelPromise&&(1<arguments.length?ctx.cancelPromise._reject(reason):ctx.cancelPromise._cancel(),ctx.cancelPromise=null,!0)}function succeed(){return finallyHandler.call(this,this.promise._target()._settledValue())}function fail(reason){if(!checkCancel(this,reason))return errorObj.e=reason,errorObj}function finallyHandler(reasonOrValue){var promise=this.promise,handler=this.handler;if(!this.called){this.called=!0;var ret=this.isFinallyHandler()?handler.call(promise._boundValue()):handler.call(promise._boundValue(),reasonOrValue);if(ret===NEXT_FILTER)return ret;if(void 0!==ret){promise._setReturnedNonUndefined();var maybePromise=tryConvertToPromise(ret,promise);if(maybePromise instanceof Promise){if(null!=this.cancelPromise){if(maybePromise._isCancelled()){var reason=new CancellationError("late cancellation observer");return promise._attachExtraTrace(reason),errorObj.e=reason,errorObj}maybePromise.isPending()&&maybePromise._attachCancellationCallback(new FinallyHandlerCancelReaction(this))}return maybePromise._then(succeed,fail,void 0,this,void 0)}}}return promise.isRejected()?(checkCancel(this),errorObj.e=reasonOrValue,errorObj):(checkCancel(this),reasonOrValue)}var util=_dereq_("./util"),CancellationError=Promise.CancellationError,errorObj=util.errorObj,catchFilter=_dereq_("./catch_filter")(NEXT_FILTER);return PassThroughHandlerContext.prototype.isFinallyHandler=function(){return 0===this.type},FinallyHandlerCancelReaction.prototype._resultCancelled=function(){checkCancel(this.finallyHandler)},Promise.prototype._passThrough=function(handler,type,success,fail){return"function"==typeof handler?this._then(success,fail,void 0,new PassThroughHandlerContext(this,type,handler),void 0):this.then()},Promise.prototype.lastly=Promise.prototype["finally"]=function(handler){return this._passThrough(handler,0,finallyHandler,finallyHandler)},Promise.prototype.tap=function(handler){return this._passThrough(handler,1,finallyHandler)},Promise.prototype.tapCatch=function(handlerOrPredicate){var len=arguments.length;if(1===len)return this._passThrough(handlerOrPredicate,1,void 0,finallyHandler);var catchInstances=Array(len-1),j=0,i;for(i=0;i<len-1;++i){var item=arguments[i];if(util.isObject(item))catchInstances[j++]=item;else return Promise.reject(new TypeError("tapCatch statement predicate: expecting an object but got "+util.classString(item)))}catchInstances.length=j;var handler=arguments[i];return this._passThrough(catchFilter(catchInstances,handler,this),1,void 0,finallyHandler)},PassThroughHandlerContext}},{"./catch_filter":7,"./util":36}],16:[function(_dereq_,module){"use strict";module.exports=function(Promise,apiRejection,INTERNAL,tryConvertToPromise,Proxyable,debug){function promiseFromYieldHandler(value,yieldHandlers,traceParent){for(var i=0;i<yieldHandlers.length;++i){traceParent._pushContext();var result=tryCatch(yieldHandlers[i])(value);if(traceParent._popContext(),result===errorObj){traceParent._pushContext();var ret=Promise.reject(errorObj.e);return traceParent._popContext(),ret}var maybePromise=tryConvertToPromise(result,traceParent);if(maybePromise instanceof Promise)return maybePromise}return null}function PromiseSpawn(generatorFunction,receiver,yieldHandler,stack){if(debug.cancellation()){var internal=new Promise(INTERNAL),_finallyPromise=this._finallyPromise=new Promise(INTERNAL);this._promise=internal.lastly(function(){return _finallyPromise}),internal._captureStackTrace(),internal._setOnCancel(this)}else{var promise=this._promise=new Promise(INTERNAL);promise._captureStackTrace()}this._stack=stack,this._generatorFunction=generatorFunction,this._receiver=receiver,this._generator=void 0,this._yieldHandlers="function"==typeof yieldHandler?[yieldHandler].concat(yieldHandlers):yieldHandlers,this._yieldedPromise=null,this._cancellationPhase=!1}var errors=_dereq_("./errors"),TypeError=errors.TypeError,util=_dereq_("./util"),errorObj=util.errorObj,tryCatch=util.tryCatch,yieldHandlers=[];util.inherits(PromiseSpawn,Proxyable),PromiseSpawn.prototype._isResolved=function(){return null===this._promise},PromiseSpawn.prototype._cleanup=function(){this._promise=this._generator=null,debug.cancellation()&&null!==this._finallyPromise&&(this._finallyPromise._fulfill(),this._finallyPromise=null)},PromiseSpawn.prototype._promiseCancelled=function(){if(!this._isResolved()){var implementsReturn="undefined"!=typeof this._generator["return"],result;if(!implementsReturn){var reason=new Promise.CancellationError("generator .return() sentinel");Promise.coroutine.returnSentinel=reason,this._promise._attachExtraTrace(reason),this._promise._pushContext(),result=tryCatch(this._generator["throw"]).call(this._generator,reason),this._promise._popContext()}else this._promise._pushContext(),result=tryCatch(this._generator["return"]).call(this._generator,void 0),this._promise._popContext();this._cancellationPhase=!0,this._yieldedPromise=null,this._continue(result)}},PromiseSpawn.prototype._promiseFulfilled=function(value){this._yieldedPromise=null,this._promise._pushContext();var result=tryCatch(this._generator.next).call(this._generator,value);this._promise._popContext(),this._continue(result)},PromiseSpawn.prototype._promiseRejected=function(reason){this._yieldedPromise=null,this._promise._attachExtraTrace(reason),this._promise._pushContext();var result=tryCatch(this._generator["throw"]).call(this._generator,reason);this._promise._popContext(),this._continue(result)},PromiseSpawn.prototype._resultCancelled=function(){if(this._yieldedPromise instanceof Promise){var promise=this._yieldedPromise;this._yieldedPromise=null,promise.cancel()}},PromiseSpawn.prototype.promise=function(){return this._promise},PromiseSpawn.prototype._run=function(){this._generator=this._generatorFunction.call(this._receiver),this._receiver=this._generatorFunction=void 0,this._promiseFulfilled(void 0)},PromiseSpawn.prototype._continue=function(result){var promise=this._promise;if(result===errorObj)return this._cleanup(),this._cancellationPhase?promise.cancel():promise._rejectCallback(result.e,!1);var value=result.value;if(!0===result.done)return this._cleanup(),this._cancellationPhase?promise.cancel():promise._resolveCallback(value);var maybePromise=tryConvertToPromise(value,this._promise);if(!(maybePromise instanceof Promise)&&(maybePromise=promiseFromYieldHandler(maybePromise,this._yieldHandlers,this._promise),null===maybePromise))return void this._promiseRejected(new TypeError("A value %s was yielded that could not be treated as a promise\n\n    See http://goo.gl/MqrFmX\n\n".replace("%s",value+"")+"From coroutine:\n"+this._stack.split("\n").slice(1,-7).join("\n")));maybePromise=maybePromise._target();var bitField=maybePromise._bitField;0==(50397184&bitField)?(this._yieldedPromise=maybePromise,maybePromise._proxy(this,null)):0==(33554432&bitField)?0==(16777216&bitField)?this._promiseCancelled():Promise._async.invoke(this._promiseRejected,this,maybePromise._reason()):Promise._async.invoke(this._promiseFulfilled,this,maybePromise._value())},Promise.coroutine=function(generatorFunction,options){if("function"!=typeof generatorFunction)throw new TypeError("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var yieldHandler=Object(options).yieldHandler,stack=new Error().stack;return function(){var generator=generatorFunction.apply(this,arguments),spawn=new PromiseSpawn(void 0,void 0,yieldHandler,stack),ret=spawn.promise();return spawn._generator=generator,spawn._promiseFulfilled(void 0),ret}},Promise.coroutine.addYieldHandler=function(fn){if("function"!=typeof fn)throw new TypeError("expecting a function but got "+util.classString(fn));yieldHandlers.push(fn)},Promise.spawn=function(generatorFunction){if(debug.deprecated("Promise.spawn()","Promise.coroutine()"),"function"!=typeof generatorFunction)return apiRejection("generatorFunction must be a function\n\n    See http://goo.gl/MqrFmX\n");var spawn=new PromiseSpawn(generatorFunction,this),ret=spawn.promise();return spawn._run(Promise.spawn),ret}}},{"./errors":12,"./util":36}],17:[function(_dereq_,module){"use strict";module.exports=function(Promise,PromiseArray){var util=_dereq_("./util"),canEvaluate=util.canEvaluate,tryCatch=util.tryCatch,errorObj=util.errorObj;Promise.join=function(){var last=arguments.length-1,fn;if(0<last&&"function"==typeof arguments[last]){fn=arguments[last];var ret}var args=[].slice.call(arguments);fn&&args.pop();var ret=new PromiseArray(args).promise();return fn===void 0?ret:ret.spread(fn)}}},{"./util":36}],18:[function(_dereq_,module){"use strict";module.exports=function(Promise,PromiseArray,apiRejection,tryConvertToPromise,INTERNAL,debug){function MappingPromiseArray(promises,fn,limit,_filter){this.constructor$(promises),this._promise._captureStackTrace();var domain=getDomain();this._callback=null===domain?fn:util.domainBind(domain,fn),this._preservedValues=_filter===INTERNAL?Array(this.length()):null,this._limit=limit,this._inFlight=0,this._queue=[],async.invoke(this._asyncInit,this,void 0)}function map(promises,fn,options,_filter){if("function"!=typeof fn)return apiRejection("expecting a function but got "+util.classString(fn));var limit=0;if(void 0!==options)if("object"==typeof options&&null!==options){if("number"!=typeof options.concurrency)return Promise.reject(new TypeError("'concurrency' must be a number but it is "+util.classString(options.concurrency)));limit=options.concurrency}else return Promise.reject(new TypeError("options argument must be an object but it is "+util.classString(options)));return limit="number"==typeof limit&&isFinite(limit)&&1<=limit?limit:0,new MappingPromiseArray(promises,fn,limit,_filter).promise()}var getDomain=Promise._getDomain,util=_dereq_("./util"),tryCatch=util.tryCatch,errorObj=util.errorObj,async=Promise._async;util.inherits(MappingPromiseArray,PromiseArray),MappingPromiseArray.prototype._asyncInit=function(){this._init$(void 0,-2)},MappingPromiseArray.prototype._init=function(){},MappingPromiseArray.prototype._promiseFulfilled=function(value,index){var values=this._values,length=this.length(),preservedValues=this._preservedValues,limit=this._limit;if(!(0>index)){if(1<=limit&&this._inFlight>=limit)return values[index]=value,this._queue.push(index),!1;null!==preservedValues&&(preservedValues[index]=value);var promise=this._promise,callback=this._callback,receiver=promise._boundValue();promise._pushContext();var ret=tryCatch(callback).call(receiver,value,index,length),promiseCreated=promise._popContext();if(debug.checkForgottenReturns(ret,promiseCreated,null===preservedValues?"Promise.map":"Promise.filter",promise),ret===errorObj)return this._reject(ret.e),!0;var maybePromise=tryConvertToPromise(ret,this._promise);if(maybePromise instanceof Promise){maybePromise=maybePromise._target();var bitField=maybePromise._bitField;if(0==(50397184&bitField))return 1<=limit&&this._inFlight++,values[index]=maybePromise,maybePromise._proxy(this,-1*(index+1)),!1;if(0!=(33554432&bitField))ret=maybePromise._value();else return 0==(16777216&bitField)?(this._cancel(),!0):(this._reject(maybePromise._reason()),!0)}values[index]=ret}else if(index=-1*index-1,values[index]=value,1<=limit&&(this._inFlight--,this._drainQueue(),this._isResolved()))return!0;var totalResolved=++this._totalResolved;return!!(totalResolved>=length)&&(null===preservedValues?this._resolve(values):this._filter(values,preservedValues),!0)},MappingPromiseArray.prototype._drainQueue=function(){for(var queue=this._queue,limit=this._limit,values=this._values;0<queue.length&&this._inFlight<limit;){if(this._isResolved())return;var index=queue.pop();this._promiseFulfilled(values[index],index)}},MappingPromiseArray.prototype._filter=function(booleans,values){for(var len=values.length,ret=Array(len),j=0,i=0;i<len;++i)booleans[i]&&(ret[j++]=values[i]);ret.length=j,this._resolve(ret)},MappingPromiseArray.prototype.preservedValues=function(){return this._preservedValues},Promise.prototype.map=function(fn,options){return map(this,fn,options,null)},Promise.map=function(promises,fn,options,_filter){return map(promises,fn,options,_filter)}}},{"./util":36}],19:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL,tryConvertToPromise,apiRejection,debug){var util=_dereq_("./util"),tryCatch=util.tryCatch;Promise.method=function(fn){if("function"!=typeof fn)throw new Promise.TypeError("expecting a function but got "+util.classString(fn));return function(){var ret=new Promise(INTERNAL);ret._captureStackTrace(),ret._pushContext();var value=tryCatch(fn).apply(this,arguments),promiseCreated=ret._popContext();return debug.checkForgottenReturns(value,promiseCreated,"Promise.method",ret),ret._resolveFromSyncValue(value),ret}},Promise.attempt=Promise["try"]=function(fn){if("function"!=typeof fn)return apiRejection("expecting a function but got "+util.classString(fn));var ret=new Promise(INTERNAL);ret._captureStackTrace(),ret._pushContext();var value;if(1<arguments.length){debug.deprecated("calling Promise.try with more than 1 argument");var arg=arguments[1],ctx=arguments[2];value=util.isArray(arg)?tryCatch(fn).apply(ctx,arg):tryCatch(fn).call(ctx,arg)}else value=tryCatch(fn)();var promiseCreated=ret._popContext();return debug.checkForgottenReturns(value,promiseCreated,"Promise.try",ret),ret._resolveFromSyncValue(value),ret},Promise.prototype._resolveFromSyncValue=function(value){value===util.errorObj?this._rejectCallback(value.e,!1):this._resolveCallback(value,!0)}}},{"./util":36}],20:[function(_dereq_,module){"use strict";function isUntypedError(obj){return obj instanceof Error&&es5.getPrototypeOf(obj)===Error.prototype}function wrapAsOperationalError(obj){var ret;if(isUntypedError(obj)){ret=new OperationalError(obj),ret.name=obj.name,ret.message=obj.message,ret.stack=obj.stack;for(var keys=es5.keys(obj),i=0,key;i<keys.length;++i)key=keys[i],rErrorKey.test(key)||(ret[key]=obj[key]);return ret}return util.markAsOriginatingFromRejection(obj),obj}var util=_dereq_("./util"),maybeWrapAsError=util.maybeWrapAsError,errors=_dereq_("./errors"),OperationalError=errors.OperationalError,es5=_dereq_("./es5"),rErrorKey=/^(?:name|message|stack|cause)$/;module.exports=function(promise,multiArgs){return function(err,value){if(null!==promise){if(err){var wrapped=wrapAsOperationalError(maybeWrapAsError(err));promise._attachExtraTrace(wrapped),promise._reject(wrapped)}else if(!multiArgs)promise._fulfill(value);else{var args=[].slice.call(arguments,1);promise._fulfill(args)}promise=null}}}},{"./errors":12,"./es5":13,"./util":36}],21:[function(_dereq_,module){"use strict";module.exports=function(Promise){function spreadAdapter(val,nodeback){var promise=this;if(!util.isArray(val))return successAdapter.call(promise,val,nodeback);var ret=tryCatch(nodeback).apply(promise._boundValue(),[null].concat(val));ret===errorObj&&async.throwLater(ret.e)}function successAdapter(val,nodeback){var promise=this,receiver=promise._boundValue(),ret=val===void 0?tryCatch(nodeback).call(receiver,null):tryCatch(nodeback).call(receiver,null,val);ret===errorObj&&async.throwLater(ret.e)}function errorAdapter(reason,nodeback){var promise=this;if(!reason){var newReason=new Error(reason+"");newReason.cause=reason,reason=newReason}var ret=tryCatch(nodeback).call(promise._boundValue(),reason);ret===errorObj&&async.throwLater(ret.e)}var util=_dereq_("./util"),async=Promise._async,tryCatch=util.tryCatch,errorObj=util.errorObj;Promise.prototype.asCallback=Promise.prototype.nodeify=function(nodeback,options){if("function"==typeof nodeback){var adapter=successAdapter;options!==void 0&&Object(options).spread&&(adapter=spreadAdapter),this._then(adapter,errorAdapter,void 0,this,nodeback)}return this}}},{"./util":36}],22:[function(_dereq_,module){"use strict";module.exports=function(){function Proxyable(){}function check(self,executor){if(null==self||self.constructor!==Promise)throw new TypeError("the promise constructor cannot be invoked directly\n\n    See http://goo.gl/MqrFmX\n");if("function"!=typeof executor)throw new TypeError("expecting a function but got "+util.classString(executor))}function Promise(executor){executor!==INTERNAL&&check(this,executor),this._bitField=0,this._fulfillmentHandler0=void 0,this._rejectionHandler0=void 0,this._promise0=void 0,this._receiver0=void 0,this._resolveFromExecutor(executor),this._promiseCreated(),this._fireEvent("promiseCreated",this)}function deferResolve(v){this.promise._resolveCallback(v)}function deferReject(v){this.promise._rejectCallback(v,!1)}function fillTypes(value){var p=new Promise(INTERNAL);p._fulfillmentHandler0=value,p._rejectionHandler0=value,p._promise0=value,p._receiver0=value}var makeSelfResolutionError=function(){return new TypeError("circular promise resolution chain\n\n    See http://goo.gl/MqrFmX\n")},reflectHandler=function(){return new Promise.PromiseInspection(this._target())},apiRejection=function(msg){return Promise.reject(new TypeError(msg))},UNDEFINED_BINDING={},util=_dereq_("./util"),getDomain;getDomain=util.isNode?function(){var ret=process.domain;return void 0===ret&&(ret=null),ret}:function(){return null},util.notEnumerableProp(Promise,"_getDomain",getDomain);var es5=_dereq_("./es5"),Async=_dereq_("./async"),async=new Async;es5.defineProperty(Promise,"_async",{value:async});var errors=_dereq_("./errors"),TypeError=Promise.TypeError=errors.TypeError;Promise.RangeError=errors.RangeError;var CancellationError=Promise.CancellationError=errors.CancellationError;Promise.TimeoutError=errors.TimeoutError,Promise.OperationalError=errors.OperationalError,Promise.RejectionError=errors.OperationalError,Promise.AggregateError=errors.AggregateError;var INTERNAL=function(){},APPLY={},NEXT_FILTER={},tryConvertToPromise=_dereq_("./thenables")(Promise,INTERNAL),PromiseArray=_dereq_("./promise_array")(Promise,INTERNAL,tryConvertToPromise,apiRejection,Proxyable),Context=_dereq_("./context")(Promise),createContext=Context.create,debug=_dereq_("./debuggability")(Promise,Context),CapturedTrace=debug.CapturedTrace,PassThroughHandlerContext=_dereq_("./finally")(Promise,tryConvertToPromise,NEXT_FILTER),catchFilter=_dereq_("./catch_filter")(NEXT_FILTER),nodebackForPromise=_dereq_("./nodeback"),errorObj=util.errorObj,tryCatch=util.tryCatch;return Promise.prototype.toString=function(){return"[object Promise]"},Promise.prototype.caught=Promise.prototype["catch"]=function(fn){var len=arguments.length;if(1<len){var catchInstances=Array(len-1),j=0,i;for(i=0;i<len-1;++i){var item=arguments[i];if(util.isObject(item))catchInstances[j++]=item;else return apiRejection("Catch statement predicate: expecting an object but got "+util.classString(item))}return catchInstances.length=j,fn=arguments[i],this.then(void 0,catchFilter(catchInstances,fn,this))}return this.then(void 0,fn)},Promise.prototype.reflect=function(){return this._then(reflectHandler,reflectHandler,void 0,this,void 0)},Promise.prototype.then=function(didFulfill,didReject){if(debug.warnings()&&0<arguments.length&&"function"!=typeof didFulfill&&"function"!=typeof didReject){var msg=".then() only accepts functions but was passed: "+util.classString(didFulfill);1<arguments.length&&(msg+=", "+util.classString(didReject)),this._warn(msg)}return this._then(didFulfill,didReject,void 0,void 0,void 0)},Promise.prototype.done=function(didFulfill,didReject){var promise=this._then(didFulfill,didReject,void 0,void 0,void 0);promise._setIsFinal()},Promise.prototype.spread=function(fn){return"function"==typeof fn?this.all()._then(fn,void 0,void 0,APPLY,void 0):apiRejection("expecting a function but got "+util.classString(fn))},Promise.prototype.toJSON=function(){var ret={isFulfilled:!1,isRejected:!1,fulfillmentValue:void 0,rejectionReason:void 0};return this.isFulfilled()?(ret.fulfillmentValue=this.value(),ret.isFulfilled=!0):this.isRejected()&&(ret.rejectionReason=this.reason(),ret.isRejected=!0),ret},Promise.prototype.all=function(){return 0<arguments.length&&this._warn(".all() was passed arguments but it does not take any"),new PromiseArray(this).promise()},Promise.prototype.error=function(fn){return this.caught(util.originatesFromRejection,fn)},Promise.getNewLibraryCopy=module.exports,Promise.is=function(val){return val instanceof Promise},Promise.fromNode=Promise.fromCallback=function(fn){var ret=new Promise(INTERNAL);ret._captureStackTrace();var multiArgs=!!(1<arguments.length)&&!!Object(arguments[1]).multiArgs,result=tryCatch(fn)(nodebackForPromise(ret,multiArgs));return result===errorObj&&ret._rejectCallback(result.e,!0),ret._isFateSealed()||ret._setAsyncGuaranteed(),ret},Promise.all=function(promises){return new PromiseArray(promises).promise()},Promise.cast=function(obj){var ret=tryConvertToPromise(obj);return ret instanceof Promise||(ret=new Promise(INTERNAL),ret._captureStackTrace(),ret._setFulfilled(),ret._rejectionHandler0=obj),ret},Promise.resolve=Promise.fulfilled=Promise.cast,Promise.reject=Promise.rejected=function(reason){var ret=new Promise(INTERNAL);return ret._captureStackTrace(),ret._rejectCallback(reason,!0),ret},Promise.setScheduler=function(fn){if("function"!=typeof fn)throw new TypeError("expecting a function but got "+util.classString(fn));return async.setScheduler(fn)},Promise.prototype._then=function(didFulfill,didReject,_,receiver,internalData){var haveInternalData=void 0!==internalData,promise=haveInternalData?internalData:new Promise(INTERNAL),target=this._target(),bitField=target._bitField;haveInternalData||(promise._propagateFrom(this,3),promise._captureStackTrace(),void 0===receiver&&0!=(2097152&this._bitField)&&(0==(50397184&bitField)?receiver=target===this?void 0:this._boundTo:receiver=this._boundValue()),this._fireEvent("promiseChained",this,promise));var domain=getDomain();if(0!=(50397184&bitField)){var settler=target._settlePromiseCtx,handler,value;0==(33554432&bitField)?0==(16777216&bitField)?(settler=target._settlePromiseLateCancellationObserver,value=new CancellationError("late cancellation observer"),target._attachExtraTrace(value),handler=didReject):(value=target._fulfillmentHandler0,handler=didReject,target._unsetRejectionIsUnhandled()):(value=target._rejectionHandler0,handler=didFulfill),async.invoke(settler,target,{handler:null===domain?handler:"function"==typeof handler&&util.domainBind(domain,handler),promise:promise,receiver:receiver,value:value})}else target._addCallbacks(didFulfill,didReject,promise,receiver,domain);return promise},Promise.prototype._length=function(){return 65535&this._bitField},Promise.prototype._isFateSealed=function(){return 0!=(117506048&this._bitField)},Promise.prototype._isFollowing=function(){return 67108864==(67108864&this._bitField)},Promise.prototype._setLength=function(len){this._bitField=-65536&this._bitField|65535&len},Promise.prototype._setFulfilled=function(){this._bitField|=33554432,this._fireEvent("promiseFulfilled",this)},Promise.prototype._setRejected=function(){this._bitField|=16777216,this._fireEvent("promiseRejected",this)},Promise.prototype._setFollowing=function(){this._bitField|=67108864,this._fireEvent("promiseResolved",this)},Promise.prototype._setIsFinal=function(){this._bitField|=4194304},Promise.prototype._isFinal=function(){return 0<(4194304&this._bitField)},Promise.prototype._unsetCancelled=function(){this._bitField&=-65537},Promise.prototype._setCancelled=function(){this._bitField|=65536,this._fireEvent("promiseCancelled",this)},Promise.prototype._setWillBeCancelled=function(){this._bitField|=8388608},Promise.prototype._setAsyncGuaranteed=function(){async.hasCustomScheduler()||(this._bitField|=134217728)},Promise.prototype._receiverAt=function(index){var ret=0===index?this._receiver0:this[4*index-4+3];if(ret!==UNDEFINED_BINDING)return void 0===ret&&this._isBound()?this._boundValue():ret},Promise.prototype._promiseAt=function(index){return this[4*index-4+2]},Promise.prototype._fulfillmentHandlerAt=function(index){return this[4*index-4+0]},Promise.prototype._rejectionHandlerAt=function(index){return this[4*index-4+1]},Promise.prototype._boundValue=function(){},Promise.prototype._migrateCallback0=function(follower){var bitField=follower._bitField,fulfill=follower._fulfillmentHandler0,reject=follower._rejectionHandler0,promise=follower._promise0,receiver=follower._receiverAt(0);void 0===receiver&&(receiver=UNDEFINED_BINDING),this._addCallbacks(fulfill,reject,promise,receiver,null)},Promise.prototype._migrateCallbackAt=function(follower,index){var fulfill=follower._fulfillmentHandlerAt(index),reject=follower._rejectionHandlerAt(index),promise=follower._promiseAt(index),receiver=follower._receiverAt(index);void 0===receiver&&(receiver=UNDEFINED_BINDING),this._addCallbacks(fulfill,reject,promise,receiver,null)},Promise.prototype._addCallbacks=function(fulfill,reject,promise,receiver,domain){var index=this._length();if(65531<=index&&(index=0,this._setLength(0)),0===index)this._promise0=promise,this._receiver0=receiver,"function"==typeof fulfill&&(this._fulfillmentHandler0=null===domain?fulfill:util.domainBind(domain,fulfill)),"function"==typeof reject&&(this._rejectionHandler0=null===domain?reject:util.domainBind(domain,reject));else{var base=4*index-4;this[base+2]=promise,this[base+3]=receiver,"function"==typeof fulfill&&(this[base+0]=null===domain?fulfill:util.domainBind(domain,fulfill)),"function"==typeof reject&&(this[base+1]=null===domain?reject:util.domainBind(domain,reject))}return this._setLength(index+1),index},Promise.prototype._proxy=function(proxyable,arg){this._addCallbacks(void 0,void 0,arg,proxyable,null)},Promise.prototype._resolveCallback=function(value,shouldBind){if(0==(117506048&this._bitField)){if(value===this)return this._rejectCallback(makeSelfResolutionError(),!1);var maybePromise=tryConvertToPromise(value,this);if(!(maybePromise instanceof Promise))return this._fulfill(value);shouldBind&&this._propagateFrom(maybePromise,2);var promise=maybePromise._target();if(promise===this)return void this._reject(makeSelfResolutionError());var bitField=promise._bitField;if(0==(50397184&bitField)){var len=this._length();0<len&&promise._migrateCallback0(this);for(var i=1;i<len;++i)promise._migrateCallbackAt(this,i);this._setFollowing(),this._setLength(0),this._setFollowee(promise)}else if(0!=(33554432&bitField))this._fulfill(promise._value());else if(0!=(16777216&bitField))this._reject(promise._reason());else{var reason=new CancellationError("late cancellation observer");promise._attachExtraTrace(reason),this._reject(reason)}}},Promise.prototype._rejectCallback=function(reason,synchronous,ignoreNonErrorWarnings){var trace=util.ensureErrorObject(reason),hasStack=trace===reason;if(!hasStack&&!ignoreNonErrorWarnings&&debug.warnings()){var message="a promise was rejected with a non-error: "+util.classString(reason);this._warn(message,!0)}this._attachExtraTrace(trace,!!synchronous&&hasStack),this._reject(reason)},Promise.prototype._resolveFromExecutor=function(executor){if(executor!==INTERNAL){var promise=this;this._captureStackTrace(),this._pushContext();var synchronous=!0,r=this._execute(executor,function(value){promise._resolveCallback(value)},function(reason){promise._rejectCallback(reason,synchronous)});synchronous=!1,this._popContext(),void 0!==r&&promise._rejectCallback(r,!0)}},Promise.prototype._settlePromiseFromHandler=function(handler,receiver,value,promise){var bitField=promise._bitField;if(0==(65536&bitField)){promise._pushContext();var x;receiver===APPLY?value&&"number"==typeof value.length?x=tryCatch(handler).apply(this._boundValue(),value):(x=errorObj,x.e=new TypeError("cannot .spread() a non-array: "+util.classString(value))):x=tryCatch(handler).call(receiver,value);var promiseCreated=promise._popContext();bitField=promise._bitField,0!=(65536&bitField)||(x===NEXT_FILTER?promise._reject(value):x===errorObj?promise._rejectCallback(x.e,!1):(debug.checkForgottenReturns(x,promiseCreated,"",promise,this),promise._resolveCallback(x)))}},Promise.prototype._target=function(){for(var ret=this;ret._isFollowing();)ret=ret._followee();return ret},Promise.prototype._followee=function(){return this._rejectionHandler0},Promise.prototype._setFollowee=function(promise){this._rejectionHandler0=promise},Promise.prototype._settlePromise=function(promise,handler,receiver,value){var isPromise=promise instanceof Promise,bitField=this._bitField,asyncGuaranteed=0!=(134217728&bitField);0==(65536&bitField)?"function"==typeof handler?isPromise?(asyncGuaranteed&&promise._setAsyncGuaranteed(),this._settlePromiseFromHandler(handler,receiver,value,promise)):handler.call(receiver,value,promise):receiver instanceof Proxyable?!receiver._isResolved()&&(0==(33554432&bitField)?receiver._promiseRejected(value,promise):receiver._promiseFulfilled(value,promise)):isPromise&&(asyncGuaranteed&&promise._setAsyncGuaranteed(),0==(33554432&bitField)?promise._reject(value):promise._fulfill(value)):(isPromise&&promise._invokeInternalOnCancel(),receiver instanceof PassThroughHandlerContext&&receiver.isFinallyHandler()?(receiver.cancelPromise=promise,tryCatch(handler).call(receiver,value)===errorObj&&promise._reject(errorObj.e)):handler===reflectHandler?promise._fulfill(reflectHandler.call(receiver)):receiver instanceof Proxyable?receiver._promiseCancelled(promise):isPromise||promise instanceof PromiseArray?promise._cancel():receiver.cancel())},Promise.prototype._settlePromiseLateCancellationObserver=function(ctx){var handler=ctx.handler,promise=ctx.promise,receiver=ctx.receiver,value=ctx.value;"function"==typeof handler?promise instanceof Promise?this._settlePromiseFromHandler(handler,receiver,value,promise):handler.call(receiver,value,promise):promise instanceof Promise&&promise._reject(value)},Promise.prototype._settlePromiseCtx=function(ctx){this._settlePromise(ctx.promise,ctx.handler,ctx.receiver,ctx.value)},Promise.prototype._settlePromise0=function(handler,value){var promise=this._promise0,receiver=this._receiverAt(0);this._promise0=void 0,this._receiver0=void 0,this._settlePromise(promise,handler,receiver,value)},Promise.prototype._clearCallbackDataAtIndex=function(index){var base=4*index-4;this[base+2]=this[base+3]=this[base+0]=this[base+1]=void 0},Promise.prototype._fulfill=function(value){var bitField=this._bitField;if(!((117506048&bitField)>>>16)){if(value===this){var err=makeSelfResolutionError();return this._attachExtraTrace(err),this._reject(err)}this._setFulfilled(),this._rejectionHandler0=value,0<(65535&bitField)&&(0==(134217728&bitField)?async.settlePromises(this):this._settlePromises())}},Promise.prototype._reject=function(reason){var bitField=this._bitField;if(!((117506048&bitField)>>>16))return this._setRejected(),this._fulfillmentHandler0=reason,this._isFinal()?async.fatalError(reason,util.isNode):void(0<(65535&bitField)?async.settlePromises(this):this._ensurePossibleRejectionHandled())},Promise.prototype._fulfillPromises=function(len,value){for(var i=1;i<len;i++){var handler=this._fulfillmentHandlerAt(i),promise=this._promiseAt(i),receiver=this._receiverAt(i);this._clearCallbackDataAtIndex(i),this._settlePromise(promise,handler,receiver,value)}},Promise.prototype._rejectPromises=function(len,reason){for(var i=1;i<len;i++){var handler=this._rejectionHandlerAt(i),promise=this._promiseAt(i),receiver=this._receiverAt(i);this._clearCallbackDataAtIndex(i),this._settlePromise(promise,handler,receiver,reason)}},Promise.prototype._settlePromises=function(){var bitField=this._bitField,len=65535&bitField;if(0<len){if(0!=(16842752&bitField)){var reason=this._fulfillmentHandler0;this._settlePromise0(this._rejectionHandler0,reason,bitField),this._rejectPromises(len,reason)}else{var value=this._rejectionHandler0;this._settlePromise0(this._fulfillmentHandler0,value,bitField),this._fulfillPromises(len,value)}this._setLength(0)}this._clearCancellationData()},Promise.prototype._settledValue=function(){var bitField=this._bitField;return 0==(33554432&bitField)?0==(16777216&bitField)?void 0:this._fulfillmentHandler0:this._rejectionHandler0},Promise.defer=Promise.pending=function(){debug.deprecated("Promise.defer","new Promise");var promise=new Promise(INTERNAL);return{promise:promise,resolve:deferResolve,reject:deferReject}},util.notEnumerableProp(Promise,"_makeSelfResolutionError",makeSelfResolutionError),_dereq_("./method")(Promise,INTERNAL,tryConvertToPromise,apiRejection,debug),_dereq_("./bind")(Promise,INTERNAL,tryConvertToPromise,debug),_dereq_("./cancel")(Promise,PromiseArray,apiRejection,debug),_dereq_("./direct_resolve")(Promise),_dereq_("./synchronous_inspection")(Promise),_dereq_("./join")(Promise,PromiseArray,tryConvertToPromise,INTERNAL,async,getDomain),Promise.Promise=Promise,Promise.version="3.5.1",_dereq_("./map.js")(Promise,PromiseArray,apiRejection,tryConvertToPromise,INTERNAL,debug),_dereq_("./call_get.js")(Promise),_dereq_("./using.js")(Promise,apiRejection,tryConvertToPromise,createContext,INTERNAL,debug),_dereq_("./timers.js")(Promise,INTERNAL,debug),_dereq_("./generators.js")(Promise,apiRejection,INTERNAL,tryConvertToPromise,Proxyable,debug),_dereq_("./nodeify.js")(Promise),_dereq_("./promisify.js")(Promise,INTERNAL),_dereq_("./props.js")(Promise,PromiseArray,tryConvertToPromise,apiRejection),_dereq_("./race.js")(Promise,INTERNAL,tryConvertToPromise,apiRejection),_dereq_("./reduce.js")(Promise,PromiseArray,apiRejection,tryConvertToPromise,INTERNAL,debug),_dereq_("./settle.js")(Promise,PromiseArray,debug),_dereq_("./some.js")(Promise,PromiseArray,apiRejection),_dereq_("./filter.js")(Promise,INTERNAL),_dereq_("./each.js")(Promise,INTERNAL),_dereq_("./any.js")(Promise),util.toFastProperties(Promise),util.toFastProperties(Promise.prototype),fillTypes({a:1}),fillTypes({b:2}),fillTypes({c:3}),fillTypes(1),fillTypes(function(){}),fillTypes(void 0),fillTypes(!1),fillTypes(new Promise(INTERNAL)),debug.setBounds(Async.firstLineError,util.lastLineError),Promise}},{"./any.js":1,"./async":2,"./bind":3,"./call_get.js":5,"./cancel":6,"./catch_filter":7,"./context":8,"./debuggability":9,"./direct_resolve":10,"./each.js":11,"./errors":12,"./es5":13,"./filter.js":14,"./finally":15,"./generators.js":16,"./join":17,"./map.js":18,"./method":19,"./nodeback":20,"./nodeify.js":21,"./promise_array":23,"./promisify.js":24,"./props.js":25,"./race.js":27,"./reduce.js":28,"./settle.js":30,"./some.js":31,"./synchronous_inspection":32,"./thenables":33,"./timers.js":34,"./using.js":35,"./util":36}],23:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL,tryConvertToPromise,apiRejection,Proxyable){function toResolutionValue(val){return-2===val?[]:-3===val?{}:-6===val?new Map:void 0}function PromiseArray(values){var promise=this._promise=new Promise(INTERNAL);values instanceof Promise&&promise._propagateFrom(values,3),promise._setOnCancel(this),this._values=values,this._length=0,this._totalResolved=0,this._init(void 0,-2)}var util=_dereq_("./util"),isArray=util.isArray;return util.inherits(PromiseArray,Proxyable),PromiseArray.prototype.length=function(){return this._length},PromiseArray.prototype.promise=function(){return this._promise},PromiseArray.prototype._init=function init(_,resolveValueIfEmpty){var values=tryConvertToPromise(this._values,this._promise);if(values instanceof Promise){values=values._target();var bitField=values._bitField;if(this._values=values,0==(50397184&bitField))return this._promise._setAsyncGuaranteed(),values._then(init,this._reject,void 0,this,resolveValueIfEmpty);if(0!=(33554432&bitField))values=values._value();else return 0==(16777216&bitField)?this._cancel():this._reject(values._reason())}if(values=util.asArray(values),null===values){var err=apiRejection("expecting an array or an iterable object but got "+util.classString(values)).reason();return void this._promise._rejectCallback(err,!1)}return 0===values.length?void(-5===resolveValueIfEmpty?this._resolveEmptyArray():this._resolve(toResolutionValue(resolveValueIfEmpty))):void this._iterate(values)},PromiseArray.prototype._iterate=function(values){var len=this.getActualLength(values.length);this._length=len,this._values=this.shouldCopyValues()?Array(len):this._values;for(var result=this._promise,isResolved=!1,bitField=null,i=0,maybePromise;i<len;++i)maybePromise=tryConvertToPromise(values[i],result),maybePromise instanceof Promise?(maybePromise=maybePromise._target(),bitField=maybePromise._bitField):bitField=null,isResolved?null!==bitField&&maybePromise.suppressUnhandledRejections():null===bitField?isResolved=this._promiseFulfilled(maybePromise,i):0==(50397184&bitField)?(maybePromise._proxy(this,i),this._values[i]=maybePromise):0==(33554432&bitField)?0==(16777216&bitField)?isResolved=this._promiseCancelled(i):isResolved=this._promiseRejected(maybePromise._reason(),i):isResolved=this._promiseFulfilled(maybePromise._value(),i);isResolved||result._setAsyncGuaranteed()},PromiseArray.prototype._isResolved=function(){return null===this._values},PromiseArray.prototype._resolve=function(value){this._values=null,this._promise._fulfill(value)},PromiseArray.prototype._cancel=function(){this._isResolved()||!this._promise._isCancellable()||(this._values=null,this._promise._cancel())},PromiseArray.prototype._reject=function(reason){this._values=null,this._promise._rejectCallback(reason,!1)},PromiseArray.prototype._promiseFulfilled=function(value,index){this._values[index]=value;var totalResolved=++this._totalResolved;return!!(totalResolved>=this._length)&&(this._resolve(this._values),!0)},PromiseArray.prototype._promiseCancelled=function(){return this._cancel(),!0},PromiseArray.prototype._promiseRejected=function(reason){return this._totalResolved++,this._reject(reason),!0},PromiseArray.prototype._resultCancelled=function(){if(!this._isResolved()){var values=this._values;if(this._cancel(),values instanceof Promise)values.cancel();else for(var i=0;i<values.length;++i)values[i]instanceof Promise&&values[i].cancel()}},PromiseArray.prototype.shouldCopyValues=function(){return!0},PromiseArray.prototype.getActualLength=function(len){return len},PromiseArray}},{"./util":36}],24:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL){function propsFilter(key){return!noCopyPropsPattern.test(key)}function isPromisified(fn){try{return!0===fn.__isPromisified__}catch(e){return!1}}function hasPromisified(obj,key,suffix){var val=util.getDataPropertyOrDefault(obj,key+suffix,defaultPromisified);return!!val&&isPromisified(val)}function checkValid(ret,suffix,suffixRegexp){for(var i=0,key;i<ret.length;i+=2)if(key=ret[i],suffixRegexp.test(key))for(var keyWithoutAsyncSuffix=key.replace(suffixRegexp,""),j=0;j<ret.length;j+=2)if(ret[j]===keyWithoutAsyncSuffix)throw new TypeError("Cannot promisify an API that has normal methods with '%s'-suffix\n\n    See http://goo.gl/MqrFmX\n".replace("%s",suffix))}function promisifiableMethods(obj,suffix,suffixRegexp,filter){for(var keys=util.inheritedDataKeys(obj),ret=[],i=0;i<keys.length;++i){var key=keys[i],value=obj[key],passesDefaultFilter=filter===defaultFilter||defaultFilter(key,value,obj);"function"!=typeof value||isPromisified(value)||hasPromisified(obj,key,suffix)||!filter(key,value,obj,passesDefaultFilter)||ret.push(key,value)}return checkValid(ret,suffix,suffixRegexp),ret}function promisifyAll(obj,suffix,filter,promisifier,multiArgs){for(var suffixRegexp=new RegExp(escapeIdentRegex(suffix)+"$"),methods=promisifiableMethods(obj,suffix,suffixRegexp,filter),i=0,len=methods.length;i<len;i+=2){var key=methods[i],fn=methods[i+1],promisifiedKey=key+suffix;if(promisifier===makeNodePromisified)obj[promisifiedKey]=makeNodePromisified(key,THIS,key,fn,suffix,multiArgs);else{var promisified=promisifier(fn,function(){return makeNodePromisified(key,THIS,key,fn,suffix,multiArgs)});util.notEnumerableProp(promisified,"__isPromisified__",!0),obj[promisifiedKey]=promisified}}return util.toFastProperties(obj),obj}function promisify(callback,receiver,multiArgs){return makeNodePromisified(callback,receiver,void 0,callback,null,multiArgs)}var THIS={},util=_dereq_("./util"),nodebackForPromise=_dereq_("./nodeback"),withAppended=util.withAppended,maybeWrapAsError=util.maybeWrapAsError,canEvaluate=util.canEvaluate,TypeError=_dereq_("./errors").TypeError,defaultPromisified={__isPromisified__:!0},noCopyPropsPattern=new RegExp("^(?:"+["arity","length","name","arguments","caller","callee","prototype","__isPromisified__"].join("|")+")$"),defaultFilter=function(name){return util.isIdentifier(name)&&"_"!==name.charAt(0)&&"constructor"!==name},escapeIdentRegex=function(str){return str.replace(/([$])/,"\\$")},makeNodePromisifiedEval;var makeNodePromisified=canEvaluate?makeNodePromisifiedEval:function(callback,receiver,_,fn,__,multiArgs){function promisified(){var _receiver=receiver;receiver===THIS&&(_receiver=this);var promise=new Promise(INTERNAL);promise._captureStackTrace();var cb="string"==typeof method&&this!==defaultThis?this[method]:callback,fn=nodebackForPromise(promise,multiArgs);try{cb.apply(_receiver,withAppended(arguments,fn))}catch(e){promise._rejectCallback(maybeWrapAsError(e),!0,!0)}return promise._isFateSealed()||promise._setAsyncGuaranteed(),promise}var defaultThis=function(){return this}(),method=callback;return"string"==typeof method&&(callback=fn),util.notEnumerableProp(promisified,"__isPromisified__",!0),promisified};Promise.promisify=function(fn,options){if("function"!=typeof fn)throw new TypeError("expecting a function but got "+util.classString(fn));if(isPromisified(fn))return fn;options=Object(options);var receiver=void 0===options.context?THIS:options.context,multiArgs=!!options.multiArgs,ret=promisify(fn,receiver,multiArgs);return util.copyDescriptors(fn,ret,propsFilter),ret},Promise.promisifyAll=function(target,options){if("function"!=typeof target&&"object"!=typeof target)throw new TypeError("the target of promisifyAll must be an object or a function\n\n    See http://goo.gl/MqrFmX\n");options=Object(options);var multiArgs=!!options.multiArgs,suffix=options.suffix;"string"!=typeof suffix&&(suffix="Async");var filter=options.filter;"function"!=typeof filter&&(filter=defaultFilter);var promisifier=options.promisifier;if("function"!=typeof promisifier&&(promisifier=makeNodePromisified),!util.isIdentifier(suffix))throw new RangeError("suffix must be a valid identifier\n\n    See http://goo.gl/MqrFmX\n");for(var keys=util.inheritedDataKeys(target),i=0,value;i<keys.length;++i)value=target[keys[i]],"constructor"!==keys[i]&&util.isClass(value)&&(promisifyAll(value.prototype,suffix,filter,promisifier,multiArgs),promisifyAll(value,suffix,filter,promisifier,multiArgs));return promisifyAll(target,suffix,filter,promisifier,multiArgs)}}},{"./errors":12,"./nodeback":20,"./util":36}],25:[function(_dereq_,module){"use strict";module.exports=function(Promise,PromiseArray,tryConvertToPromise,apiRejection){function PropertiesPromiseArray(obj){var isMap=!1,entries;if(Es6Map!==void 0&&obj instanceof Es6Map)entries=mapToEntries(obj),isMap=!0;else{var keys=es5.keys(obj),len=keys.length;entries=Array(2*len);for(var i=0,key;i<len;++i)key=keys[i],entries[i]=obj[key],entries[i+len]=key}this.constructor$(entries),this._isMap=isMap,this._init$(void 0,isMap?-6:-3)}function props(promises){var castValue=tryConvertToPromise(promises),ret;return isObject(castValue)?(ret=castValue instanceof Promise?castValue._then(Promise.props,void 0,void 0,void 0,void 0):new PropertiesPromiseArray(castValue).promise(),castValue instanceof Promise&&ret._propagateFrom(castValue,2),ret):apiRejection("cannot await properties of a non-object\n\n    See http://goo.gl/MqrFmX\n")}var util=_dereq_("./util"),isObject=util.isObject,es5=_dereq_("./es5"),Es6Map;"function"==typeof Map&&(Es6Map=Map);var mapToEntries=function(){function extractEntry(value,key){this[index]=value,this[index+size]=key,index++}var index=0,size=0;return function(map){size=map.size,index=0;var ret=Array(2*map.size);return map.forEach(extractEntry,ret),ret}}(),entriesToMap=function(entries){for(var ret=new Es6Map,length=0|entries.length/2,i=0;i<length;++i){var key=entries[length+i],value=entries[i];ret.set(key,value)}return ret};util.inherits(PropertiesPromiseArray,PromiseArray),PropertiesPromiseArray.prototype._init=function(){},PropertiesPromiseArray.prototype._promiseFulfilled=function(value,index){this._values[index]=value;var totalResolved=++this._totalResolved;if(totalResolved>=this._length){var val;if(this._isMap)val=entriesToMap(this._values);else{val={};for(var keyOffset=this.length(),i=0,len=this.length();i<len;++i)val[this._values[i+keyOffset]]=this._values[i]}return this._resolve(val),!0}return!1},PropertiesPromiseArray.prototype.shouldCopyValues=function(){return!1},PropertiesPromiseArray.prototype.getActualLength=function(len){return len>>1},Promise.prototype.props=function(){return props(this)},Promise.props=function(promises){return props(promises)}}},{"./es5":13,"./util":36}],26:[function(_dereq_,module){"use strict";function arrayMove(src,srcIndex,dst,dstIndex,len){for(var j=0;j<len;++j)dst[j+dstIndex]=src[j+srcIndex],src[j+srcIndex]=void 0}function Queue(capacity){this._capacity=capacity,this._length=0,this._front=0}Queue.prototype._willBeOverCapacity=function(size){return this._capacity<size},Queue.prototype._pushOne=function(arg){var length=this.length();this._checkCapacity(length+1);var i=this._front+length&this._capacity-1;this[i]=arg,this._length=length+1},Queue.prototype.push=function(fn,receiver,arg){var length=this.length()+3;if(this._willBeOverCapacity(length))return this._pushOne(fn),this._pushOne(receiver),void this._pushOne(arg);var j=this._front+length-3;this._checkCapacity(length);var wrapMask=this._capacity-1;this[j+0&wrapMask]=fn,this[j+1&wrapMask]=receiver,this[j+2&wrapMask]=arg,this._length=length},Queue.prototype.shift=function(){var front=this._front,ret=this[front];return this[front]=void 0,this._front=front+1&this._capacity-1,this._length--,ret},Queue.prototype.length=function(){return this._length},Queue.prototype._checkCapacity=function(size){this._capacity<size&&this._resizeTo(this._capacity<<1)},Queue.prototype._resizeTo=function(capacity){var oldCapacity=this._capacity;this._capacity=capacity;var front=this._front,length=this._length;arrayMove(this,0,this,oldCapacity,front+length&oldCapacity-1)},module.exports=Queue},{}],27:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL,tryConvertToPromise,apiRejection){function race(promises,parent){var maybePromise=tryConvertToPromise(promises);if(maybePromise instanceof Promise)return raceLater(maybePromise);if(promises=util.asArray(promises),null===promises)return apiRejection("expecting an array or an iterable object but got "+util.classString(promises));var ret=new Promise(INTERNAL);parent!==void 0&&ret._propagateFrom(parent,3);for(var fulfill=ret._fulfill,reject=ret._reject,i=0,len=promises.length,val;i<len;++i)(val=promises[i],void 0!==val||i in promises)&&Promise.cast(val)._then(fulfill,reject,void 0,ret,null);return ret}var util=_dereq_("./util"),raceLater=function(promise){return promise.then(function(array){return race(array,promise)})};Promise.race=function(promises){return race(promises,void 0)},Promise.prototype.race=function(){return race(this,void 0)}}},{"./util":36}],28:[function(_dereq_,module){"use strict";module.exports=function(Promise,PromiseArray,apiRejection,tryConvertToPromise,INTERNAL,debug){function ReductionPromiseArray(promises,fn,initialValue,_each){this.constructor$(promises);var domain=getDomain();this._fn=null===domain?fn:util.domainBind(domain,fn),initialValue!==void 0&&(initialValue=Promise.resolve(initialValue),initialValue._attachCancellationCallback(this)),this._initialValue=initialValue,this._currentCancellable=null,this._eachValues=_each===INTERNAL?Array(this._length):0===_each?null:void 0,this._promise._captureStackTrace(),this._init$(void 0,-5)}function completed(valueOrReason,array){this.isFulfilled()?array._resolve(valueOrReason):array._reject(valueOrReason)}function reduce(promises,fn,initialValue,_each){if("function"!=typeof fn)return apiRejection("expecting a function but got "+util.classString(fn));var array=new ReductionPromiseArray(promises,fn,initialValue,_each);return array.promise()}function gotAccum(accum){this.accum=accum,this.array._gotAccum(accum);var value=tryConvertToPromise(this.value,this.array._promise);return value instanceof Promise?(this.array._currentCancellable=value,value._then(gotValue,void 0,void 0,this,void 0)):gotValue.call(this,value)}function gotValue(value){var array=this.array,promise=array._promise,fn=tryCatch(array._fn);promise._pushContext();var ret;ret=void 0===array._eachValues?fn.call(promise._boundValue(),this.accum,value,this.index,this.length):fn.call(promise._boundValue(),value,this.index,this.length),ret instanceof Promise&&(array._currentCancellable=ret);var promiseCreated=promise._popContext();return debug.checkForgottenReturns(ret,promiseCreated,void 0===array._eachValues?"Promise.reduce":"Promise.each",promise),ret}var getDomain=Promise._getDomain,util=_dereq_("./util"),tryCatch=util.tryCatch;util.inherits(ReductionPromiseArray,PromiseArray),ReductionPromiseArray.prototype._gotAccum=function(accum){this._eachValues!==void 0&&null!==this._eachValues&&accum!==INTERNAL&&this._eachValues.push(accum)},ReductionPromiseArray.prototype._eachComplete=function(value){return null!==this._eachValues&&this._eachValues.push(value),this._eachValues},ReductionPromiseArray.prototype._init=function(){},ReductionPromiseArray.prototype._resolveEmptyArray=function(){this._resolve(this._eachValues===void 0?this._initialValue:this._eachValues)},ReductionPromiseArray.prototype.shouldCopyValues=function(){return!1},ReductionPromiseArray.prototype._resolve=function(value){this._promise._resolveCallback(value),this._values=null},ReductionPromiseArray.prototype._resultCancelled=function(sender){return sender===this._initialValue?this._cancel():void(this._isResolved()||(this._resultCancelled$(),this._currentCancellable instanceof Promise&&this._currentCancellable.cancel(),this._initialValue instanceof Promise&&this._initialValue.cancel()))},ReductionPromiseArray.prototype._iterate=function(values){this._values=values;var length=values.length,value,i;if(void 0===this._initialValue?(value=Promise.resolve(values[0]),i=1):(value=this._initialValue,i=0),this._currentCancellable=value,!value.isRejected())for(;i<length;++i){var ctx={accum:null,value:values[i],index:i,length:length,array:this};value=value._then(gotAccum,void 0,void 0,ctx,void 0)}void 0!==this._eachValues&&(value=value._then(this._eachComplete,void 0,void 0,this,void 0)),value._then(completed,completed,void 0,value,this)},Promise.prototype.reduce=function(fn,initialValue){return reduce(this,fn,initialValue,null)},Promise.reduce=function(promises,fn,initialValue,_each){return reduce(promises,fn,initialValue,_each)}}},{"./util":36}],29:[function(_dereq_,module){"use strict";var util=_dereq_("./util"),NativePromise=util.getNativePromise(),schedule;if(util.isNode&&"undefined"==typeof MutationObserver){var GlobalSetImmediate=global.setImmediate,ProcessNextTick=process.nextTick;schedule=util.isRecentNode?function(fn){GlobalSetImmediate.call(global,fn)}:function(fn){ProcessNextTick.call(process,fn)}}else if("function"==typeof NativePromise&&"function"==typeof NativePromise.resolve){var nativePromise=NativePromise.resolve();schedule=function(fn){nativePromise.then(fn)}}else schedule="undefined"==typeof MutationObserver||"undefined"!=typeof window&&window.navigator&&(window.navigator.standalone||window.cordova)?"undefined"==typeof setImmediate?"undefined"==typeof setTimeout?function(){throw new Error("No async scheduler available\n\n    See http://goo.gl/MqrFmX\n")}:function(fn){setTimeout(fn,0)}:function(fn){setImmediate(fn)}:function(){var div=document.createElement("div"),opts={attributes:!0},toggleScheduled=!1,div2=document.createElement("div"),o2=new MutationObserver(function(){div.classList.toggle("foo"),toggleScheduled=!1});o2.observe(div2,opts);var scheduleToggle=function(){toggleScheduled||(toggleScheduled=!0,div2.classList.toggle("foo"))};return function(fn){var o=new MutationObserver(function(){o.disconnect(),fn()});o.observe(div,opts),scheduleToggle()}}();module.exports=schedule},{"./util":36}],30:[function(_dereq_,module){"use strict";module.exports=function(Promise,PromiseArray,debug){function SettledPromiseArray(values){this.constructor$(values)}var PromiseInspection=Promise.PromiseInspection,util=_dereq_("./util");util.inherits(SettledPromiseArray,PromiseArray),SettledPromiseArray.prototype._promiseResolved=function(index,inspection){this._values[index]=inspection;var totalResolved=++this._totalResolved;return!!(totalResolved>=this._length)&&(this._resolve(this._values),!0)},SettledPromiseArray.prototype._promiseFulfilled=function(value,index){var ret=new PromiseInspection;return ret._bitField=33554432,ret._settledValueField=value,this._promiseResolved(index,ret)},SettledPromiseArray.prototype._promiseRejected=function(reason,index){var ret=new PromiseInspection;return ret._bitField=16777216,ret._settledValueField=reason,this._promiseResolved(index,ret)},Promise.settle=function(promises){return debug.deprecated(".settle()",".reflect()"),new SettledPromiseArray(promises).promise()},Promise.prototype.settle=function(){return Promise.settle(this)}}},{"./util":36}],31:[function(_dereq_,module){"use strict";module.exports=function(Promise,PromiseArray,apiRejection){function SomePromiseArray(values){this.constructor$(values),this._howMany=0,this._unwrap=!1,this._initialized=!1}function some(promises,howMany){if((0|howMany)!==howMany||0>howMany)return apiRejection("expecting a positive integer\n\n    See http://goo.gl/MqrFmX\n");var ret=new SomePromiseArray(promises),promise=ret.promise();return ret.setHowMany(howMany),ret.init(),promise}var util=_dereq_("./util"),RangeError=_dereq_("./errors").RangeError,AggregateError=_dereq_("./errors").AggregateError,isArray=util.isArray,CANCELLATION={};util.inherits(SomePromiseArray,PromiseArray),SomePromiseArray.prototype._init=function(){if(this._initialized){if(0===this._howMany)return void this._resolve([]);this._init$(void 0,-5);var isArrayResolved=isArray(this._values);!this._isResolved()&&isArrayResolved&&this._howMany>this._canPossiblyFulfill()&&this._reject(this._getRangeError(this.length()))}},SomePromiseArray.prototype.init=function(){this._initialized=!0,this._init()},SomePromiseArray.prototype.setUnwrap=function(){this._unwrap=!0},SomePromiseArray.prototype.howMany=function(){return this._howMany},SomePromiseArray.prototype.setHowMany=function(count){this._howMany=count},SomePromiseArray.prototype._promiseFulfilled=function(value){return this._addFulfilled(value),this._fulfilled()===this.howMany()&&(this._values.length=this.howMany(),1===this.howMany()&&this._unwrap?this._resolve(this._values[0]):this._resolve(this._values),!0)},SomePromiseArray.prototype._promiseRejected=function(reason){return this._addRejected(reason),this._checkOutcome()},SomePromiseArray.prototype._promiseCancelled=function(){return this._values instanceof Promise||null==this._values?this._cancel():(this._addRejected(CANCELLATION),this._checkOutcome())},SomePromiseArray.prototype._checkOutcome=function(){if(this.howMany()>this._canPossiblyFulfill()){for(var e=new AggregateError,i=this.length();i<this._values.length;++i)this._values[i]!==CANCELLATION&&e.push(this._values[i]);return 0<e.length?this._reject(e):this._cancel(),!0}return!1},SomePromiseArray.prototype._fulfilled=function(){return this._totalResolved},SomePromiseArray.prototype._rejected=function(){return this._values.length-this.length()},SomePromiseArray.prototype._addRejected=function(reason){this._values.push(reason)},SomePromiseArray.prototype._addFulfilled=function(value){this._values[this._totalResolved++]=value},SomePromiseArray.prototype._canPossiblyFulfill=function(){return this.length()-this._rejected()},SomePromiseArray.prototype._getRangeError=function(count){var message="Input array must contain at least "+this._howMany+" items but contains only "+count+" items";return new RangeError(message)},SomePromiseArray.prototype._resolveEmptyArray=function(){this._reject(this._getRangeError(0))},Promise.some=function(promises,howMany){return some(promises,howMany)},Promise.prototype.some=function(howMany){return some(this,howMany)},Promise._SomePromiseArray=SomePromiseArray}},{"./errors":12,"./util":36}],32:[function(_dereq_,module){"use strict";module.exports=function(Promise){function PromiseInspection(promise){promise===void 0?(this._bitField=0,this._settledValueField=void 0):(promise=promise._target(),this._bitField=promise._bitField,this._settledValueField=promise._isFateSealed()?promise._settledValue():void 0)}PromiseInspection.prototype._settledValue=function(){return this._settledValueField};var value=PromiseInspection.prototype.value=function(){if(!this.isFulfilled())throw new TypeError("cannot get fulfillment value of a non-fulfilled promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},reason=PromiseInspection.prototype.error=PromiseInspection.prototype.reason=function(){if(!this.isRejected())throw new TypeError("cannot get rejection reason of a non-rejected promise\n\n    See http://goo.gl/MqrFmX\n");return this._settledValue()},isFulfilled=PromiseInspection.prototype.isFulfilled=function(){return 0!=(33554432&this._bitField)},isRejected=PromiseInspection.prototype.isRejected=function(){return 0!=(16777216&this._bitField)},isPending=PromiseInspection.prototype.isPending=function(){return 0==(50397184&this._bitField)},isResolved=PromiseInspection.prototype.isResolved=function(){return 0!=(50331648&this._bitField)};PromiseInspection.prototype.isCancelled=function(){return 0!=(8454144&this._bitField)},Promise.prototype.__isCancelled=function(){return 65536==(65536&this._bitField)},Promise.prototype._isCancelled=function(){return this._target().__isCancelled()},Promise.prototype.isCancelled=function(){return 0!=(8454144&this._target()._bitField)},Promise.prototype.isPending=function(){return isPending.call(this._target())},Promise.prototype.isRejected=function(){return isRejected.call(this._target())},Promise.prototype.isFulfilled=function(){return isFulfilled.call(this._target())},Promise.prototype.isResolved=function(){return isResolved.call(this._target())},Promise.prototype.value=function(){return value.call(this._target())},Promise.prototype.reason=function(){var target=this._target();return target._unsetRejectionIsUnhandled(),reason.call(target)},Promise.prototype._value=function(){return this._settledValue()},Promise.prototype._reason=function(){return this._unsetRejectionIsUnhandled(),this._settledValue()},Promise.PromiseInspection=PromiseInspection}},{}],33:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL){function doGetThen(obj){return obj.then}function getThen(obj){try{return doGetThen(obj)}catch(e){return errorObj.e=e,errorObj}}function isAnyBluebirdPromise(obj){try{return hasProp.call(obj,"_promise0")}catch(e){return!1}}function doThenable(x,then,context){function resolve(value){promise&&(promise._resolveCallback(value),promise=null)}function reject(reason){promise&&(promise._rejectCallback(reason,synchronous,!0),promise=null)}var promise=new Promise(INTERNAL),ret=promise;context&&context._pushContext(),promise._captureStackTrace(),context&&context._popContext();var synchronous=!0,result=util.tryCatch(then).call(x,resolve,reject);return synchronous=!1,promise&&result===errorObj&&(promise._rejectCallback(result.e,!0,!0),promise=null),ret}var util=_dereq_("./util"),errorObj=util.errorObj,isObject=util.isObject,hasProp={}.hasOwnProperty;return function(obj,context){if(isObject(obj)){if(obj instanceof Promise)return obj;var then=getThen(obj);if(then===errorObj){context&&context._pushContext();var ret=Promise.reject(then.e);return context&&context._popContext(),ret}if("function"==typeof then){if(isAnyBluebirdPromise(obj)){var ret=new Promise(INTERNAL);return obj._then(ret._fulfill,ret._reject,void 0,ret,null),ret}return doThenable(obj,then,context)}}return obj}}},{"./util":36}],34:[function(_dereq_,module){"use strict";module.exports=function(Promise,INTERNAL,debug){function HandleWrapper(handle){this.handle=handle}function successClear(value){return clearTimeout(this.handle),value}function failureClear(reason){throw clearTimeout(this.handle),reason}var util=_dereq_("./util"),TimeoutError=Promise.TimeoutError;HandleWrapper.prototype._resultCancelled=function(){clearTimeout(this.handle)};var afterValue=function(value){return delay(+this).thenReturn(value)},delay=Promise.delay=function(ms,value){var ret,handle;return void 0===value?(ret=new Promise(INTERNAL),handle=setTimeout(function(){ret._fulfill()},+ms),debug.cancellation()&&ret._setOnCancel(new HandleWrapper(handle)),ret._captureStackTrace()):(ret=Promise.resolve(value)._then(afterValue,null,null,ms,void 0),debug.cancellation()&&value instanceof Promise&&ret._setOnCancel(value)),ret._setAsyncGuaranteed(),ret};Promise.prototype.delay=function(ms){return delay(ms,this)};var afterTimeout=function(promise,message,parent){var err;err="string"==typeof message?new TimeoutError(message):message instanceof Error?message:new TimeoutError("operation timed out"),util.markAsOriginatingFromRejection(err),promise._attachExtraTrace(err),promise._reject(err),null!=parent&&parent.cancel()};Promise.prototype.timeout=function(ms,message){ms=+ms;var handleWrapper=new HandleWrapper(setTimeout(function(){ret.isPending()&&afterTimeout(ret,message,parent)},ms)),ret,parent;return debug.cancellation()?(parent=this.then(),ret=parent._then(successClear,failureClear,void 0,handleWrapper,void 0),ret._setOnCancel(handleWrapper)):ret=this._then(successClear,failureClear,void 0,handleWrapper,void 0),ret}}},{"./util":36}],35:[function(_dereq_,module){"use strict";module.exports=function(Promise,apiRejection,tryConvertToPromise,createContext,INTERNAL,debug){function thrower(e){setTimeout(function(){throw e},0)}function castPreservingDisposable(thenable){var maybePromise=tryConvertToPromise(thenable);return maybePromise!==thenable&&"function"==typeof thenable._isDisposable&&"function"==typeof thenable._getDisposer&&thenable._isDisposable()&&maybePromise._setDisposable(thenable._getDisposer()),maybePromise}function dispose(resources,inspection){function iterator(){if(i>=len)return ret._fulfill();var maybePromise=castPreservingDisposable(resources[i++]);if(maybePromise instanceof Promise&&maybePromise._isDisposable()){try{maybePromise=tryConvertToPromise(maybePromise._getDisposer().tryDispose(inspection),resources.promise)}catch(e){return thrower(e)}if(maybePromise instanceof Promise)return maybePromise._then(iterator,thrower,null,null,null)}iterator()}var i=0,len=resources.length,ret=new Promise(INTERNAL);return iterator(),ret}function Disposer(data,promise,context){this._data=data,this._promise=promise,this._context=context}function FunctionDisposer(fn,promise,context){this.constructor$(fn,promise,context)}function maybeUnwrapDisposer(value){return Disposer.isDisposer(value)?(this.resources[this.index]._setDisposable(value),value.promise()):value}function ResourceList(length){this.length=length,this.promise=null,this[length-1]=null}var util=_dereq_("./util"),TypeError=_dereq_("./errors").TypeError,inherits=_dereq_("./util").inherits,errorObj=util.errorObj,tryCatch=util.tryCatch,NULL={};Disposer.prototype.data=function(){return this._data},Disposer.prototype.promise=function(){return this._promise},Disposer.prototype.resource=function(){return this.promise().isFulfilled()?this.promise().value():NULL},Disposer.prototype.tryDispose=function(inspection){var resource=this.resource(),context=this._context;void 0!==context&&context._pushContext();var ret=resource===NULL?null:this.doDispose(resource,inspection);return void 0!==context&&context._popContext(),this._promise._unsetDisposable(),this._data=null,ret},Disposer.isDisposer=function(d){return null!=d&&"function"==typeof d.resource&&"function"==typeof d.tryDispose},inherits(FunctionDisposer,Disposer),FunctionDisposer.prototype.doDispose=function(resource,inspection){var fn=this.data();return fn.call(resource,resource,inspection)},ResourceList.prototype._resultCancelled=function(){for(var len=this.length,i=0,item;i<len;++i)item=this[i],item instanceof Promise&&item.cancel()},Promise.using=function(){var len=arguments.length;if(2>len)return apiRejection("you must pass at least 2 arguments to Promise.using");var fn=arguments[len-1];if("function"!=typeof fn)return apiRejection("expecting a function but got "+util.classString(fn));var spreadArgs=!0,input;2===len&&Array.isArray(arguments[0])?(input=arguments[0],len=input.length,spreadArgs=!1):(input=arguments,len--);for(var resources=new ResourceList(len),i=0,resource;i<len;++i){if(resource=input[i],Disposer.isDisposer(resource)){var disposer=resource;resource=resource.promise(),resource._setDisposable(disposer)}else{var maybePromise=tryConvertToPromise(resource);maybePromise instanceof Promise&&(resource=maybePromise._then(maybeUnwrapDisposer,null,null,{resources:resources,index:i},void 0))}resources[i]=resource}for(var reflectedResources=Array(resources.length),i=0;i<reflectedResources.length;++i)reflectedResources[i]=Promise.resolve(resources[i]).reflect();var resultPromise=Promise.all(reflectedResources).then(function(inspections){for(var i=0,inspection;i<inspections.length;++i){if(inspection=inspections[i],inspection.isRejected())return errorObj.e=inspection.error(),errorObj;if(!inspection.isFulfilled())return void resultPromise.cancel();inspections[i]=inspection.value()}promise._pushContext(),fn=tryCatch(fn);var ret=spreadArgs?fn.apply(void 0,inspections):fn(inspections),promiseCreated=promise._popContext();return debug.checkForgottenReturns(ret,promiseCreated,"Promise.using",promise),ret}),promise=resultPromise.lastly(function(){var inspection=new Promise.PromiseInspection(resultPromise);return dispose(resources,inspection)});return resources.promise=promise,promise._setOnCancel(resources),promise},Promise.prototype._setDisposable=function(disposer){this._bitField|=131072,this._disposer=disposer},Promise.prototype._isDisposable=function(){return 0<(131072&this._bitField)},Promise.prototype._getDisposer=function(){return this._disposer},Promise.prototype._unsetDisposable=function(){this._bitField&=-131073,this._disposer=void 0},Promise.prototype.disposer=function(fn){if("function"==typeof fn)return new FunctionDisposer(fn,this,createContext());throw new TypeError}}},{"./errors":12,"./util":36}],36:[function(_dereq_,module,exports){"use strict";function tryCatcher(){try{var target=tryCatchTarget;return tryCatchTarget=null,target.apply(this,arguments)}catch(e){return errorObj.e=e,errorObj}}function tryCatch(fn){return tryCatchTarget=fn,tryCatcher}function isPrimitive(val){return null==val||!0===val||!1===val||"string"==typeof val||"number"==typeof val}function isObject(value){return"function"==typeof value||"object"==typeof value&&null!==value}function maybeWrapAsError(maybeError){return isPrimitive(maybeError)?new Error(safeToString(maybeError)):maybeError}function withAppended(target,appendee){var len=target.length,ret=Array(len+1),i;for(i=0;i<len;++i)ret[i]=target[i];return ret[i]=appendee,ret}function getDataPropertyOrDefault(obj,key,defaultValue){if(es5.isES5){var desc=Object.getOwnPropertyDescriptor(obj,key);if(null!=desc)return null==desc.get&&null==desc.set?desc.value:defaultValue}else return{}.hasOwnProperty.call(obj,key)?obj[key]:void 0}function notEnumerableProp(obj,name,value){if(isPrimitive(obj))return obj;return es5.defineProperty(obj,name,{value:value,configurable:!0,enumerable:!1,writable:!0}),obj}function thrower(r){throw r}function isClass(fn){try{if("function"==typeof fn){var keys=es5.names(fn.prototype),hasMethods=es5.isES5&&1<keys.length,hasMethodsOtherThanConstructor=0<keys.length&&(1!==keys.length||"constructor"!==keys[0]),hasThisAssignmentAndStaticMethods=thisAssignmentPattern.test(fn+"")&&0<es5.names(fn).length;if(hasMethods||hasMethodsOtherThanConstructor||hasThisAssignmentAndStaticMethods)return!0}return!1}catch(e){return!1}}function toFastProperties(obj){function FakeConstructor(){}FakeConstructor.prototype=obj;for(var l=8;l--;)new FakeConstructor;return obj}function isIdentifier(str){return rident.test(str)}function filledRange(count,prefix,suffix){for(var ret=Array(count),i=0;i<count;++i)ret[i]=prefix+i+suffix;return ret}function safeToString(obj){try{return obj+""}catch(e){return"[no string representation]"}}function isError(obj){return obj instanceof Error||null!==obj&&"object"==typeof obj&&"string"==typeof obj.message&&"string"==typeof obj.name}function markAsOriginatingFromRejection(e){try{notEnumerableProp(e,"isOperational",!0)}catch(ignore){}}function originatesFromRejection(e){return null!=e&&(e instanceof Error.__BluebirdErrorTypes__.OperationalError||!0===e.isOperational)}function canAttachTrace(obj){return isError(obj)&&es5.propertyIsWritable(obj,"stack")}function classString(obj){return{}.toString.call(obj)}function copyDescriptors(from,to,filter){for(var keys=es5.names(from),i=0,key;i<keys.length;++i)if(key=keys[i],filter(key))try{es5.defineProperty(to,key,es5.getDescriptor(from,key))}catch(ignore){}}function env(key){return hasEnvVariables?process.env[key]:void 0}function getNativePromise(){if("function"==typeof Promise)try{var promise=new Promise(function(){});if("[object Promise]"==={}.toString.call(promise))return Promise}catch(e){}}function domainBind(self,cb){return self.bind(cb)}var es5=_dereq_("./es5"),canEvaluate="undefined"==typeof navigator,errorObj={e:{}},globalObject="undefined"==typeof self?"undefined"==typeof window?"undefined"==typeof global?this===void 0?null:this:global:window:self,inherits=function(Child,Parent){function T(){for(var propertyName in this.constructor=Child,this.constructor$=Parent,Parent.prototype)hasProp.call(Parent.prototype,propertyName)&&"$"!==propertyName.charAt(propertyName.length-1)&&(this[propertyName+"$"]=Parent.prototype[propertyName])}var hasProp={}.hasOwnProperty;return T.prototype=Parent.prototype,Child.prototype=new T,Child.prototype},inheritedDataKeys=function(){var excludedPrototypes=[Array.prototype,Object.prototype,Function.prototype],isExcludedProto=function(val){for(var i=0;i<excludedPrototypes.length;++i)if(excludedPrototypes[i]===val)return!0;return!1};if(es5.isES5){var getKeys=Object.getOwnPropertyNames;return function(obj){for(var ret=[],visitedKeys=Object.create(null);null!=obj&&!isExcludedProto(obj);){var keys;try{keys=getKeys(obj)}catch(e){return ret}for(var i=0,key;i<keys.length;++i)if(key=keys[i],!visitedKeys[key]){visitedKeys[key]=!0;var desc=Object.getOwnPropertyDescriptor(obj,key);null!=desc&&null==desc.get&&null==desc.set&&ret.push(key)}obj=es5.getPrototypeOf(obj)}return ret}}var hasProp={}.hasOwnProperty;return function(obj){if(isExcludedProto(obj))return[];var ret=[];enumeration:for(var key in obj)if(hasProp.call(obj,key))ret.push(key);else{for(var i=0;i<excludedPrototypes.length;++i)if(hasProp.call(excludedPrototypes[i],key))continue enumeration;ret.push(key)}return ret}}(),thisAssignmentPattern=/this\s*\.\s*\S+\s*=/,rident=/^[a-z$_][a-z$_0-9]*$/i,ensureErrorObject=function(){return"stack"in new Error?function(value){return canAttachTrace(value)?value:new Error(safeToString(value))}:function(value){if(canAttachTrace(value))return value;try{throw new Error(safeToString(value))}catch(err){return err}}}(),asArray=function(v){return es5.isArray(v)?v:null},tryCatchTarget;if("undefined"!=typeof Symbol&&Symbol.iterator){var ArrayFrom="function"==typeof Array.from?function(v){return Array.from(v)}:function(v){for(var ret=[],it=v[Symbol.iterator](),itResult;!(itResult=it.next()).done;)ret.push(itResult.value);return ret};asArray=function(v){if(es5.isArray(v))return v;return null!=v&&"function"==typeof v[Symbol.iterator]?ArrayFrom(v):null}}var isNode="undefined"!=typeof process&&"[object process]"===classString(process).toLowerCase(),hasEnvVariables="undefined"!=typeof process&&"undefined"!=typeof process.env,ret={isClass:isClass,isIdentifier:isIdentifier,inheritedDataKeys:inheritedDataKeys,getDataPropertyOrDefault:getDataPropertyOrDefault,thrower:thrower,isArray:es5.isArray,asArray:asArray,notEnumerableProp:notEnumerableProp,isPrimitive:isPrimitive,isObject:isObject,isError:isError,canEvaluate:canEvaluate,errorObj:errorObj,tryCatch:tryCatch,inherits:inherits,withAppended:withAppended,maybeWrapAsError:maybeWrapAsError,toFastProperties:toFastProperties,filledRange:filledRange,toString:safeToString,canAttachTrace:canAttachTrace,ensureErrorObject:ensureErrorObject,originatesFromRejection:originatesFromRejection,markAsOriginatingFromRejection:markAsOriginatingFromRejection,classString:classString,copyDescriptors:copyDescriptors,hasDevTools:"undefined"!=typeof chrome&&chrome&&"function"==typeof chrome.loadTimes,isNode:isNode,hasEnvVariables:hasEnvVariables,env:env,global:globalObject,getNativePromise:getNativePromise,domainBind:domainBind};ret.isRecentNode=ret.isNode&&function(){var version=process.versions.node.split(".").map(Number);return 0===version[0]&&10<version[1]||0<version[0]}(),ret.isNode&&ret.toFastProperties(process);try{throw new Error}catch(e){ret.lastLineError=e}module.exports=ret},{"./es5":13}]},{},[4])(4)});"undefined"!=typeof window&&null!==window?window.P=window.Promise:"undefined"!=typeof self&&null!==self&&(self.P=self.Promise)}).call(exports,__webpack_require__(31),__webpack_require__(16),__webpack_require__(56).setImmediate)},function(module){module.exports=function(module){return module.webpackPolyfill||(module.deprecate=function(){},module.paths=[],!module.children&&(module.children=[]),Object.defineProperty(module,"loaded",{enumerable:!0,get:function(){return module.l}}),Object.defineProperty(module,"id",{enumerable:!0,get:function(){return module.i}}),module.webpackPolyfill=1),module}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return function(property){var fn=property.getValue();property.setGetter(function(){if(property.ref===this)return fn;var bound=fn.bind(this);return Object.defineProperty(this,property.name,{configurable:!0,enumerable:!1,value:bound}),bound})}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function HotReloadData(name){this.name=name,this.signal=new _Signal2.default}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(decorator,callerModule,hotReloadIndex){return function(classFn){var result=decorator(classFn)||classFn;var hot=callerModule.hot;if(hot){var name="component"+hotReloadIndex,reloader=hot.data&&hot.data[name];hot.accept(),hot.dispose(data=>data[name]=reloader),reloader?(reloader.instance=result,_rAF2.default.push(()=>reloader.signal.triggerNoArgs())):reloader=new HotReloadData(hotReloadIndex),result.hotReloader=reloader}return result}};var _Signal=__webpack_require__(9),_Signal2=_interopRequireDefault(_Signal),_rAF=__webpack_require__(38),_rAF2=_interopRequireDefault(_rAF)},function(module,exports){"use strict";function mergeCustomizer(objectValue,sourceValue,key){return"events"===key?objectValue?objectValue.concat(sourceValue):[].concat(sourceValue):sourceValue}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(className,args){return function(classFn){className&&(classFn.prototype._xrayClassName=className),args&&Object.assign(classFn.prototype,args,mergeCustomizer)}}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var SignalsProperty=exports.SignalsProperty="_signals";const Owner=Symbol("owner");class Signal{constructor(owner){this[Owner]=owner,this.handlers=[]}add(handler){this.handlers.push(handler)}remove(handler){var handlers=this.handlers,index=handlers.indexOf(handler);-1!==index&&handlers.splice(index,1)}trigger(){for(var handlers=this.handlers.slice(),owner=this[Owner],i=0,l=handlers.length,handler;i<l;++i)handler=handlers[i],handler.apply(owner,arguments)}triggerNoArgs(){for(var handlers=this.handlers.slice(),owner=this[Owner],i=0,l=handlers.length;i<l;++i)handlers[i].call(owner)}triggerWithArray(args){for(var handlers=this.handlers.slice(),owner=this[Owner],i=0,l=handlers.length,handler;i<l;++i)handler=handlers[i],handler.apply(owner,args)}static trigger(obj,name){var signals=obj._signals;if(signals&&signals[Owner]===obj){var signal=signals[name];if(signal)return signal.triggerWithArray(Array.prototype.slice.call(arguments,2)),signal}}static triggerNoArgs(obj,name){var signals=obj._signals;if(signals&&signals[Owner]===obj){var signal=signals[name];if(signal)return signal.triggerNoArgs(),signal}}static on(obj,name,handler){var signals=obj._signals;signals&&signals[Owner]===obj||(signals={},signals[Owner]=obj,Object.defineProperty(obj,SignalsProperty,{enumerable:!1,configurable:!1,value:signals}));var signal=signals[name];return signal||(signal=signals[name]=new Signal(obj)),signal.handlers.push(handler),signal}static off(obj,name,handler){var signals=obj._signals;if(signals&&signals[Owner]===obj){var signal=signals[name];signal&&signal.remove(handler)}}static listenTo(thisObj,obj,name,method){var listening=thisObj._listening;listening||(thisObj._listening=listening=[]);var handler=function(){method.apply(thisObj,arguments)};listening.push({obj,name,method,handler}),Signal.on(obj,name,handler)}static stopListening(thisObj,obj,name,method){var listening=thisObj._listening;if(listening)for(var i=0,l=listening.length,signal;i<l;){if(signal=listening[i],obj&&signal.obj!==obj||name&&signal.name!==name||method&&signal.method!==method){++i;continue}Signal.off(signal.obj,signal.name,signal.handler),listening.splice(i,1),--l}}}exports.default=Signal},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(alias){return function(property){const key=property.name;-1!==reservedAttributes.indexOf(key)&&console.warn("\""+key+"\" is a reserved attribute name, and may not work correctly as an @Attribute - please use a different name.");var definedAttributes=property.ref.definedAttributes;property.ref.hasOwnProperty("definedAttributes")||(definedAttributes=definedAttributes?Object.assign({},definedAttributes):{},property.add("definedAttributes",{configurable:!0,enumerable:!1,writable:!0,value:definedAttributes})),definedAttributes[key]=!0,alias&&key!==alias&&(definedAttributes[alias]=!0,property.name=alias,property.add(key,{configurable:!0,enumerable:!1,get(){return this[alias]},set(value){this[alias]=value}})),(0,_Observable2.default)()(property)}};var _Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Observable=__webpack_require__(12),_Observable2=_interopRequireDefault(_Observable);const reservedAttributes=["is","as","ref","define-ref"];for(var prototype=_Component2.default.prototype;prototype;)Object.getOwnPropertyNames(prototype).forEach(key=>{prototype.hasOwnProperty(key)&&reservedAttributes.push(key)}),prototype=Object.getPrototypeOf(prototype)},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Prototype=__webpack_require__(35),_Prototype2=_interopRequireDefault(_Prototype),_Signal=__webpack_require__(9),_Signal2=_interopRequireDefault(_Signal),_Filters=__webpack_require__(36),_Filters2=_interopRequireDefault(_Filters),_UITaskQueue=__webpack_require__(20),_UITaskQueue2=_interopRequireDefault(_UITaskQueue),_TaskQueue=__webpack_require__(21),_TaskQueue2=_interopRequireDefault(_TaskQueue),_Disposable=__webpack_require__(33),_Disposable2=_interopRequireDefault(_Disposable),_ObjectId=__webpack_require__(22),_ObjectId2=_interopRequireDefault(_ObjectId),_Logger=__webpack_require__(28),_Logger2=_interopRequireDefault(_Logger),RunFilters=_Filters2.default.filter,FirstExecutionMarker={},EmptyArray=[],EmptyArrayInUse=!1;const noop=function(){},wrapGetterFunction=function(fn){return"function"==typeof fn?fn:"object"==typeof fn&&"function"==typeof fn.get?fn.get:noop},wrapSetterFunction=function(fn){return"object"==typeof fn&&"function"==typeof fn.set?fn.set:noop};class Binder extends _Disposable2.default{static pushMutator(mutator){Binder.mutatorsStack.push(Binder.mutator),Binder.mutator=mutator}static popMutator(mutator){Binder.mutator===mutator?Binder.mutator=Binder.mutatorsStack.pop():console.error("Trying to pop a mutator that is not in the top of the stack")}static run(bindings,fn,context){var previous=Binder.active;Binder.active=bindings;var track=context&&context.track;track&&(bindings.track=context,_Logger2.default.groupStart("Running "+(context.name||"bindings")));try{return fn.call(context)}finally{track&&(_Logger2.default.groupEnd("Running "+(context.name||"binder")),bindings.track=null),Binder.active=previous}}static recordEvent(obj,eventName){var active=Binder.active;if(active){var track=active.track;if(track){let objName=(0,_ObjectId2.default)(obj)+"-"+(obj.constructor?obj.constructor.name:"Anonymous");_Logger2.default.log("Recording",objName,eventName)}active.push({obj,eventName})}}static recordChange(obj,propertyName,newValue,oldValue){_Signal2.default.trigger(obj,propertyName);var mutator=Binder.mutator;mutator&&mutator.record(obj,propertyName,newValue,oldValue)}constructor(valueGetter,callback=noop,ignoreFirstRun=!1,invalidate=_UITaskQueue2.default,priority=0,disposableParent=null){if(super(),this.previousValue=FirstExecutionMarker,this.bindings=[],this.dirty=!!ignoreFirstRun,this.disposableParent=disposableParent,this.valueGetter=wrapGetterFunction(valueGetter),this.set=wrapSetterFunction(valueGetter),this.callback=callback||noop,invalidate&&invalidate instanceof _TaskQueue2.default){var queue=invalidate,apply=this.apply.bind(this);invalidate=()=>queue.push(apply,priority)}this.invalidate=()=>{if(Binder.active!==this){if(this.track){var error=new Error;Error.captureStackTrace(error),_Logger2.default.log("change detected",window._signal,error.stack)}invalidate?(this.dirty=!0,invalidate()):this.compute()}},ignoreFirstRun?this.get():this.compute()}removeBindings(){var bindings=this.bindings;if(bindings){for(var invalidate=this.invalidate,i=0,l=bindings.length,binding;i<l;++i)binding=bindings[i],binding.ref.remove(invalidate),binding.dispose&&binding.dispose();this.bindings=null}}dispose(){this.removeBindings(),super.dispose()}update(value,invokeCallback=!0){var previousValue=this.previousValue;if(previousValue===FirstExecutionMarker||previousValue!==value)return this.previousValue=value,invokeCallback&&this.callback(value),!0}apply(){if(!this.isDisposed&&this.dirty)return this.compute()}_computeInnerValue(){this.dirty=!1,this.removeBindings();var disposableParent=this.disposableParent;if(!(disposableParent&&disposableParent.isDisposed)){EmptyArrayInUse&&(EmptyArray=[]),EmptyArrayInUse=!0;var bindings=EmptyArray,value=Binder.run(bindings,this.valueGetter,this);if(value=RunFilters(bindings,value),EmptyArrayInUse=!1,!bindings.length)return value;EmptyArray=[];var invalidate=this.invalidate;for(let i=0,l=bindings.length,binding;i<l;++i)binding=bindings[i],binding.ref=_Signal2.default.on(binding.obj,binding.eventName,invalidate);return this.bindings=bindings,value}}compute(){var value=this._computeInnerValue();return this.update(value,!0)}get(){var value=this._computeInnerValue();return this.update(value,!1),value}}exports.default=Binder,Binder.mutatorsStack=[],Binder.active=null,Binder.mutator=null,exports.default=Binder=(0,_Builder2.default)(Binder,{decorators:[(0,_Prototype2.default)({FirstExecutionMarker})]})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return function(property){var key=property.name,hiddenKey="_"+key,init=property.init;if(init)property.add(hiddenKey,{configurable:!0,enumerable:!1,writable:!0,value:PropertyDefaultValue});else if(property.ref[hiddenKey]===PropertyDefaultValue)return;var definedObservables=property.ref.definedObservables;property.ref.hasOwnProperty("definedObservables")||(definedObservables=definedObservables?Object.assign({},definedObservables):{},property.add("definedObservables",{configurable:!0,enumerable:!1,writable:!0,value:definedObservables})),definedObservables[key]=!0,property.define({configurable:!0,enumerable:!1,get(){_Binder2.default.active&&BinderRecordEvent(this,key);var value=this[hiddenKey];return value===PropertyDefaultValue&&(value=this[hiddenKey]=init.call(this)),value},set(value){var oldValue=this[hiddenKey];oldValue===PropertyDefaultValue&&(oldValue=this[hiddenKey]=init.call(this));oldValue===value||(this[hiddenKey]=value,BinderRecordChange(this,key,value,oldValue))}})}};var _Binder=__webpack_require__(11),_Binder2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_Binder);const BinderRecordEvent=_Binder2.default.recordEvent,BinderRecordChange=_Binder2.default.recordChange,PropertyDefaultValue={defaultValue:!0}},function(module,exports){"use strict";function debug(...params){"debug"!=_logLevel||console.debug(...params)}function warn(...params){"debug"!=_logLevel||console.warn(...params)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.setLogLevel=function(debug){_logLevel=debug?"debug":"release"},exports.debug=debug,exports.warn=warn,exports.error=function(...params){console.error(...params)};let _logLevel="release"},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component);class IfComponent{static makeConditionReader(props){var getCondition=props&&props.getCondition;return getCondition?data=>!!getCondition(data):void 0}static make({props,blocks}){function updateIf(f,data,signals,invalidate,condition,firstRun,fromCache){if(data.$_signals=signals,data.$_invalidate=invalidate,firstRun){data.$_savedScope=f.scope,data.$_value=condition;let template=condition?trueTemplate:falseTemplate;if(template){let view=template.make(f);view.$_parent=data,view.v0=condition,data.$_view=view,template.run(f,view)}else data.$_placeholder=f.pushCommentNode(placeholder);return}if(fromCache&&(data.$_savedScope=f.scope),condition===data.$_value){if(fromCache){let view=data.$_view;view&&view.$_disposed&&view.template.reuse(f,view)}return}data.$_value=condition;let template=condition?trueTemplate:falseTemplate;var previousView=data.$_view;if(previousView||template){var savedScope=f.pushScope(data.$_savedScope);if(previousView?(f.gotoAfterView(previousView),previousView.template.cache(f,previousView),data.$_view=null):(f.gotoAfterNode(data.$_placeholder),f.removeNode(data.$_placeholder),data.$_placeholder=null),template){var view=template.make(f);view.$_parent=data,view.v0=condition,data.$_view=view,template.run(f,view)}else data.$_placeholder?f.pushNode(data.$_placeholder):data.$_placeholder=f.pushCommentNode(placeholder);f.restoreScope(savedScope)}}var templates=_Component2.default.attachBlockTemplates(blocks),trueTemplate=templates.children||templates.if_true,falseTemplate=templates.if_false||templates["else"],readCondition=this.makeConditionReader(props);if(!readCondition||!trueTemplate&&!falseTemplate)return _Template2.default.EmptyTemplate;var placeholder=this.placeholder;return _Template2.default.make({render(f,data){f.runBinder(readCondition,updateIf,data,!0)},reuse(f,data){f.runBinder(readCondition,updateIf,data,!1)},dispose(f,data){f.removeSignals(data.$_signals,data.$_invalidate);var view=data.$_view;view&&view.template.dispose(f,view)},move(f,data){var view=data.$_view;view?view.template.move(f,view):f.pushNode(data.$_placeholder)},firstChild(f,data){var view=data.$_view;return view?view.template.firstChild(f,view):data.$_placeholder},lastChild(f,data){var view=data.$_view;return view?view.template.lastChild(f,view):data.$_placeholder}})}}exports.default=IfComponent,IfComponent.placeholder="empty if"},function(module,exports,__webpack_require__){"use strict";function localize(key,...args){let dictionary=DICTIONARIES[_locale]||DICTIONARIES[DEFAULT_LOCALE],translated=(0,_get2.default)(dictionary,key);return translated||((0,_log.warn)(`[cc-photos-importer] No translation for key "${key}"`),translated=key),_expand(translated,...args)}function localizeHelpxLink(url){let region=LOCALE_TO_REGION[_locale]||_locale;return url.replace("helpx.adobe.com",`helpx.adobe.com/${region}`)}function _expand(translation,...args){return translation.replace(/{(\d)}/g,(match,substring)=>{let index=Number.parseInt(substring,10);return Number.isNaN(index)?match:args[index]})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.localize=localize,exports.setLocale=function(locale){locale&&2!==locale.length&&(locale.match(/^zh[-_]/)?locale=locale.replace("_","-"):locale=locale.split(/[-_]/)[0]),_locale=locale||DEFAULT_LOCALE},exports.localizeHelpxLink=localizeHelpxLink;var _log=__webpack_require__(13),_get=__webpack_require__(46),_get2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_get);const DEFAULT_LOCALE="en",DICTIONARIES=function(){let languageContext=__webpack_require__(95);return(0,_log.debug)(`[cc-photos-importer] Load dictionaries for ${languageContext.length} languages`),languageContext.keys().reduce((messageMap,key)=>{let language=key.match(/^\.\/(.*)\/.*\.json$/)[1],dictionary=languageContext(key);return messageMap[language]=dictionary,messageMap},{})}(),LOCALE_TO_REGION={cs:"cz",nb:"no",da:"dk",sv:"se",ko:"kr","zh-TW":"tw","zh-CN":"cn",ja:"jp"};let _locale=DEFAULT_LOCALE},function(module){var g=function(){return this}();try{g=g||Function("return this")()||(1,eval)("this")}catch(e){"object"==typeof window&&(g=window)}module.exports=g},function(module){var core=module.exports={version:"2.5.4"};"number"==typeof __e&&(__e=core)},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(26)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Disposable=__webpack_require__(33),_Disposable2=_interopRequireDefault(_Disposable),_Deprecated=__webpack_require__(34),_Deprecated2=_interopRequireDefault(_Deprecated),_Signal=__webpack_require__(9),_Signal2=_interopRequireDefault(_Signal),_Binder=__webpack_require__(11),_Binder2=_interopRequireDefault(_Binder),_CollectionBinder=__webpack_require__(88),_CollectionBinder2=_interopRequireDefault(_CollectionBinder),_UITaskQueue=__webpack_require__(20),_UITaskQueue2=_interopRequireDefault(_UITaskQueue);const noop=function(){};class SignalDispatcher extends _Disposable2.default{watch(valueGetter,callback=noop,ignoreFirstRun=!1,invalidate=_UITaskQueue2.default,priority=this.$_depth||0){return this.link(new _Binder2.default(valueGetter,callback,ignoreFirstRun,invalidate,priority,this))}watchCollection(valueGetter,callback=noop,ignoreFirstRun=!1,invalidate=_UITaskQueue2.default,priority=this.$_depth||0){return this.link(new _CollectionBinder2.default(valueGetter,callback,ignoreFirstRun,invalidate,priority,this))}multiWatch(valueGetters,callback=noop,ignoreFirstRun=!1,invalidate=_UITaskQueue2.default,priority=this.$_depth||0){return this.link(new _Binder2.default(()=>valueGetters.map(fn=>fn()),result=>callback.apply(null,result),ignoreFirstRun,invalidate,priority,this))}defineObservable(key,defaultValue){if(this.hasOwnProperty(key))return void(this[key]=defaultValue);var hiddenKey="_"+key;this[hiddenKey]=defaultValue;var self=this;Object.defineProperty(this,key,{configurable:!0,enumerable:!1,get(){return _Binder2.default.active&&_Binder2.default.recordEvent(self,key),self[hiddenKey]},set(value){var oldValue=self[hiddenKey];oldValue===value||(self[hiddenKey]=value,_Binder2.default.recordChange(self,key,value,oldValue))}})}property(key,defaultValue){return _Deprecated2.default.warn("SignalDispatcher.property()","Use SignalDispatcher.defineObservable() instead."),this.defineObservable(key,defaultValue)}dispose(){this.stopListening(),super.dispose()}trigger(name,...args){if(this.hasOwnProperty(_Signal.SignalsProperty)){var signals=this[_Signal.SignalsProperty],signal=signals[name];signal&&signal.trigger.apply(signal,args)}}on(name,handler){return _Signal2.default.on(this,name,handler)}off(name,handler){return _Signal2.default.off(this,name,handler)}listenTo(obj,name,method){return _Signal2.default.listenTo(this,obj,name,method)}stopListening(obj,name,method){return _Signal2.default.stopListening(this,obj,name,method)}}exports.default=SignalDispatcher},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _NestedTaskQueue=__webpack_require__(64),_NestedTaskQueue2=_interopRequireDefault(_NestedTaskQueue),_rAF=__webpack_require__(38),_rAF2=_interopRequireDefault(_rAF);exports.default=new _NestedTaskQueue2.default(_rAF2.default,"UI Task Queue",100)},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.AfterTaskQueue=void 0;var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_Abstract=__webpack_require__(37),_Abstract2=_interopRequireDefault(_Abstract),_ObjectId=__webpack_require__(22),_ObjectId2=_interopRequireDefault(_ObjectId);class TaskQueue{constructor(){this.running=!1,this.registered=!1,this.itemMap={},this.maxBucket=-1,this.buckets=[],this.bucketMap={}}push(callback,priority,lateBinder){var id=(0,_ObjectId2.default)(callback);priority=+priority||0;var item=this.itemMap[id];if(item){if(item.lateBinder=lateBinder,item.cancel=!1,item.priority!==priority){var bucketItems=item.bucket.items,index=bucketItems.indexOf(item);bucketItems[index]=null,item.priority=priority}else if(!item.executed)return;item.executed=!1}else item={callback,priority,cancel:!1,executed:!1,lateBinder},this.itemMap[id]=item;var bucket=this.bucketMap[priority]||this._makeBucket(priority);this.maxBucket=_Mathmax(this.maxBucket,bucket.index),item.bucket=bucket,bucket.items.push(item),this.registerIfNeeded()}_makeBucket(priority){for(var buckets=this.buckets,i=0,j=buckets.length-1;i<=j;){var mid=_Mathround((i+j)/2);buckets[mid].priority<priority?j=mid-1:i=mid+1}var bucket=this.bucketMap[priority]={priority,items:[],index:i};this.buckets.splice(i,0,bucket),i<=this.maxBucket&&++this.maxBucket;for(var l=buckets.length;i<l;++i)buckets[i].index=i;return bucket}wrap(callback,priority,lateBinder){return()=>this.push(callback,priority||0,lateBinder)}registerIfNeeded(){this.registered||(this.registered=!0,this.register(this.inAfterCall))}get after(){var after=this._after;return after||(after=this._after=new AfterTaskQueue(this)),after}remove(callback){var id=(0,_ObjectId2.default)(callback),item=this.itemMap[id];item&&(item.executed=!1,item.cancel=!0)}execHoisted(hoisted){for(;hoisted.length;){var callback=hoisted.pop();callback.cancel||(callback.executed=!0,callback.callback())}}execCallbacks(hoisted){for(var buckets=this.buckets;0<=this.maxBucket;){var bucket=buckets[this.maxBucket],items=bucket.items;if(!items.length){--this.maxBucket;continue}var callback=items.pop();if(callback&&!callback.cancel){if(callback.lateBinder){hoisted?hoisted.push(callback):hoisted=[callback];continue}callback.executed=!0,callback.callback()}}return hoisted}}exports.default=TaskQueue,exports.default=TaskQueue=(0,_Builder2.default)(TaskQueue,{properties:[{name:"register",decorators:[(0,_Abstract2.default)()],fn:function(){}},{name:"run",decorators:[(0,_Bind2.default)()],fn:function(){if(0<=this.maxBucket){this.running=!0;for(var hoisted=null;0<=this.maxBucket||hoisted;)try{for(;0<=this.maxBucket||hoisted;)hoisted=this.execCallbacks(hoisted),hoisted&&(this.execHoisted(hoisted),hoisted=null)}catch(e){console.error(e),console.error(e.stack)}this.running=!1}this.itemMap={},this.registered=!1;var after=this._after;after&&(this.inAfterCall=!0,after.run(),this.inAfterCall=!1)}},{name:"quickRun",decorators:[(0,_Bind2.default)()],fn:function(){if(0<=this.maxBucket){this.running=!0;for(var hoisted=null;0<=this.maxBucket||hoisted;)hoisted=this.execCallbacks(hoisted),hoisted&&(this.execHoisted(hoisted),hoisted=null);this.running=!1}this.itemMap={},this.registered=!1;var after=this._after;after&&(this.inAfterCall=!0,after.run(),this.inAfterCall=!1)}}]});class AfterTaskQueue extends TaskQueue{constructor(parent){super(),this.parent=parent}register(){this.parent.registerIfNeeded()}}exports.AfterTaskQueue=AfterTaskQueue},function(module,exports){"use strict";function ObjectId(obj){if(!obj||"number"==typeof obj||"string"==typeof obj)return obj;if(!obj.hasOwnProperty(propertyId)){var id="_"+ ++lastId;return Object.defineProperty(obj,propertyId,{enumerable:!1,configurable:!1,writable:!1,value:id}),id}return obj[propertyId]}Object.defineProperty(exports,"__esModule",{value:!0});var lastId=0,propertyId="__object_id__";ObjectId.set=function(obj,id){Object.defineProperty(obj,propertyId,{enumerable:!1,configurable:!1,writable:!1,value:id})},exports.default=ObjectId},function(module){var hasOwnProperty={}.hasOwnProperty;module.exports=function(it,key){return hasOwnProperty.call(it,key)}},function(module){var global=module.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=global)},function(module){module.exports=function(it){return"object"==typeof it?null!==it:"function"==typeof it}},function(module){module.exports=function(exec){try{return!!exec()}catch(e){return!0}}},function(module,exports,__webpack_require__){"use strict";(function(global){Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return"undefined"==typeof window?"undefined"==typeof self?"undefined"==typeof global?{}:global:self:window}()}).call(exports,__webpack_require__(16))},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=class{static log(){console.log.apply(console,arguments)}static assert(){console.assert.apply(console,arguments)}static table(){console.table.apply(console,arguments)}static groupStart(){console.group.apply(console,arguments)}static groupEnd(){console.groupEnd.apply(console,arguments)}}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=class{}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(data,node,ev,previousValue,setterFn,helpers){if(!node._TorqUpdate){if(!setterFn)return ev.preventDefault(),node._TorqUpdate=!0,this.update(node,previousValue),void(node._TorqUpdate=!1);var newValue=this.read(node);if(newValue!==previousValue){if(helpers)for(let i=0,l=helpers.length,helper;i<l;++i)helper=helpers[i],helper&&helper.pre&&helper.pre();var updatedValue=setterFn(data,newValue);if(helpers)for(let i=0,l=helpers.length,helper;i<l;++i)helper=helpers[i],helper&&helper.post&&helper.post();newValue!==updatedValue&&(node._TorqUpdate=!0,this.update(node,updatedValue),node._TorqUpdate=!1)}}}},function(module){function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}function runTimeout(fun){if(cachedSetTimeout===setTimeout)return setTimeout(fun,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(fun,0);try{return cachedSetTimeout(fun,0)}catch(e){try{return cachedSetTimeout.call(null,fun,0)}catch(e){return cachedSetTimeout.call(this,fun,0)}}}function runClearTimeout(marker){if(cachedClearTimeout===clearTimeout)return clearTimeout(marker);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(marker);try{return cachedClearTimeout(marker)}catch(e){try{return cachedClearTimeout.call(null,marker)}catch(e){return cachedClearTimeout.call(this,marker)}}}function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue=currentQueue.concat(queue):queueIndex=-1,queue.length&&drainQueue())}function drainQueue(){if(!draining){var timeout=runTimeout(cleanUpNextTick);draining=!0;for(var len=queue.length;len;){for(currentQueue=queue,queue=[];++queueIndex<len;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,len=queue.length}currentQueue=null,draining=!1,runClearTimeout(timeout)}}function Item(fun,array){this.fun=fun,this.array=array}function noop(){}var process=module.exports={},cachedSetTimeout,cachedClearTimeout;(function(){try{cachedSetTimeout="function"==typeof setTimeout?setTimeout:defaultSetTimout}catch(e){cachedSetTimeout=defaultSetTimout}try{cachedClearTimeout="function"==typeof clearTimeout?clearTimeout:defaultClearTimeout}catch(e){cachedClearTimeout=defaultClearTimeout}})();var queue=[],draining=!1,queueIndex=-1,currentQueue;process.nextTick=function(fun){var args=Array(arguments.length-1);if(1<arguments.length)for(var i=1;i<arguments.length;i++)args[i-1]=arguments[i];queue.push(new Item(fun,args)),1!==queue.length||draining||runTimeout(drainQueue)},Item.prototype.run=function(){this.fun.apply(null,this.array)},process.title="browser",process.browser=!0,process.env={},process.argv=[],process.version="",process.versions={},process.on=noop,process.addListener=noop,process.once=noop,process.off=noop,process.removeListener=noop,process.removeAllListeners=noop,process.emit=noop,process.prependListener=noop,process.prependOnceListener=noop,process.listeners=function(){return[]},process.binding=function(){throw new Error("process.binding is not supported")},process.cwd=function(){return"/"},process.chdir=function(){throw new Error("process.chdir is not supported")},process.umask=function(){return 0}},function(module){"use strict";const upperCaseReplacementFn=(match,x)=>x.toUpperCase();module.exports=function(str){return str.replace(/-+([^-]?)/g,upperCaseReplacementFn)}},function(module,exports){"use strict";function disposeHelper(disposable){return disposable.dispose?void disposable.dispose():void("function"==typeof disposable&&disposable())}Object.defineProperty(exports,"__esModule",{value:!0});exports.default=class{link(disposable){var disposables=this._disposables;return disposables||(disposables=this._disposables=[]),disposables.push(disposable),disposable}unlink(disposable){var disposables=this._disposables;if(disposables){var index=disposables.indexOf(disposable);-1!==index&&disposables.splice(index,1)}}disposeLink(disposable){this.unlink(disposable),disposeHelper(disposable)}dispose(){this.isDisposed=!0;var disposables=this._disposables;if(disposables){this._disposables=null;for(var i=disposables.length-1;0<=i;--i)disposeHelper(disposables[i])}}}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});let loggedWarning={};class Deprecated{static warn(name,message){Deprecated.ignoreWarnings||loggedWarning[name]||(console.warn(name+" is deprecated. "+message),loggedWarning[name]=!0)}}exports.default=Deprecated,Deprecated.ignoreWarnings=!1},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(args,mergeCustomizer){return function(classFn){args&&Object.assign(classFn.prototype,args,mergeCustomizer)}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _PromiseFilter=__webpack_require__(63),_PromiseFilter2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_PromiseFilter),filters=[_PromiseFilter2.default],filtersLength=1;exports.default={add(fn){filters.push(fn),filtersLength=filters.length},remove(fn){var index=filters.indexOf(fn);-1!==index&&filters.splice(index,1),filtersLength=filters.length},filter(bindings,value){for(var i=0,l=filtersLength,result;i<l;++i)if(result=filters[i](bindings,value),result)return result.value;return value}}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return function(property){property.setWritableValue(function(){throw new Error(`Abstract method ${property.name} called on ${property.className}`)})}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.rAFrames=void 0;var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_get2=__webpack_require__(65),_get3=_interopRequireDefault(_get2),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_TaskQueue=__webpack_require__(21),_TaskQueue2=_interopRequireDefault(_TaskQueue),_Global=__webpack_require__(27),_Global2=_interopRequireDefault(_Global),_Time=__webpack_require__(87),_Time2=_interopRequireDefault(_Time),backgroundRequestFrame=function(callback){setTimeout(callback,0)},nativeRequestFrame=_Global2.default.requestAnimationFrame||_Global2.default.webkitRequestAnimationFrame||_Global2.default.mozRequestAnimationFrame||backgroundRequestFrame,defaultRequestFrame=nativeRequestFrame,_superClass;var rAFrames=exports.rAFrames=[];_superClass=_TaskQueue2.default;class RequestAnimationFrame extends _superClass{constructor(...args){var _temp;return _temp=super(...args),this.tickTime=(0,_Time2.default)(),_temp}get background(){return defaultRequestFrame===backgroundRequestFrame}set background(backgroundFrame){defaultRequestFrame=backgroundFrame?backgroundRequestFrame:nativeRequestFrame}register(){defaultRequestFrame.call(_Global2.default,this.run)}request(callback){defaultRequestFrame.call(_Global2.default,callback)}wrapAll(context,...rest){rest.forEach(name=>context[name]=this.wrap(context[name].bind(context)))}wrap(fn){return()=>this.push(fn)}tick(){let delta=(0,_Time2.default)()-this.tickTime;5<=delta&&this.run()}}RequestAnimationFrame=(0,_Builder2.default)(RequestAnimationFrame,{properties:[{name:"run",decorators:[(0,_Bind2.default)()],fn:function(){let startTime=this.tickTime=(0,_Time2.default)();var parentRun=(0,_get3.default)(RequestAnimationFrame.prototype.__proto__||Object.getPrototypeOf(RequestAnimationFrame.prototype),"run",this),endTime,delta;parentRun.call(this),endTime=(0,_Time2.default)(),delta=endTime-startTime,rAFrames.unshift(delta),rAFrames.splice(10,rAFrames.length),delta>16&&console.warn("Long rAF frame-time",delta)}}]}),exports.default=new RequestAnimationFrame},function(module,exports,__webpack_require__){var defined=__webpack_require__(40);module.exports=function(it){return Object(defined(it))}},function(module){module.exports=function(it){if(it==void 0)throw TypeError("Can't call method on  "+it);return it}},function(module,exports,__webpack_require__){var $export=__webpack_require__(73),core=__webpack_require__(17),fails=__webpack_require__(26);module.exports=function(KEY,exec){var fn=(core.Object||{})[KEY]||Object[KEY],exp={};exp[KEY]=exec(fn),$export($export.S+$export.F*fails(function(){fn(1)}),"Object",exp)}},function(module,exports,__webpack_require__){module.exports=!__webpack_require__(18)&&!__webpack_require__(26)(function(){return 7!=Object.defineProperty(__webpack_require__(79)("div"),"a",{get:function(){return 7}}).a})},function(module,exports,__webpack_require__){var isObject=__webpack_require__(25);module.exports=function(it,S){if(!isObject(it))return it;var fn,val;if(S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;if("function"==typeof(fn=it.valueOf)&&!isObject(val=fn.call(it)))return val;if(!S&&"function"==typeof(fn=it.toString)&&!isObject(val=fn.call(it)))return val;throw TypeError("Can't convert object to primitive value")}},function(module){module.exports=function(bitmap,value){return{enumerable:!(1&bitmap),configurable:!(2&bitmap),writable:!(4&bitmap),value:value}}},function(module,exports,__webpack_require__){var IObject=__webpack_require__(83),defined=__webpack_require__(40);module.exports=function(it){return IObject(defined(it))}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(obj,key,defaultValue){let result=obj&&key&&key.replace(/\[/g,".").replace(/\]/g,"").split(".").reduce((o,k)=>(o||{})[k],obj);return void 0===result?defaultValue:result}},function(module,exports){"use strict";function makeLinkedList(prefix){var prevKey=prefix+"_prev",nextKey=prefix+"_next";return class{constructor(){this._first=null,this._last=null}prepend(item){var oldFirst=this._first;this._first=item,item[nextKey]=oldFirst,oldFirst?oldFirst[prevKey]=item:this._last=item}takeFirst(){var item=this._first;return item&&this.remove(item),item}takeLast(){var item=this._last;return item&&this.remove(item),item}remove(item){var prev=item[prevKey],next=item[nextKey];prev?(prev[nextKey]=next,item[prevKey]=null):this._first=next,next?(next[prevKey]=prev,item[nextKey]=null):this._last=prev}}}Object.defineProperty(exports,"__esModule",{value:!0});var GlobalLinkedList=makeLinkedList("$_lruG_"),LocalLinkedList=makeLinkedList("$_lruL_"),DISABLE_CACHING_BEYOND_CAPACITY=!1;class LruCache{static get DISABLE_CACHING_BEYOND_CAPACITY(){return DISABLE_CACHING_BEYOND_CAPACITY}static set DISABLE_CACHING_BEYOND_CAPACITY(isDisabled){DISABLE_CACHING_BEYOND_CAPACITY=isDisabled}constructor(capacity=20){this._byId={},this._count=0,this._global=new GlobalLinkedList,this._capacity=capacity}init(id){this._byId[id]=new LocalLinkedList}take(id){var item=this._byId[id].takeFirst();return item&&(--this._count,this._global.remove(item)),item}put(id,obj){if(!(DISABLE_CACHING_BEYOND_CAPACITY&&this._count>=this._capacity)){var localList=this._byId[id];if(localList.prepend(obj),obj.$_lru_list=localList,++this._count,this._global.prepend(obj),this._count>this._capacity){--this._count;var item=this._global.takeLast();item.$_lru_list.remove(item),item.$_lru_list=null}}}removeAll(id){for(var _global=this._global,item=this._byId[id]._first;item;item=item.$_lruL_next)--this._count,_global.remove(item);this.init(id)}}exports.default=LruCache},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.createElement=function(document,type){var result=document.createElement(type);return!1,result},exports.createElementWithType=function(document,type,typeExtension){var result=document.createElement(type,typeExtension);return!1,result},exports.injectScript=function(url,attributes=null){return new Promise((resolve,reject)=>{var scriptTag=document.createElement("script");if(scriptTag.onload=resolve,scriptTag.onerror=reject,scriptTag.src=url,attributes)for(let name in attributes){const value=attributes[name];scriptTag.setAttribute(name,value)}var parent=document.head||document.body;parent.appendChild(scriptTag)})},exports.createDocumentFragment=function(document){var result=document.createDocumentFragment();return!1,result},exports.createElementNS=function(document,namespaceURI,type){var result=document.createElementNS(namespaceURI,type);return!1,result},exports.createComment=function(document,text){var result=document.createComment(text);return!1,result},exports.createTextNode=function(document,text){var result=document.createTextNode(text);return!1,result},exports.appendChild=function(parent,child){!1,parent.appendChild(child),!1},exports.removeChildren=function(parent){!1,parent.textContent="",!1},exports.insertBefore=function(parent,child,before){return before?void(!1,parent.insertBefore(child,before),!1):(!1,parent.appendChild(child),void 0)},exports.removeNode=function(node){if(!1,node.remove)node.remove();else{var parent=node.parentNode;parent&&parent.removeChild(node)}},exports.getNodeName=function(node){return node.nodeName.toLowerCase()},exports.getAttribute=function(node,name){return node.getAttribute(name)},exports.setAttribute=function(node,name,value){!1,node.setAttribute(name,value),!1},exports.removeAttribute=function(node,name){!1,node.removeAttribute(name),!1},exports.setAttributeNS=function(node,namespaces,name,value){var index=name.indexOf("_");if(0<=index){var ns=name.substr(0,index),attr=name.substr(index+1),nsURI=namespaces[ns];if(nsURI)return void node.setAttributeNS(nsURI,attr,value)}node.setAttribute(name,value)},exports.addEventListener=function(node,name,callback,capture=!1){return node.addEventListener(name,callback,capture),()=>node.removeEventListener(name,callback,capture)},exports.removeEventListener=function(node,name,callback,capture=!1){node.removeEventListener(name,callback,capture)},exports.isChecked=function(node){return node.checked},exports.setIsChecked=function(node,value){node.checked=value},exports.getValue=function(node){return node.value},exports.setValue=function(node,value){node.value=value},exports.focus=function(node){return node.focus()};var SvgNS=exports.SvgNS="http://www.w3.org/2000/svg",XmlNS=exports.XmlNS="http://www.w3.org/XML/1998/namespace",XlinkNS=exports.XlinkNS="http://www.w3.org/1999/xlink",SvgNamespaces=exports.SvgNamespaces={xmlns:SvgNS,xml:XmlNS,xlink:XlinkNS}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function extend(opts){_internalAppendChild=opts.appendChild||_internalAppendChild,_internalInsertBefore=opts.insertBefore||_internalInsertBefore,opts.transform&&(htmlFactory=opts.transform(htmlFactory))}Object.defineProperty(exports,"__esModule",{value:!0}),exports.extend=extend,exports.registerAttribute=function(name,callback){htmlAttributes[(0,_CompilerStrings.makeAttrName)(name)]=callback},exports.default=function(scope,parentNode,nextNode){return htmlFactory(scope,parentNode,nextNode)};var _Factory=__webpack_require__(139),_Factory2=_interopRequireDefault(_Factory),_CheckedAttribute=__webpack_require__(140),_CheckedAttribute2=_interopRequireDefault(_CheckedAttribute),_ClassAttribute=__webpack_require__(141),_ClassAttribute2=_interopRequireDefault(_ClassAttribute),_ClassBooleanAttribute=__webpack_require__(142),_ClassBooleanAttribute2=_interopRequireDefault(_ClassBooleanAttribute),_IndeterminateAttribute=__webpack_require__(143),_IndeterminateAttribute2=_interopRequireDefault(_IndeterminateAttribute),_StyleAttribute=__webpack_require__(144),_StyleAttribute2=_interopRequireDefault(_StyleAttribute),_StylePropertyAttribute=__webpack_require__(147),_StylePropertyAttribute2=_interopRequireDefault(_StylePropertyAttribute),_TextContentAttribute=__webpack_require__(148),_TextContentAttribute2=_interopRequireDefault(_TextContentAttribute),_ToggleAttribute=__webpack_require__(149),_ToggleAttribute2=_interopRequireDefault(_ToggleAttribute),_ValueAttribute=__webpack_require__(150),_ValueAttribute2=_interopRequireDefault(_ValueAttribute),_NodeTemplates=__webpack_require__(3),_CompilerStrings=__webpack_require__(50),_Logger=__webpack_require__(28),_Logger2=_interopRequireDefault(_Logger);const ClassBooleanMatcher=/^class-(.+)$/,StylePropMatcher=/^style-(.+)$/;var _internalAppendChild=function(parent,node){parent.appendChild(node)},_internalInsertBefore=function(parent,node,next){parent.insertBefore(node,next)},htmlAttributes={_class:_ClassAttribute2.default,_text$45content:_TextContentAttribute2.default,_value:_ValueAttribute2.default,_checked:_CheckedAttribute2.default,_indeterminate:_IndeterminateAttribute2.default,_disabled:_ToggleAttribute2.default,_readonly:_ToggleAttribute2.default,_required:_ToggleAttribute2.default,_multiple:_ToggleAttribute2.default,_autofocus:_ToggleAttribute2.default,_hidden:_ToggleAttribute2.default,_ismap:_ToggleAttribute2.default,_style:_StyleAttribute2.default},htmlFactory=function(scope,parentNode,nextNode){var f=new _Factory2.default(scope,parentNode,nextNode,htmlAttributes),dom=f.dom={},stats=null,document=parentNode?parentNode.ownerDocument:window.document;return f.getDocument=function(){return document},f.makeStats=function(){return stats={remove:0,appendChild:0,insertBefore:0,addEventListener:0,removeEventListener:0,setAttribute:0,removeAttribute:0,textContent:0,nodeValue:0},stats},f.takeStats=function(){var _stats=stats;return stats=null,_stats},f.logStats=function(){var log=[];stats.remove&&log.push({name:"remove",value:stats.remove}),stats.appendChild&&log.push({name:"appendChild",value:stats.appendChild}),stats.insertBefore&&log.push({name:"insertBefore",value:stats.insertBefore}),stats.addEventListener&&log.push({name:"addEventListener",value:stats.addEventListener}),stats.removeEventListener&&log.push({name:"removeEventListener",value:stats.removeEventListener}),stats.setAttribute&&log.push({name:"setAttribute",value:stats.setAttribute}),stats.removeAttribute&&log.push({name:"removeAttribute",value:stats.removeAttribute}),stats.textContent&&log.push({name:"textContent",value:stats.textContent}),stats.nodeValue&&log.push({name:"nodeValue",value:stats.nodeValue}),_Logger2.default.table(log)},f.ensureAttr=function(attrName){var classMatch=attrName.match(ClassBooleanMatcher);if(classMatch)return _ClassBooleanAttribute2.default.make(classMatch[1]);var styleMatch=attrName.match(StylePropMatcher);return styleMatch?_StylePropertyAttribute2.default.make(styleMatch[1]):this.setAttr},f.makeCommentNode=function(text){return document.createComment(text)},f.makeCustomNode=f.makeNode=function(name){return document.createElement(name)},f.makeCustomNodeWithType=f.makeNodeWithType=function(name,isType){return document.createElement(name,isType)},f.makeTextNode=function(text){return document.createTextNode(text)},f.setTextContent=function(node,text){node.textContent=text,stats&&++stats.textContent},f.setNodeValue=function(textNode,text){textNode.nodeValue=text,stats&&++stats.nodeValue},f.appendNode=function(parent,node){_internalAppendChild(parent,node),stats&&++stats.appendChild},f.insertBeforeNode=function(node,nextNode){_internalInsertBefore(nextNode.parentNode,node,nextNode),stats&&++stats.insertBefore},f.appendTextNode=function(parent,text){this.appendNode(parent,document.createTextNode(text))},f.replaceNode=function(oldNode,newNode){oldNode.parentNode.replaceChild(newNode,oldNode)},f.makeFragment=function(){return document.createDocumentFragment()},f.removeNode=document.body.remove?function(node){node.remove(),stats&&++stats.remove}:function(node){var parentNode=node.parentNode;parentNode&&parentNode.removeChild(node)},f.setAttr=function(node,key,value){void 0===value||null===value?node.removeAttribute(key):node.setAttribute(key,value),stats&&++stats.setAttribute},f.removeAttr=function(node,key,value){node.removeAttribute(key,value),stats&&++stats.removeAttribute},f.attachEvent=function(node,key,fn,capture){node.addEventListener(key,fn,capture),stats&&++stats.addEventListener},f.detachEvent=function(node,key,fn,capture){node.removeEventListener(key,fn,capture),stats&&++stats.removeEventListener},f.pushTextNode=function(text){return this.pushNode(document.createTextNode(text))},f.pushTemplateNode=function(tpl){var tplNode=dom[tpl]||(dom[tpl]=_NodeTemplates.templates[tpl](this)),node=document.createClone?document.createClone(tplNode):tplNode.cloneNode(!0);return this.pushNode(node)},f.pushCommentNode=function(text){return this.pushNode(document.createComment(text))},f.pushNode=function(node){var{parentNode,nextNode}=this;return nextNode?(_internalInsertBefore(parentNode,node,nextNode),stats&&++stats.insertBefore):(_internalAppendChild(parentNode,node),stats&&++stats.appendChild),node},f}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.makeAttrName=function(name){return"_"+name.replace(/-/g,"$45").replace(/:/g,"$58")}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.appendClassNames=function(node,classNames){replaceClassNames(node,null,classNames)};var hasClassList="undefined"==typeof document||"classList"in document.createElement("_"),replaceClassNamesImpl,replaceSingleClassNameImpl,addClassImpl,removeClassImpl;hasClassList?(replaceClassNamesImpl=function(node,before,after){var classList=node.classList;if(before)if("string"==typeof before)classList.remove(before);else for(let i=0,l=before.length;i<l;++i)classList.remove(before[i]);if(after)for(let i=0,l=after.length;i<l;++i)classList.add(after[i]);return after},replaceSingleClassNameImpl=function(node,before,after){var classList=node.classList;if(before)if("string"==typeof before)classList.remove(before);else for(var i=0,l=before.length;i<l;++i)classList.remove(before[i]);return after&&classList.add(after),after},addClassImpl=function(node,className){node.classList.add(className)},removeClassImpl=function(node,className){node.classList.remove(className)}):(replaceClassNamesImpl=function(node,before,after){var classes=new Set(node.className.split(" "));if(before)if("string"==typeof before)classes.delete(before);else for(let item of before)classes.delete(item);if(after)for(let item of after)classes.add(item);return node.setAttribute("class",[...classes].join(" ")),after},replaceSingleClassNameImpl=function(node,before,after){var classes=new Set(node.className.split(" "));if(before)if("string"==typeof before)classes.delete(before);else for(let item of before)classes.delete(item);return after&&classes.add(after),node.setAttribute("class",[...classes].join(" ")),after},addClassImpl=function(node,className){var existingValues=node.className.split(" ");-1===existingValues.indexOf(className)&&(existingValues.push(className),node.setAttribute("class",existingValues.join(" ")))},removeClassImpl=function(node,className){var existingValues=node.className.split(" "),index=existingValues.indexOf(className);-1!==index&&(existingValues.splice(index,1),node.setAttribute("class",existingValues.join(" ")))});var replaceClassNames=exports.replaceClassNames=replaceClassNamesImpl,replaceSingleClassName=exports.replaceSingleClassName=replaceSingleClassNameImpl,addClass=exports.addClass=addClassImpl,removeClass=exports.removeClass=removeClassImpl},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function unitForProperty(key,value){return"number"==typeof value?getUnitProperty(key):""}function getUnitProperty(key){if(pxProperties.test(key))return"px";return degProperties.test(key)?"deg":""}function isUnitProperty(key){return""!==getUnitProperty(key)}function transformValueForProperty(key,value){if(key=(0,_camelCaseHyphens2.default)(key),isUnitProperty(key)){if("string"==typeof value){var match=value.match(/^(\d+(?:\.\d+)?)(.*)$/),unit=null;match&&(value=match[1],unit=match[2],value=_Mathround(100*parseFloat(value))/100)}if(unit&&""!==unit||(unit=unitForProperty(key,value)),unit)return value+unit}return value}Object.defineProperty(exports,"__esModule",{value:!0}),exports.degProperties=exports.pxProperties=void 0,exports.unitForProperty=unitForProperty,exports.getUnitProperty=getUnitProperty,exports.isUnitProperty=isUnitProperty,exports.transformValueForProperty=transformValueForProperty,exports.valueTransformerForProperty=function(key){var defaultUnit=getUnitProperty((0,_camelCaseHyphens2.default)(key));return defaultUnit?value=>{if("string"==typeof value){var match=value.match(/^(\d+(?:\.\d+)?)(.*)$/),unit=null;match&&(value=match[1],unit=match[2],value=_Mathround(100*parseFloat(value))/100)}return value?(unit||"number"!=typeof value||(unit=defaultUnit),unit&&(value+=unit),value):0}:void 0},exports.transformPropertyName=function(key){return propertyNameCache.get(key)},exports.transformProperties=function(properties){var transformedProperties={};for(let key in properties){const value=properties[key];transformedProperties[propertyNameCache.get(key)]=transformValueForProperty(key,value)}return transformedProperties};var _StringCache=__webpack_require__(146),_StringCache2=_interopRequireDefault(_StringCache),_camelCaseHyphens=__webpack_require__(32),_camelCaseHyphens2=_interopRequireDefault(_camelCaseHyphens),pxProperties=exports.pxProperties=new RegExp("^("+"backgroundPositionX|backgroundPositionY|borderRadius|borderWidth|bottom|height|left|marginBottom|marginLeft|marginRight|marginTop|maxHeight|maxWidth|minHeight|minWidth|paddingBottom|paddingLeft|paddingRight|paddingTop|perspectiveX|perspectiveY|perspectiveZ|right|top|translateX|translateY|translateZ|width"+")$"),degProperties=exports.degProperties=new RegExp("^("+"rotate|rotateX|rotateY|rotateZ|skew|skewX|skewY|skewZ"+")$"),prefixes=["","webkit-","o-","ms-","moz-"],globalStyle=window.getComputedStyle(document.createElement("div")),propertyNameCache=new _StringCache2.default(propertyName=>{for(var i=0,l=prefixes.length;i<l;++i){let cssName=(0,_camelCaseHyphens2.default)(prefixes[i]+propertyName);if(globalStyle.hasOwnProperty(cssName))return cssName}return propertyName})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _SignalDispatcher=__webpack_require__(19),_SignalDispatcher2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_SignalDispatcher);class Scope extends _SignalDispatcher2.default{fork(){var Fork=function(){};return Fork.prototype=this,this.link(new Fork(this))}clean(){for(var prop in this)this.hasOwnProperty(prop)&&"_"!==prop[0]&&delete this[prop]}}exports.default=Scope},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _ccPhotosImporter=__webpack_require__(55),_ccPhotosImporter2=_interopRequireDefault(_ccPhotosImporter),_Binder=__webpack_require__(11),_Binder2=_interopRequireDefault(_Binder),_Scope=__webpack_require__(53),_Scope2=_interopRequireDefault(_Scope),_Application=__webpack_require__(171),_Application2=_interopRequireDefault(_Application);exports.default={Importer:_ccPhotosImporter2.default,Binder:_Binder2.default,Scope:_Scope2.default,Application:_Application2.default}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _bluebird=__webpack_require__(4),_bluebird2=_interopRequireDefault(_bluebird),_ImporterContainer=__webpack_require__(58),_ImporterContainer2=_interopRequireDefault(_ImporterContainer);_bluebird2.default.config({warnings:!0,longStackTraces:!0,cancellation:!0}),exports.default=_ImporterContainer2.default},function(module,exports,__webpack_require__){(function(global){function Timeout(id,clearFn){this._id=id,this._clearFn=clearFn}var apply=Function.prototype.apply;exports.setTimeout=function(){return new Timeout(apply.call(setTimeout,window,arguments),clearTimeout)},exports.setInterval=function(){return new Timeout(apply.call(setInterval,window,arguments),clearInterval)},exports.clearTimeout=exports.clearInterval=function(timeout){timeout&&timeout.close()},Timeout.prototype.unref=Timeout.prototype.ref=function(){},Timeout.prototype.close=function(){this._clearFn.call(window,this._id)},exports.enroll=function(item,msecs){clearTimeout(item._idleTimeoutId),item._idleTimeout=msecs},exports.unenroll=function(item){clearTimeout(item._idleTimeoutId),item._idleTimeout=-1},exports._unrefActive=exports.active=function(item){clearTimeout(item._idleTimeoutId);var msecs=item._idleTimeout;0<=msecs&&(item._idleTimeoutId=setTimeout(function(){item._onTimeout&&item._onTimeout()},msecs))},__webpack_require__(57),exports.setImmediate="undefined"!=typeof self&&self.setImmediate||"undefined"!=typeof global&&global.setImmediate||this&&this.setImmediate,exports.clearImmediate="undefined"!=typeof self&&self.clearImmediate||"undefined"!=typeof global&&global.clearImmediate||this&&this.clearImmediate}).call(exports,__webpack_require__(16))},function(module,exports,__webpack_require__){(function(global,process){(function(global){"use strict";function setImmediate(callback){"function"!=typeof callback&&(callback=new Function(""+callback));for(var args=Array(arguments.length-1),i=0;i<args.length;i++)args[i]=arguments[i+1];var task={callback:callback,args:args};return tasksByHandle[nextHandle]=task,registerImmediate(nextHandle),nextHandle++}function clearImmediate(handle){delete tasksByHandle[handle]}function run(task){var callback=task.callback,args=task.args;switch(args.length){case 0:callback();break;case 1:callback(args[0]);break;case 2:callback(args[0],args[1]);break;case 3:callback(args[0],args[1],args[2]);break;default:callback.apply(void 0,args);}}function runIfPresent(handle){if(currentlyRunningATask)setTimeout(runIfPresent,0,handle);else{var task=tasksByHandle[handle];if(task){currentlyRunningATask=!0;try{run(task)}finally{clearImmediate(handle),currentlyRunningATask=!1}}}}function installNextTickImplementation(){registerImmediate=function(handle){process.nextTick(function(){runIfPresent(handle)})}}function canUsePostMessage(){if(global.postMessage&&!global.importScripts){var postMessageIsAsynchronous=!0,oldOnMessage=global.onmessage;return global.onmessage=function(){postMessageIsAsynchronous=!1},global.postMessage("","*"),global.onmessage=oldOnMessage,postMessageIsAsynchronous}}function installPostMessageImplementation(){var messagePrefix="setImmediate$"+Math.random()+"$",onGlobalMessage=function(event){event.source===global&&"string"==typeof event.data&&0===event.data.indexOf(messagePrefix)&&runIfPresent(+event.data.slice(messagePrefix.length))};global.addEventListener?global.addEventListener("message",onGlobalMessage,!1):global.attachEvent("onmessage",onGlobalMessage),registerImmediate=function(handle){global.postMessage(messagePrefix+handle,"*")}}function installMessageChannelImplementation(){var channel=new MessageChannel;channel.port1.onmessage=function(event){var handle=event.data;runIfPresent(handle)},registerImmediate=function(handle){channel.port2.postMessage(handle)}}function installReadyStateChangeImplementation(){var html=doc.documentElement;registerImmediate=function(handle){var script=doc.createElement("script");script.onreadystatechange=function(){runIfPresent(handle),script.onreadystatechange=null,html.removeChild(script),script=null},html.appendChild(script)}}function installSetTimeoutImplementation(){registerImmediate=function(handle){setTimeout(runIfPresent,0,handle)}}if(!global.setImmediate){var nextHandle=1,tasksByHandle={},currentlyRunningATask=!1,doc=global.document,attachTo=Object.getPrototypeOf&&Object.getPrototypeOf(global),registerImmediate;attachTo=attachTo&&attachTo.setTimeout?attachTo:global,"[object process]"==={}.toString.call(global.process)?installNextTickImplementation():canUsePostMessage()?installPostMessageImplementation():global.MessageChannel?installMessageChannelImplementation():doc&&"onreadystatechange"in doc.createElement("script")?installReadyStateChangeImplementation():installSetTimeoutImplementation(),attachTo.setImmediate=setImmediate,attachTo.clearImmediate=clearImmediate}})("undefined"==typeof self?"undefined"==typeof global?this:global:self)}).call(exports,__webpack_require__(16),__webpack_require__(31))},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _update_div_class2(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class2(_data){return!!_data.$_parent.$_parent.$_scope._this._importTask&&"lr-importer-hidden"}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(_data){return[_ImporterContainer2.default.container,`color-stop__${_data.$_scope._this.colorStop}`]}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_IfComponent=__webpack_require__(14),_IfComponent2=_interopRequireDefault(_IfComponent),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_Observable=__webpack_require__(12),_Observable2=_interopRequireDefault(_Observable),_Attribute=__webpack_require__(10),_Attribute2=_interopRequireDefault(_Attribute),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_bluebird=__webpack_require__(4),_bluebird2=_interopRequireDefault(_bluebird),_ImportTask=__webpack_require__(90),_ImportTask2=_interopRequireDefault(_ImportTask),_log=__webpack_require__(13),_nls=__webpack_require__(15),_LrImporterController=__webpack_require__(117),_LrImporterController2=_interopRequireDefault(_LrImporterController),_LrImporter=__webpack_require__(118),_LrImporter2=_interopRequireDefault(_LrImporter),_Download=__webpack_require__(123),_Download2=_interopRequireDefault(_Download),_PendingScreen=__webpack_require__(134),_PendingScreen2=_interopRequireDefault(_PendingScreen),_ImporterContainer=__webpack_require__(170),_ImporterContainer2=_interopRequireDefault(_ImporterContainer),_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0);var _if=_data._if=_component_if.make(_factory);_if.$_parent=_data,_if.template.run(_factory,_if);var _if1=_data._if1=_component_if3.make(_factory);_if1.$_parent=_data,_if1.template.run(_factory,_if1),_factory.exitNode(div)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate),_data._if.template.dispose(_factory,_data._if),_data._if1.template.dispose(_factory,_data._if1)},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div_class,_update_div_class,_data,!1),_data._if.template.reuse(_factory,_data._if),_data._if1.template.reuse(_factory,_data._if1)},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_component_if3={make:function(_factory){return _component_if3=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data4){return _data4.$_parent.$_scope._this.scope.importer.accessToken}},blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div2);_factory.enterNode(div),_factory.runBinder(_binder_div_class2,_update_div_class2,_data,!0);var lrImporter=_data.lrImporter=_component_LrImporter.make(_factory);lrImporter.$_parent=_data,lrImporter.template.run(_factory,lrImporter),_factory.exitNode(div);var _if=_data._if=_component_if2.make(_factory);_if.$_parent=_data,_if.template.run(_factory,_if)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate),_data.lrImporter.template.dispose(_factory,_data.lrImporter),_data._if.template.dispose(_factory,_data._if)},move:function(_factory,_data){_factory.pushNode(_data.div),_data._if.template.move(_factory,_data._if)},reuse:function(_factory,_data){_factory.runBinder(_binder_div_class2,_update_div_class2,_data,!1),_data.lrImporter.template.reuse(_factory,_data.lrImporter),_data._if.template.reuse(_factory,_data._if)},firstChild:function(_factory,_data){return _data.div},lastChild:function(_factory,_data){return _data._if.template.lastChild(_factory,_data._if)},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}})}]}),_component_if3.make(_factory)}},_component_if2={make:function(_factory){return _component_if2=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data6){return _data6.$_parent.$_parent.$_parent.$_scope._this._importTask}},blocks:[{name:"children",template:_factory.makeComponent(_Download2.default,{attributes:[{name:"task",get:function(){var _data7=this.$_view;if(_data7)return _data7.$_parent.$_parent.$_parent.$_parent.$_scope._this._importTask},set:function(_value6){var _data7=this.$_view;_data7&&(_data7.$_parent.$_parent.$_parent.$_parent.$_scope._this._importTask=_value6)}},{name:"onComplete",get:function(){var _data7=this.$_view;if(_data7)return _data7.$_parent.$_parent.$_parent.$_parent.$_scope._this._handleDownloadComplete},set:function(_value6){var _data7=this.$_view;_data7&&(_data7.$_parent.$_parent.$_parent.$_parent.$_scope._this._handleDownloadComplete=_value6)}},{name:"onCancel",get:function(){var _data7=this.$_view;if(_data7)return _data7.$_parent.$_parent.$_parent.$_parent.$_scope._this._handleDownloadCancel},set:function(_value6){var _data7=this.$_view;_data7&&(_data7.$_parent.$_parent.$_parent.$_parent.$_scope._this._handleDownloadCancel=_value6)}}]})}]}),_component_if2.make(_factory)}},_component_LrImporter={make:function(_factory){return _component_LrImporter=_factory.makeComponent(_LrImporter2.default,{attributes:[{name:"lrSDKHelper",get:function(){var _data5=this.$_view;if(_data5)return _data5.$_parent.$_parent.$_parent.$_scope._this.lrSDKHelper},set:function(_value4){var _data5=this.$_view;_data5&&(_data5.$_parent.$_parent.$_parent.$_scope._this.lrSDKHelper=_value4)}},{name:"colorStop",get:function(){var _data5=this.$_view;if(_data5)return _data5.$_parent.$_parent.$_parent.$_scope._this.colorStop},set:function(_value4){var _data5=this.$_view;_data5&&(_data5.$_parent.$_parent.$_parent.$_scope._this.colorStop=_value4)}},{name:"onInitialize",get:function(){var _data5=this.$_view;if(_data5)return _data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterInitialize},set:function(_value4){var _data5=this.$_view;_data5&&(_data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterInitialize=_value4)}},{name:"onReady",get:function(){var _data5=this.$_view;if(_data5)return _data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterReady},set:function(_value4){var _data5=this.$_view;_data5&&(_data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterReady=_value4)}},{name:"onImport",get:function(){var _data5=this.$_view;if(_data5)return _data5.$_parent.$_parent.$_parent.$_scope._this._handleImport},set:function(_value4){var _data5=this.$_view;_data5&&(_data5.$_parent.$_parent.$_parent.$_scope._this._handleImport=_value4)}},{name:"onError",get:function(){var _data5=this.$_view;if(_data5)return _data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterError},set:function(_value4){var _data5=this.$_view;_data5&&(_data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterError=_value4)}},{name:"onReattach",get:function(){var _data5=this.$_view;if(_data5)return _data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterReattach},set:function(_value4){var _data5=this.$_view;_data5&&(_data5.$_parent.$_parent.$_parent.$_scope._this._handleLrImporterReattach=_value4)}}],init:function(_data,_value4){_data.$_parent.$_parent.$_parent.$_scope._this.lrImporter=_value4},dispose:function(_data){_data.$_parent.$_parent.$_parent.$_scope._this.lrImporter=null}}),_component_LrImporter.make(_factory)}},_tpl_div2=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","lr-importer"),node1}),_component_if={make:function(_factory){return _component_if=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data2){return _data2.$_parent.$_scope._this._showPendingScreen}},blocks:[{name:"children",template:_factory.makeComponent(_PendingScreen2.default,{attributes:[{name:"state",get:function(){var _data3=this.$_view;if(_data3)return _data3.$_parent.$_parent.$_scope._this._pendingScreenState},set:function(_value2){var _data3=this.$_view;_data3&&(_data3.$_parent.$_parent.$_scope._this._pendingScreenState=_value2)}},{name:"onRetry",get:function(){var _data3=this.$_view;if(_data3)return _data3.$_parent.$_parent.$_scope._this._handleRetry},set:function(_value2){var _data3=this.$_view;_data3&&(_data3.$_parent.$_parent.$_scope._this._handleRetry=_value2)}}]})}]}),_component_if.make(_factory)}},_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return node1}),_superClass;const MAX_IMPORTER_RETRY=5;_superClass=_Component2.default;class ImporterContainer extends _superClass{constructor(){super(),this.scope.importer=this.link(new _LrImporterController2.default({clientId:this.clientId,openLinkHandler:this.onOpenLink,reportEventHandler:this.onReportEvent})),(0,_nls.setLocale)(this.locale),(0,_log.setLogLevel)(this.debug)}attached(){window.addEventListener("offline",this._handleOnlineStatusChange),window.addEventListener("online",this._handleOnlineStatusChange),this.watch(()=>this._online,()=>{this._online?this._requestAccessToken():(this.scope.importer.accessToken=null,this._invalidAccessToken=!1)}),this.watch(()=>this.locale,()=>{(0,_nls.setLocale)(this.locale)},!0)}detach(){window.removeEventListener("offline",this._handleOnlineStatusChange),window.removeEventListener("online",this._handleOnlineStatusChange)}_requestAccessToken(){this._serviceUnavailable=!1,this._invalidAccessToken=!1,this.requestAccessToken().then(token=>{this.scope.importer.accessToken=token,this._invalidAccessToken=!!!token}).catch(err=>{(0,_log.error)("[cc-photos-importer] Failed to get access token:",err),this._invalidAccessToken=!0,this._serviceUnavailable=!0})}get _showPendingScreen(){return!this._importTask&&(!this._online||!this._isImporterReady||!this._isImporterEntitled||!this.scope.importer.accessToken||this._invalidAccessToken||this._serviceUnavailable)}get _pendingScreenState(){if(!this._online)return _PendingScreen.STATE.OFFLINE;if(this._serviceUnavailable)return _PendingScreen.STATE.SERVICE_UNAVAILABLE;if(this._invalidAccessToken)return _PendingScreen.STATE.INVALID_ACCESS_TOKEN;if(this._importerRetryCounter>MAX_IMPORTER_RETRY)return _PendingScreen.STATE.FAILED_TO_LOAD_LR;if(!this._isImporterReady)return _PendingScreen.STATE.LOADING_LR;if(!this._isImporterEntitled)return _PendingScreen.STATE.SUBSCRIPTION_EXPIRED;throw new Error("Unknown state")}render(){return{template:_Template_div,_this:this}}}exports.default=ImporterContainer,exports.default=ImporterContainer=(0,_Builder2.default)(ImporterContainer,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null,{fork:!0}),module,"ImporterContainer")],properties:[{name:"clientId",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"requestAccessToken",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"onImportCompleted",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"onOpenLink",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"onReportEvent",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"lrSDKHelper",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"colorStop",decorators:[(0,_Attribute2.default)()],init(){return"dark"}},{name:"locale",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"debug",decorators:[(0,_Attribute2.default)()],init(){return!0}},{name:"_importTask",decorators:[(0,_Observable2.default)()],kind:"property"},{name:"_online",decorators:[(0,_Observable2.default)()],init(){return navigator.onLine}},{name:"_isImporterReady",decorators:[(0,_Observable2.default)()],init(){return!1}},{name:"_isImporterEmpty",decorators:[(0,_Observable2.default)()],init(){return!1}},{name:"_isImporterEntitled",decorators:[(0,_Observable2.default)()],init(){return!1}},{name:"_importerRetryCounter",decorators:[(0,_Observable2.default)()],init(){return 0}},{name:"_serviceUnavailable",decorators:[(0,_Observable2.default)()],init(){return!1}},{name:"_invalidAccessToken",decorators:[(0,_Observable2.default)()],init(){return!1}},{name:"_handleOnlineStatusChange",decorators:[(0,_Bind2.default)()],fn:function(){navigator.onLine?setTimeout(()=>{navigator.onLine&&(this._online=!0)},3e3):(this._importTask&&(this._importTask.isDownloading&&this._importTask.cancelDownload(),this._importTask=null),this._online=!1,this._isImporterReady=!1)}},{name:"_handleImport",decorators:[(0,_Bind2.default)()],fn:function(assets){this._importTask=new _ImportTask2.default(assets,this.scope.importer.clientId),assets.forEach(asset=>{this.scope.importer.report("clicked-asset",asset.toAnalyticsData())}),this.scope.importer.report("clicked-import",{count:this._importTask.items.length}),this.lrImporter.reattach()}},{name:"_handleDownloadComplete",decorators:[(0,_Bind2.default)()],fn:function(){let filePromises=this._importTask.downloadedItems.map(item=>{let asset=item.selectedOption.asset,file={path:item.path,filename:item.selectedOption.filename,assetId:asset.assetId,extension:asset.extension,contentType:asset.contentType,isSmartProxy:asset.isSmartProxy};return item.selectedOption.applyACR?asset.getXmpString(this.scope.importer.accessToken,this.scope.importer.clientId).then(xmpString=>(file.xmpString=xmpString,file.adobeUserOrientation=asset.userOrientation,file)).catch(err=>((0,_log.error)("[cc-photos-importer] Failed to get XMP string, will return file info without XMP.",err),file)):_bluebird2.default.resolve(file)});_bluebird2.default.all(filePromises).delay(500).then(files=>this.onImportCompleted(files)).delay(0===filePromises.length?1e4:0).finally(()=>{this._importTask=null})}},{name:"_handleDownloadCancel",decorators:[(0,_Bind2.default)()],fn:function(){this.scope.importer.report("clicked-cancel-download",{count:this._importTask.items.length}),this._importTask=null}},{name:"_handleLrImporterInitialize",decorators:[(0,_Bind2.default)()],fn:function(){this._importTask||this.scope.importer.report("initialize-lr-organizer")}},{name:"_handleLrImporterReady",decorators:[(0,_Bind2.default)()],fn:function(isEmpty,isEntitled){this._isImporterReady=!0,this._isImporterEmpty=isEmpty,this._isImporterEntitled=isEntitled,this._importerRetryCounter=0,this._importTask||this.scope.importer.report("rendered-lr-organizer")}},{name:"_handleLrImporterError",decorators:[(0,_Bind2.default)()],fn:function(err){let message=err&&err.message,stack=err&&err.stack;return this.scope.importer.report("initialize-lr-organizer-failed",{message,stack}),this._isImporterReady=!1,this._importerRetryCounter++,this._importerRetryCounter>MAX_IMPORTER_RETRY?void(0,_log.error)("[cc-photos-importer] Reach maximum retry count. Will stop trying to attach Lr Importer"):void((0,_log.error)("[cc-photos-importer] Failed to load Lr Importer. Will retry in 10 seconds",err),setTimeout(()=>{this.lrImporter.reattach()},1e4))}},{name:"_handleLrImporterReattach",decorators:[(0,_Bind2.default)()],fn:function(){this._isImporterReady=!1,this._importTask||this.scope.importer.report("clicked-refresh")}},{name:"_handleRetry",decorators:[(0,_Bind2.default)()],fn:function(){this._isImporterReady=!1,this._isImporterEmpty=!1,this._serviceUnavailable=!1,this._importerRetryCounter=0,this._invalidAccessToken?this._requestAccessToken():this.lrImporter&&this.lrImporter.reattach(),this.scope.importer.report("clicked-refresh")}}]})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";module.exports=__webpack_require__(60).defaults},function(module){"use strict";const objectProto=Object.prototype,hasOwnProperty=objectProto.hasOwnProperty;module.exports={defaults:function(object,...sources){return object=Object(object),sources.forEach(source=>{if(null!==source)for(const key in source=Object(source),source){const value=object[key];void 0!==value&&(value!==objectProto[key]||hasOwnProperty.call(object,key))||(object[key]=source[key])}}),object}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _camelCaseHyphens=__webpack_require__(32),_camelCaseHyphens2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_camelCaseHyphens);const AttributeNameRegex=/^(?:(.+?):)?(on-)?(.*)$/,noop=function(){};class AttributeDescriptor{constructor(attr,isEvent){this.isEvent=isEvent,this.configurable=!0,this.enumerable=!1,attr.get?(this.get=attr.get,this.set=attr.set||noop):this.value=attr.value;const match=AttributeNameRegex.exec(attr.original||attr.name||"");this.namespace=match[1],this.name=match[3],this.normalizedName=AttributeDescriptor.normalizeName(match[3]),this.isEvent=this.isEvent||!!match[2]}static normalizeName(name){return(0,_camelCaseHyphens2.default)(name)}isValid(){return!!this.name}toChildAttribute(component,withNamespace){let prefix=withNamespace&&this.namespace?this.namespace+":":"";return this.isEvent?{name:prefix+"on-"+this.name,value:this.value.bind(component)}:this.get?{name:prefix+this.name,get:this.get.bind(component),set:this.set.bind(component)}:{name:prefix+this.name,value:this.value}}matchesNamespace(namespace){return!namespace||namespace===this.namespace}static forEachSpread(view,spreads,callback){for(let spread of spreads){const items=spread(view);if(items instanceof Array)for(let item of items){const descriptor=new AttributeDescriptor(item);descriptor.isValid()&&callback(descriptor)}else if("object"==typeof items)for(let key in items){let item=items[key];if(items.hasOwnProperty(key)&&item){let desc;item.hasOwnProperty("value")||item.hasOwnProperty("get")?(item.name=key,desc=item):desc={name:key,value:item};const descriptor=new AttributeDescriptor(desc);descriptor.isValid()&&callback(descriptor)}}}}}exports.default=AttributeDescriptor},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});class PropertyBuilder{constructor(ref,{name,init,fn,kind},classObject){this.descriptor=null,this.ref=ref,this.classObject=classObject,this.name=name,this.fn=fn,this.init=init,this.kind=init?"property":kind||"method"}define(options){this.descriptor=options}isDefined(){return!!this.descriptor}getSuper(name=this.name){return this.ref[name]}throwError(str){throw new Error(`${str} - ${this.className}.${this.name}.`)}getValue(){var descriptor=this.descriptor;return descriptor&&descriptor.get&&this.throwError("Another decorator has already added a getter. Please revise the order of the decorators."),descriptor&&descriptor.value||this.fn}setValue(value,enumerable=!1,configurable=!0){this.define({configurable,enumerable,value})}setWritableValue(value,enumerable=!1,configurable=!0){this.define({configurable,enumerable,value,writable:!0})}setDefaultValue(enumerable=!1,configurable=!0){this.define({configurable,enumerable,value:this.getValue()})}getDefaultValue(){var init=this.init;return init?init():void 0}setGetter(get,enumerable=!1,configurable=!0){this.define({configurable,enumerable,get})}get className(){return this.classObject.constructor.name}finish(){var descriptor=this.descriptor;descriptor&&Object.defineProperty(this.ref,this.name,this.descriptor)}add(name,descriptor){Object.defineProperty(this.ref,name,descriptor)}static applyDecorators(prototype,property){let classObject=prototype.constructor,ref=property.static?classObject:prototype,propertyBuilder=new PropertyBuilder(ref,property,classObject);var propDecorators=property.decorators;if(propDecorators)for(var j=0,k=propDecorators.length;j<k;++j)propDecorators[j](propertyBuilder);propertyBuilder.finish()}}exports.default=PropertyBuilder},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(bindings,value){if(value&&value instanceof Promise){var binding=value._torq_binding;return binding||(binding=value._torq_binding={resolved:!1,value:void 0},binding.obj=binding,value.then(result=>{binding.resolved=!0,binding.value=result,_Signal2.default.trigger(binding,"update")})),binding.resolved||bindings.push({eventName:"update",obj:binding}),binding}};var _Signal=__webpack_require__(9),_Signal2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_Signal)},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_TaskQueue=__webpack_require__(21),_TaskQueue2=_interopRequireDefault(_TaskQueue),_superClass;_superClass=_TaskQueue2.default;class NestedTaskQueue extends _superClass{constructor(parent,name,priority){super(),this.parent=parent,this.name=name,this.priority=priority}register(useAfterQueue){useAfterQueue?this.parent.after.push(this.enqueue):this.enqueue()}}exports.default=NestedTaskQueue,exports.default=NestedTaskQueue=(0,_Builder2.default)(NestedTaskQueue,{properties:[{name:"enqueue",decorators:[(0,_Bind2.default)()],fn:function(){this.parent.push(this.run,this.priority)}}]})},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}exports.__esModule=!0;var _getPrototypeOf=__webpack_require__(66),_getPrototypeOf2=_interopRequireDefault(_getPrototypeOf),_getOwnPropertyDescriptor=__webpack_require__(80),_getOwnPropertyDescriptor2=_interopRequireDefault(_getOwnPropertyDescriptor);exports.default=function get(object,property,receiver){null===object&&(object=Function.prototype);var desc=(0,_getOwnPropertyDescriptor2.default)(object,property);if(desc===void 0){var parent=(0,_getPrototypeOf2.default)(object);return null===parent?void 0:get(parent,property,receiver)}if("value"in desc)return desc.value;var getter=desc.get;return void 0===getter?void 0:getter.call(receiver)}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(67),__esModule:!0}},function(module,exports,__webpack_require__){__webpack_require__(68),module.exports=__webpack_require__(17).Object.getPrototypeOf},function(module,exports,__webpack_require__){var toObject=__webpack_require__(39),$getPrototypeOf=__webpack_require__(69);__webpack_require__(41)("getPrototypeOf",function(){return function(it){return $getPrototypeOf(toObject(it))}})},function(module,exports,__webpack_require__){var has=__webpack_require__(23),toObject=__webpack_require__(39),IE_PROTO=__webpack_require__(70)("IE_PROTO"),ObjectProto=Object.prototype;module.exports=Object.getPrototypeOf||function(O){return O=toObject(O),has(O,IE_PROTO)?O[IE_PROTO]:"function"==typeof O.constructor&&O instanceof O.constructor?O.constructor.prototype:O instanceof Object?ObjectProto:null}},function(module,exports,__webpack_require__){var shared=__webpack_require__(71)("keys"),uid=__webpack_require__(72);module.exports=function(key){return shared[key]||(shared[key]=uid(key))}},function(module,exports,__webpack_require__){var global=__webpack_require__(24),SHARED="__core-js_shared__",store=global[SHARED]||(global[SHARED]={});module.exports=function(key){return store[key]||(store[key]={})}},function(module){var id=0,px=Math.random();module.exports=function(key){return"Symbol(".concat(key===void 0?"":key,")_",(++id+px).toString(36))}},function(module,exports,__webpack_require__){var global=__webpack_require__(24),core=__webpack_require__(17),ctx=__webpack_require__(74),hide=__webpack_require__(76),has=__webpack_require__(23),PROTOTYPE="prototype",$export=function(type,name,source){var IS_FORCED=type&$export.F,IS_GLOBAL=type&$export.G,IS_STATIC=type&$export.S,IS_PROTO=type&$export.P,IS_BIND=type&$export.B,IS_WRAP=type&$export.W,exports=IS_GLOBAL?core:core[name]||(core[name]={}),expProto=exports[PROTOTYPE],target=IS_GLOBAL?global:IS_STATIC?global[name]:(global[name]||{})[PROTOTYPE],key,own,out;for(key in IS_GLOBAL&&(source=name),source)own=!IS_FORCED&&target&&void 0!==target[key],own&&has(exports,key)||(out=own?target[key]:source[key],exports[key]=IS_GLOBAL&&"function"!=typeof target[key]?source[key]:IS_BIND&&own?ctx(out,global):IS_WRAP&&target[key]==out?function(C){var F=function(a,b,c){if(this instanceof C){switch(arguments.length){case 0:return new C;case 1:return new C(a);case 2:return new C(a,b);}return new C(a,b,c)}return C.apply(this,arguments)};return F[PROTOTYPE]=C[PROTOTYPE],F}(out):IS_PROTO&&"function"==typeof out?ctx(Function.call,out):out,IS_PROTO&&((exports.virtual||(exports.virtual={}))[key]=out,type&$export.R&&expProto&&!expProto[key]&&hide(expProto,key,out)))};$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128,module.exports=$export},function(module,exports,__webpack_require__){var aFunction=__webpack_require__(75);module.exports=function(fn,that,length){return(aFunction(fn),void 0===that)?fn:1===length?function(a){return fn.call(that,a)}:2===length?function(a,b){return fn.call(that,a,b)}:3===length?function(a,b,c){return fn.call(that,a,b,c)}:function(){return fn.apply(that,arguments)}}},function(module){module.exports=function(it){if("function"!=typeof it)throw TypeError(it+" is not a function!");return it}},function(module,exports,__webpack_require__){var dP=__webpack_require__(77),createDesc=__webpack_require__(44);module.exports=__webpack_require__(18)?function(object,key,value){return dP.f(object,key,createDesc(1,value))}:function(object,key,value){return object[key]=value,object}},function(module,exports,__webpack_require__){var anObject=__webpack_require__(78),IE8_DOM_DEFINE=__webpack_require__(42),toPrimitive=__webpack_require__(43),dP=Object.defineProperty;exports.f=__webpack_require__(18)?Object.defineProperty:function(O,P,Attributes){if(anObject(O),P=toPrimitive(P,!0),anObject(Attributes),IE8_DOM_DEFINE)try{return dP(O,P,Attributes)}catch(e){}if("get"in Attributes||"set"in Attributes)throw TypeError("Accessors not supported!");return"value"in Attributes&&(O[P]=Attributes.value),O}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(25);module.exports=function(it){if(!isObject(it))throw TypeError(it+" is not an object!");return it}},function(module,exports,__webpack_require__){var isObject=__webpack_require__(25),document=__webpack_require__(24).document,is=isObject(document)&&isObject(document.createElement);module.exports=function(it){return is?document.createElement(it):{}}},function(module,exports,__webpack_require__){module.exports={default:__webpack_require__(81),__esModule:!0}},function(module,exports,__webpack_require__){__webpack_require__(82);var $Object=__webpack_require__(17).Object;module.exports=function(it,key){return $Object.getOwnPropertyDescriptor(it,key)}},function(module,exports,__webpack_require__){var toIObject=__webpack_require__(45),$getOwnPropertyDescriptor=__webpack_require__(85).f;__webpack_require__(41)("getOwnPropertyDescriptor",function(){return function(it,key){return $getOwnPropertyDescriptor(toIObject(it),key)}})},function(module,exports,__webpack_require__){var cof=__webpack_require__(84);module.exports=Object("z").propertyIsEnumerable(0)?Object:function(it){return"String"==cof(it)?it.split(""):Object(it)}},function(module){var toString={}.toString;module.exports=function(it){return toString.call(it).slice(8,-1)}},function(module,exports,__webpack_require__){var pIE=__webpack_require__(86),createDesc=__webpack_require__(44),toIObject=__webpack_require__(45),toPrimitive=__webpack_require__(43),has=__webpack_require__(23),IE8_DOM_DEFINE=__webpack_require__(42),gOPD=Object.getOwnPropertyDescriptor;exports.f=__webpack_require__(18)?gOPD:function(O,P){if(O=toIObject(O),P=toPrimitive(P,!0),IE8_DOM_DEFINE)try{return gOPD(O,P)}catch(e){}return has(O,P)?createDesc(!pIE.f.call(O,P),O[P]):void 0}},function(module,exports){exports.f={}.propertyIsEnumerable},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _Global=__webpack_require__(27),_Global2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_Global),now;now=_Global2.default.performance&&_Global2.default.performance.now?()=>performance.now():Date.now?()=>Date.now():()=>new Date().getTime(),exports.default=now},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_ObservableBase=__webpack_require__(29),_ObservableBase2=_interopRequireDefault(_ObservableBase),_Binder=__webpack_require__(11),_Binder2=_interopRequireDefault(_Binder),_Signal=__webpack_require__(9),_Signal2=_interopRequireDefault(_Signal),_superClass;_superClass=_Binder2.default;class CollectionBinder extends _superClass{update(value,invokeCallback=!0){const{previousValue}=this;return previousValue===value?!!this.lengthChanged&&(this.lengthChanged=!1,invokeCallback&&this.invokeCallback(value),!0):(previousValue===this.FirstExecutionMarker?this.previousValue=value:previousValue&&"object"==typeof previousValue&&_Signal2.default.stopListening(this,previousValue),this.lengthChanged=!1,value&&"object"==typeof value&&_Signal2.default.listenTo(this,value,"change",this.onLengthChanged),invokeCallback&&this.invokeCallback(value),!0)}invokeCallback(value){return value instanceof _ObservableBase2.default?void this.callback(value.base):void this.callback(value)}}exports.default=CollectionBinder,exports.default=CollectionBinder=(0,_Builder2.default)(CollectionBinder,{properties:[{name:"onLengthChanged",decorators:[(0,_Bind2.default)()],fn:function(){this.lengthChanged=!0,this.invalidate()}}]})},function(module){"use strict";function uniqueId(prefix){return(prefix||"")+ ++nextId}let nextId=0;module.exports=uniqueId},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Observable=__webpack_require__(12),_Observable2=_interopRequireDefault(_Observable),_bluebird=__webpack_require__(4),_bluebird2=_interopRequireDefault(_bluebird),_ObservableArray=__webpack_require__(91),_ObservableArray2=_interopRequireDefault(_ObservableArray),_log=__webpack_require__(13),_ImportTaskItem=__webpack_require__(93),_ImportTaskItem2=_interopRequireDefault(_ImportTaskItem);class ImportTask{constructor(assets,clientId){this.items=[],assets.forEach(asset=>{try{this.items.push(new _ImportTaskItem2.default(asset,clientId))}catch(err){(0,_log.debug)("[cc-photos-importer] Invalid asset",asset,err)}})}get isDownloading(){return!!this._downloadPromise}download(onError){return this._downloadPromise?this._downloadPromise:(this._downloadPromise=_bluebird2.default.reduce(this.items,(paths,item)=>item.download().then(path=>(paths.push(path),paths)).catch(err=>((0,_log.debug)("[cc-photos-importer] Failed to download file",item,err),onError&&onError(err,item),paths)),[]).finally(()=>{this._downloadPromise=null}),this._downloadPromise)}cancelDownload(){this._downloadPromise&&this._downloadPromise.cancel(),this.canceled=!0,this.items.forEach(item=>item.resetStatus())}get progress(){if(this.canceled)return"Canceling import...";let total=this.items.length,downloaded=this.items.filter(item=>item.isDownloaded).length,processing=_Mathmin(downloaded+1,this.items.length),msg=`Importing ${total} Photos (${processing} of ${total})`;return msg}get downloadedItems(){return this.items.filter(item=>item.isDownloaded)}}exports.default=ImportTask,exports.default=ImportTask=(0,_Builder2.default)(ImportTask,{properties:[{name:"downloadedFilePaths",decorators:[(0,_Observable2.default)()],init(){return new _ObservableArray2.default}},{name:"canceled",decorators:[(0,_Observable2.default)()],init(){return!1}},{name:"_downloadPromise",decorators:[(0,_Observable2.default)()],kind:"property"}]})},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function wrapResult(result,caller){return result instanceof Array?caller.base===result?caller:new ObservableArray(result):result}function createMethod(fn,mutator){return mutator?function(){var result=fn.apply(this.base,arguments);return _Signal2.default.trigger(this,"change"),wrapResult(result,this)}:function(){return _Binder2.default.active&&_Binder2.default.recordEvent(this,"change"),wrapResult(fn.apply(this.base,arguments),this)}}Object.defineProperty(exports,"__esModule",{value:!0});var _Signal=__webpack_require__(9),_Signal2=_interopRequireDefault(_Signal),_Binder=__webpack_require__(11),_Binder2=_interopRequireDefault(_Binder),_ObservableBase=__webpack_require__(29),_ObservableBase2=_interopRequireDefault(_ObservableBase),_arrayFind=__webpack_require__(92),_arrayFind2=_interopRequireDefault(_arrayFind);class ObservableArray extends _ObservableBase2.default{constructor(base){super(),this.base=base||[]}at(i){return _Binder2.default.active&&_Binder2.default.recordEvent(this,"change"),this.base[i]}setAt(i,value){_Signal2.default.trigger(this,"change"),this.base[i]=value}toArray(){return _Binder2.default.active&&_Binder2.default.recordEvent(this,"change"),this.base.slice()}get length(){return _Binder2.default.active&&_Binder2.default.recordEvent(this,"change"),this.base.length}set length(length){var prevLength=this.base.length;prevLength===length||(this.base.length=length,_Signal2.default.trigger(this,"change"))}swapItems(items){this.base=items,_Signal2.default.trigger(this,"change")}removeItem(item){var index=this.indexOf(item);-1!==index&&this.splice(index,1)}concat(...otherArrays){return _Binder2.default.active&&_Binder2.default.recordEvent(this,"change"),new ObservableArray(this.base.concat(...otherArrays.map(arr=>arr instanceof ObservableArray?(_Binder2.default.active&&_Binder2.default.recordEvent(arr,"change"),arr.base):arr)))}concatToArray(){return this.concat.apply(this,arguments).base}spliceToArray(){return this.splice.apply(this,arguments).base}sliceToArray(){return this.slice.apply(this,arguments).base}mapToArray(){return this.map.apply(this,arguments).base}filterToArray(){return this.filter.apply(this,arguments).base}}exports.default=ObservableArray,_arrayFind2.default.polyfill();for(var ArrayPrototype=Array.prototype,ObservableArrayPrototype=ObservableArray.prototype,mutators=["fill","pop","push","reverse","shift","unshift","splice","sort","copyWithin"],props=Object.getOwnPropertyNames(ArrayPrototype),i=0,l=props.length,key;i<l;++i)(key=props[i],!ObservableArrayPrototype.hasOwnProperty(key))&&(ObservableArrayPrototype[key]=createMethod(ArrayPrototype[key],-1!==mutators.indexOf(key)))},function(module){"use strict";function arrayFindImpl(fn,thisArg){for(let i=0,len=this.length;i<len;i++){const item=this[i];if(fn.call(thisArg,item,i))return item}}function arrayFind(array,fn,thisArg){return array?(Array.prototype.find||arrayFindImpl).call(array,fn,thisArg):void 0}arrayFind.polyfill=function(){Array.prototype.find||(Array.prototype.find=arrayFindImpl)},module.exports=arrayFind},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Observable=__webpack_require__(12),_Observable2=_interopRequireDefault(_Observable),_bluebird=__webpack_require__(4),_bluebird2=_interopRequireDefault(_bluebird),_ImportOption=__webpack_require__(94),_ImportOption2=_interopRequireDefault(_ImportOption),_log=__webpack_require__(13);const STATUS=Object.freeze({INITIAL:"INITIAL",DOWNLOADING:"DOWNLOADING",DOWNLOADED:"DOWNLOADED",FAILED:"FAILED"});class ImportTaskItem{constructor(asset,clientId){this.asset=asset,this.clientId=clientId,this.options=_ImportOption2.default.createFromAsset(asset),this.selectedOption=this.options.has(_ImportOption.OPTIONS.PROXY)?this.options.get(_ImportOption.OPTIONS.PROXY_ACR)||this.options.get(_ImportOption.OPTIONS.PROXY):this.options.get(_ImportOption.OPTIONS.ORIGINAL_ACR)||this.options.get(_ImportOption.OPTIONS.ORIGINAL)}get isDownloading(){return this.status===STATUS.DOWNLOADING}get isDownloaded(){return this.status===STATUS.DOWNLOADED}get isFailed(){return this.status===STATUS.FAILED}resetStatus(){this.status=STATUS.INITIAL}download(){return this.isDownloaded?_bluebird2.default.resolve(this.path):(this.status=STATUS.DOWNLOADING,this.selectedOption.getAssetUrl().delay(500).then(assetUrl=>((0,_log.debug)("[cc-photos-importer] Downloading photo from",assetUrl),this._download(assetUrl))).then(path=>{(0,_log.debug)("[cc-photos-importer] Saved photo to",path),this.path=path}).tap(()=>this.status=STATUS.DOWNLOADED).catch(err=>{throw this.status=STATUS.FAILED,err}))}_download(assetUrl,path,options={}){let{retry=2,retryDelay=1e3}=options,assetId=this.asset.assetId;return new _bluebird2.default((resolve,reject)=>{let handleError=err=>((0,_log.debug)(`[cc-photos-importer] Failed to download file from ${assetUrl}`,err),0===retry?void reject(err):void((0,_log.debug)("[cc-photos-importer] will retry..."),setTimeout(()=>{this._download(assetUrl,path,{retry:retry-1,retryDelay}).then(resolve).catch(reject)},retryDelay))),VulcanInterface=window.VulcanInterface,VulcanMessage=window.VulcanMessage,cleanupVulcanListeners=()=>{VulcanInterface.removeMessageListener(VulcanMessage.TYPE_PREFIX+"ccxprocess.CCPhotoDownloadResponse",onPhotoDownloadComplete),VulcanInterface.removeMessageListener(VulcanMessage.TYPE_PREFIX+"ccxprocess.CCPhotoDownloadProgress",onPhotoDownloadProgress),VulcanInterface.removeMessageListener(VulcanMessage.TYPE_PREFIX+"ccxprocess.CCPhotoDownloadError",onPhotoDownloadError)},getDataFromMessage=message=>{let responseData=VulcanInterface.getPayload(message),data;try{data=JSON.parse(responseData)}catch(e){return}if(data&&data.id===assetId)return data},receivedMessage=!1,onPhotoDownloadError=message=>{receivedMessage=!0,cleanupVulcanListeners();let data=getDataFromMessage(message);handleError(data&&data.error)},percentage=0,onPhotoDownloadProgress=message=>{receivedMessage=!0;let data=getDataFromMessage(message);data&&data.percentage!=percentage&&(percentage=data.percentage,(0,_log.debug)(`[cc-photos-importer] Download progress ${percentage}%`))},onPhotoDownloadComplete=message=>{receivedMessage=!0,cleanupVulcanListeners();let data=getDataFromMessage(message);data&&resolve(data.path)};(()=>{VulcanInterface.addMessageListener(VulcanMessage.TYPE_PREFIX+"ccxprocess.CCPhotoDownloadResponse",onPhotoDownloadComplete),VulcanInterface.addMessageListener(VulcanMessage.TYPE_PREFIX+"ccxprocess.CCPhotoDownloadProgress",onPhotoDownloadProgress),VulcanInterface.addMessageListener(VulcanMessage.TYPE_PREFIX+"ccxprocess.CCPhotoDownloadError",onPhotoDownloadError)})();let photoData={clientId:this.clientId,id:this.asset.assetId,url:assetUrl,filename:this.selectedOption.filename},PhotoDownloadRequestMessage=new VulcanMessage(VulcanMessage.TYPE_PREFIX+"ccxprocess.CCPhotoDownloadRequest");PhotoDownloadRequestMessage.setPayload(JSON.stringify(photoData)),VulcanInterface.dispatchMessage(PhotoDownloadRequestMessage),setTimeout(()=>{receivedMessage||handleError(new Error("Timeout waiting for Vulcan message. Make sure your CCX process version is >= 2.2.0-36 "))},5e3)})}}exports.default=ImportTaskItem,exports.default=ImportTaskItem=(0,_Builder2.default)(ImportTaskItem,{properties:[{name:"status",decorators:[(0,_Observable2.default)()],init(){return STATUS.INITIAL}}]})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.OPTIONS=void 0;var _bluebird=__webpack_require__(4),_bluebird2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_bluebird);const OPTIONS=exports.OPTIONS=Object.freeze({PROXY:"PROXY",PROXY_ACR:"PROXY_ACR",PROXY_RENDITION:"PROXY_RENDITION",ORIGINAL:"ORIGINAL",ORIGINAL_ACR:"ORIGINAL_ACR",ORIGINAL_RENDITION:"ORIGINAL_RENDITION"});class ImportOption{static createFromAsset(asset){let options=new Map,isProxy=asset.isSmartProxy,type;return type=asset.isSmartProxy?OPTIONS.PROXY:OPTIONS.ORIGINAL,options.set(type,new ImportOption({type,asset,isProxy})),asset.userEdited&&asset.hasXmpString&&(type=asset.isSmartProxy?OPTIONS.PROXY_ACR:OPTIONS.ORIGINAL_ACR,options.set(type,new ImportOption({type,asset,isProxy,applyACR:!0}))),type=asset.isSmartProxy?OPTIONS.PROXY_RENDITION:OPTIONS.ORIGINAL_RENDITION,options.set(type,new ImportOption({type,asset,isRendition:!0,isProxy})),options}constructor({type,asset,isProxy,isRendition,applyACR}){this.type=type,this.filename=isRendition?asset.renditionFilename:asset.filename,this.width=asset.width,this.height=asset.height,this.asset=asset,this.isProxy=isProxy,this.isRendition=isRendition,this.applyACR=applyACR}getAssetUrl(){return this._assetUrlPromise||(this.isRendition?this._assetUrlPromise=this.asset.getRenditionUrl():this._assetUrlPromise=_bluebird2.default.resolve(this.asset.assetUrl)),this._assetUrlPromise}}exports.default=ImportOption},function(module,exports,__webpack_require__){function webpackContext(req){return __webpack_require__(webpackContextResolve(req))}function webpackContextResolve(req){var id=map[req];if(!(id+1))throw new Error("Cannot find module '"+req+"'.");return id}var map={"./cs/strings.json":96,"./da/strings.json":97,"./de/strings.json":98,"./en/strings.json":99,"./es/strings.json":100,"./fi/strings.json":101,"./fr/strings.json":102,"./hu/strings.json":103,"./it/strings.json":104,"./ja/strings.json":105,"./ko/strings.json":106,"./nb/strings.json":107,"./nl/strings.json":108,"./pl/strings.json":109,"./pt/strings.json":110,"./ru/strings.json":111,"./sv/strings.json":112,"./tr/strings.json":113,"./uk/strings.json":114,"./zh-CN/strings.json":115,"./zh-TW/strings.json":116};webpackContext.keys=function(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=95},function(module){module.exports={LIGHTROOM_PHOTOS:"Fotografie Lightroom",MESSAGES:{NO_INTERNET:"P\u0159ipojte se k internetu.",EMPTY_CATALOG:{TITLE:"Va\u0161e knihovna Lightroom je pr\xE1zdn\xE1.",SUBTITLE:"Je tu docela pr\xE1zdno, p\u0159idejte p\xE1r nov\xFDch fotografi\xED!"},SIGN_IN:"Chcete-li si zobrazit fotografie v aplikaci Lightroom, p\u0159ihlaste se do slu\u017Eby Creative Cloud.",FAILED_TO_LOAD_LR:"Nelze na\u010D\xEDst katalog Fotografie Lightroom. Zkuste to znovu pozd\u011Bji.",SUBSCRIPTION_EXPIRED:"Nem\xE1te p\u0159\xEDstup ke katalogu Fotografie Lightroom. Zkontrolujte stav sv\xE9ho p\u0159edplatn\xE9ho.",SERVICE_UNAVAILABLE:"Tato slu\u017Eba nen\xED dostupn\xE1. Zkontrolujte nastaven\xED s\xEDt\u011B."},BUTTONS:{REFRESH:"Obnovit",DOWNLOAD:"St\xE1hnout",CANCEL:"Zru\u0161it",CANCEL_DOWNLOAD:"Zru\u0161it stahov\xE1n\xED"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Tento obr\xE1zek je inteligentn\xED n\xE1hled.",LEARN_MORE:"Dal\u0161\xED informace"},SMART_PROXY:"Inteligentn\xED n\xE1hled",ORIGINAL_FILE:"P\u016Fvodn\xED soubor",DOWNLOAD_1_PHOTO:"Stahov\xE1n\xED 1 fotografie",DOWNLOAD_N_PHOTOS:"Stahov\xE1n\xED {0} fotografi\xED"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom-fotos",MESSAGES:{NO_INTERNET:"Opret forbindelse til internettet.",EMPTY_CATALOG:{TITLE:"Dit Lightroom-bibliotek er tomt.",SUBTITLE:"Det er lidt ensomt herinde. Lad os tilf\xF8je nogle nye fotos."},SIGN_IN:"Log ind p\xE5 Creative Cloud for at se dine Lightroom-fotos.",FAILED_TO_LOAD_LR:"Kunne ikke logge ind p\xE5 Lightroom-fotos. Pr\xF8v igen senere.",SUBSCRIPTION_EXPIRED:"Du har ikke adgang til Lightroom-fotos. Tjek din abonnementstatus",SERVICE_UNAVAILABLE:"Denne tjeneste er ikke tilg\xE6ngelig. Kontroll\xE9r dine netv\xE6rksindstillinger."},BUTTONS:{REFRESH:"Opdater",DOWNLOAD:"Hent",CANCEL:"Annuller",CANCEL_DOWNLOAD:"Annuller download"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Dette billede er en smart forh\xE5ndsvisning.",LEARN_MORE:"F\xE5 mere at vide"},SMART_PROXY:"Smart forh\xE5ndsvisning",ORIGINAL_FILE:"Oprindelig fil",DOWNLOAD_1_PHOTO:"Downloader 1 foto",DOWNLOAD_N_PHOTOS:"Downloader {0} fotos"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom Photos",MESSAGES:{NO_INTERNET:"Stellen Sie eine Verbindung mit dem Internet her.",EMPTY_CATALOG:{TITLE:"Ihre Lightroom-Bibliothek ist leer.",SUBTITLE:"Irgendwie fehlt hier etwas, also f\xFCgen wir ein paar neue Fotos hinzu."},SIGN_IN:"Um Ihre Lightroom-Fotos anzusehen, melden Sie sich bei Creative Cloud an.",FAILED_TO_LOAD_LR:"Lightroom Photos kann nicht geladen werden. Bitte versuchen Sie es sp\xE4ter erneut.",SUBSCRIPTION_EXPIRED:"Sie haben keinen Zugriff auf Lightroom Photos. Bitte \xFCberpr\xFCfen Sie Ihren Abonnementstatus.",SERVICE_UNAVAILABLE:"Dieser Dienst ist nicht verf\xFCgbar. Bitte \xFCberpr\xFCfen Sie Ihre Netzwerkeinstellungen."},BUTTONS:{REFRESH:"Aktualisieren",DOWNLOAD:"Download",CANCEL:"Abbrechen",CANCEL_DOWNLOAD:"Download abbrechen"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Dieses Bild ist eine Smart-Vorschau.",LEARN_MORE:"Weitere Informationen"},SMART_PROXY:"Smart-Vorschau",ORIGINAL_FILE:"Originaldatei",DOWNLOAD_1_PHOTO:"1 Foto wird heruntergeladen",DOWNLOAD_N_PHOTOS:"{0} Fotos werden heruntergeladen"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom Photos",MESSAGES:{NO_INTERNET:"Please connect to the Internet.",EMPTY_CATALOG:{TITLE:"Your Lightroom Library is Empty.",SUBTITLE:"It\u2019s kinda lonely in here, let\u2019s add some new photos!"},SIGN_IN:"To view your Lightroom photos, please sign in to Creative Cloud.",FAILED_TO_LOAD_LR:"Unable to load Lightroom Photos. Please try again later.",SUBSCRIPTION_EXPIRED:"You do not have access to Lightroom Photos. Please check your subscription status",SERVICE_UNAVAILABLE:"This service is not available. Please check your network settings."},BUTTONS:{REFRESH:"Refresh",DOWNLOAD:"Download",CANCEL:"Cancel",CANCEL_DOWNLOAD:"Cancel Download"},TOOLTIPS:{SMART_PREVIEW_ALERT:"This image is a smart preview.",LEARN_MORE:"Learn More"},SMART_PROXY:"Smart Preview",ORIGINAL_FILE:"Original File",DOWNLOAD_1_PHOTO:"Downloading 1 photo",DOWNLOAD_N_PHOTOS:"Downloading {0} photos"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Fotograf\xEDas de Lightroom",MESSAGES:{NO_INTERNET:"Con\xE9ctese a Internet.",EMPTY_CATALOG:{TITLE:"Su biblioteca de Lightroom est\xE1 vac\xEDa.",SUBTITLE:"Esto est\xE1 un poco vac\xEDo, \xBFa\xF1adimos alguna fotograf\xEDa?"},SIGN_IN:"Para ver sus fotograf\xEDas de Lightroom, inicie sesi\xF3n en Creative Cloud.",FAILED_TO_LOAD_LR:"No se puede cargar Fotograf\xEDas de Lightroom. Int\xE9ntelo de nuevo m\xE1s tarde.",SUBSCRIPTION_EXPIRED:"No tiene acceso a Fotograf\xEDas de Lightroom. Compruebe el estado de su suscripci\xF3n.",SERVICE_UNAVAILABLE:"Este servicio no est\xE1 disponible. Compruebe su configuraci\xF3n de red."},BUTTONS:{REFRESH:"Actualizar",DOWNLOAD:"Descargar",CANCEL:"Cancelar",CANCEL_DOWNLOAD:"Cancelar descarga"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Esta imagen es una previsualizaci\xF3n inteligente.",LEARN_MORE:"M\xE1s informaci\xF3n"},SMART_PROXY:"Previsualizaci\xF3n inteligente",ORIGINAL_FILE:"Archivo original",DOWNLOAD_1_PHOTO:"Descargando 1 fotograf\xEDa",DOWNLOAD_N_PHOTOS:"Descargando {0} fotograf\xEDas"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom-valokuvat",MESSAGES:{NO_INTERNET:"Muodosta Internet-yhteys.",EMPTY_CATALOG:{TITLE:"Lightroom-kirjasto on tyhj\xE4.",SUBTITLE:"Onpa t\xE4\xE4ll\xE4 tyhj\xE4\xE4! Lis\xE4t\xE4\xE4n uusia valokuvia."},SIGN_IN:"Tarkastele Lightroom-valokuviasi kirjautumalla Creative Cloudiin.",FAILED_TO_LOAD_LR:"Lightroom-valokuvien lataaminen ep\xE4onnistui. Yrit\xE4 my\xF6hemmin uudelleen.",SUBSCRIPTION_EXPIRED:"Sinulla ei ole k\xE4ytt\xF6oikeutta Lightroom-valokuviin. Tarkista tilauksen tila.",SERVICE_UNAVAILABLE:"Palvelu ei ole k\xE4ytett\xE4viss\xE4. Tarkista verkkoasetukset."},BUTTONS:{REFRESH:"P\xE4ivit\xE4",DOWNLOAD:"Lataa",CANCEL:"Peruuta",CANCEL_DOWNLOAD:"Peruuta lataus"},TOOLTIPS:{SMART_PREVIEW_ALERT:"T\xE4m\xE4 on \xE4lyk\xE4s esikatselukuva.",LEARN_MORE:"Lis\xE4tietoja"},SMART_PROXY:"\xC4lyk\xE4s esikatselu",ORIGINAL_FILE:"Alkuper\xE4inen tiedosto",DOWNLOAD_1_PHOTO:"Ladataan 1 valokuva",DOWNLOAD_N_PHOTOS:"Ladataan {0} valokuvaa"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Photos\xA0Lightroom",MESSAGES:{NO_INTERNET:"Connectez-vous \xE0 Internet.",EMPTY_CATALOG:{TITLE:"Votre biblioth\xE8que Lightroom est vide.",SUBTITLE:"Elle est un peu seule ici, ajoutons de nouvelles photos\xA0!"},SIGN_IN:"Pour afficher vos photos Lightroom, connectez-vous \xE0 Creative\xA0Cloud.",FAILED_TO_LOAD_LR:"Impossible de charger Photos\xA0Lightroom. R\xE9essayez ult\xE9rieurement.\n",SUBSCRIPTION_EXPIRED:"Vous n'avez pas acc\xE8s \xE0 Photos\xA0Lightroom. Veuillez v\xE9rifier l'\xE9tat de votre abonnement.",SERVICE_UNAVAILABLE:"Ce service n'est pas disponible. V\xE9rifiez vos param\xE8tres r\xE9seau."},BUTTONS:{REFRESH:"Actualiser",DOWNLOAD:"T\xE9l\xE9charger",CANCEL:"Annuler",CANCEL_DOWNLOAD:"Annuler le t\xE9l\xE9chargement"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Cette image est un aper\xE7u dynamique.",LEARN_MORE:"En savoir plus"},SMART_PROXY:"Aper\xE7u dynamique",ORIGINAL_FILE:"Fichier d'origine",DOWNLOAD_1_PHOTO:"T\xE9l\xE9chargement de 1\xA0photo",DOWNLOAD_N_PHOTOS:"T\xE9l\xE9chargement de {0}\xA0photos"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom-f\xE9nyk\xE9pek",MESSAGES:{NO_INTERNET:"Csatlakozzon az internetre.",EMPTY_CATALOG:{TITLE:"Lightroom-k\xF6nyvt\xE1ra \xFCres.",SUBTITLE:"Olyan mag\xE1nyosnak t\u0171nik itt, vegy\xFCnk fel n\xE9h\xE1ny \xFAj fot\xF3t!"},SIGN_IN:"Lightroom-f\xE9nyk\xE9peinek megtekint\xE9s\xE9hez jelentkezzen be a Creative Cloud szolg\xE1ltat\xE1sba.",FAILED_TO_LOAD_LR:"A Lightroom-f\xE9nyk\xE9pek nem t\xF6lthet\u0151k be. Pr\xF3b\xE1lja \xFAjra k\xE9s\u0151bb.",SUBSCRIPTION_EXPIRED:"Nincs hozz\xE1f\xE9r\xE9se a Lightroom-f\xE9nyk\xE9pekhez. Ellen\u0151rizze el\u0151fizet\xE9s\xE9nek \xE9rv\xE9nyess\xE9g\xE9t.",SERVICE_UNAVAILABLE:"A szolg\xE1ltat\xE1s nem \xE9rhet\u0151 el. Ellen\u0151rizze h\xE1l\xF3zati be\xE1ll\xEDt\xE1sait."},BUTTONS:{REFRESH:"Friss\xEDt\xE9s",DOWNLOAD:"Let\xF6lt\xE9s",CANCEL:"M\xE9gse",CANCEL_DOWNLOAD:"Let\xF6lt\xE9s megszak\xEDt\xE1sa"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Ez a k\xE9p intelligens el\u0151n\xE9zet.",LEARN_MORE:"Tov\xE1bbi inform\xE1ci\xF3"},SMART_PROXY:"Intelligens el\u0151n\xE9zet",ORIGINAL_FILE:"Eredeti f\xE1jl",DOWNLOAD_1_PHOTO:"1 f\xE9nyk\xE9p let\xF6lt\xE9se",DOWNLOAD_N_PHOTOS:"{0} f\xE9nyk\xE9p let\xF6lt\xE9se"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Foto Lightroom\n",MESSAGES:{NO_INTERNET:"Connettetevi a Internet.",EMPTY_CATALOG:{TITLE:"La vostra libreria Lightroom \xE8 vuota.",SUBTITLE:"\xC8 un po' vuoto qui, aggiungiamo qualche nuova foto."},SIGN_IN:"Per visualizzare le vostre foto di Lightroom, effettuate l'accesso a Creative Cloud.",FAILED_TO_LOAD_LR:"Impossibile caricare Foto Lightroom. Riprovate pi\xF9 tardi.",SUBSCRIPTION_EXPIRED:"Non disponete dell'accesso a Foto Lightroom. Verificate lo stato del vostro abbonamento",SERVICE_UNAVAILABLE:"Servizio non disponibile. Verificate le impostazioni di rete."},BUTTONS:{REFRESH:"Aggiorna",DOWNLOAD:"Scarica",CANCEL:"Annulla",CANCEL_DOWNLOAD:"Annulla download"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Questa immagine \xE8 un'anteprima avanzata.",LEARN_MORE:"Ulteriori informazioni"},SMART_PROXY:"Anteprima avanzata",ORIGINAL_FILE:"File originale",DOWNLOAD_1_PHOTO:"Download di 1 foto in corso...",DOWNLOAD_N_PHOTOS:"Download di {0} foto in corso..."}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom \u306E\u5199\u771F",MESSAGES:{NO_INTERNET:"\u30A4\u30F3\u30BF\u30FC\u30CD\u30C3\u30C8\u306B\u63A5\u7D9A\u3057\u3066\u304F\u3060\u3055\u3044\u3002",EMPTY_CATALOG:{TITLE:"Lightroom \u30E9\u30A4\u30D6\u30E9\u30EA\u306F\u7A7A\u3067\u3059\u3002",SUBTITLE:"\u5C11\u3057\u3055\u3073\u3057\u3044\u306E\u3067\u3001\u5199\u771F\u3092\u4F55\u679A\u304B\u8FFD\u52A0\u3057\u307E\u3057\u3087\u3046!"},SIGN_IN:"Lightroom \u306E\u5199\u771F\u3092\u8868\u793A\u3059\u308B\u306B\u306F\u3001Creative Cloud \u306B\u30ED\u30B0\u30A4\u30F3\u3057\u3066\u304F\u3060\u3055\u3044\u3002",FAILED_TO_LOAD_LR:"Lightroom \u306E\u5199\u771F\u3092\u8AAD\u307F\u8FBC\u3081\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5F8C\u3067\u3084\u308A\u76F4\u3057\u3066\u304F\u3060\u3055\u3044\u3002",SUBSCRIPTION_EXPIRED:"Lightroom \u306E\u5199\u771F\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u6A29\u304C\u3042\u308A\u307E\u305B\u3093\u3002\u30B5\u30D6\u30B9\u30AF\u30EA\u30D7\u30B7\u30E7\u30F3\u306E\u30B9\u30C6\u30FC\u30BF\u30B9\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002",SERVICE_UNAVAILABLE:"\u3053\u306E\u30B5\u30FC\u30D3\u30B9\u306F\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3002\u30CD\u30C3\u30C8\u30EF\u30FC\u30AF\u8A2D\u5B9A\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},BUTTONS:{REFRESH:"\u66F4\u65B0",DOWNLOAD:"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9",CANCEL:"\u30AD\u30E3\u30F3\u30BB\u30EB",CANCEL_DOWNLOAD:"\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u3092\u30AD\u30E3\u30F3\u30BB\u30EB"},TOOLTIPS:{SMART_PREVIEW_ALERT:"\u3053\u306E\u753B\u50CF\u306F\u30B9\u30DE\u30FC\u30C8\u30D7\u30EC\u30D3\u30E5\u30FC\u3067\u3059\u3002",LEARN_MORE:"\u8A73\u7D30\u60C5\u5831"},SMART_PROXY:"\u30B9\u30DE\u30FC\u30C8\u30D7\u30EC\u30D3\u30E5\u30FC",ORIGINAL_FILE:"\u5143\u30D5\u30A1\u30A4\u30EB",DOWNLOAD_1_PHOTO:"1 \u679A\u306E\u5199\u771F\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D",DOWNLOAD_N_PHOTOS:"{0} \u679A\u306E\u5199\u771F\u3092\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9\u4E2D"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom \uC0AC\uC9C4",MESSAGES:{NO_INTERNET:"\uC778\uD130\uB137\uC5D0 \uC5F0\uACB0\uD558\uC2ED\uC2DC\uC624.",EMPTY_CATALOG:{TITLE:"Lightroom \uB77C\uC774\uBE0C\uB7EC\uB9AC\uAC00 \uBE44\uC5B4 \uC788\uC2B5\uB2C8\uB2E4.",SUBTITLE:"\uC5EC\uAE30\uAC00 \uC880 \uD5C8\uC804\uD558\uB124\uC694. \uC0C8\uB85C\uC6B4 \uC0AC\uC9C4 \uBA87 \uC7A5\uC744 \uCD94\uAC00\uD574 \uBD05\uC2DC\uB2E4!"},SIGN_IN:"Lightroom \uC0AC\uC9C4\uC744 \uBCF4\uB824\uBA74 Creative Cloud\uC5D0 \uB85C\uADF8\uC778\uD558\uC2ED\uC2DC\uC624.",FAILED_TO_LOAD_LR:"Lightroom \uC0AC\uC9C4\uC744 \uB85C\uB4DC\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB098\uC911\uC5D0 \uB2E4\uC2DC \uC2DC\uB3C4\uD558\uC2ED\uC2DC\uC624.",SUBSCRIPTION_EXPIRED:"Lightroom \uC0AC\uC9C4\uC5D0 \uC561\uC138\uC2A4\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uAD6C\uB3C5 \uC0C1\uD0DC\uB97C \uD655\uC778\uD558\uC2ED\uC2DC\uC624.",SERVICE_UNAVAILABLE:"\uC774 \uC11C\uBE44\uC2A4\uB97C \uC0AC\uC6A9\uD560 \uC218 \uC5C6\uC2B5\uB2C8\uB2E4. \uB124\uD2B8\uC6CC\uD06C \uC124\uC815\uC744 \uD655\uC778\uD558\uC2ED\uC2DC\uC624."},BUTTONS:{REFRESH:"\uC0C8\uB85C \uACE0\uCE68",DOWNLOAD:"\uB2E4\uC6B4\uB85C\uB4DC",CANCEL:"\uCDE8\uC18C",CANCEL_DOWNLOAD:"\uB2E4\uC6B4\uB85C\uB4DC \uCDE8\uC18C"},TOOLTIPS:{SMART_PREVIEW_ALERT:"\uC774 \uC774\uBBF8\uC9C0\uB294 \uC2A4\uB9C8\uD2B8 \uBBF8\uB9AC \uBCF4\uAE30\uC785\uB2C8\uB2E4.",LEARN_MORE:"\uC790\uC138\uD788 \uC54C\uC544\uBCF4\uAE30"},SMART_PROXY:"\uC2A4\uB9C8\uD2B8 \uBBF8\uB9AC \uBCF4\uAE30",ORIGINAL_FILE:"\uC6D0\uBCF8 \uD30C\uC77C",DOWNLOAD_1_PHOTO:"\uC0AC\uC9C4 \uD55C \uC7A5\uC744 \uB2E4\uC6B4\uB85C\uB4DC \uC911",DOWNLOAD_N_PHOTOS:"\uC0AC\uC9C4 {0}\uC7A5\uC744 \uB2E4\uC6B4\uB85C\uB4DC \uC911"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom-bilder",MESSAGES:{NO_INTERNET:"Koble til Internett.",EMPTY_CATALOG:{TITLE:"Lightroom-biblioteket ditt er tomt.",SUBTITLE:"Det er litt ensomt her. P\xE5 tide \xE5 legge til noen nye bilder."},SIGN_IN:"Logg p\xE5 Creative Cloud for \xE5 se Lightroom-bildene dine.",FAILED_TO_LOAD_LR:"Kan ikke laste inn Lightroom-bilder. Pr\xF8v p\xE5 nytt senere.",SUBSCRIPTION_EXPIRED:"Du har ikke tilgang til Lightroom-bilder. Kontroller statusen for abonnementet ditt",SERVICE_UNAVAILABLE:"Denne tjenesten er ikke tilgjengelig. Kontroller nettverksinnstillingene dine."},BUTTONS:{REFRESH:"Oppdater",DOWNLOAD:"Last ned",CANCEL:"Avbryt",CANCEL_DOWNLOAD:"Avbryt nedlastingen"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Dette bildet er en smart forh\xE5ndsvisning.",LEARN_MORE:"L\xE6r mer"},SMART_PROXY:"Smart forh\xE5ndsvisning",ORIGINAL_FILE:"Originalfil",DOWNLOAD_1_PHOTO:"Laster ned 1 bilde",DOWNLOAD_N_PHOTOS:"Laster ned {0} bilder"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom-foto's",MESSAGES:{NO_INTERNET:"Maak verbinding met internet.",EMPTY_CATALOG:{TITLE:"Uw Lightroom-bibliotheek is leeg.",SUBTITLE:"Het is een beetje eenzaam hier, laten we een aantal nieuwe foto's toevoegen!"},SIGN_IN:"Meld u aan bij Creative Cloud om uw Lightroom-foto's te bekijken.",FAILED_TO_LOAD_LR:"Kan Lightroom-foto's niet laden. Probeer het later opnieuw.\n",SUBSCRIPTION_EXPIRED:"U hebt geen toegang tot Lightroom-foto's. Controleer uw lidmaatschapsstatus",SERVICE_UNAVAILABLE:"Deze service is niet beschikbaar. Controleer uw netwerkinstellingen."},BUTTONS:{REFRESH:"Vernieuwen",DOWNLOAD:"Downloaden",CANCEL:"Annuleren",CANCEL_DOWNLOAD:"Download annuleren"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Deze afbeelding is een slimme voorvertoning.",LEARN_MORE:"Lees meer"},SMART_PROXY:"Slimme voorvertoning",ORIGINAL_FILE:"Oorspronkelijk bestand",DOWNLOAD_1_PHOTO:"1 foto downloaden",DOWNLOAD_N_PHOTOS:"{0} foto's downloaden"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Zdj\u0119cia programu Lightroom",MESSAGES:{NO_INTERNET:"Nawi\u0105\u017C po\u0142\u0105czenie z Internetem.",EMPTY_CATALOG:{TITLE:"Biblioteka programu Lightroom jest pusta.",SUBTITLE:"Troch\u0119 tu pusto. Dodajmy nowe zdj\u0119cia."},SIGN_IN:"Aby wy\u015Bwietli\u0107 zdj\u0119cia z programu Lightroom, zaloguj si\u0119 w us\u0142udze Creative Cloud.",FAILED_TO_LOAD_LR:"Nie mo\u017Cna wczyta\u0107 obraz\xF3w ze zdj\u0119\u0107 programu Lightroom. Spr\xF3buj ponownie p\xF3\u017Aniej.",SUBSCRIPTION_EXPIRED:"Nie masz dost\u0119pu do zdj\u0119\u0107 programu Lightroom. Sprawd\u017A stan cz\u0142onkostwa.",SERVICE_UNAVAILABLE:"Us\u0142uga nie jest dost\u0119pna. Sprawd\u017A ustawienia sieciowe."},BUTTONS:{REFRESH:"Od\u015Bwie\u017C",DOWNLOAD:"Pobierz",CANCEL:"Anuluj",CANCEL_DOWNLOAD:"Anuluj pobieranie"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Ten obraz jest podgl\u0105dem inteligentnym.",LEARN_MORE:"Wi\u0119cej informacji"},SMART_PROXY:"Podgl\u0105d inteligentny",ORIGINAL_FILE:"Oryginalny plik",DOWNLOAD_1_PHOTO:"Pobieranie 1 zdj\u0119cia",DOWNLOAD_N_PHOTOS:"Pobieranie {0} zdj\u0119\u0107"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Fotos do Lightroom",MESSAGES:{NO_INTERNET:"Conecte \xE0 internet.",EMPTY_CATALOG:{TITLE:"Sua biblioteca do Lightroom est\xE1 vazia.",SUBTITLE:"Est\xE1 meio vazio aqui, vamos adicionar algumas fotos novas!"},SIGN_IN:"Para visualizar suas Fotos do Lightroom, fa\xE7a login no Creative Cloud.",FAILED_TO_LOAD_LR:"N\xE3o \xE9 poss\xEDvel carregar as Fotos do Lightroom. Tente novamente mais tarde.",SUBSCRIPTION_EXPIRED:"Voc\xEA n\xE3o tem acesso \xE0s Fotos do Lightroom. Verifique o status de sua assinatura",SERVICE_UNAVAILABLE:"Este servi\xE7o n\xE3o est\xE1 dispon\xEDvel. Verifique suas configura\xE7\xF5es de rede."},BUTTONS:{REFRESH:"Atualizar",DOWNLOAD:"Baixar",CANCEL:"Cancelar",CANCEL_DOWNLOAD:"Cancelar download"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Esta imagem \xE9 uma visualiza\xE7\xE3o inteligente.",LEARN_MORE:"Saiba mais"},SMART_PROXY:"Visualiza\xE7\xE3o inteligente",ORIGINAL_FILE:"Arquivo original",DOWNLOAD_1_PHOTO:"Fazendo o download de 1 foto",DOWNLOAD_N_PHOTOS:"Fazendo o download de {0} fotos"}},function(module){module.exports={LIGHTROOM_PHOTOS:"\u0424\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0438 Lightroom",MESSAGES:{NO_INTERNET:"\u041F\u043E\u0434\u043A\u043B\u044E\u0447\u0438\u0442\u0435\u0441\u044C \u043A \u0418\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0443.",EMPTY_CATALOG:{TITLE:"\u0412\u0430\u0448\u0430 \u0431\u0438\u0431\u043B\u0438\u043E\u0442\u0435\u043A\u0430 Lightroom \u043F\u0443\u0441\u0442\u0430.",SUBTITLE:"\u0417\u0434\u0435\u0441\u044C \u0441\u0442\u0430\u043B\u043E \u043A\u0430\u043A-\u0442\u043E \u0441\u043A\u0443\u0447\u043D\u043E. \u0421\u0430\u043C\u043E\u0435 \u0432\u0440\u0435\u043C\u044F \u0434\u043E\u0431\u0430\u0432\u0438\u0442\u044C \u043D\u043E\u0432\u044B\u0435 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0438!"},SIGN_IN:"\u0414\u043B\u044F \u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0439 Lightroom \u0432\u044B\u043F\u043E\u043B\u043D\u0438\u0442\u0435 \u0432\u0445\u043E\u0434 \u0432 Creative Cloud.",FAILED_TO_LOAD_LR:"\u041D\u0435 \u0443\u0434\u0430\u0435\u0442\u0441\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0438 Lightroom. \u041F\u043E\u0432\u0442\u043E\u0440\u0438\u0442\u0435 \u043F\u043E\u043F\u044B\u0442\u043A\u0443 \u043F\u043E\u0437\u0434\u043D\u0435\u0435.",SUBSCRIPTION_EXPIRED:"\u0423 \u0432\u0430\u0441 \u043D\u0435\u0442 \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043A \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u044F\u043C Lightroom. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0441\u043E\u0441\u0442\u043E\u044F\u043D\u0438\u0435 \u043F\u043E\u0434\u043F\u0438\u0441\u043A\u0438",SERVICE_UNAVAILABLE:"\u0421\u043B\u0443\u0436\u0431\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430. \u041F\u0440\u043E\u0432\u0435\u0440\u044C\u0442\u0435 \u0441\u0435\u0442\u0435\u0432\u044B\u0435 \u043D\u0430\u0441\u0442\u0440\u043E\u0439\u043A\u0438."},BUTTONS:{REFRESH:"\u041E\u0431\u043D\u043E\u0432\u0438\u0442\u044C",DOWNLOAD:"\u0417\u0430\u0433\u0440\u0443\u0437\u0438\u0442\u044C",CANCEL:"\u041E\u0442\u043C\u0435\u043D\u0430",CANCEL_DOWNLOAD:"\u041E\u0442\u043C\u0435\u043D\u0430 \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0438"},TOOLTIPS:{SMART_PREVIEW_ALERT:"\u042D\u0442\u043E \u0438\u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u0438\u0435 \u044F\u0432\u043B\u044F\u0435\u0442\u0441\u044F \u0441\u043C\u0430\u0440\u0442-\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440\u043E\u043C.",LEARN_MORE:"\u041F\u043E\u0434\u0440\u043E\u0431\u043D\u0435\u0435"},SMART_PROXY:"\u0421\u043C\u0430\u0440\u0442-\u043F\u0440\u043E\u0441\u043C\u043E\u0442\u0440",ORIGINAL_FILE:"\u041E\u0440\u0438\u0433\u0438\u043D\u0430\u043B\u044C\u043D\u044B\u0439 \u0444\u0430\u0439\u043B",DOWNLOAD_1_PHOTO:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 1 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0438",DOWNLOAD_N_PHOTOS:"\u0417\u0430\u0433\u0440\u0443\u0437\u043A\u0430 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0438\u0439: {0}"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom Photos",MESSAGES:{NO_INTERNET:"Du m\xE5ste ansluta till Internet.",EMPTY_CATALOG:{TITLE:"Lightroom-biblioteket \xE4r tomt.",SUBTITLE:"L\xE4gg till n\xE5gra foton h\xE4r!"},SIGN_IN:"Logga in p\xE5 Creative Cloud f\xF6r att se dina foton i Lightroom.",FAILED_TO_LOAD_LR:"Det gick inte att l\xE4sa in Lightroom Photos. F\xF6rs\xF6k igen senare.",SUBSCRIPTION_EXPIRED:"Du har ingen \xE5tkomst till Lightroom Photos. Kontrollera din prenumerationsstatus",SERVICE_UNAVAILABLE:"Den h\xE4r tj\xE4nsten \xE4r inte tillg\xE4nglig. Kontrollera n\xE4tverksinst\xE4llningarna."},BUTTONS:{REFRESH:"Uppdatera",DOWNLOAD:"H\xE4mta",CANCEL:"Avbryt",CANCEL_DOWNLOAD:"Avbryt h\xE4mtning"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Den h\xE4r bilden \xE4r en smart f\xF6rhandsvisning.",LEARN_MORE:"L\xE4r dig mer"},SMART_PROXY:"Smart f\xF6rhandsvisning",ORIGINAL_FILE:"Originalfil",DOWNLOAD_1_PHOTO:"H\xE4mtar ett foto",DOWNLOAD_N_PHOTOS:"H\xE4mtar {0} foton"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom Foto\u011Fraflar\u0131",MESSAGES:{NO_INTERNET:"\u0130nternete ba\u011Flan\u0131n.",EMPTY_CATALOG:{TITLE:"Lightroom Kitapl\u0131\u011F\u0131n\u0131z Bo\u015F.",SUBTITLE:"Buras\u0131 biraz bo\u015F g\xF6r\xFCn\xFCyor, yeni foto\u011Fraflar ekleyelim!"},SIGN_IN:"Lightroom foto\u011Fraflar\u0131n\u0131z\u0131 g\xF6r\xFCnt\xFClemek i\xE7in Creative Cloud'a giri\u015F yap\u0131n.",FAILED_TO_LOAD_LR:"Lightroom Foto\u011Fraflar\u0131 y\xFCklenemedi. Daha sonra tekrar deneyin.",SUBSCRIPTION_EXPIRED:"Lightroom Foto\u011Fraflar\u0131na eri\u015Fiminiz yok. Abonelik durumunuzu kontrol edin",SERVICE_UNAVAILABLE:"Bu hizmet kullan\u0131lam\u0131yor. L\xFCtfen a\u011F ayarlar\u0131n\u0131z\u0131 kontrol edin."},BUTTONS:{REFRESH:"Yenile",DOWNLOAD:"\u0130ndir",CANCEL:"\u0130ptal",CANCEL_DOWNLOAD:"\u0130ndirmeyi \u0130ptal Et"},TOOLTIPS:{SMART_PREVIEW_ALERT:"Bu g\xF6r\xFCnt\xFC bir ak\u0131ll\u0131 \xF6nizlemedir.",LEARN_MORE:"Daha Fazla Bilgi"},SMART_PROXY:"Ak\u0131ll\u0131 \xD6nizleme",ORIGINAL_FILE:"Orijinal Dosya",DOWNLOAD_1_PHOTO:"1 foto\u011Fraf indiriliyor",DOWNLOAD_N_PHOTOS:"{0} foto\u011Fraf indiriliyor"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom \u0424\u043E\u0442\u043E",MESSAGES:{NO_INTERNET:"\u041F\u0456\u0434\u043A\u043B\u044E\u0447\u0456\u0442\u044C\u0441\u044F \u0434\u043E \u0406\u043D\u0442\u0435\u0440\u043D\u0435\u0442\u0443",EMPTY_CATALOG:{TITLE:"\u0412\u0430\u0448\u0430 \u0431\u0456\u0431\u043B\u0456\u043E\u0442\u0435\u043A\u0430 Lightroom \u043F\u0443\u0441\u0442\u0430.",SUBTITLE:"\u0422\u0443\u0442 \u044F\u043A\u043E\u0441\u044C \u0441\u0430\u043C\u043E\u0442\u043D\u044C\u043E, \u0434\u043E\u0434\u0430\u0439\u043C\u043E \u043D\u043E\u0432\u0438\u0445 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0456\u0439!"},SIGN_IN:"\u0429\u043E\u0431 \u043F\u0435\u0440\u0435\u0433\u043B\u044F\u043D\u0443\u0442\u0438 \u0444\u043E\u0442\u043E\u0433\u0440\u0430\u0444\u0456\u0457 Lightroom, \u0443\u0432\u0456\u0439\u0434\u0456\u0442\u044C \u0443 \u0441\u0432\u0456\u0439 \u043E\u0431\u043B\u0456\u043A\u043E\u0432\u0438\u0439 \u0437\u0430\u043F\u0438\u0441 Creative Cloud.",FAILED_TO_LOAD_LR:"\u041D\u0435 \u0432\u0434\u0430\u043B\u043E\u0441\u044F \u043F\u0435\u0440\u0435\u0434\u0430\u0442\u0438 Lightroom \u0424\u043E\u0442\u043E. \u041F\u043E\u0432\u0442\u043E\u0440\u0456\u0442\u044C \u0441\u043F\u0440\u043E\u0431\u0443 \u043F\u0456\u0437\u043D\u0456\u0448\u0435.",SUBSCRIPTION_EXPIRED:"\u0423 \u0432\u0430\u0441 \u043D\u0435\u043C\u0430\u0454 \u0434\u043E\u0441\u0442\u0443\u043F\u0443 \u0434\u043E Lightroom \u0424\u043E\u0442\u043E. \u041F\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0441\u0442\u0430\u043D \u043F\u0435\u0440\u0435\u0434\u043F\u043B\u0430\u0442\u0438.",SERVICE_UNAVAILABLE:"\u0426\u044F \u0441\u043B\u0443\u0436\u0431\u0430 \u043D\u0435\u0434\u043E\u0441\u0442\u0443\u043F\u043D\u0430. \u041F\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043F\u0430\u0440\u0430\u043C\u0435\u0442\u0440\u0438 \u043C\u0435\u0440\u0435\u0436\u0456."},BUTTONS:{REFRESH:"\u041E\u043D\u043E\u0432\u0438\u0442\u0438",DOWNLOAD:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0438\u0442\u0438",CANCEL:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438",CANCEL_DOWNLOAD:"\u0421\u043A\u0430\u0441\u0443\u0432\u0430\u0442\u0438 \u0437\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F"},TOOLTIPS:{SMART_PREVIEW_ALERT:"\u0426\u0435 \u0437\u043E\u0431\u0440\u0430\u0436\u0435\u043D\u043D\u044F \u0441\u043C\u0430\u0440\u0442-\u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434\u0443.",LEARN_MORE:"\u0414\u043E\u043A\u043B\u0430\u0434\u043D\u0456\u0448\u0435"},SMART_PROXY:"\u0421\u043C\u0430\u0440\u0442-\u043F\u0435\u0440\u0435\u0433\u043B\u044F\u0434",ORIGINAL_FILE:"\u0412\u0438\u0445\u0456\u0434\u043D\u0438\u0439 \u0444\u0430\u0439\u043B",DOWNLOAD_1_PHOTO:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F 1 \u0444\u043E\u0442\u043E",DOWNLOAD_N_PHOTOS:"\u0417\u0430\u0432\u0430\u043D\u0442\u0430\u0436\u0435\u043D\u043D\u044F {0} \u0444\u043E\u0442\u043E"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom \u7167\u7247",MESSAGES:{NO_INTERNET:"\u8BF7\u8FDE\u63A5\u5230 Internet\u3002",EMPTY_CATALOG:{TITLE:"\u60A8\u7684 Lightroom \u5E93\u4E3A\u7A7A\u3002",SUBTITLE:"\u8FD9\u91CC\u6709\u4E9B\u51B7\u6E05\uFF0C\u6211\u4EEC\u6765\u6DFB\u52A0\u4E00\u4E9B\u65B0\u7167\u7247\u5427\uFF01"},SIGN_IN:"\u8981\u67E5\u770B\u60A8\u7684 Lightroom \u7167\u7247\uFF0C\u8BF7\u767B\u5F55 Creative Cloud\u3002",FAILED_TO_LOAD_LR:"\u65E0\u6CD5\u8F7D\u5165 Lightroom \u7167\u7247\u3002\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002",SUBSCRIPTION_EXPIRED:"\u60A8\u4E0D\u5177\u5907\u8BBF\u95EE Lightroom \u7167\u7247\u7684\u6743\u9650\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u8BA2\u9605\u72B6\u6001",SERVICE_UNAVAILABLE:"\u6B64\u670D\u52A1\u4E0D\u53EF\u7528\u3002\u8BF7\u68C0\u67E5\u60A8\u7684\u7F51\u7EDC\u8BBE\u7F6E\u3002"},BUTTONS:{REFRESH:"\u5237\u65B0",DOWNLOAD:"\u4E0B\u8F7D",CANCEL:"\u53D6\u6D88",CANCEL_DOWNLOAD:"\u53D6\u6D88\u4E0B\u8F7D"},TOOLTIPS:{SMART_PREVIEW_ALERT:"\u6B64\u56FE\u50CF\u662F\u667A\u80FD\u9884\u89C8\u3002",LEARN_MORE:"\u4E86\u89E3\u66F4\u591A"},SMART_PROXY:"\u667A\u80FD\u9884\u89C8",ORIGINAL_FILE:"\u539F\u59CB\u6587\u4EF6",DOWNLOAD_1_PHOTO:"\u6B63\u5728\u4E0B\u8F7D 1 \u5F20\u7167\u7247",DOWNLOAD_N_PHOTOS:"\u6B63\u5728\u4E0B\u8F7D {0} \u5F20\u7167\u7247"}},function(module){module.exports={LIGHTROOM_PHOTOS:"Lightroom \u76F8\u7247",MESSAGES:{NO_INTERNET:"\u8ACB\u9023\u7DDA\u81F3\u7DB2\u969B\u7DB2\u8DEF\u3002",EMPTY_CATALOG:{TITLE:"\u60A8\u7684 Lightroom \u5716\u5EAB\u662F\u7A7A\u7684\u3002",SUBTITLE:"\u9019\u6A23\u611F\u89BA\u6709\u9EDE\u5BC2\u5BDE\uFF0C\u8B93\u6211\u5011\u52A0\u5E7E\u5F35\u65B0\u76F8\u7247\u5427\uFF01"},SIGN_IN:"\u8ACB\u767B\u5165 Creative Cloud \u4EE5\u6AA2\u8996\u60A8\u7684 Lightroom \u76F8\u7247\u3002",FAILED_TO_LOAD_LR:"\u7121\u6CD5\u8B80\u53D6 Lightroom \u76F8\u7247\uFF0C\u8ACB\u7A0D\u5F8C\u518D\u8A66\u3002",SUBSCRIPTION_EXPIRED:"\u60A8\u7121\u6CD5\u5B58\u53D6 Lightroom \u76F8\u7247\u3002\u8ACB\u6AA2\u67E5\u60A8\u7684\u8A02\u95B1\u72C0\u614B",SERVICE_UNAVAILABLE:"\u6B64\u670D\u52D9\u7121\u6CD5\u4F7F\u7528\u3002\u8ACB\u6AA2\u67E5\u60A8\u7684\u7DB2\u8DEF\u8A2D\u5B9A\u3002"},BUTTONS:{REFRESH:"\u91CD\u65B0\u6574\u7406",DOWNLOAD:"\u4E0B\u8F09",CANCEL:"\u53D6\u6D88",CANCEL_DOWNLOAD:"\u53D6\u6D88\u4E0B\u8F09"},TOOLTIPS:{SMART_PREVIEW_ALERT:"\u672C\u5F71\u50CF\u70BA\u667A\u6167\u578B\u9810\u89BD\u3002",LEARN_MORE:"\u77AD\u89E3\u66F4\u591A"},SMART_PROXY:"\u667A\u6167\u578B\u9810\u89BD",ORIGINAL_FILE:"\u539F\u59CB\u6A94\u6848",DOWNLOAD_1_PHOTO:"\u6B63\u5728\u4E0B\u8F09 1 \u5F35\u76F8\u7247",DOWNLOAD_N_PHOTOS:"\u6B63\u5728\u4E0B\u8F09 {0} \u5F35\u76F8\u7247"}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Observable=__webpack_require__(12),_Observable2=_interopRequireDefault(_Observable);class LrImporterController{constructor({clientId,openLinkHandler,reportEventHandler}){this.clientId=clientId,this._openLinkHandler=openLinkHandler,this._reportEventHandler=reportEventHandler}openLink(url){this._openLinkHandler(url)}report(eventName,data){this._reportEventHandler(eventName,data)}}exports.default=LrImporterController,exports.default=LrImporterController=(0,_Builder2.default)(LrImporterController,{properties:[{name:"accessToken",decorators:[(0,_Observable2.default)()],kind:"property"}]})},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _setter_div1_ref(_data,_value2){_data.$_scope._this.importerElement=_value2}function _update_div(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div(){return(0,_nls.localize)("BUTTONS.REFRESH")}function _listener_div_on_click(){var _data=this._jsx_data;_data&&_data.$_parent.$_parent.$_scope._this._handleRefresh()}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(){return _LrImporter2.default.container}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_IfComponent=__webpack_require__(14),_IfComponent2=_interopRequireDefault(_IfComponent),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_Observable=__webpack_require__(12),_Observable2=_interopRequireDefault(_Observable),_Attribute=__webpack_require__(10),_Attribute2=_interopRequireDefault(_Attribute),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_bluebird=__webpack_require__(4),_bluebird2=_interopRequireDefault(_bluebird),_log=__webpack_require__(13),_Asset=__webpack_require__(119),_Asset2=_interopRequireDefault(_Asset),_nls=__webpack_require__(15),_LrImporter=__webpack_require__(121),_LrImporter2=_interopRequireDefault(_LrImporter),_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0);var _if=_data._if=_component_if.make(_factory);_if.$_parent=_data,_if.template.run(_factory,_if);var div1=_data.div1=_factory.pushTemplateNode(_tpl_div3);_setter_div1_ref(_data,div1),_factory.exitNode(div)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate),_data._if.template.dispose(_factory,_data._if),_setter_div1_ref(_data,null)},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div_class,_update_div_class,_data,!1),_data._if.template.reuse(_factory,_data._if),_setter_div1_ref(_data,_data.div1)},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_tpl_div3=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","lr-importer"),node1}),_component_if={make:function(_factory){return _component_if=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data2){return _data2.$_parent.$_scope._this._ready}},blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div2);_factory.attachEvent(_data.div,"click",_listener_div_on_click),_factory.enterNode(div),_factory.runBinder(_binder_div,_update_div,_data,!0),_factory.exitNode(div)},dispose:function(_factory,_data){_data.div._jsx_data=null,_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div,_update_div,_data,!1)},init:function(_factory,_data){_data.div._jsx_data=_data},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}})}]}),_component_if.make(_factory)}},_tpl_div2=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","refresh"),node1}),_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return node1}),_superClass;const ENTERPRISE_ACCOUNT="ENTERPRISE_ACCOUNT";_superClass=_Component2.default;class LrImporter extends _superClass{attached(){this._attach(),this.watch(()=>this.colorStop,()=>{this.reattach()},!0)}detached(){this._detach()}reattach(){this.onReattach(),this._detach(),this._attach()}get isEmpty(){return this._isEmpty}get isEntitled(){return"subscription_expired"!==this._entitlementStatus&&"trial_expired"!==this._entitlementStatus&&this._entitlementStatus!==ENTERPRISE_ACCOUNT}_initializeImporter(){return this.onInitialize(),this.lrSDKHelper.setup({externalUrlHandler:this._handleOpenLink,features:{sdk_v2:!0,sdk_v2_ui:!0},mode:"embedded"}).then(()=>_bluebird2.default.join(LrSDK.catalog.isEmptyP(),LrSDK.catalog.getEntitlementStatusP()).then(([empty,status])=>{this._isEmpty=empty,this._entitlementStatus=status}))}_attach(){let statusChangeHandler=status=>{"loading"!==status&&(this._ready=!0,this._handleReady(),LrSDK.importer.off("status-change",statusChangeHandler))};this._ready=!1,this._initializeImporter().timeout(1e4,"Lr Importer took too long to initialize.").then(()=>(LrSDK.importer.on("status-change",statusChangeHandler),LrSDK.importer.mode="embedded",LrSDK.importer.softImportLimit=this.softImportLimit,LrSDK.importer.colorStop=this.colorStop,_bluebird2.default.resolve(LrSDK.importer.attachCatalogBrowserP(this.importerElement)))).then(this._handleLrImporterImport).catch(this._handleLrImporterFailure)}_detach(){this._ready=!1,LrSDK&&LrSDK.importer&&LrSDK.importer.detachCatalogBrowser(this.importerElement)}render(){return{template:_Template_div,_this:this}}}exports.default=LrImporter,exports.default=LrImporter=(0,_Builder2.default)(LrImporter,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null),module,"LrImporter")],properties:[{name:"softImportLimit",decorators:[(0,_Attribute2.default)()],init(){return 10}},{name:"lrSDKHelper",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"colorStop",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"onInitialize",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"onReady",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"onImport",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"onError",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"onReattach",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}},{name:"_isEmpty",decorators:[(0,_Observable2.default)()],kind:"property"},{name:"_ready",decorators:[(0,_Observable2.default)()],init(){return!1}},{name:"_handleLrImporterImport",decorators:[(0,_Bind2.default)()],fn:function(journal){if(!journal)return void(0,_log.debug)("[cc-photos-importer] CC Photos failed to attach");if((0,_log.debug)("[cc-photos-importer] CC Photos returned journal",journal),this.onImport){let baseUrl=journal.base,assets=journal.resources.map(({asset})=>new _Asset2.default(asset,baseUrl));this.onImport(assets)}return null}},{name:"_handleLrImporterFailure",decorators:[(0,_Bind2.default)()],fn:function({code,description}){if(1046===code)return this._ready=!0,this._isEmpty=!0,this._entitlementStatus=ENTERPRISE_ACCOUNT,void this._handleReady();let err=new Error(`${code} ${description}`);(0,_log.warn)("[cc-photos-importer] CC Photos returned an error",err),this.onError(err)}},{name:"_handleRefresh",decorators:[(0,_Bind2.default)()],fn:function(){this.reattach()}},{name:"_handleOpenLink",decorators:[(0,_Bind2.default)()],fn:function(url){this.scope.importer.openLink(url)}},{name:"_handleReady",decorators:[(0,_Bind2.default)()],fn:function(){this.onReady&&this.onReady(this.isEmpty,this.isEntitled)}}]})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _bluebird=__webpack_require__(4),_bluebird2=_interopRequireDefault(_bluebird),_get=__webpack_require__(46),_get2=_interopRequireDefault(_get),_request=__webpack_require__(120),_log=__webpack_require__(13);class Asset{constructor(asset,baseUrl){if(this._asset=asset,this.baseUrl=baseUrl,!this._asset.links["/rels/master"]&&!this._asset.links["/rels/proxy_type/2560"])throw new Error("Asset must have either master or proxy link",asset);let importSource=this._asset.payload.importSource,originalFilename=importSource.fileName,originalWidth=importSource.originalWidth,originalHeight=importSource.originalHeight;this.isSmartProxy?(this.assetUrl=this.baseUrl+this._asset.links["/rels/proxy_type/2560"].href,this.width=_Mathround(2560*_Mathmin(originalWidth/originalHeight,1)),this.height=_Mathround(2560*_Mathmin(originalHeight/originalWidth,1)),this.filename=originalFilename.replace(/\.\w+$/,".DNG")):(this.assetUrl=this.baseUrl+this._asset.links["/rels/master"].href,this.filename=originalFilename,this.width=originalWidth,this.height=originalHeight),this.renditionFilename=originalFilename.replace(/\.\w+$/,".JPEG")}get isSmartProxy(){return!this._asset.links["/rels/master"]}get assetId(){return this._asset.id}get extension(){let results=this.filename.match(/[^\.]\.(\w+)$/);return results?results[1]:null}get contentType(){return this.isSmartProxy?"image/x-adobe-dng":(0,_get2.default)(this._asset,"payload.importSource.contentType")}getRenditionUrl(){return this._renditionUrlPromise||((0,_log.debug)("[cc-photos-importer] Request OZ to generate fullsize/smart proxy rendition"),this._renditionUrlPromise=this.isSmartProxy?LrSDK.catalog.get2560RenditionRelativeUrlP(this.baseUrl,this._asset):LrSDK.catalog.getFullsizeRenditionRelativeUrlP(this.baseUrl,this._asset),this._renditionUrlPromise=_bluebird2.default.resolve(this._renditionUrlPromise)),this._renditionUrlPromise}get hasXmpString(){return!!(0,_get2.default)(this._asset,"payload.develop.xmpCameraRaw")}get userEdited(){return!!(0,_get2.default)(this._asset,"payload.develop.userUpdated")}getXmpString(accessToken,clientId){if(!this.hasXmpString)return _bluebird2.default.reject(new Error("Asset does not have a XMP string"));let xmpString=(0,_get2.default)(this._asset,"payload.develop.xmpCameraRaw");if("string"==typeof xmpString)return _bluebird2.default.resolve(xmpString);let externalXmpUrl=`${this.baseUrl}${(0,_get2.default)(this._asset,"links./rels/xmp/develop.href")}`;return(0,_log.debug)(`[cc-photos-importer] Getting external XMP from ${externalXmpUrl}`),(0,_request.requestWithAccessToken)(externalXmpUrl,accessToken,clientId).get("response")}get userOrientation(){return(0,_get2.default)(this._asset,"payload.develop.userOrientation")}get originalFilesize(){return(0,_get2.default)(this._asset,"payload.importSource.fileSize",null)}toAnalyticsData(){return{assetId:this.assetId,extension:this.extension,contentType:this.contentType,isSmartProxy:this.isSmartProxy,originalFileSize:this.originalFilesize}}}exports.default=Asset},function(module,exports,__webpack_require__){"use strict";function requestWithAccessToken(url,accessToken,clientId,options={}){let{maxRetry=2,retryInterval=2e3}=options;return new _bluebird2.default((resolve,reject)=>{var request=new XMLHttpRequest;request.onload=()=>{if(200!==request.status){if(0===maxRetry)reject(new Error(`Failed to get from URL ${url} (${request.status})`));else{let retryPromise=_bluebird2.default.delay(retryInterval).then(()=>requestWithAccessToken(url,accessToken,clientId,{maxRetry:maxRetry-1}));resolve(retryPromise)}return}resolve({response:request.response})},request.open("GET",url),request.setRequestHeader("Authorization",`Bearer ${accessToken}`),request.setRequestHeader("x-api-key",clientId),request.send()})}Object.defineProperty(exports,"__esModule",{value:!0}),exports.requestWithAccessToken=requestWithAccessToken;var _bluebird=__webpack_require__(4),_bluebird2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_bluebird)},function(module){module.exports={container:"_1wWPqbqei1xOGH35AaX7CL"}},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-refresh-2KAV03j.svg"},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _update_button(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.button_binder=signals,_data.button_invalidate=invalidateFn;var previousValue=_data.button_value1;(firstRun||previousValue!==binderValue)&&(_data.button_value1=binderValue,_data.button_content=_factory.renderContent(_data.button_content,binderValue))}function _binder_button(){return(0,_nls.localize)("BUTTONS.CANCEL_DOWNLOAD")}function _listener_button_on_click(){var _data=this._jsx_data;_data&&_data.$_scope._this._handleCancel()}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(){return _Download2.default.container}function _update_h(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.h2_binder=signals,_data.h2_invalidate=invalidateFn;var previousValue=_data.h2_value1;(firstRun||previousValue!==binderValue)&&(_data.h2_value1=binderValue,_data.h2_content=_factory.renderContent(_data.h2_content,binderValue))}function _binder_h(_data){return(0,_nls.localize)(1===_data.$_scope._this.task.items.length?"DOWNLOAD_1_PHOTO":"DOWNLOAD_N_PHOTOS",_data.$_scope._this.task.items.length)}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_RepeatComponent=__webpack_require__(124),_RepeatComponent2=_interopRequireDefault(_RepeatComponent),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Attribute=__webpack_require__(10),_Attribute2=_interopRequireDefault(_Attribute),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_nls=__webpack_require__(15),_DownloadItem=__webpack_require__(126),_DownloadItem2=_interopRequireDefault(_DownloadItem),_Download=__webpack_require__(133),_Download2=_interopRequireDefault(_Download),_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div);var h2=_data.h2=_factory.pushTemplateNode(_tpl_h);_factory.enterNode(h2),_factory.runBinder(_binder_h,_update_h,_data,!0),_factory.exitNode(h2);var div1=_data.div1=_factory.pushTemplateNode(_tpl_div2);_factory.enterNode(div1),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0);var repeat=_data.repeat=_component_repeat.make(_factory);repeat.$_parent=_data,repeat.template.run(_factory,repeat),_factory.exitNode(div1);var div2=_data.div2=_factory.pushTemplateNode(_tpl_div3);_factory.enterNode(div2);var button=_data.button=_factory.pushTemplateNode(_tpl_button);_factory.attachEvent(_data.button,"click",_listener_button_on_click),_factory.enterNode(button),_factory.runBinder(_binder_button,_update_button,_data,!0),_factory.exitNode(button),_factory.exitNode(div2),_factory.exitNode(div)},dispose:function(_factory,_data){_factory.removeSignals(_data.h2_binder,_data.h2_invalidate),_data.h2_content=_factory.disposeContent(_data.h2_content),_data.h2_value1=void 0,_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate),_data.repeat.template.dispose(_factory,_data.repeat),_data.button._jsx_data=null,_factory.removeSignals(_data.button_binder,_data.button_invalidate),_data.button_content=_factory.disposeContent(_data.button_content),_data.button_value1=void 0},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_h,_update_h,_data,!1),_factory.runBinder(_binder_div_class,_update_div_class,_data,!1),_data.repeat.template.reuse(_factory,_data.repeat),_factory.runBinder(_binder_button,_update_button,_data,!1)},init:function(_factory,_data){_data.button._jsx_data=_data},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_tpl_button=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("button");return _factory.attr._class(node1,"class","spc-button"),node1}),_tpl_div3=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","download-actions"),node1}),_component_repeat={make:function(_factory){return _component_repeat=_factory.makeComponent(_RepeatComponent2.default,{args:1,props:{getCollection:function(_data2){return _data2.$_parent.$_scope._this.task.items}},blocks:[{name:"children",template:_factory.makeComponent(_DownloadItem2.default,{attributes:[{name:"item",get:function(){var _data3=this.$_view;if(_data3)return _data3.v0},set:function(_value2){var _data3=this.$_view;_data3&&(_data3.v0=_value2)}}]})}]}),_component_repeat.make(_factory)}},_tpl_div2=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","items"),node1}),_tpl_h=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("h2");return node1}),_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return node1});class Download extends _Component2.default{attached(){this._handleDownload()}detached(){this.task&&this.task.isDownloading&&this.task.cancelDownload()}_handleDownload(){this.task.download((error,item)=>{let data=item.asset.toAnalyticsData();data.error=(error||"Unknown Error").toString(),this.scope.importer.report("download-failed",data)}).then(this.onComplete)}_handleCancel(){this.task.cancelDownload(),this.onCancel()}render(){return{template:_Template_div,_this:this}}}exports.default=Download,exports.default=Download=(0,_Builder2.default)(Download,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null),module,"Download")],properties:[{name:"task",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"onComplete",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"onCancel",decorators:[(0,_Attribute2.default)()],kind:"property"}]})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_LruCache=__webpack_require__(47),_LruCache2=_interopRequireDefault(_LruCache),_ObjectId=__webpack_require__(22),_ObjectId2=_interopRequireDefault(_ObjectId),_CollectionUtils=__webpack_require__(125),NewState=1,ReuseState=2,DeleteState=4;exports.default=class{static make({props,blocks,args}){function injectPlaceholder(f,data){var placeholder=data.$_placeholder;placeholder?f.pushNode(placeholder):data.$_placeholder=f.pushCommentNode("empty repeat")}function removeAll(f,data,previousList,previousCount){f.gotoBeforeView(previousList[0]),injectPlaceholder(f,data),data.$_list=null,data.$_previousList=null,data.$_map=null;var oldDisableCacheState=_LruCache2.default.DISABLE_CACHING_BEYOND_CAPACITY;_LruCache2.default.DISABLE_CACHING_BEYOND_CAPACITY=!0;for(var index=0,view;index<previousCount;++index)view=previousList[index],view.$_key=null,childrenTemplate.cache(f,view);_LruCache2.default.DISABLE_CACHING_BEYOND_CAPACITY=oldDisableCacheState}function recreateAll(f,data,collection,count,isArray,sourceObject){f.gotoAfterNode(data.$_placeholder),f.removeNode(data.$_placeholder),data.$_placeholder=null;var list=data.$_list=[];if(data.$_map=null,isArray)for(let index=0,view;index<count;++index)view=childrenTemplate.make(f),view.$_parent=data,view.v0=collection[index],needsKey&&(view.v1=index),view.$_key=null,childrenTemplate.run(f,view),list.push(view);else for(let index=0,view;index<count;++index){view=childrenTemplate.make(f),view.$_parent=data;var itemKey=collection[index];view.v0=sourceObject[itemKey],needsKey&&(view.v1=itemKey),view.$_key=null,childrenTemplate.run(f,view),list.push(view)}}function makeMap(data,previousList,previousCount){for(var map=new Map,index=0;index<previousCount;++index){var view=previousList[index],key=view.$_key||(view.$_key=getKey?data.$_keyMethod(view.v0):(0,_ObjectId2.default)(view.v0));map.set(key,view),view.$_index=index,view.$_state=DeleteState}return map}function makeNewPositions(data,map,previousList,collection,count,isArray,sourceObject){var input=data.$_previousList||[],view,key,value;input.length=count;for(var index=0;index<count;++index)value=collection[index],!isArray&&(value=sourceObject[value]),view=previousList[index],view&&view.v0===value||(key=getKey?data.$_keyMethod(value):(0,_ObjectId2.default)(value),view=map.get(key)),view&&view.$_state===DeleteState?(view.$_state=3,input[index]=view):input[index]=null;return data.$_previousList=data.$_list,data.$_list=input,input}function removeDeletedItems(f,map,data,deletedItems){var oldDisableCacheState=_LruCache2.default.DISABLE_CACHING_BEYOND_CAPACITY;_LruCache2.default.DISABLE_CACHING_BEYOND_CAPACITY=!0;for(var i=0,l=deletedItems.length,view;i<l;++i)view=deletedItems[i],map.delete(view.$_key),view.$_key=null,childrenTemplate.cache(f,view);_LruCache2.default.DISABLE_CACHING_BEYOND_CAPACITY=oldDisableCacheState}function lris(f,collection,map,input,count,data,deletedItems,isArray,sourceObject){for(var maxStack=-1,i=0,item;i<count;++i){if(item=input[i],!item){var itemValue=collection[i];isArray||(itemValue=sourceObject[itemValue]);var newItemKey=getKey?data.$_keyMethod(itemValue):(0,_ObjectId2.default)(itemValue);if(!deletedItems.length){item=input[i]=childrenTemplate.make(f),item.$_parent=data,item.v0=itemValue,needsKey&&(item.v1=isArray?i:collection[i]),item.$_key=newItemKey,item.$_state=NewState,map.set(newItemKey,item);continue}item=input[i]=deletedItems.pop(),map.delete(item.$_key),map.set(newItemKey,item),item.$_state=ReuseState,item.$_key=newItemKey}for(var lookup=item.$_index,start=0,end=maxStack;start<=end;){var mid=_Mathround((start+end)/2),midIndex=input[stack[mid]].$_index;if(midIndex===lookup){start=mid;break}midIndex<lookup?start=mid+1:end=mid-1}item.$_pred=0<start?stack[start-1]:-1,stack[start]=i,start>maxStack&&(maxStack=start)}return stack[maxStack]}function updateItems(f,collection,input,start,end,fromCache,isArray,sourceObject){for(var i=start,view;i<end;++i)switch(view=input[i],view.$_state){case NewState:childrenTemplate.run(f,view);break;case ReuseState:if(fromCache||childrenTemplate.dispose(f,view),childrenTemplate.move(f,view),isArray)view.v0=collection[i],needsKey&&(view.v1=i);else{var itemKey=collection[i];view.v0=sourceObject[itemKey],needsKey&&(view.v1=itemKey)}childrenTemplate.reuse(f,view);break;default:childrenTemplate.move(f,view),(fromCache||needsKey&&view.v1!==(isArray?i:collection[i]))&&(needsKey&&(view.v1=isArray?i:collection[i]),!fromCache&&childrenTemplate.dispose(f,view),childrenTemplate.reuse(f,view));}}function getDeletedItems(previousList,previousCount){for(var deletedItems=[],i=previousCount-1,view;0<=i;--i)view=previousList[i],view.$_state===DeleteState&&deletedItems.push(view);return deletedItems}function updateWithMap(f,data,collection,count,previousList,previousCount,fromCache,isArray,sourceObject){var map=data.$_map;if(map)for(var i=0,view;i<previousCount;++i)view=previousList[i],view.$_index=i,view.$_state=DeleteState;else map=data.$_map=makeMap(data,previousList,previousCount);var input=makeNewPositions(data,map,previousList,collection,count,isArray,sourceObject),deletedItems=getDeletedItems(previousList,previousCount),curr=lris(f,collection,map,input,count,data,deletedItems,isArray,sourceObject);for(deletedItems.length&&removeDeletedItems(f,map,data,deletedItems),curr<count-1&&(f.gotoAfterView(input[curr]),updateItems(f,collection,input,curr+1,count,fromCache,isArray,sourceObject));-1!==curr;){var item=input[curr];if(item.$_state===ReuseState||fromCache||needsKey&&item.v1!==curr){fromCache||childrenTemplate.dispose(f,item);var itemValue=collection[curr];isArray?(item.v0=itemValue,needsKey&&(item.v1=curr)):(item.v0=sourceObject[itemValue],needsKey&&(item.v1=itemValue)),childrenTemplate.reuse(f,item)}var pred=item.$_pred;pred!==curr-1&&(f.gotoBeforeView(input[curr]),updateItems(f,collection,input,pred+1,curr,fromCache,isArray,sourceObject)),curr=pred}}function updateRepeat(f,data,signals,invalidate,collection,firstRun,fromCache){if(data.$_signals=signals,data.$_invalidate=invalidate,firstRun){if(data.$_savedScope=f.scope,data.$_map=null,data.$_previousList=null,!collection)data.$_list=null,injectPlaceholder(f,data);else if(!(collection instanceof Array)){let list=data.$_list=[];for(let index in collection){let view=childrenTemplate.make(f);view.$_parent=data,view.v0=collection[index],needsKey&&(view.v1=index),view.$_key=null,childrenTemplate.run(f,view),list.push(view)}list.length||(data.$_list=null,injectPlaceholder(f,data))}else if(!collection.length)data.$_list=null,injectPlaceholder(f,data);else{let list=data.$_list=[];for(let index=0,l=collection.length,view;index<l;++index)view=childrenTemplate.make(f),view.$_parent=data,view.v0=collection[index],needsKey&&(view.v1=index),view.$_key=null,childrenTemplate.run(f,view),list.push(view)}return}fromCache&&(data.$_savedScope=f.scope);var previousList=data.$_list,previousCount=previousList?previousList.length:0;if(!collection)return previousCount?void removeAll(f,data,previousList,previousCount):void 0;var isArray=collection instanceof Array,sourceObject;isArray||(sourceObject=collection,collection=Object.keys(collection));var count=collection.length;if(!count)return previousCount?void removeAll(f,data,previousList,previousCount):void 0;var savedScope=f.pushScope(data.$_savedScope);previousCount?updateWithMap(f,data,collection,count,previousList,previousCount,fromCache,isArray,sourceObject):recreateAll(f,data,collection,count,isArray,sourceObject),f.restoreScope(savedScope)}var getCollection=props&&props.getCollection,getKey=props&&props.getKey,childrenTemplate=_Component2.default.getBlockTemplate(blocks),needsKey=1<args;if(!getCollection||!childrenTemplate||!childrenTemplate.firstChild)return _Template2.default.EmptyTemplate;var stack=[];return _Template2.default.make({render(f,data){getKey&&(data.$_keyMethod=getKey(data)),f.runBinder(data=>(0,_CollectionUtils.readCollection)(getCollection(data)),updateRepeat,data,!0)},reuse(f,data){getKey&&(data.$_keyMethod=getKey(data)),f.runBinder(data=>(0,_CollectionUtils.readCollection)(getCollection(data)),updateRepeat,data,!1)},dispose(f,data){f.removeSignals(data.$_signals,data.$_invalidate);var list=data.$_list;if(list)for(var index=0,l=list.length;index<l;++index)childrenTemplate.dispose(f,list[index]);data.$_previousList=null,data.$_map=null,data.$_savedScope=null},move(f,data){var list=data.$_list;if(list&&list.length)for(var index=0,l=list.length;index<l;++index)childrenTemplate.move(f,list[index]);else f.pushNode(data.$_placeholder)},firstChild(f,data){var list=data.$_list;return list&&list.length?childrenTemplate.firstChild(f,list[0]):data.$_placeholder},lastChild(f,data){var list=data.$_list;return list&&list.length?childrenTemplate.lastChild(f,list[list.length-1]):data.$_placeholder}})}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.readCollection=function(source){return source instanceof _ObservableBase2.default&&(source.length,source=source.base),source?Array.isArray(source)?source:source[Symbol.iterator]?Array.from(source):source:null};var _ObservableBase=__webpack_require__(29),_ObservableBase2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_ObservableBase)},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _update_div3(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder2=signals,_data.div_invalidate2=invalidateFn;var previousValue=_data.div_value5;(firstRun||previousValue!==binderValue)&&(_data.div_value5=binderValue,_data.div_content2=_factory.renderContent(_data.div_content2,binderValue))}function _binder_div3(_data){return _data.$_scope._this.item.selectedOption.applyACR?" + ACR":""}function _update_div2(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder1=signals,_data.div_invalidate1=invalidateFn;var previousValue=_data.div_value3;(firstRun||previousValue!==binderValue)&&(_data.div_value3=binderValue,_data.div_content1=_factory.renderContent(_data.div_content1,binderValue))}function _binder_div2(_data){return _data.$_scope._this.item.asset.isSmartProxy?(0,_nls.localize)("SMART_PROXY"):(0,_nls.localize)("ORIGINAL_FILE")}function _update_a(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.a_binder=signals,_data.a_invalidate=invalidateFn;var previousValue=_data.a_value1;(firstRun||previousValue!==binderValue)&&(_data.a_value1=binderValue,_data.a_content=_factory.renderContent(_data.a_content,binderValue))}function _binder_a(){return(0,_nls.localize)("TOOLTIPS.LEARN_MORE")}function _listener_a_on_click(){var _data=this._jsx_data;_data&&_data.$_parent.$_parent.$_parent.$_scope._this._handleOpenLink()}function _update_expr(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.expr_binder=signals,_data.expr_invalidate=invalidateFn;var previousValue=_data.expr_value1;(firstRun||previousValue!==binderValue)&&(_data.expr_value1=binderValue,_data.expr_content=_factory.renderContent(_data.expr_content,binderValue))}function _binder_expr(){return(0,_nls.localize)("TOOLTIPS.SMART_PREVIEW_ALERT")+" "}function _update_div(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div(_data){return _data.$_scope._this.item.selectedOption.filename}function _update_div1_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div1_class_binder=signals,_data.div1_class_invalidate=invalidateFn;var previousValue=_data.div1_class_value;(firstRun||previousValue!==binderValue)&&(_data.div1_class_value=binderValue,_data.div1_class_state=_factory.attr._class(_data.div1,"class",binderValue,_data.div1_class_state))}function _binder_div1_class(_data){return _data.$_scope._this.item.isDownloading&&"downloading"}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(){return _DownloadItem2.default.container}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_IfComponent=__webpack_require__(14),_IfComponent2=_interopRequireDefault(_IfComponent),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_Attribute=__webpack_require__(10),_Attribute2=_interopRequireDefault(_Attribute),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_nls=__webpack_require__(15),_Tooltip=__webpack_require__(127),_Tooltip2=_interopRequireDefault(_Tooltip),_DownloadItem=__webpack_require__(130),_DownloadItem2=_interopRequireDefault(_DownloadItem),_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div);var div1=_data.div1=_factory.pushTemplateNode(_tpl_div2);_factory.enterNode(div1),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0),_factory.runBinder(_binder_div1_class,_update_div1_class,_data,!0);var _if=_data._if=_component_if.make(_factory);_if.$_parent=_data,_if.template.run(_factory,_if);var _if1=_data._if1=_component_if2.make(_factory);_if1.$_parent=_data,_if1.template.run(_factory,_if1),_factory.exitNode(div1);var div2=_data.div2=_factory.pushTemplateNode(_tpl_div3);_factory.enterNode(div2),_factory.runBinder(_binder_div,_update_div,_data,!0),_factory.exitNode(div2);var div3=_data.div3=_factory.pushTemplateNode(_tpl_div4);_factory.enterNode(div3);var _if2=_data._if2=_component_if3.make(_factory);_if2.$_parent=_data,_if2.template.run(_factory,_if2),_factory.exitNode(div3);var div4=_data.div4=_factory.pushTemplateNode(_tpl_div5);_factory.enterNode(div4),_factory.runBinder(_binder_div2,_update_div2,_data,!0),_factory.runBinder(_binder_div3,_update_div3,_data,!0),_factory.exitNode(div4),_factory.exitNode(div)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate),_factory.removeSignals(_data.div1_class_binder,_data.div1_class_invalidate),_data._if.template.dispose(_factory,_data._if),_data._if1.template.dispose(_factory,_data._if1),_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0,_data._if2.template.dispose(_factory,_data._if2),_factory.removeSignals(_data.div_binder1,_data.div_invalidate1),_data.div_content1=_factory.disposeContent(_data.div_content1),_data.div_value3=void 0,_factory.removeSignals(_data.div_binder2,_data.div_invalidate2),_data.div_content2=_factory.disposeContent(_data.div_content2),_data.div_value5=void 0},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div_class,_update_div_class,_data,!1),_factory.runBinder(_binder_div1_class,_update_div1_class,_data,!1),_data._if.template.reuse(_factory,_data._if),_data._if1.template.reuse(_factory,_data._if1),_factory.runBinder(_binder_div,_update_div,_data,!1),_data._if2.template.reuse(_factory,_data._if2),_factory.runBinder(_binder_div2,_update_div2,_data,!1),_factory.runBinder(_binder_div3,_update_div3,_data,!1)},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_tpl_div5=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","contents"),node1}),_component_if3={make:function(_factory){return _component_if3=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data4){return _data4.$_parent.$_scope._this.item.asset.isSmartProxy}},blocks:[{name:"children",template:_factory.makeComponent(_Tooltip2.default,{blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){_factory.runBinder(_binder_expr,_update_expr,_data,!0);var a=_data.a=_factory.pushTemplateNode(_tpl_a);_factory.attachEvent(_data.a,"click",_listener_a_on_click),_factory.enterNode(a),_factory.runBinder(_binder_a,_update_a,_data,!0),_factory.exitNode(a)},dispose:function(_factory,_data){_factory.removeSignals(_data.expr_binder,_data.expr_invalidate),_data.expr_content=_factory.disposeContent(_data.expr_content),_data.expr_value1=void 0,_data.a._jsx_data=null,_factory.removeSignals(_data.a_binder,_data.a_invalidate),_data.a_content=_factory.disposeContent(_data.a_content),_data.a_value1=void 0},move:function(_factory,_data){_factory.moveContent(_data.expr_content),_factory.pushNode(_data.a)},reuse:function(_factory,_data){_factory.runBinder(_binder_expr,_update_expr,_data,!1),_factory.runBinder(_binder_a,_update_a,_data,!1)},init:function(_factory,_data){_data.a._jsx_data=_data},firstChild:function(_factory,_data){return _factory.contentFirstChild(_data.expr_content)},lastChild:function(_factory,_data){return _data.a},prepare:function(_factory){_factory.attr._href||(_factory.attr._href=_factory.ensureAttr("href"))}})}]})}]}),_component_if3.make(_factory)}},_tpl_a=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("a");return _factory.attr._href(node1,"href","#"),node1}),_tpl_div4=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","alert"),node1}),_tpl_div3=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","title"),node1}),_component_if2={make:function(_factory){return _component_if2=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data3){return _data3.$_parent.$_scope._this.item.isFailed}},blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){_data.textNode=_factory.pushTextNode(" \u2715 ")},move:function(_factory,_data){_factory.pushNode(_data.textNode)},firstChild:function(_factory,_data){return _data.textNode}})}]}),_component_if2.make(_factory)}},_component_if={make:function(_factory){return _component_if=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data2){return _data2.$_parent.$_scope._this.item.isDownloaded}},blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){_data.textNode=_factory.pushTextNode(" \u2713 ")},move:function(_factory,_data){_factory.pushNode(_data.textNode)},firstChild:function(_factory,_data){return _data.textNode}})}]}),_component_if.make(_factory)}},_tpl_div2=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","status"),node1}),_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return node1}),_superClass;_superClass=_Component2.default;class DownloadItem extends _superClass{render(){return{template:_Template_div,_this:this}}}exports.default=DownloadItem,exports.default=DownloadItem=(0,_Builder2.default)(DownloadItem,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null),module,"DownloadItem")],properties:[{name:"item",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"_handleOpenLink",decorators:[(0,_Bind2.default)()],fn:function(){let url=(0,_nls.localizeHelpxLink)("https://helpx.adobe.com/lightroom/help/lightroom-smart-previews.html");this.scope.importer.openLink(url)}}]})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(){return _Tooltip2.default.container}function _update_div(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div(_data){return _data.$_scope._this.children}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_Tooltip=__webpack_require__(128),_Tooltip2=_interopRequireDefault(_Tooltip),_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div);var span=_data.span=_factory.pushTemplateNode(_tpl_span);_factory.enterNode(span);var span1=_data.span1=_factory.pushTemplateNode(_tpl_span2);_factory.enterNode(span1);var div1=_data.div1=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div1),_factory.runBinder(_binder_div,_update_div,_data,!0),_factory.exitNode(div1);_data.div2=_factory.pushTemplateNode(_tpl_div2);_factory.exitNode(span1),_factory.exitNode(span),_factory.exitNode(div),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0,_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate)},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div,_update_div,_data,!1),_factory.runBinder(_binder_div_class,_update_div_class,_data,!1)},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_tpl_div2=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","tip"),node1}),_tpl_span2=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("span");return _factory.attr._class(node1,"class","tooltip bottom"),node1}),_tpl_span=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("span");return _factory.attr._class(node1,"class","tooltipwrap top"),node1}),_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return node1});class Tooltip extends _Component2.default{render(){return{template:_Template_div,_this:this}}}exports.default=Tooltip,exports.default=Tooltip=(0,_Builder2.default)(Tooltip,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null),module,"Tooltip")]})}).call(exports,__webpack_require__(5)(module))},function(module){module.exports={container:"_1iG2LIdVM9n5r2kTEggRyN"}},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-alert-27UHQdP.svg"},function(module){module.exports={container:"_15rZ3AqygNMloq1ITgNaz7"}},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-wait-light-3rXq0T1.svg"},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-wait-dark-3d84ZHQ.svg"},function(module){module.exports={container:"OhR-9p2HXcgOIbM02fQoB"}},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(){return _PendingScreen2.default.container}function _update_div7(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div7(_data){return _data.$_scope._this._renderContent()}function _update_div6(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div6(){return(0,_nls.localize)("BUTTONS.REFRESH")}function _listener_div_on_click5(){var _data=this._jsx_data;_data&&_data.$_scope._this.onRetry()}function _update_div5(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div5(){return(0,_nls.localize)("BUTTONS.REFRESH")}function _listener_div_on_click4(){var _data=this._jsx_data;_data&&_data.$_scope._this.onRetry()}function _update_div4(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div4(){return(0,_nls.localize)("BUTTONS.REFRESH")}function _listener_div_on_click3(){var _data=this._jsx_data;_data&&_data.$_scope._this.onRetry()}function _update_div3(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div3(){return(0,_nls.localize)("BUTTONS.REFRESH")}function _listener_div_on_click2(){var _data=this._jsx_data;_data&&_data.$_scope._this.onRetry()}function _update_div2(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div2(){return(0,_nls.localize)("BUTTONS.REFRESH")}function _listener_div_on_click(){var _data=this._jsx_data;_data&&_data.$_scope._this.onRetry()}function _update_div(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_binder=signals,_data.div_invalidate=invalidateFn;var previousValue=_data.div_value1;(firstRun||previousValue!==binderValue)&&(_data.div_value1=binderValue,_data.div_content=_factory.renderContent(_data.div_content,binderValue))}function _binder_div(){return(0,_nls.localize)("LIGHTROOM_PHOTOS")}Object.defineProperty(exports,"__esModule",{value:!0}),exports.STATE=void 0;var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Attribute=__webpack_require__(10),_Attribute2=_interopRequireDefault(_Attribute),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_nls=__webpack_require__(15),_ContentSection=__webpack_require__(135),_ContentSection2=_interopRequireDefault(_ContentSection),_PendingScreen=__webpack_require__(169),_PendingScreen2=_interopRequireDefault(_PendingScreen),_Template_div2={make:function(_factory){return _Template_div2=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div),_factory.runBinder(_binder_div7,_update_div7,_data,!0),_factory.exitNode(div),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0,_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate)},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div7,_update_div7,_data,!1),_factory.runBinder(_binder_div_class,_update_div_class,_data,!1)},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div2.make(_factory)}},_Template_g6={make:function(_factory){return _Template_g6=_Template2.default.make({render:function(_factory,_data){var g=_data.g=!_factory._group_g&&_factory.pushTemplateNode(_tpl_g);g&&_factory.enterNode(g);var contentSection=_data.contentSection=_component_ContentSection6.make(_factory);contentSection.$_parent=_data,contentSection.template.run(_factory,contentSection);var div=_data.div=_factory.pushTemplateNode(_tpl_div4);_factory.attachEvent(_data.div,"click",_listener_div_on_click5),_factory.enterNode(div),_factory.runBinder(_binder_div6,_update_div6,_data,!0),_factory.exitNode(div),g&&_factory.exitNode(g)},dispose:function(_factory,_data){_data.contentSection.template.dispose(_factory,_data.contentSection),_data.div._jsx_data=null,_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0},move:function(_factory,_data){_data.g?_factory.pushNode(_data.g):(_data.contentSection.template.move(_factory,_data.contentSection),_factory.pushNode(_data.div))},reuse:function(_factory,_data){_data.contentSection.template.reuse(_factory,_data.contentSection),_factory.runBinder(_binder_div6,_update_div6,_data,!1)},init:function(_factory,_data){_data.div._jsx_data=_data},firstChild:function(_factory,_data){return _data.g||_data.contentSection.template.firstChild(_factory,_data.contentSection)},lastChild:function(_factory,_data){return _data.g||_data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_g6.make(_factory)}},_component_ContentSection6={make:function(_factory){return _component_ContentSection6=_factory.makeComponent(_ContentSection2.default,{attributes:[{name:"iconPath",value:"general-cc"},{name:"className",value:"ccphotos-null-state"},{name:"title",get:function(){var _data7=this.$_view;if(_data7)return(0,_nls.localize)("MESSAGES.SERVICE_UNAVAILABLE")}}]}),_component_ContentSection6.make(_factory)}},_Template_g5={make:function(_factory){return _Template_g5=_Template2.default.make({render:function(_factory,_data){var g=_data.g=!_factory._group_g&&_factory.pushTemplateNode(_tpl_g);g&&_factory.enterNode(g);var contentSection=_data.contentSection=_component_ContentSection5.make(_factory);contentSection.$_parent=_data,contentSection.template.run(_factory,contentSection);var div=_data.div=_factory.pushTemplateNode(_tpl_div4);_factory.attachEvent(_data.div,"click",_listener_div_on_click4),_factory.enterNode(div),_factory.runBinder(_binder_div5,_update_div5,_data,!0),_factory.exitNode(div),g&&_factory.exitNode(g)},dispose:function(_factory,_data){_data.contentSection.template.dispose(_factory,_data.contentSection),_data.div._jsx_data=null,_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0},move:function(_factory,_data){_data.g?_factory.pushNode(_data.g):(_data.contentSection.template.move(_factory,_data.contentSection),_factory.pushNode(_data.div))},reuse:function(_factory,_data){_data.contentSection.template.reuse(_factory,_data.contentSection),_factory.runBinder(_binder_div5,_update_div5,_data,!1)},init:function(_factory,_data){_data.div._jsx_data=_data},firstChild:function(_factory,_data){return _data.g||_data.contentSection.template.firstChild(_factory,_data.contentSection)},lastChild:function(_factory,_data){return _data.g||_data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_g5.make(_factory)}},_component_ContentSection5={make:function(_factory){return _component_ContentSection5=_factory.makeComponent(_ContentSection2.default,{attributes:[{name:"iconPath",value:"failed-load"},{name:"className",value:"ccphotos-null-state"},{name:"title",get:function(){var _data6=this.$_view;if(_data6)return(0,_nls.localize)("MESSAGES.FAILED_TO_LOAD_LR")}}]}),_component_ContentSection5.make(_factory)}},_Template_g4={make:function(_factory){return _Template_g4=_Template2.default.make({render:function(_factory,_data){var g=_data.g=!_factory._group_g&&_factory.pushTemplateNode(_tpl_g);g&&_factory.enterNode(g);var contentSection=_data.contentSection=_component_ContentSection4.make(_factory);contentSection.$_parent=_data,contentSection.template.run(_factory,contentSection);var div=_data.div=_factory.pushTemplateNode(_tpl_div4);_factory.attachEvent(_data.div,"click",_listener_div_on_click3),_factory.enterNode(div),_factory.runBinder(_binder_div4,_update_div4,_data,!0),_factory.exitNode(div),g&&_factory.exitNode(g)},dispose:function(_factory,_data){_data.contentSection.template.dispose(_factory,_data.contentSection),_data.div._jsx_data=null,_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0},move:function(_factory,_data){_data.g?_factory.pushNode(_data.g):(_data.contentSection.template.move(_factory,_data.contentSection),_factory.pushNode(_data.div))},reuse:function(_factory,_data){_data.contentSection.template.reuse(_factory,_data.contentSection),_factory.runBinder(_binder_div4,_update_div4,_data,!1)},init:function(_factory,_data){_data.div._jsx_data=_data},firstChild:function(_factory,_data){return _data.g||_data.contentSection.template.firstChild(_factory,_data.contentSection)},lastChild:function(_factory,_data){return _data.g||_data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_g4.make(_factory)}},_component_ContentSection4={make:function(_factory){return _component_ContentSection4=_factory.makeComponent(_ContentSection2.default,{attributes:[{name:"iconPath",value:"general-cc"},{name:"className",value:"ccphotos-null-state"},{name:"title",get:function(){var _data5=this.$_view;if(_data5)return(0,_nls.localize)("MESSAGES.SUBSCRIPTION_EXPIRED")}}]}),_component_ContentSection4.make(_factory)}},_Template_g3={make:function(_factory){return _Template_g3=_Template2.default.make({render:function(_factory,_data){var g=_data.g=!_factory._group_g&&_factory.pushTemplateNode(_tpl_g);g&&_factory.enterNode(g);var contentSection=_data.contentSection=_component_ContentSection3.make(_factory);contentSection.$_parent=_data,contentSection.template.run(_factory,contentSection);var div=_data.div=_factory.pushTemplateNode(_tpl_div4);_factory.attachEvent(_data.div,"click",_listener_div_on_click2),_factory.enterNode(div),_factory.runBinder(_binder_div3,_update_div3,_data,!0),_factory.exitNode(div),g&&_factory.exitNode(g)},dispose:function(_factory,_data){_data.contentSection.template.dispose(_factory,_data.contentSection),_data.div._jsx_data=null,_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0},move:function(_factory,_data){_data.g?_factory.pushNode(_data.g):(_data.contentSection.template.move(_factory,_data.contentSection),_factory.pushNode(_data.div))},reuse:function(_factory,_data){_data.contentSection.template.reuse(_factory,_data.contentSection),_factory.runBinder(_binder_div3,_update_div3,_data,!1)},init:function(_factory,_data){_data.div._jsx_data=_data},firstChild:function(_factory,_data){return _data.g||_data.contentSection.template.firstChild(_factory,_data.contentSection)},lastChild:function(_factory,_data){return _data.g||_data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_g3.make(_factory)}},_component_ContentSection3={make:function(_factory){return _component_ContentSection3=_factory.makeComponent(_ContentSection2.default,{attributes:[{name:"iconPath",value:"general-cc"},{name:"className",value:"ccphotos-null-state"},{name:"title",get:function(){var _data4=this.$_view;if(_data4)return(0,_nls.localize)("MESSAGES.SIGN_IN")}}]}),_component_ContentSection3.make(_factory)}},_Template_g2={make:function(_factory){return _Template_g2=_Template2.default.make({render:function(_factory,_data){var g=_data.g=!_factory._group_g&&_factory.pushTemplateNode(_tpl_g);g&&_factory.enterNode(g);var contentSection=_data.contentSection=_component_ContentSection2.make(_factory);contentSection.$_parent=_data,contentSection.template.run(_factory,contentSection);var div=_data.div=_factory.pushTemplateNode(_tpl_div4);_factory.attachEvent(_data.div,"click",_listener_div_on_click),_factory.enterNode(div),_factory.runBinder(_binder_div2,_update_div2,_data,!0),_factory.exitNode(div),g&&_factory.exitNode(g)},dispose:function(_factory,_data){_data.contentSection.template.dispose(_factory,_data.contentSection),_data.div._jsx_data=null,_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0},move:function(_factory,_data){_data.g?_factory.pushNode(_data.g):(_data.contentSection.template.move(_factory,_data.contentSection),_factory.pushNode(_data.div))},reuse:function(_factory,_data){_data.contentSection.template.reuse(_factory,_data.contentSection),_factory.runBinder(_binder_div2,_update_div2,_data,!1)},init:function(_factory,_data){_data.div._jsx_data=_data},firstChild:function(_factory,_data){return _data.g||_data.contentSection.template.firstChild(_factory,_data.contentSection)},lastChild:function(_factory,_data){return _data.g||_data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_g2.make(_factory)}},_tpl_div4=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","refresh"),node1}),_component_ContentSection2={make:function(_factory){return _component_ContentSection2=_factory.makeComponent(_ContentSection2.default,{attributes:[{name:"iconPath",value:"empty-album"},{name:"className",value:"ccphotos-null-state"},{name:"title",get:function(){var _data3=this.$_view;if(_data3)return(0,_nls.localize)("MESSAGES.EMPTY_CATALOG.TITLE")}},{name:"subtitle",get:function(){var _data3=this.$_view;if(_data3)return(0,_nls.localize)("MESSAGES.EMPTY_CATALOG.SUBTITLE")}}]}),_component_ContentSection2.make(_factory)}},_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div);var div1=_data.div1=_factory.pushTemplateNode(_tpl_div2);_factory.enterNode(div1),_factory.runBinder(_binder_div,_update_div,_data,!0),_factory.exitNode(div1);_data.div2=_factory.pushTemplateNode(_tpl_div3);_factory.exitNode(div)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_binder,_data.div_invalidate),_data.div_content=_factory.disposeContent(_data.div_content),_data.div_value1=void 0},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div,_update_div,_data,!1)},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_tpl_div3=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");_factory.attr._class(node1,"class","spinnercontainer");var node2=_factory.makeNode("div");_factory.attr._class(node2,"class","spinnerwrap");var node3=_factory.makeNode("div");_factory.attr._class(node3,"class","spinner2");var node4=_factory.makeNode("div");_factory.attr._class(node4,"class","circle-clipper2 left2");var node5=_factory.makeNode("div");_factory.attr._class(node5,"class","circle2"),_factory.appendNode(node4,node5),_factory.appendNode(node3,node4);var node6=_factory.makeNode("div");_factory.attr._class(node6,"class","circle-clipper2 right2");var node7=_factory.makeNode("div");_factory.attr._class(node7,"class","circle2"),_factory.appendNode(node6,node7),_factory.appendNode(node3,node6);var node8=_factory.makeNode("div");return _factory.attr._class(node8,"class","track"),_factory.appendNode(node3,node8),_factory.appendNode(node2,node3),_factory.appendNode(node1,node2),node1}),_tpl_div2=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","logo"),node1}),_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return node1}),_Template_g={make:function(_factory){return _Template_g=_Template2.default.make({render:function(_factory,_data){var g=_data.g=!_factory._group_g&&_factory.pushTemplateNode(_tpl_g);g&&_factory.enterNode(g);var contentSection=_data.contentSection=_component_ContentSection.make(_factory);contentSection.$_parent=_data,contentSection.template.run(_factory,contentSection),g&&_factory.exitNode(g)},dispose:function(_factory,_data){_data.contentSection.template.dispose(_factory,_data.contentSection)},move:function(_factory,_data){_data.g?_factory.pushNode(_data.g):_data.contentSection.template.move(_factory,_data.contentSection)},reuse:function(_factory,_data){_data.contentSection.template.reuse(_factory,_data.contentSection)},firstChild:function(_factory,_data){return _data.g||_data.contentSection.template.firstChild(_factory,_data.contentSection)},lastChild:function(_factory,_data){return _data.g||_data.contentSection.template.lastChild(_factory,_data.contentSection)}}),_Template_g.make(_factory)}},_component_ContentSection={make:function(_factory){return _component_ContentSection=_factory.makeComponent(_ContentSection2.default,{attributes:[{name:"iconPath",value:"no-connection"},{name:"className",value:"ccphotos-null-state"},{name:"title",get:function(){var _data2=this.$_view;if(_data2)return(0,_nls.localize)("MESSAGES.NO_INTERNET")}}]}),_component_ContentSection.make(_factory)}},_tpl_g=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("g");return node1});const STATE=exports.STATE=Object.freeze({OFFLINE:"OFFLINE",LOADING_LR:"LOADING_LR",EMPTY_LR:"EMPTY_LR",SUBSCRIPTION_EXPIRED:"SUBSCRIPTION_EXPIRED",INVALID_ACCESS_TOKEN:"INVALID_ACCESS_TOKEN",FAILED_TO_LOAD_LR:"FAILED_TO_LOAD_LR",SERVICE_UNAVAILABLE:"SERVICE_UNAVAILABLE"});class OfflineScreen extends _Component2.default{_renderContent(){switch(this.state){case STATE.OFFLINE:return{template:_Template_g};case STATE.LOADING_LR:return{template:_Template_div};case STATE.EMPTY_LR:return{template:_Template_g2,_this:this};case STATE.INVALID_ACCESS_TOKEN:return{template:_Template_g3,_this:this};case STATE.SUBSCRIPTION_EXPIRED:return{template:_Template_g4,_this:this};case STATE.FAILED_TO_LOAD_LR:return{template:_Template_g5,_this:this};case STATE.SERVICE_UNAVAILABLE:return{template:_Template_g6,_this:this};default:throw new Error("Invalid state");}}render(){return{template:_Template_div2,_this:this}}}exports.default=OfflineScreen,exports.default=OfflineScreen=(0,_Builder2.default)(OfflineScreen,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null),module,"OfflineScreen")],properties:[{name:"state",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"onRetry",decorators:[(0,_Attribute2.default)()],init(){return()=>{}}}]})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _update_expr2(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.expr_binder=signals,_data.expr_invalidate=invalidateFn;var previousValue=_data.expr_value1;(firstRun||previousValue!==binderValue)&&(_data.expr_value1=binderValue,_data.expr_content=_factory.renderContent(_data.expr_content,binderValue))}function _binder_expr2(_data){return _data.$_parent.$_parent.$_scope._this.subtitle}function _update_div4_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div4_class_binder=signals,_data.div4_class_invalidate=invalidateFn;var previousValue=_data.div4_class_value;(firstRun||previousValue!==binderValue)&&(_data.div4_class_value=binderValue,_data.div4_class_state=_factory.attr._class(_data.div4,"class",binderValue,_data.div4_class_state))}function _binder_div4_class(){return _ContentSection2.default.subtitle}function _update_expr(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.expr_binder=signals,_data.expr_invalidate=invalidateFn;var previousValue=_data.expr_value1;(firstRun||previousValue!==binderValue)&&(_data.expr_value1=binderValue,_data.expr_content=_factory.renderContent(_data.expr_content,binderValue))}function _binder_expr(_data){return _data.$_parent.$_parent.$_scope._this.title}function _update_div3_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div3_class_binder=signals,_data.div3_class_invalidate=invalidateFn;var previousValue=_data.div3_class_value;(firstRun||previousValue!==binderValue)&&(_data.div3_class_value=binderValue,_data.div3_class_state=_factory.attr._class(_data.div3,"class",binderValue,_data.div3_class_state))}function _binder_div3_class(){return _ContentSection2.default.title}function _update_div2_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div2_class_binder=signals,_data.div2_class_invalidate=invalidateFn;var previousValue=_data.div2_class_value;(firstRun||previousValue!==binderValue)&&(_data.div2_class_value=binderValue,_data.div2_class_state=_factory.attr._class(_data.div2,"class",binderValue,_data.div2_class_state))}function _binder_div2_class(){return _ContentSection2.default.text}function _update_div1_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div1_class_binder=signals,_data.div1_class_invalidate=invalidateFn;var previousValue=_data.div1_class_value;(firstRun||previousValue!==binderValue)&&(_data.div1_class_value=binderValue,_data.div1_class_state=_factory.attr._class(_data.div1,"class",binderValue,_data.div1_class_state))}function _binder_div1_class(){return _ContentSection2.default.body}function _update_div_class2(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder1=signals,_data.div_class_invalidate1=invalidateFn;var previousValue=_data.div_class_value1;(firstRun||previousValue!==binderValue)&&(_data.div_class_value1=binderValue,_data.div_class_state1=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state1))}function _binder_div_class2(_data){return _data.$_scope._this.className}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(){return _ContentSection2.default.section}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_IfComponent=__webpack_require__(14),_IfComponent2=_interopRequireDefault(_IfComponent),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Attribute=__webpack_require__(10),_Attribute2=_interopRequireDefault(_Attribute),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_Icon=__webpack_require__(136),_Icon2=_interopRequireDefault(_Icon),_ContentSection=__webpack_require__(168),_ContentSection2=_interopRequireDefault(_ContentSection),_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div);var div1=_data.div1=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div1),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0),_factory.runBinder(_binder_div_class2,_update_div_class2,_data,!0),_factory.runBinder(_binder_div1_class,_update_div1_class,_data,!0);var _if=_data._if=_component_if.make(_factory);_if.$_parent=_data,_if.template.run(_factory,_if);var div2=_data.div2=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div2);var div3=_data.div3=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div3),_factory.runBinder(_binder_div2_class,_update_div2_class,_data,!0),_factory.runBinder(_binder_div3_class,_update_div3_class,_data,!0);var _if1=_data._if1=_component_if2.make(_factory);_if1.$_parent=_data,_if1.template.run(_factory,_if1),_factory.exitNode(div3);var div4=_data.div4=_factory.pushTemplateNode(_tpl_div);_factory.enterNode(div4),_factory.runBinder(_binder_div4_class,_update_div4_class,_data,!0);var _if2=_data._if2=_component_if3.make(_factory);_if2.$_parent=_data,_if2.template.run(_factory,_if2),_factory.exitNode(div4),_factory.exitNode(div2),_factory.exitNode(div1),_factory.exitNode(div)},dispose:function(_factory,_data){_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate),_factory.removeSignals(_data.div_class_binder1,_data.div_class_invalidate1),_factory.removeSignals(_data.div1_class_binder,_data.div1_class_invalidate),_data._if.template.dispose(_factory,_data._if),_factory.removeSignals(_data.div2_class_binder,_data.div2_class_invalidate),_factory.removeSignals(_data.div3_class_binder,_data.div3_class_invalidate),_data._if1.template.dispose(_factory,_data._if1),_factory.removeSignals(_data.div4_class_binder,_data.div4_class_invalidate),_data._if2.template.dispose(_factory,_data._if2)},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_factory.runBinder(_binder_div_class,_update_div_class,_data,!1),_factory.runBinder(_binder_div_class2,_update_div_class2,_data,!1),_factory.runBinder(_binder_div1_class,_update_div1_class,_data,!1),_data._if.template.reuse(_factory,_data._if),_factory.runBinder(_binder_div2_class,_update_div2_class,_data,!1),_factory.runBinder(_binder_div3_class,_update_div3_class,_data,!1),_data._if1.template.reuse(_factory,_data._if1),_factory.runBinder(_binder_div4_class,_update_div4_class,_data,!1),_data._if2.template.reuse(_factory,_data._if2)},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_component_if3={make:function(_factory){return _component_if3=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data5){return _data5.$_parent.$_scope._this.subtitle}},blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){_factory.runBinder(_binder_expr2,_update_expr2,_data,!0)},dispose:function(_factory,_data){_factory.removeSignals(_data.expr_binder,_data.expr_invalidate),_data.expr_content=_factory.disposeContent(_data.expr_content),_data.expr_value1=void 0},move:function(_factory,_data){_factory.moveContent(_data.expr_content)},reuse:function(_factory,_data){_factory.runBinder(_binder_expr2,_update_expr2,_data,!1)},firstChild:function(_factory,_data){return _factory.contentFirstChild(_data.expr_content)},lastChild:function(_factory,_data){return _factory.contentLastChild(_data.expr_content)}})}]}),_component_if3.make(_factory)}},_component_if2={make:function(_factory){return _component_if2=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data4){return _data4.$_parent.$_scope._this.title}},blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){_factory.runBinder(_binder_expr,_update_expr,_data,!0)},dispose:function(_factory,_data){_factory.removeSignals(_data.expr_binder,_data.expr_invalidate),_data.expr_content=_factory.disposeContent(_data.expr_content),_data.expr_value1=void 0},move:function(_factory,_data){_factory.moveContent(_data.expr_content)},reuse:function(_factory,_data){_factory.runBinder(_binder_expr,_update_expr,_data,!1)},firstChild:function(_factory,_data){return _factory.contentFirstChild(_data.expr_content)},lastChild:function(_factory,_data){return _factory.contentLastChild(_data.expr_content)}})}]}),_component_if2.make(_factory)}},_component_if={make:function(_factory){return _component_if=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data2){return _data2.$_parent.$_scope._this.iconPath}},blocks:[{name:"children",template:_factory.makeComponent(_Icon2.default,{attributes:[{name:"path",get:function(){var _data3=this.$_view;if(_data3)return _data3.$_parent.$_parent.$_scope._this.iconPath},set:function(_value2){var _data3=this.$_view;_data3&&(_data3.$_parent.$_parent.$_scope._this.iconPath=_value2)}},{name:"onClick",get:function(){var _data3=this.$_view;if(_data3)return _data3.$_parent.$_parent.$_scope._this.onClick},set:function(_value2){var _data3=this.$_view;_data3&&(_data3.$_parent.$_parent.$_scope._this.onClick=_value2)}}]})}]}),_component_if.make(_factory)}},_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return node1});class ContentSection extends _Component2.default{render(){return{template:_Template_div,_this:this}}}exports.default=ContentSection,exports.default=ContentSection=(0,_Builder2.default)(ContentSection,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null),module,"ContentSection")],properties:[{name:"className",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"title",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"subtitle",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"iconPath",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"onClick",decorators:[(0,_Attribute2.default)()],kind:"property"}]})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";(function(module){function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function _update_use_xlinkHref(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.use_xlink$58href_binder=signals,_data.use_xlink$58href_invalidate=invalidateFn;var previousValue=_data.use_xlink$58href_value;(firstRun||previousValue!==binderValue)&&(_data.use_xlink$58href_value=binderValue,_data.use_xlink$58href_state=_factory.attr._xlink$58href(_data.use,"xlink:href",binderValue,_data.use_xlink$58href_state))}function _binder_use_xlinkHref(_data){return __webpack_require__(152)("./"+_data.$_parent.$_parent.$_parent.$_parent.$_scope._this.pathTransform+".svg")+"#content"}function _update_div_class2(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder1=signals,_data.div_class_invalidate1=invalidateFn;var previousValue=_data.div_class_value1;(firstRun||previousValue!==binderValue)&&(_data.div_class_value1=binderValue,_data.div_class_state1=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state1))}function _binder_div_class2(_data){return _data.$_scope._this.className}function _update_div_class(_factory,_data,signals,invalidateFn,binderValue,firstRun){_data.div_class_binder=signals,_data.div_class_invalidate=invalidateFn;var previousValue=_data.div_class_value;(firstRun||previousValue!==binderValue)&&(_data.div_class_value=binderValue,_data.div_class_state=_factory.attr._class(_data.div,"class",binderValue,_data.div_class_state))}function _binder_div_class(_data){return _data.$_scope._this.active}function _setter_div_ref(_data,_value){_data.$_scope._this.containerRef=_value}function _listener_div_on_click(){var _data=this._jsx_data;_data&&_data.$_scope._this._handleClick()}Object.defineProperty(exports,"__esModule",{value:!0});var _Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),_NodeTemplates=__webpack_require__(3),_SvgComponent=__webpack_require__(137),_SvgComponent2=_interopRequireDefault(_SvgComponent),_IfComponent=__webpack_require__(14),_IfComponent2=_interopRequireDefault(_IfComponent),_Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Bind=__webpack_require__(6),_Bind2=_interopRequireDefault(_Bind),_Attribute=__webpack_require__(10),_Attribute2=_interopRequireDefault(_Attribute),_HotReload=__webpack_require__(7),_HotReload2=_interopRequireDefault(_HotReload),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Component3=__webpack_require__(8),_Component4=_interopRequireDefault(_Component3),_Template_div={make:function(_factory){return _Template_div=_Template2.default.make({render:function(_factory,_data){var div=_data.div=_factory.pushTemplateNode(_tpl_div);_factory.attachEvent(_data.div,"click",_listener_div_on_click),_setter_div_ref(_data,div),_factory.enterNode(div),_factory.runBinder(_binder_div_class,_update_div_class,_data,!0),_factory.runBinder(_binder_div_class2,_update_div_class2,_data,!0);var _if=_data._if=_component_if.make(_factory);_if.$_parent=_data,_if.template.run(_factory,_if),_factory.exitNode(div)},dispose:function(_factory,_data){_data.div._jsx_data=null,_factory.removeSignals(_data.div_class_binder,_data.div_class_invalidate),_factory.removeSignals(_data.div_class_binder1,_data.div_class_invalidate1),_data._if.template.dispose(_factory,_data._if),_setter_div_ref(_data,null)},move:function(_factory,_data){_factory.pushNode(_data.div)},reuse:function(_factory,_data){_setter_div_ref(_data,_data.div),_factory.runBinder(_binder_div_class,_update_div_class,_data,!1),_factory.runBinder(_binder_div_class2,_update_div_class2,_data,!1),_data._if.template.reuse(_factory,_data._if)},init:function(_factory,_data){_data.div._jsx_data=_data},firstChild:function(_factory,_data){return _data.div},prepare:function(_factory){_factory.attr._class||(_factory.attr._class=_factory.ensureAttr("class"))}}),_Template_div.make(_factory)}},_component_if={make:function(_factory){return _component_if=_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data2){return!_data2.$_parent.$_scope._this.inline}},blocks:[{name:"children",template:_factory.makeComponent(_SvgComponent2.default,{blocks:[{name:"children",template:_factory.makeComponent(_IfComponent2.default,{props:{getCondition:function(_data4){return""!==_data4.$_parent.$_parent.$_parent.$_scope._this.path}},blocks:[{name:"children",template:_Template2.default.make({render:function(_factory,_data){_data.use=_factory.pushTemplateNode(_tpl_use);_factory.runBinder(_binder_use_xlinkHref,_update_use_xlinkHref,_data,!0)},dispose:function(_factory,_data){_factory.removeSignals(_data.use_xlink$58href_binder,_data.use_xlink$58href_invalidate)},move:function(_factory,_data){_factory.pushNode(_data.use)},reuse:function(_factory,_data){_factory.runBinder(_binder_use_xlinkHref,_update_use_xlinkHref,_data,!1)},firstChild:function(_factory,_data){return _data.use},prepare:function(_factory){_factory.attr._xlink$58href||(_factory.attr._xlink$58href=_factory.ensureAttr("xlink:href"))}})}]})}]})}]}),_component_if.make(_factory)}},_tpl_use=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("use");return node1}),_tpl_div=(0,_NodeTemplates.register)(function(_factory){var node1=_factory.makeNode("div");return _factory.attr._class(node1,"class","svg"),node1}),_superClass;_superClass=_Component2.default;class Icon extends _superClass{attached(){this.watch(()=>this.path,this._inlineSVG)}_handleClick(){this.onClick&&this.onClick()}get pathTransform(){return!this.path||this.path.includes("/")?this.path:"ico-"+this.path.split(" ").join("-").toLowerCase()}render(){return{template:_Template_div,_this:this}}}exports.default=Icon,exports.default=Icon=(0,_Builder2.default)(Icon,{decorators:[(0,_HotReload2.default)((0,_Component4.default)(null),module,"Icon")],properties:[{name:"path",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"active",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"className",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"onClick",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"inline",decorators:[(0,_Attribute2.default)()],kind:"property"},{name:"_inlineSVG",decorators:[(0,_Bind2.default)()],fn:function(){this.inline&&(this.containerRef.innerHTML=__webpack_require__(158)("./"+this.pathTransform+".svg"))}}]})}).call(exports,__webpack_require__(5)(module))},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Nodes=__webpack_require__(48),_SvgFactory=__webpack_require__(138),_SvgFactory2=_interopRequireDefault(_SvgFactory),_Component=__webpack_require__(2),_Component2=_interopRequireDefault(_Component),_Template=__webpack_require__(1),_Template2=_interopRequireDefault(_Template),svgFactory;exports.default=class{static make({attributes,events,blocks,init,dispose}){var templates=_Component2.default.attachBlockTemplates(blocks),childTemplate=templates.children;if(!childTemplate)return _Template2.default.EmptyTemplate;var svgAttr=null;return attributes&&(svgAttr=attributes.map(attr=>({name:attr.original||attr.name,value:attr.value||(data=>attr.get.call(data))}))),events&&(!svgAttr&&(svgAttr=[]),events.forEach(ev=>{svgAttr.push({name:"on-"+(ev.original||ev.name),value:ev.value})})),_Template2.default.make({render(f,data){var svg=data.$_svg=document.createElementNS(_Nodes.SvgNS,"svg");f!==_SvgFactory2.default&&(svg.setAttribute("version","1.1"),svg.setAttribute("xmlns",_Nodes.SvgNS),svg.setAttributeNS(_Nodes.XlinkNS,"xlink",_Nodes.XlinkNS),svg.setAttributeNS(_Nodes.XmlNS,"space","preserve"),!svgFactory&&(svgFactory=new _SvgFactory2.default(f.scope)));var savedDepth=svgFactory.depth;svgFactory.depth=f.depth,init&&init(data,svg),f.pushNode(svg);var{parentNode,nextNode}=svgFactory;svgFactory.parentNode=svg,svgFactory.nextNode=null;var savedScope=svgFactory.pushScope(f.scope),view=data.$_view=childTemplate.make(svgFactory);if(view.$_parent=data,childTemplate.render(svgFactory,view),svgAttr){events&&(svg.$_view=data),data.$_svg_attributes=f.updateSpreadAttribute(svg,svgAttr,{$_view:data},null)}svgFactory.restoreScope(savedScope),svgFactory.depth=savedDepth,svgFactory.parentNode=parentNode,svgFactory.nextNode=nextNode},reuse(f,data){init&&init(data,data.$_svg);var savedScope=svgFactory.pushScope(f.scope);if(childTemplate.reuse(svgFactory,data.$_view),svgAttr){events&&(data.$_svg.$_view=data),data.$_svg_attributes=f.updateSpreadAttribute(data.$_svg,svgAttr,{$_view:data},data.$_svg_attributes)}svgFactory.restoreScope(savedScope)},dispose(f,data){dispose&&dispose(data),data.$_svg_attributes&&(events&&(data.$_svg.$_view=null),data.$_svg_attributes=f.updateSpreadAttribute(data.$_svg,null,{$_view:data},data.$_svg_attributes)),childTemplate.dispose(svgFactory,data.$_view)},move(f,data){f.pushNode(data.$_svg)},firstChild(f,data){return data.$_svg},lastChild(f,data){return data.$_svg}})}}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(scope,parentNode,nextNode){var f=new _HtmlFactory2.default(scope,parentNode,nextNode),document=f.getDocument();return f._group_g=!1,f.makeNode=function(name){return document.createElementNS(_Nodes.SvgNS,name)},f.ensureAttr=function(name){var xlinkMatch=name.match(XlinkMatcher);if(xlinkMatch){var namespace=_Nodes.SvgNamespaces[xlinkMatch[1]];if(namespace)return _NamespacedAttribute2.default.make(namespace,xlinkMatch[2])}return this.setAttr},f};var _HtmlFactory=__webpack_require__(49),_HtmlFactory2=_interopRequireDefault(_HtmlFactory),_Nodes=__webpack_require__(48),_NamespacedAttribute=__webpack_require__(151),_NamespacedAttribute2=_interopRequireDefault(_NamespacedAttribute);const XlinkMatcher=/^([^:]+):(.+)$/},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}function makeEventFn(binder){return ev=>{var state=binder.state;if(state){var link=binder.link;state.onEvent(link.data,link.node,ev,binder.value,link.setterFn)}}}function wrapForExceptions(fn){return function(){try{return fn.apply(this,arguments)}catch(err){globalExceptionsHandler&&globalExceptionsHandler(err),console.error(err)}}}function makeBinderCallback(factory,data,signals,valueFn,updateFn,lateBinder){var depth=factory.depth,invalidate=_UITaskQueue2.default.wrap(()=>{var savedDepth=factory.depth;if(factory.depth=depth,signals)for(let i=0,l=signals.length;i<l;++i){let signal=signals[i],ref=signal.ref;ref&&(ref.remove(invalidate),signal.dispose&&signal.dispose())}if(!data.$_disposed){var temp=_Binder2.default.active;signals=_Binder2.default.active=[];var value=valueFn(data);_Binder2.default.active=temp,value=RunFilters(signals,value);for(let i=0,l=signals.length,signal;i<l;++i)signal=signals[i],signal.ref=_Signal2.default.on(signal.obj,signal.eventName,invalidate);updateFn(factory,data,signals,invalidate,value,!1,!1),factory.depth=savedDepth}},depth,lateBinder);return invalidate}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Prototype=__webpack_require__(35),_Prototype2=_interopRequireDefault(_Prototype);exports.setPreventExceptions=function(value,handler){globalPreventExceptions=value,globalExceptionsHandler=handler};var _Signal=__webpack_require__(9),_Signal2=_interopRequireDefault(_Signal),_Filters=__webpack_require__(36),_Filters2=_interopRequireDefault(_Filters),_Binder=__webpack_require__(11),_Binder2=_interopRequireDefault(_Binder),_Global=__webpack_require__(27),_Global2=_interopRequireDefault(_Global),_Deprecated=__webpack_require__(34),_Deprecated2=_interopRequireDefault(_Deprecated),_UITaskQueue=__webpack_require__(20),_UITaskQueue2=_interopRequireDefault(_UITaskQueue),_LruCache=__webpack_require__(47),_LruCache2=_interopRequireDefault(_LruCache),_CompilerStrings=__webpack_require__(50),RunFilters=_Filters2.default.filter,EmptyArray=[];const EmptyContent="empty",TextContent="text",TemplateContent="template";var EventAttributeTest=/^(?:(.+?):)?on-(.+?)(-capture)?$/,lastFactoryId=0,setImmediate,clearImmediate;_Global2.default.setImmediate?(setImmediate=_Global2.default.setImmediate,clearImmediate=_Global2.default.clearImmediate):(setImmediate=fn=>_Global2.default.setTimeout(fn,0),clearImmediate=_Global2.default.clearTimeout);var globalPreventExceptions=!1,globalExceptionsHandler=null;class Factory{constructor(scope,parentNode,nextNode,attr={}){this.id=++lastFactoryId,this.depth=0,this.preventExceptions=globalPreventExceptions,this.attr=attr,this.templates=new _LruCache2.default,this.scope=scope,this.parentNode=parentNode,this.nextNode=nextNode}makeCommentNode(){}makeTextNode(){}makeCustomNode(){}makeCustomNodeWithType(){}setTextContent(){}setNodeValue(){}appendNode(){}appendTextNode(){}replaceNode(){}makeNode(){}makeNodeWithType(){}makeFragment(){}removeNode(){}pushTextNode(){}setAttr(){}removeAttr(){}attachEvent(){}detachEvent(){}pushNode(){}pushCommentNode(){}pushTemplateNode(){}makeComponent(component,options){return component.make(options)}makeDirective(directive,options){return _Deprecated2.default.warn("Factory.makeDirective","Use Factory.makeComponent instead."),this.makeComponent(directive,options)}ensureAttr(){return this.setAttr}enterNode(node){this.parentNode=node,this.nextNode=null}exitNode(node){this.parentNode=node.parentNode,this.nextNode=node.nextSibling}pushScope(scope){var savedScope=this.scope;return this.scope=scope,savedScope}restoreScope(savedScope){this.scope=savedScope}pushJsx(content){var view=content.template.make(this);return view.$_parent=content.$_parent,view.$_scope=content,view.template.run(this,view),view}renderContent(placeholder,content){if(!placeholder){if(void 0===content||null===content||""===content)return{type:EmptyContent,content,scope:this.scope,node:this.pushCommentNode("empty expression")};if("function"==typeof content&&"function"==typeof content.make){let templateInstance=content.TemplateInstance||(content.TemplateInstance=content.make({})),view=templateInstance.make(this);return view.template.run(this,view),{type:TemplateContent,content,scope:this.scope,view}}if("object"==typeof content){if(content.make&&"function"==typeof content.make){let view=content.make(this);return view.template.run(this,view),{type:TemplateContent,content,scope:this.scope,view}}if(content.template&&content.template.make&&"function"==typeof content.template.make){let view=content.template.make(this);view.$_parent=content.$_parent,view.$_scope=content;let injectScope=content.$_injectScope;return injectScope&&injectScope(view),view.template.run(this,view),{type:TemplateContent,content,scope:this.scope,view}}}return{type:TextContent,content,scope:this.scope,node:this.pushTextNode(content)}}if(content===placeholder.content&&(placeholder.type!==TemplateContent||!placeholder.view.$_disposed))return placeholder;if(placeholder.scope||(placeholder.scope=this.scope),void 0===content||null===content||""===content){if(placeholder.type===EmptyContent)return placeholder;if(placeholder.type===TextContent){let newNode=this.makeCommentNode("empty placeholder");return this.replaceNode(placeholder.node,newNode),placeholder.type=EmptyContent,placeholder.content=content,placeholder.node=newNode,placeholder}return this.gotoAfterContent(placeholder),this.cacheContent(placeholder),{type:EmptyContent,content,scope:placeholder.scope,node:this.pushCommentNode("empty expression")}}if("function"==typeof content&&"function"==typeof content.make){this.gotoAfterContent(placeholder),this.cacheContent(placeholder);let savedScope=this.pushScope(placeholder.scope),templateInstance=content.TemplateInstance||(content.TemplateInstance=content.make({})),view=templateInstance.make(this);return view.template.run(this,view),this.restoreScope(savedScope),{type:TemplateContent,content,scope:placeholder.scope,view}}if("object"==typeof content){if(content.make&&"function"==typeof content.make){this.gotoAfterContent(placeholder),this.cacheContent(placeholder);let savedScope=this.pushScope(placeholder.scope),view=content.make(this);return view.template.run(this,view),this.restoreScope(savedScope),{type:TemplateContent,content,scope:placeholder.scope,view}}if(content.template&&content.template.make&&"function"==typeof content.template.make){this.gotoAfterContent(placeholder),this.cacheContent(placeholder);let savedScope=this.pushScope(placeholder.scope),view=content.template.make(this);view.$_parent=content.$_parent,view.$_scope=content;let injectScope=content.$_injectScope;return injectScope&&injectScope(view),view.template.run(this,view),this.restoreScope(savedScope),{type:TemplateContent,content,scope:placeholder.scope,view}}}if(placeholder.type===TextContent)return this.setNodeValue(placeholder.node,content),placeholder.content=content,placeholder;if(placeholder.type===EmptyContent){let newNode=this.makeTextNode(content);return this.replaceNode(placeholder.node,newNode),placeholder.type=TextContent,placeholder.content=content,placeholder.node=newNode,placeholder}return this.gotoAfterContent(placeholder),this.cacheContent(placeholder),{type:TextContent,content,scope:placeholder.scope,node:this.pushTextNode(content)}}moveContent(placeholder){switch(placeholder.type){case EmptyContent:case TextContent:this.pushNode(placeholder.node);break;case TemplateContent:var view=placeholder.view;view.template.move(this,view);}}cacheContent(placeholder){switch(placeholder.type){case EmptyContent:case TextContent:this.removeNode(placeholder.node),placeholder.node=null;break;case TemplateContent:var view=placeholder.view;view.template.cache(this,view),placeholder.view=null;}}disposeContent(placeholder){switch(placeholder.type){case EmptyContent:case TextContent:break;case TemplateContent:var view=placeholder.view;view.template.dispose(this,view);}return placeholder.scope=null,placeholder}gotoBeforeNode(node){this.parentNode=node.parentNode,this.nextNode=node}gotoAfterNode(node){this.parentNode=node.parentNode,this.nextNode=node.nextSibling}gotoBeforeView(view){var node=view.template.firstChild(this,view);this.parentNode=node.parentNode,this.nextNode=node}gotoAfterView(view){var node=view.template.lastChild(this,view);this.parentNode=node.parentNode,this.nextNode=node.nextSibling}gotoBeforeContent(placeholder){switch(placeholder.type){case EmptyContent:case TextContent:this.gotoBeforeNode(placeholder.node);break;case TemplateContent:this.gotoBeforeView(placeholder.view);}}gotoAfterContent(placeholder){switch(placeholder.type){case EmptyContent:case TextContent:this.gotoAfterNode(placeholder.node);break;case TemplateContent:this.gotoAfterView(placeholder.view);}}contentFirstChild(placeholder){switch(placeholder.type){case EmptyContent:case TextContent:return placeholder.node;case TemplateContent:var view=placeholder.view;return view.template.firstChild(this,view);}}contentLastChild(placeholder){switch(placeholder.type){case EmptyContent:case TextContent:return placeholder.node;case TemplateContent:var view=placeholder.view;return view.template.lastChild(this,view);}}runRafBinder(valueFn,updateFn,data,firstRun,lateBinder){return setImmediate(()=>{this.runBinder(valueFn,updateFn,data,firstRun,lateBinder)})}disposeRafBinder(rafBinderId){clearImmediate(rafBinderId)}runBinder(valueFn,updateFn,data,firstRun,lateBinder){var temp=_Binder2.default.active,signals=_Binder2.default.active=EmptyArray,preventExceptions=this.preventExceptions;preventExceptions&&(valueFn=wrapForExceptions(valueFn));var value=valueFn(data);_Binder2.default.active=temp,value=RunFilters(signals,value);var invalidate;if(signals.length){EmptyArray=[],invalidate=makeBinderCallback(this,data,signals,valueFn,updateFn,lateBinder);for(var i=0,l=signals.length,signal;i<l;++i)signal=signals[i],signal.ref=_Signal2.default.on(signal.obj,signal.eventName,invalidate)}else signals=null;updateFn(this,data,signals,invalidate,value,firstRun,!firstRun)}removeSignals(signals,invalidate){if(signals)for(var i=0,l=signals.length,signal;i<l;++i)signal=signals[i],signal.ref.remove(invalidate),signal.dispose&&signal.dispose()}setUnpreparedAttr(node,name,value){var attrCache=(0,_CompilerStrings.makeAttrName)(name),updater=this.attr[attrCache]||(this.attr[attrCache]=this.ensureAttr(name));return updater(node,name,value)}updateSpreadAttribute(node,value,data,state){function attachAttr(name,attr){name+="";var eventMatch=name.match(EventAttributeTest);if(eventMatch){const namespace=eventMatch[1],localName=eventMatch[2],isCapture=!!eventMatch[3];if(!namespace){const fn=self.attachEvent(node,localName,attr,isCapture)||attr;state.events.push({name:localName,value:fn,capture:isCapture})}return}var attrCache=(0,_CompilerStrings.makeAttrName)(name),updater=self.attr[attrCache]||(self.attr[attrCache]=self.ensureAttr(name)),binder={name,updater,disposed:!1};if(state.attrs.push(binder),"function"==typeof attr)self.runBinder(attr,(factory,data,signals,invalidate,newValue,fromCache,firstRun)=>{binder.disposed||(binder.signals=signals,binder.invalidate=invalidate,(firstRun||newValue!==binder.value)&&(binder.value=newValue,binder.state=updater(node,name,newValue,binder.state)))},data,!1);else if("object"==typeof attr&&"function"==typeof attr.get){var eventFn;if("function"==typeof attr.set){var attrGetter=attr.get,attrSetter=attr.set;self.preventExceptions&&(attrGetter=wrapForExceptions(attrGetter),attrSetter=wrapForExceptions(attrSetter)),binder.link={data,node,setterFn(data,newValue){return attrSetter(newValue),attrGetter()}},eventFn=makeEventFn(binder)}self.runBinder(attr.get,(factory,data,signals,invalidate,newValue,fromCache,firstRun)=>{binder.disposed||(binder.signals=signals,binder.invalidate=invalidate,(firstRun||newValue!==binder.value)&&(binder.value=newValue,binder.state=updater(node,name,newValue,binder.state,eventFn)))},data,!1)}else binder.state=updater(node,name,attr)}if(state){var attrs=state.attrs;for(let i=0,l=attrs.length,attr;i<l;++i)attr=attrs[i],attr.signals&&this.removeSignals(attr.signals,attr.invalidate),attr.disposed=!0,attr.updater(node,attr.name,null,attr.state),attr.link=null,attr.state=null;var events=state.events;for(let i=0,l=events.length;i<l;++i){var ev=events[i];this.detachEvent(node,ev.name,ev.value,ev.capture)}}if(value){var self=this;if(state={attrs:[],events:[]},value instanceof Array)for(let i=0,l=value.length,attr;i<l;++i)attr=value[i],attachAttr(attr.name,attr.get?attr:attr.value);else if("object"==typeof value)for(var key in value)if(value.hasOwnProperty(key)){let attrValue=value[key];"object"==typeof attrValue?attachAttr(key,attrValue.get?attrValue:attrValue.value):attachAttr(key,attrValue)}return state}}replaceTemplate(oldView,newView){this.gotoAfterView(oldView),oldView.template.cache(this,oldView),newView.template.run(this,newView)}}exports.default=Factory,Factory.active=null,exports.default=Factory=(0,_Builder2.default)(Factory,{decorators:[(0,_Prototype2.default)({_group_g:!0})]})},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,attr,newValue,state,eventCallback){return eventCallback?(state||(node.addEventListener("change",eventCallback,!1),node.addEventListener("keyup",eventCallback,!1),node.addEventListener("input",eventCallback,!1),node.addEventListener("blur",eventCallback,!1),state=checkedUpdater),node._TorqUpdate=!0,state.update(node,void 0!==newValue&&newValue),node._TorqUpdate=!1,state):void(node.checked=!!newValue)};var _ValueUpdaterEvent=__webpack_require__(30),_ValueUpdaterEvent2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_ValueUpdaterEvent),checkedUpdater={update(node,value){node.checked=!!value},read(node){return node.checked},onEvent:_ValueUpdaterEvent2.default}},function(module,exports,__webpack_require__){"use strict";function compactAndFlatten(items){let result=[];for(let i=0,l=items.length,value;i<l;++i)if(value=items[i],value instanceof Array)for(let j=0,k=value.length;j<k;++j)value[j]&&result.push(value[j]);else value&&result.push(value);return result}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,attr,value,previousValue){if(!value)return(0,_ClassNames.replaceClassNames)(node,previousValue,null);if("string"==typeof value){if(-1===value.indexOf(" "))return(0,_ClassNames.replaceSingleClassName)(node,previousValue,value);value=value.trim().split(/\s+/)}else if(value instanceof Array)value=compactAndFlatten(value);else if("object"==typeof value){var list=[];for(let key in value){const val=value[key];val&&list.push(key.split(" "))}value=compactAndFlatten(list)}return(0,_ClassNames.replaceClassNames)(node,previousValue,value)};var _ClassNames=__webpack_require__(51)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _ClassNames=__webpack_require__(51);exports.default={make(className){return function(node,attr,value){value?(0,_ClassNames.addClass)(node,className):(0,_ClassNames.removeClass)(node,className)}}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,attr,newValue,state,eventCallback){return eventCallback?(state||(node.addEventListener("change",eventCallback,!1),node.addEventListener("keyup",eventCallback,!1),node.addEventListener("input",eventCallback,!1),node.addEventListener("blur",eventCallback,!1),state=updater),node._TorqUpdate=!0,state.update(node,newValue),node._TorqUpdate=!1,state):void node.setAttribute(attr,newValue)};var _ValueUpdaterEvent=__webpack_require__(30),_ValueUpdaterEvent2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_ValueUpdaterEvent),updater={update(node,value){node.indeterminate=!!value},read(node){return node.indeterminate},onEvent:_ValueUpdaterEvent2.default}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,attr,value,previous){return value&&"string"!=typeof value?(previous&&("string"==typeof previous?node.setAttribute("style",""):(0,_Style.unsetStyles)(node,previous)),(0,_Style.setStyles)(node,value)):node.setAttribute("style",value),value};var _Style=__webpack_require__(145)},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.setStyles=function(node,properties){var style=node.style;const props=(0,_CSS.transformProperties)(properties);for(let key in props)style[key]=props[key]},exports.unsetStyles=function(node,properties){var style=node.style;for(let key in(0,_CSS.transformProperties)(properties))style[key]=""},exports.setStyle=function(node,key,value){node.style[(0,_CSS.transformPropertyName)(key)]=(0,_CSS.transformValueForProperty)(key,value)};var _CSS=__webpack_require__(52)},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});exports.default=class{constructor(transform){this.map={},this.transform=transform}get(name){var map=this.map;return map.hasOwnProperty(name)?map[name]:map[name]=this.transform(name)}}},function(module,exports,__webpack_require__){"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var _CSS=__webpack_require__(52);exports.default={make(cssProp){var jsProp=(0,_CSS.transformPropertyName)(cssProp),transformer=(0,_CSS.valueTransformerForProperty)(cssProp);return transformer?function(node,attr,value){node.style[jsProp]=transformer(value)}:function(node,attr,value){node.style[jsProp]=value===void 0||null===value?"":value}}}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,attr,newValue){node.textContent=newValue}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,attr,newValue){newValue?node.setAttribute(attr,attr):node.removeAttribute(attr)}},function(module,exports,__webpack_require__){"use strict";function setSelectOptionValueIteratively(node,displayValue){for(let i=0,len=node.options.length;i<len;i++){const option=node.options[i];if(option.value===displayValue){option.selected=!0;break}}}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(node,attr,newValue,state,eventCallback){if(!eventCallback)return void node.setAttribute(attr,newValue);if(!state)if(node.addEventListener("change",eventCallback,!1),node.addEventListener("keyup",eventCallback,!1),node.addEventListener("input",eventCallback,!1),node.addEventListener("blur",eventCallback,!1),"inherit"!==node.contentEditable)state=contentEditableUpdater;else switch(node.getAttribute("type")){case"number":case"range":state=floatUpdater;break;default:state=valueUpdater;}return node._TorqUpdate=!0,state.update(node,newValue),node._TorqUpdate=!1,state};var _ValueUpdaterEvent=__webpack_require__(30),_ValueUpdaterEvent2=function(obj){return obj&&obj.__esModule?obj:{default:obj}}(_ValueUpdaterEvent),floatUpdater={update(node,value){var displayValue=parseFloat(value,10);isNaN(displayValue)&&(displayValue=""),node.value!==displayValue&&(node.value=displayValue)},read(node){return parseFloat(node.value,10)},onEvent:_ValueUpdaterEvent2.default},valueUpdater={update(node,newValue){const displayValue=newValue===void 0?"":newValue;if(node.value!==displayValue&&(node.value=displayValue,"SELECT"===node.tagName&&node.value!==displayValue))return void setSelectOptionValueIteratively(node,displayValue)},read(node){return node.value},onEvent:_ValueUpdaterEvent2.default},contentEditableUpdater={update(node,newValue){const displayValue=newValue===void 0?"":newValue;node.textContent!==displayValue&&(node.textContent=displayValue)},read(node){return node.textContent},onEvent:_ValueUpdaterEvent2.default}},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default={make(namespace,property){return function(node,attr,value){node.setAttributeNS(namespace,property,value)}}}},function(module,exports,__webpack_require__){function webpackContext(req){return __webpack_require__(webpackContextResolve(req))}function webpackContextResolve(req){var id=map[req];if(!(id+1))throw new Error("Cannot find module '"+req+"'.");return id}var map={"./ico-alert.svg":129,"./ico-empty-album.svg":153,"./ico-failed-load.svg":154,"./ico-general-cc.svg":155,"./ico-no-connection.svg":156,"./ico-no-results.svg":157,"./ico-refresh.svg":122,"./ico-wait-dark.svg":132,"./ico-wait-light.svg":131};webpackContext.keys=function(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=152},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-empty-album-23OL13q.svg"},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-failed-load-261IbWP.svg"},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-general-cc-3YZLMhW.svg"},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-no-connection-2MLyDaE.svg"},function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"ico-no-results-eq4glWE.svg"},function(module,exports,__webpack_require__){function webpackContext(req){return __webpack_require__(webpackContextResolve(req))}function webpackContextResolve(req){var id=map[req];if(!(id+1))throw new Error("Cannot find module '"+req+"'.");return id}var map={"./ico-alert.svg":159,"./ico-empty-album.svg":160,"./ico-failed-load.svg":161,"./ico-general-cc.svg":162,"./ico-no-connection.svg":163,"./ico-no-results.svg":164,"./ico-refresh.svg":165,"./ico-wait-dark.svg":166,"./ico-wait-light.svg":167};webpackContext.keys=function(){return Object.keys(map)},webpackContext.resolve=webpackContextResolve,module.exports=webpackContext,webpackContext.id=158},function(module){module.exports="<svg xmlns=\"http://www.w3.org/2000/svg\" data-name=\"S_Alert_18_N@2x\" height=\"36\" id=\"S_Alert_18_N_2x\" viewBox=\"0 0 36 36\" width=\"36\">\n  <defs>\n    <style>\n      .cls-1 {\n        fill: #C4A600;\n        fill-rule: evenodd;\n      }\n    </style>\n  </defs>\n  <title>S_Alert_18_N@2x</title>\n  <rect id=\"Canvas\" fill=\"#ff13dc\" opacity=\"0\" width=\"36\" height=\"36\" /><path class=\"cls-1\" d=\"M17.127,2.579.4,32.512A1,1,0,0,0,1.272,34H34.728a1,1,0,0,0,.873-1.488L18.873,2.579A1,1,0,0,0,17.127,2.579ZM20,29.5a.5.5,0,0,1-.5.5h-3a.5.5,0,0,1-.5-.5v-3a.5.5,0,0,1,.5-.5h3a.5.5,0,0,1,.5.5Zm0-6a.5.5,0,0,1-.5.5h-3a.5.5,0,0,1-.5-.5v-12a.5.5,0,0,1,.5-.5h3a.5.5,0,0,1,.5.5Z\" />\n  </svg>\n"},function(module){module.exports="<svg id=\"content\" width=\"184\" height=\"100\" viewBox=\"0 0 184 100\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;\">\n  <path d=\"M48,22L49,22C49.549,22 50,21.549 50,21L50,17.5C50,17.226 50.226,17 50.5,17L138.5,17C138.774,17 139,17.226 139,17.5L139,21C139,21.549 139.451,22 140,22L141,22C141.549,22 142,21.549 142,21L142,17.5C142,15.58 140.42,14 138.5,14L50.5,14C48.58,14 47,15.58 47,17.5L47,21C47,21.549 47.451,22 48,22Z\" style=\"fill-rule:nonzero;\"/>\n  <path d=\"M58,12L59,12C59.549,12 60,11.549 60,11L60,8.5C60,8.226 60.226,8 60.5,8L128.5,8C128.774,8 129,8.226 129,8.5L129,11C129,11.549 129.451,12 130,12L131,12C131.549,12 132,11.549 132,11L132,8.5C132,6.58 130.42,5 128.5,5L60.5,5C58.58,5 57,6.58 57,8.5L57,11C57,11.549 57.451,12 58,12Z\" style=\"fill-rule:nonzero;\"/>\n  <path d=\"M148.5,24L40.5,24C38.58,24 37,25.58 37,27.5L37,44C37,44.549 37.451,45 38,45L39,45C39.549,45 40,44.549 40,44L40,27.5C40,27.226 40.226,27 40.5,27L148.5,27C148.774,27 149,27.226 149,27.5L149,95.909L125.646,72.109C123.483,69.978 119.958,69.983 117.801,72.12L107.209,83.331C107.017,83.545 106.892,83.811 106.851,84.096L83.2,60.212C82.311,59.304 81.093,58.792 79.822,58.793C78.559,58.797 77.346,59.298 76.448,60.187L40,96.125L40,79C40,78.451 39.549,78 39,78L38,78C37.451,78 37,78.451 37,79L37,96.5C37,98.42 38.58,100 40.5,100L148.5,100C150.42,100 152,98.42 152,96.5L152,27.5C152,25.58 150.42,24 148.5,24ZM43.384,97L78.561,62.416C78.901,62.112 79.352,61.961 79.807,62C80.264,61.962 80.717,62.116 81.057,62.424L115.409,97L43.384,97ZM119.632,97L108.553,85.814C108.871,85.769 109.165,85.621 109.39,85.392L119.957,74.208C120.439,73.759 121.073,73.509 121.732,73.508C122.394,73.5 123.033,73.755 123.508,74.217L145.867,97L119.632,97Z\" style=\"fill-rule:nonzero;\"/>\n  <path d=\"M129.049,58C131.937,58.047 134.725,56.928 136.775,54.9C138.84,52.823 140,50.015 140,47.091C140,41.082 135.1,36.109 129.071,36L129.048,36C129.044,36 129.041,36 129.037,36C122.982,36 118,40.966 118,47C118,53.03 122.976,57.994 129.027,58L129.049,58ZM121.106,47.2C121.103,45.048 121.946,42.978 123.453,41.437C124.917,39.915 126.932,39.037 129.047,39L129.065,39C133.517,39.009 137.176,42.663 137.176,47.1C137.176,51.544 133.507,55.2 129.048,55.2C129.043,55.2 129.037,55.2 129.032,55.2C124.656,55.172 121.078,51.561 121.106,47.2L121.106,47.2Z\" style=\"fill-rule:nonzero;\"/>\n  <path d=\"M38.5,48C31.094,48 25,54.094 25,61.5C25,68.906 31.094,75 38.5,75C45.906,75 52,68.906 52,61.5C52,54.094 45.906,48 38.5,48Z\" style=\"fill:#1473E6;fill-rule:nonzero;\"/>\n  <path d=\"M46,63L40,63L40,69C40,69.549 39.549,70 39,70L38,70C37.451,70 37,69.549 37,69L37,63L31,63C30.451,63 30,62.549 30,62L30,61C30,60.451 30.451,60 31,60L37,60L37,54C37,53.451 37.451,53 38,53L39,53C39.549,53 40,53.451 40,54L40,60L46,60C46.549,60 47,60.451 47,61L47,62C47,62.549 46.549,63 46,63Z\" style=\"fill:#E1E1E1;fill-rule:nonzero;\"/>\n</svg>\n"},function(module){module.exports="<svg id=\"content\" data-name=\"Layer 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 179.3 110.17\"><title>ico-failed-load</title><g id=\"Group_8\" data-name=\"Group 8\"><path id=\"Path_13\" data-name=\"Path 13\" d=\"M13.93,33.11V4.44A3,3,0,0,1,16.87,1.5H175.49a3,3,0,0,1,2.94,2.94V105.73a3,3,0,0,1-2.94,2.94H16.87a3,3,0,0,1-2.94-2.94V74.27\" transform=\"translate(-0.64)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/><path id=\"Path_14\" data-name=\"Path 14\" d=\"M146.68,46.93a14,14,0,1,0-13.82-14.11s0,.1,0,.15a13.84,13.84,0,0,0,13.7,14Z\" transform=\"translate(-0.64)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px\"/><path id=\"Path_15\" data-name=\"Path 15\" d=\"M111.84,87.65l15.58-16.47a6.13,6.13,0,0,1,8.38,0L172,108.08\" transform=\"translate(-0.64)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px\"/><path id=\"Path_16\" data-name=\"Path 16\" d=\"M16.13,108.08,71.26,53.69a4.7,4.7,0,0,1,6.65-.12l.12.12,54.39,55\" transform=\"translate(-0.64)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:2px\"/><line id=\"Line_4\" data-name=\"Line 4\" x1=\"1.54\" y1=\"66.11\" x2=\"25.04\" y2=\"42.61\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3.075000047683716px\"/><line id=\"Line_5\" data-name=\"Line 5\" x1=\"25.04\" y1=\"66.11\" x2=\"1.54\" y2=\"42.61\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3.075000047683716px\"/></g></svg>\n"},function(module){module.exports="<svg id=\"content\" data-name=\"Layer 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 179.99 136.86\"><title>ico-subscription-expired</title><path id=\"Path_13\" data-name=\"Path 13\" d=\"M58.75,136.86a58.75,58.75,0,1,1,0-117.51h0a47.87,47.87,0,0,1,5.19.28C78.25,6.17,94.23,0,111.76,0a68.4,68.4,0,0,1,11.08,135.88h0s-8.55,1-15.85,1Zm0-113.58a54.83,54.83,0,0,0,0,109.66H107a129,129,0,0,0,15.57-1A64.47,64.47,0,1,0,67.73,21.31L65.2,23.7a49.82,49.82,0,0,0-6.45-.42Zm.42,93.67a39.08,39.08,0,0,1-39-39v-.14A38.93,38.93,0,0,1,59,39a37,37,0,0,1,26.08,10l18.09,18.65a3,3,0,0,1-2.1,5.19,2.79,2.79,0,0,1-2.24-1L80.63,53.43A31.45,31.45,0,0,0,59,45.29a32.74,32.74,0,0,0,.14,65.49h9.4a59.37,59.37,0,0,0,7.15,6.17Zm52.3,0a48.16,48.16,0,0,1-34.21-14.16S53.15,78.53,53,78.53a3.18,3.18,0,0,1-.84-2.24,3,3,0,0,1,1-2.1,2.85,2.85,0,0,1,2.1-.84,4,4,0,0,1,2.38,1l24,24A42.34,42.34,0,1,0,86,34.5c-2-1.12-3.93-2.24-5.89-3.23a48.46,48.46,0,0,1,65.77,71.09A47,47,0,0,1,111.48,117Z\" transform=\"translate(0)\" style=\"fill:#5c5c5c\"/></svg>\n"},function(module){module.exports="<svg id=\"content\" data-name=\"Layer 1\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 108.32 91.8\"><title>ico-no-connection</title><g id=\"Group_9\" data-name=\"Group 9\"><path id=\"Path_13\" data-name=\"Path 13\" d=\"M71.48,56.43a23.9,23.9,0,0,0,7-16.85,23.55,23.55,0,0,0-7-16.85\" transform=\"translate(0 0)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/><path id=\"Path_14\" data-name=\"Path 14\" d=\"M81.23,66.26a37.8,37.8,0,0,0,0-53.38\" transform=\"translate(0 0)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/><path id=\"Path_15\" data-name=\"Path 15\" d=\"M91.5,76.53a52.25,52.25,0,0,0,0-73.9l0,0\" transform=\"translate(0 0)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/><path id=\"Path_16\" data-name=\"Path 16\" d=\"M36.83,21.52a23.9,23.9,0,0,0-7,16.85,23.55,23.55,0,0,0,7,16.85\" transform=\"translate(0 0)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/><path id=\"Path_17\" data-name=\"Path 17\" d=\"M27,11.68a37.8,37.8,0,0,0,0,53.38\" transform=\"translate(0 0)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/><path id=\"Path_18\" data-name=\"Path 18\" d=\"M16.81,1.5a52.26,52.26,0,0,0,0,73.9l0,0\" transform=\"translate(0 0)\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/><line id=\"Line_4\" data-name=\"Line 4\" x1=\"54.12\" y1=\"38.97\" x2=\"54.12\" y2=\"90.3\" style=\"fill:none;stroke:#5c5c5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:3px\"/></g></svg>\n"},function(module){module.exports="<svg id=\"content\" class=\"glyph\" width=\"184\" height=\"100\" viewBox=\"0 0 184 100\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" xml:space=\"preserve\" style=\"fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;\">\n  <path d=\"M37.169,55.053C37.179,55.053 37.19,55.053 37.2,55.053C50.227,55.053 60.947,44.433 60.947,31.526C60.947,18.62 50.227,8 37.2,8C24.173,8 13.453,18.62 13.453,31.526C13.453,36.29 14.913,40.943 17.64,44.867L1.388,60.964C0.497,61.847 -0.004,63.045 -0.004,64.293C-0.004,66.875 2.141,69 4.747,69C6.006,69 7.215,68.504 8.106,67.622L24.43,51.453C24.449,51.435 24.455,51.41 24.472,51.39C28.264,53.786 32.671,55.057 37.169,55.053ZM37.169,11.033C48.533,11.033 57.885,20.297 57.885,31.556C57.885,42.815 48.533,52.08 37.169,52.08C25.805,52.08 16.453,42.815 16.453,31.556C16.466,20.302 25.81,11.046 37.169,11.033L37.169,11.033ZM5.985,65.522C5.297,66.173 4.198,66.173 3.51,65.522C2.833,64.848 2.833,63.743 3.51,63.07L19.51,47.218C20.29,48.081 21.132,48.885 22.03,49.626L5.985,65.522Z\" style=\"fill-rule:nonzero;\"/>\n  <path d=\"M28.424,39.576C28.989,40.141 29.92,40.141 30.486,39.576L37.007,33.054L43.529,39.576C43.8,39.838 44.164,39.985 44.542,39.985C45.342,39.985 46,39.327 46,38.527C46,38.149 45.853,37.786 45.591,37.514L39.069,30.994L45.591,24.472C45.853,24.201 46,23.837 46,23.459C46,22.659 45.342,22.001 44.542,22.001C44.164,22.001 43.8,22.148 43.529,22.41L37.007,28.932L30.486,22.409C30.214,22.147 29.85,22 29.473,22C28.673,22 28.014,22.658 28.014,23.458C28.014,23.836 28.161,24.2 28.424,24.471L34.944,30.994L28.423,37.516C27.859,38.081 27.859,39.011 28.424,39.576Z\" style=\"fill-rule:nonzero;\"/>\n  <path d=\"M126.05,58C128.938,58.047 131.726,56.928 133.775,54.9C135.84,52.823 137,50.015 137,47.091C137,41.081 132.099,36.107 126.069,36L126.046,36C126.043,36 126.039,36 126.036,36C119.982,36 115,40.966 115,47C115,53.03 119.975,57.994 126.025,58L126.05,58ZM118.109,47.2C118.105,45.047 118.949,42.975 120.458,41.434C121.922,39.913 123.937,39.036 126.051,39L126.069,39C130.521,39.009 134.179,42.663 134.179,47.1C134.179,51.544 130.511,55.2 126.053,55.2C126.047,55.2 126.042,55.2 126.036,55.2C121.679,55.174 118.108,51.593 118.108,47.25C118.108,47.232 118.108,47.215 118.109,47.197L118.109,47.2Z\" style=\"fill-rule:nonzero;\"/>\n  <path d=\"M146.5,24L64,24C63.451,24 63,24.451 63,25L63,26C63,26.549 63.451,27 64,27L146.5,27C146.774,27 147,27.226 147,27.5L147,95.909L123.646,72.109C121.483,69.978 117.958,69.983 115.801,72.12L105.214,83.331C105.022,83.545 104.897,83.811 104.856,84.096L81.195,60.212C80.305,59.303 79.086,58.791 77.814,58.793C76.551,58.797 75.338,59.298 74.44,60.187L38,96.124L38,59C38,58.451 37.549,58 37,58L36,58C35.451,58 35,58.451 35,59L35,96.5C35,98.42 36.58,100 38.5,100L146.5,100C148.42,100 150,98.42 150,96.5L150,27.5C150,25.58 148.42,24 146.5,24ZM41.384,97L76.56,62.416C76.9,62.112 77.351,61.961 77.806,62C78.263,61.962 78.716,62.116 79.056,62.424L113.404,97L41.384,97ZM117.632,97L106.552,85.814C106.87,85.769 107.164,85.621 107.389,85.392L117.955,74.208C118.437,73.759 119.071,73.509 119.73,73.508C120.392,73.5 121.031,73.755 121.506,74.217L143.865,97.004L117.632,97Z\" style=\"fill-rule:nonzero;\"/>\n</svg>\n"},function(module){module.exports="<svg xmlns=\"http://www.w3.org/2000/svg\" data-name=\"S_Refresh_24_N@2x\" height=\"48\" id=\"S_Refresh_24_N_2x\" viewBox=\"0 0 48 48\" width=\"48\">\n  <defs>\n    <style>\n      .cls-1 {\n        fill: #707070;\n      }\n\n      \n    </style>\n  </defs>\n  <title>S_Refresh_24_N@2x</title>\n  <rect id=\"Canvas\" fill=\"#ff13dc\" opacity=\"0\" width=\"48\" height=\"48\" /><path class=\"cls-1\" d=\"M28.052,19.146,33.6,13.835a13.98,13.98,0,0,0-22.966,5.989l-5.728-1.79A19.969,19.969,0,0,1,37.931,9.689L43.146,4.7A.5.5,0,0,1,44,5.05V20H28.405A.5.5,0,0,1,28.052,19.146Z\" />\n  <path class=\"cls-1\" d=\"M19.651,28a.5.5,0,0,1,.354.853l-5.626,5.294a13.982,13.982,0,0,0,22.987-5.971l5.728,1.79A19.974,19.974,0,0,1,10.01,38.258L4.854,43.11A.5.5,0,0,1,4,42.757V28Z\" />\n  </svg>"},function(module){module.exports="<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Generator: Adobe Illustrator 20.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->\n<svg version=\"1.1\" id=\"S_Search_24_N\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\"\n\t y=\"0px\" viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n    <defs>\n        <style>\n            #loader_circle_blue,\n            #loader_bg {\n                fill-rule: evenodd;\n                fill: transparent;\n                stroke-linecap: round;\n                transform-origin: center center;\n            }\n\n            #loader_bg {\n                stroke: rgb(49, 49, 49);\n                stroke-width: 1.8;\n            }\n\n            #loader_circle_blue {\n                stroke: rgb(20, 115, 230);\n                stroke-width: 2;\n                stroke-dashoffset: 70;\n                -webkit-stroke-dashoffset: 70;\n                stroke-dasharray: 80;\n                -webkit-stroke-dasharray: 80;\n                animation: dashed 1s linear infinite;\n                -webkit-animation: dashed 1s linear infinite;\n                transform: rotate(-85deg);\n            }\n\n            #loader_circle_group {\n                transform: rotate(0deg);\n                animation: spinner 1s linear infinite;\n                -webkit-animation: spinner 1s linear infinite;\n                transform-origin: center center;\n\n            }\n\n            @keyframes dashed {\n                0% {\n                    stroke-dashoffset: 70;\n                    -webkit-stroke-dashoffset: 70;\n                    transform: rotate(-85deg);\n                }\n                60% {\n                    stroke-dashoffset: 25;\n                    -webkit-stroke-dashoffset: 25;\n                    transform: rotate(-85deg);\n                }\n                100% {\n                    stroke-dashoffset: 70;\n                    -webkit-stroke-dashoffset: 70;\n                    transform: rotate(-85deg);\n                }\n            }\n            @-webkit-keyframes spinner {\n                0% {\n                    transform: rotate(0deg);\n                }\n                60% {\n                    transform: rotate(110deg);\n                }\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n    </defs>\n  <g id=\"ico-search\"><circle id=\"loader_bg\" cx=\"12\" cy=\"12 \" r=\"11\"/>\n    <g id=\"loader_circle_group\">\n      <circle id=\"loader_circle_blue\" cx=\"12\" cy=\"12 \" r=\"11\"/>\n    </g>\n  </g>\n</svg>\n"},function(module){module.exports="<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<!-- Generator: Adobe Illustrator 20.1.0, SVG Export Plug-In . SVG Version: 6.00 Build 0)  -->\n<svg version=\"1.1\" id=\"S_Search_24_N\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" x=\"0px\"\n\t y=\"0px\" viewBox=\"0 0 24 24\" style=\"enable-background:new 0 0 24 24;\" xml:space=\"preserve\">\n    <defs>\n        <style>\n            #loader_circle_blue,\n            #loader_bg {\n                fill-rule: evenodd;\n                fill: transparent;\n                stroke-linecap: round;\n                transform-origin: center center;\n            }\n\n            #loader_bg {\n                stroke: rgb(197, 197, 197);\n                stroke-width: 1.8;\n            }\n\n            #loader_circle_blue {\n                stroke: rgb(0, 100, 220);\n                stroke-width: 2;\n                stroke-dashoffset: 70;\n                -webkit-stroke-dashoffset: 70;\n                stroke-dasharray: 80;\n                -webkit-stroke-dasharray: 80;\n                animation: dashed 1s linear infinite;\n                -webkit-animation: dashed 1s linear infinite;\n                transform: rotate(-85deg);\n            }\n\n            #loader_circle_group {\n                transform: rotate(0deg);\n                animation: spinner 1s linear infinite;\n                -webkit-animation: spinner 1s linear infinite;\n                transform-origin: center center;\n\n            }\n\n            @keyframes dashed {\n                0% {\n                    stroke-dashoffset: 70;\n                    -webkit-stroke-dashoffset: 70;\n                    transform: rotate(-85deg);\n                }\n                60% {\n                    stroke-dashoffset: 25;\n                    -webkit-stroke-dashoffset: 25;\n                    transform: rotate(-85deg);\n                }\n                100% {\n                    stroke-dashoffset: 70;\n                    -webkit-stroke-dashoffset: 70;\n                    transform: rotate(-85deg);\n                }\n            }\n            @-webkit-keyframes spinner {\n                0% {\n                    transform: rotate(0deg);\n                }\n                60% {\n                    transform: rotate(110deg);\n                }\n                100% {\n                    transform: rotate(360deg);\n                }\n            }\n        </style>\n    </defs>\n  <g id=\"ico-search\"><circle id=\"loader_bg\" cx=\"12\" cy=\"12 \" r=\"11\"/>\n    <g id=\"loader_circle_group\">\n      <circle id=\"loader_circle_blue\" cx=\"12\" cy=\"12 \" r=\"11\"/>\n    </g>\n  </g>\n</svg>\n"},function(module){module.exports={section:"_2tc5TT_n5_NTu7LM3ZZIhn",body:"_16aUFoLMf5hBOq5PKrbMPY",text:"_3lOafN0UWMop92TgT8I0kb",title:"_2TcVcGxJDtXH7mgDgxLHLi",subtitle:"gCn7FdCuCjHWgd8TjZNxV"}},function(module){module.exports={container:"_5W3IqOb-zaQmOBSItMOEP"}},function(module){module.exports={container:"_2HUjYhdRleY8x1UzQWccp8"}},function(module,exports,__webpack_require__){"use strict";function _interopRequireDefault(obj){return obj&&obj.__esModule?obj:{default:obj}}Object.defineProperty(exports,"__esModule",{value:!0});var _Builder=__webpack_require__(0),_Builder2=_interopRequireDefault(_Builder),_Abstract=__webpack_require__(37),_Abstract2=_interopRequireDefault(_Abstract),_Memoize=__webpack_require__(172),_Memoize2=_interopRequireDefault(_Memoize),_SignalDispatcher=__webpack_require__(19),_SignalDispatcher2=_interopRequireDefault(_SignalDispatcher),_Scope=__webpack_require__(53),_Scope2=_interopRequireDefault(_Scope),_HtmlFactory=__webpack_require__(49),_HtmlFactory2=_interopRequireDefault(_HtmlFactory),_superClass;_superClass=_SignalDispatcher2.default;class Application extends _superClass{constructor(factoryClass){super();var scope=this.scope=this.link(new _Scope2.default),Factory=factoryClass||_HtmlFactory2.default;this.factory=new Factory(scope)}start(parentNode,nextNode,scope){this.factory.parentNode=parentNode,this.factory.nextNode=nextNode,scope&&(this.factory.scope=scope);var content=this.render();this.view=this.factory.renderContent(null,content),this.attached()}dispose(){var view=this.view;view&&(this.detached(),this.factory.cacheContent(this.view),this.view=null),this.factory=null,super.dispose()}attached(){}detached(){}}exports.default=Application,exports.default=Application=(0,_Builder2.default)(Application,{properties:[{name:"instance",decorators:[(0,_Memoize2.default)()],static:!0,kind:"get",fn:function(){return new this}},{name:"render",decorators:[(0,_Abstract2.default)()],fn:function(){}}]})},function(module,exports){"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=function(){return function(property){var hiddenKey="_"+property.name,getter=property.fn;if("get"!==property.kind)throw new Error("@Memoize can only be applied on getters.");property.setGetter(function(){if(this.hasOwnProperty(hiddenKey))return this[hiddenKey];var value=getter.call(this);return this[hiddenKey]=value,Object.defineProperty(this,property.name,{configurable:!0,value}),value})}}}])},823:function(module){module.exports=function(css){var location="undefined"!=typeof window&&window.location;if(!location)throw new Error("fixUrls requires window.location");if(!css||"string"!=typeof css)return css;var baseUrl=location.protocol+"//"+location.host,currentDir=baseUrl+location.pathname.replace(/\/[^\/]*$/,"/"),fixedCss=css.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(fullMatch,origUrl){var unquotedOrigUrl=origUrl.trim().replace(/^"(.*)"$/,function(o,$1){return $1}).replace(/^'(.*)'$/,function(o,$1){return $1});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/|\s*$)/i.test(unquotedOrigUrl))return fullMatch;var newUrl;return newUrl=0===unquotedOrigUrl.indexOf("//")?unquotedOrigUrl:0===unquotedOrigUrl.indexOf("/")?baseUrl+unquotedOrigUrl:currentDir+unquotedOrigUrl.replace(/^\.\//,""),"url("+JSON.stringify(newUrl)+")"});return fixedCss}},824:function(module,exports,__webpack_require__){function addStylesToDom(styles,options){for(var i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];if(domStyle){domStyle.refs++;for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j](item.parts[j]);for(;j<item.parts.length;j++)domStyle.parts.push(addStyle(item.parts[j],options))}else{for(var parts=[],j=0;j<item.parts.length;j++)parts.push(addStyle(item.parts[j],options));stylesInDom[item.id]={id:item.id,refs:1,parts:parts}}}}function listToStyles(list,options){for(var styles=[],newStyles={},i=0;i<list.length;i++){var item=list[i],id=options.base?item[0]+options.base:item[0],css=item[1],media=item[2],sourceMap=item[3],part={css:css,media:media,sourceMap:sourceMap};newStyles[id]?newStyles[id].parts.push(part):styles.push(newStyles[id]={id:id,parts:[part]})}return styles}function insertStyleElement(options,style){var target=getElement(options.insertInto);if(!target)throw new Error("Couldn't find a style target. This probably means that the value for the 'insertInto' parameter is invalid.");var lastStyleElementInsertedAtTop=stylesInsertedAtTop[stylesInsertedAtTop.length-1];if("top"===options.insertAt)lastStyleElementInsertedAtTop?lastStyleElementInsertedAtTop.nextSibling?target.insertBefore(style,lastStyleElementInsertedAtTop.nextSibling):target.appendChild(style):target.insertBefore(style,target.firstChild),stylesInsertedAtTop.push(style);else if("bottom"===options.insertAt)target.appendChild(style);else if("object"==typeof options.insertAt&&options.insertAt.before){var nextSibling=getElement(options.insertInto+" "+options.insertAt.before);target.insertBefore(style,nextSibling)}else throw new Error("[Style Loader]\n\n Invalid value for parameter 'insertAt' ('options.insertAt') found.\n Must be 'top', 'bottom', or Object.\n (https://github.com/webpack-contrib/style-loader#insertat)\n")}function removeStyleElement(style){if(null===style.parentNode)return!1;style.parentNode.removeChild(style);var idx=stylesInsertedAtTop.indexOf(style);0<=idx&&stylesInsertedAtTop.splice(idx,1)}function createStyleElement(options){var style=document.createElement("style");return void 0===options.attrs.type&&(options.attrs.type="text/css"),addAttrs(style,options.attrs),insertStyleElement(options,style),style}function createLinkElement(options){var link=document.createElement("link");return void 0===options.attrs.type&&(options.attrs.type="text/css"),options.attrs.rel="stylesheet",addAttrs(link,options.attrs),insertStyleElement(options,link),link}function addAttrs(el,attrs){Object.keys(attrs).forEach(function(key){el.setAttribute(key,attrs[key])})}function addStyle(obj,options){var style,update,remove,result;if(options.transform&&obj.css)if(result=options.transform(obj.css),result)obj.css=result;else return function(){};if(options.singleton){var styleIndex=singletonCounter++;style=singleton||(singleton=createStyleElement(options)),update=applyToSingletonTag.bind(null,style,styleIndex,!1),remove=applyToSingletonTag.bind(null,style,styleIndex,!0)}else obj.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(style=createLinkElement(options),update=updateLink.bind(null,style,options),remove=function(){removeStyleElement(style),style.href&&URL.revokeObjectURL(style.href)}):(style=createStyleElement(options),update=applyToTag.bind(null,style),remove=function(){removeStyleElement(style)});return update(obj),function(newObj){if(newObj){if(newObj.css===obj.css&&newObj.media===obj.media&&newObj.sourceMap===obj.sourceMap)return;update(obj=newObj)}else remove()}}function applyToSingletonTag(style,index,remove,obj){var css=remove?"":obj.css;if(style.styleSheet)style.styleSheet.cssText=replaceText(index,css);else{var cssNode=document.createTextNode(css),childNodes=style.childNodes;childNodes[index]&&style.removeChild(childNodes[index]),childNodes.length?style.insertBefore(cssNode,childNodes[index]):style.appendChild(cssNode)}}function applyToTag(style,obj){var css=obj.css,media=obj.media;if(media&&style.setAttribute("media",media),style.styleSheet)style.styleSheet.cssText=css;else{for(;style.firstChild;)style.removeChild(style.firstChild);style.appendChild(document.createTextNode(css))}}function updateLink(link,options,obj){var css=obj.css,sourceMap=obj.sourceMap,autoFixUrls=options.convertToAbsoluteUrls===void 0&&sourceMap;(options.convertToAbsoluteUrls||autoFixUrls)&&(css=fixUrls(css)),sourceMap&&(css+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))))+" */");var blob=new Blob([css],{type:"text/css"}),oldSrc=link.href;link.href=URL.createObjectURL(blob),oldSrc&&URL.revokeObjectURL(oldSrc)}var stylesInDom={},isOldIE=function(fn){var memo;return function(){return"undefined"==typeof memo&&(memo=fn.apply(this,arguments)),memo}}(function(){return window&&document&&document.all&&!window.atob}),getTarget=function(target){return document.querySelector(target)},getElement=function(){var memo={};return function(target){if("function"==typeof target)return target();if("undefined"==typeof memo[target]){var styleTarget=getTarget.call(this,target);if(window.HTMLIFrameElement&&styleTarget instanceof window.HTMLIFrameElement)try{styleTarget=styleTarget.contentDocument.head}catch(e){styleTarget=null}memo[target]=styleTarget}return memo[target]}}(),singleton=null,singletonCounter=0,stylesInsertedAtTop=[],fixUrls=__webpack_require__(823);module.exports=function(list,options){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");options=options||{},options.attrs="object"==typeof options.attrs?options.attrs:{},options.singleton||"boolean"==typeof options.singleton||(options.singleton=isOldIE()),options.insertInto||(options.insertInto="head"),options.insertAt||(options.insertAt="bottom");var styles=listToStyles(list,options);return addStylesToDom(styles,options),function(newList){for(var mayRemove=[],i=0;i<styles.length;i++){var item=styles[i],domStyle=stylesInDom[item.id];domStyle.refs--,mayRemove.push(domStyle)}if(newList){var newStyles=listToStyles(newList,options);addStylesToDom(newStyles,options)}for(var i=0,domStyle;i<mayRemove.length;i++)if(domStyle=mayRemove[i],0===domStyle.refs){for(var j=0;j<domStyle.parts.length;j++)domStyle.parts[j]();delete stylesInDom[domStyle.id]}}};var replaceText=function(){var textStore=[];return function(index,replacement){return textStore[index]=replacement,textStore.filter(Boolean).join("\n")}}()},825:function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"57b3f483c6d210d96a8349ef591191f7.svg"},826:function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"525c7a5810aedbc6a65a95caf7636e6b.svg"},827:function(module,exports,__webpack_require__){module.exports=__webpack_require__.p+"33155541c3bd820222e1f803298d42c1.svg"},828:function(module){function cssWithMappingToString(item,useSourceMap){var content=item[1]||"",cssMapping=item[3];if(!cssMapping)return content;if(useSourceMap&&"function"==typeof btoa){var sourceMapping=toComment(cssMapping),sourceURLs=cssMapping.sources.map(function(source){return"/*# sourceURL="+cssMapping.sourceRoot+source+" */"});return[content].concat(sourceURLs).concat([sourceMapping]).join("\n")}return[content].join("\n")}function toComment(sourceMap){var base64=btoa(unescape(encodeURIComponent(JSON.stringify(sourceMap))));return"/*# "+("sourceMappingURL=data:application/json;charset=utf-8;base64,"+base64)+" */"}module.exports=function(useSourceMap){var list=[];return list.toString=function(){return this.map(function(item){var content=cssWithMappingToString(item,useSourceMap);return item[2]?"@media "+item[2]+"{"+content+"}":content}).join("")},list.i=function(modules,mediaQuery){"string"==typeof modules&&(modules=[[null,modules,""]]);for(var alreadyImportedModules={},i=0,id;i<this.length;i++)id=this[i][0],"number"==typeof id&&(alreadyImportedModules[id]=!0);for(i=0;i<modules.length;i++){var item=modules[i];"number"==typeof item[0]&&alreadyImportedModules[item[0]]||(mediaQuery&&!item[2]?item[2]=mediaQuery:mediaQuery&&(item[2]="("+item[2]+") and ("+mediaQuery+")"),list.push(item))}},list}},829:function(module){module.exports=function(url){return"string"==typeof url?(/^['"].*['"]$/.test(url)&&(url=url.slice(1,-1)),/["'() \t\n]/.test(url)?"\""+url.replace(/"/g,"\\\"").replace(/\n/g,"\\n")+"\"":url):url}}}]);