/**!
 * IMPORTANT NOTE:
 *    This file is licensed only for use in providing the iCloud
 *    service or any part thereof, and is subject to the iCloud
 *    Terms and Conditions. You may not port this file to another
 *    platform without Apple's written consent.
 *
 *    Portions of this Apple Software may utilize copyrighted material under open source licenses.
 *    Please see the file at https://www.icloud.com/system/cloudos2/1918Hotfix2/es-mx/acknowledgements.txt for licensing information.
 */
!function(e,t,n,i){var r=e.__CW_IMG_URLS={};for(var a in n){var o=n[a];Object.defineProperty(r,a,{get:function(){return[t,(n=o,i=Math.ceil(e.devicePixelRatio),1===i?n:n.replace(/@\d{1}(?=x)/i,"@"+i))].join("/");var n,i}})}}(this,"/system/cloudos2/1918Hotfix2/es-mx/",{}),function(e,t,n){var i=e.URL||e.webkitURL,r=e.__CW_BLOB_URLS={};e.__CW_BLOBS_READY=!1;var a,o,s,c,l,u=["image/gif","image/png","image/jpeg","image/svg+xml"],d=3,h=!1,p=!1;function f(t){h=!1,e.__CW_BLOBS_READY=!1,g("__CW_SPRITE_ERROR",t)}function m(e,t,n){if(e.slice)return e.slice(t,n);var i=e.byteLength;if(t=t||0,n=n||i,0===i||t>=i||t>=n)return new ArrayBuffer(0);var r=Math.min(i-t,n-t),a=new ArrayBuffer(r);return new Uint8Array(a).set(new Uint8Array(e,t,r)),a}function g(e,t){var n=document.createEvent("Event");n.data=t,n.initEvent(e,!0,!0),document.dispatchEvent(n)}function b(e){var t=r[e],n=new RegExp("\\(blob_"+e+"\\)","gi");return function(){var e;o++,a=a.replace(n,"("+JSON.stringify(t)+")"),o===s&&((e=document.getElementById("cw-css"))||((e=document.createElement("link")).rel="stylesheet",e.id="cw-css"),e.onload=function(){g("__CW_CSS_LOADED"),a=null,p=!1},e.href="data:text/css;base64,"+btoa(a),document.head.appendChild(e))}}document.addEventListener("__CW_SPRITE_LOADED",function(){if(!p)if(p=!0,g("__CW_CSS_START"),a=decodeURIComponent(atob(document.documentElement.getAttribute("data-resources-css"))),r&&(s=Object.keys(r).length),r&&s>0){o=0;var t=function(){var t="cw-img-container-r"+e.devicePixelRatio,n=document.getElementById(t);if(!n){(n=document.createElement("div")).setAttribute("aria-hidden",!0),n.id=t;var i=n.style;i.overflow="hidden",i.height="0",i.width="0",document.body.appendChild(n)}return n}();for(var n in r){var i=document.createElement("img");i.addEventListener("load",b(n)),i.src=r[n],t.appendChild(i)}}else p=!1}),c=e.devicePixelRatio,(l=n[c-1])||(l=n[0]),function t(n){if(!h){h=!0,g("__CW_SPRITE_START");var a=new XMLHttpRequest;a.open("GET","/system/cloudos2/1918Hotfix2/es-mx//"+n,!0),a.responseType="arraybuffer",a.onload=function(){!function(t){try{if(t&&t instanceof ArrayBuffer)for(var n=new DataView(t),a=n.byteLength,o=0;o<a;){var s=n.getUint16(o),c=n.getUint8(o+2),l=n.getUint32(o+3),d=m(t,o+=7,o+l),p=new Blob([d],{type:u[c-1]});r[s]=i.createObjectURL(p),o+=l}h=!1,e.__CW_BLOBS_READY=!0,g("__CW_SPRITE_LOADED")}catch(e){f(e)}}(a.response)},a.onerror=function(e){--d>0?t(n):f(e)},a.send()}}(l)}(this,0,["images@1x.bin","images@2x.bin","images@3x.bin"]),function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/system/cloudos2/1918Hotfix2/es-mx/",n(n.s=611)}([function(e,t,n){"use strict";function i(e,t,n){return t in e||(e[t]=n),e}var r,a,o=window.Window;o&&(r=o.prototype);var s=window.HTMLDocument;s&&(a=s.prototype);var c=Element.prototype,l=[];if(!("addEventListener"in c)){var u=function(e,t,n){if(n)throw new Error("The optional `useCapture` argument is not supported in this browser");for(var i=0,r=l.length;i<r;i++){var a=l[i];if(a.type===e&&a.listener===t)return}var o=this,s=function(e){e.target=e.srcElement,e.currentTarget=o,t.call(o,e)},c=e,u=s;if("DOMContentLoaded"===e&&(c="readystatechange",u=function(e){"complete"===document.readyState&&s(e)},"complete"===document.readyState)){var d=document.createEventObject();d.srcElement=window,u(d)}this.attachEvent("on"+c,u),l.push({object:this,type:e,listener:t,wrapper:u})};i(c,"addEventListener",u),r&&i(r,"addEventListener",u),a&&i(a,"addEventListener",u)}if(!("removeEventListener"in c)){var d=function(e,t,n){if(n)throw new Error("The optional `useCapture` argument is not supported in this browser");for(var i=-1,r=l.length;++i<r;){var a=l[i];if(a.object===this&&a.type===e&&a.listener===t){var o;o="DOMContentLoaded"===e?"readystatechange":e,this.detachEvent("on"+o,a.wrapper),l.splice(i,1);break}}};i(c,"removeEventListener",d),r&&i(r,"removeEventListener",d),a&&i(a,"removeEventListener",d)}if(!c.hasOwnProperty("classList")){var h=function(e){this.element=e},p=h.prototype;p.item=function(e){var t=this.element.getAttribute("class"),n=t?t.trim().split(/\s+/):null;return n?n[e]:void 0},p.contains=function(e){var t=this.element.getAttribute("class");return(t?" "+t+" ":"").indexOf(" "+e+" ")>-1},p.add=function(){for(var e=this.element,t=e.getAttribute("class"),n=t?" "+t+" ":" ",i=!1,r=arguments.length,a=0;a<r;a++){var o=arguments[a]+" ";-1===n.indexOf(" "+o)&&(n+=o,i=!0)}i&&e.setAttribute("class",n.substring(1,n.length-1))},p.remove=function(){for(var e=this.element,t=e.getAttribute("class"),n=t?" "+t+" ":" ",i=!1,r=arguments.length,a=0;a<r;a++)for(var o,s=arguments[a],c=" "+s+" ";(o=n.indexOf(c))>-1;)n=n.substr(0,o)+n.substr(o+s.length+1),i=!0;i&&(" "===(n=n.substring(1,n.length-1))&&(n=""),e.setAttribute("class",n))},p.toggle=function(e,t){var n=this.contains(e),i=!1;return 2===arguments.length?(n&&!t&&(i="remove"),!n&&t&&(i="add")):i=n?"remove":"add",i?(this[i](e),!n):n},p.toString=function(){return this.element.getAttribute("class")||""},Object.defineProperty&&Object.defineProperty(c,"classList",{get:function(){return new h(this)},configurable:!0})}if(window.DOMTokenList){var f=window.DOMTokenList.prototype,m=document.createElement("div");if(!1!==m.classList.toggle("polyfill-test-class",!1)){var g=f.toggle;f.toggle=function(e,t){if(1===arguments.length)return g.call(this,e);var n=this.contains(e),i=t?!n&&"add":!!n&&"remove";return i?(this[i](e),!n):n}}if(m.classList.add("foo","bar","baz"),!m.classList.contains("baz")){var b=f.add;f.add=function(){for(var e=arguments.length,t=0;t<e;t++)b.call(this,arguments[t])}}if(m.classList.add("foo","bar","baz"),m.classList.remove("foo","bar","baz"),m.classList.contains("baz")){var v=f.remove;f.remove=function(){for(var e=arguments.length,t=0;t<e;t++)v.call(this,arguments[t])}}}i(c,"addEventListener",u),i(window,"addEventListener",u),i(c,"removeEventListener",d),i(window,"removeEventListener",d),i(window.document,"contains",function(){var e=this.documentElement;return e.contains.apply(e,arguments)});var _=CSSStyleDeclaration.prototype;"setProperty"in _||i(_,"setProperty",function(e,t){return this.setAttribute.call(this,e,t)})},function(e,t,n){},function(e,t,n){},function(e,t,n){var i,r,a;void 0===(r="function"==typeof(i=a=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var n=arguments[e];for(var i in n)t[i]=n[i]}return t}return function t(n){function i(t,r,a){var o;if("undefined"!=typeof document){if(arguments.length>1){if("number"==typeof(a=e({path:"/"},i.defaults,a)).expires){var s=new Date;s.setMilliseconds(s.getMilliseconds()+864e5*a.expires),a.expires=s}a.expires=a.expires?a.expires.toUTCString():"";try{o=JSON.stringify(r),/^[\{\[]/.test(o)&&(r=o)}catch(e){}r=n.write?n.write(r,t):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=(t=(t=encodeURIComponent(String(t))).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent)).replace(/[\(\)]/g,escape);var c="";for(var l in a)a[l]&&(c+="; "+l,!0!==a[l]&&(c+="="+a[l]));return document.cookie=t+"="+r+c}t||(o={});for(var u=document.cookie?document.cookie.split("; "):[],d=/(%[0-9A-Z]{2})+/g,h=0;h<u.length;h++){var p=u[h].split("="),f=p.slice(1).join("=");this.json||'"'!==f.charAt(0)||(f=f.slice(1,-1));try{var m=p[0].replace(d,decodeURIComponent);if(f=n.read?n.read(f,m):n(f,m)||f.replace(d,decodeURIComponent),this.json)try{f=JSON.parse(f)}catch(e){}if(t===m){o=f;break}t||(o[m]=f)}catch(e){}}return o}}return i.set=i,i.get=function(e){return i.call(i,e)},i.getJSON=function(){return i.apply({json:!0},[].slice.call(arguments))},i.defaults={},i.remove=function(t,n){i(t,"",e(n,{expires:-1}))},i.withConverter=t,i}(function(){})})?i.call(t,n,t,e):i)||(e.exports=r),e.exports=a()},function(e,t,n){"use strict";(function(e){var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};!function(e,t){e.IntlPolyfill=t()}(e,function(){var n="function"==typeof Symbol&&"symbol"===t(Symbol.iterator)?function(e){return void 0===e?"undefined":t(e)}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":void 0===e?"undefined":t(e)},i=function(){function e(e){this.value=e}function t(t){var n,i;function r(n,i){try{var o=t[n](i),s=o.value;s instanceof e?Promise.resolve(s.value).then(function(e){r("next",e)},function(e){r("throw",e)}):a(o.done?"return":"normal",o.value)}catch(e){a("throw",e)}}function a(e,t){switch(e){case"return":n.resolve({value:t,done:!0});break;case"throw":n.reject(t);break;default:n.resolve({value:t,done:!1})}(n=n.next)?r(n.key,n.arg):i=null}this._invoke=function(e,t){return new Promise(function(a,o){var s={key:e,arg:t,resolve:a,reject:o,next:null};i?i=i.next=s:(n=i=s,r(e,t))})},"function"!=typeof t.return&&(this.return=void 0)}return"function"==typeof Symbol&&Symbol.asyncIterator&&(t.prototype[Symbol.asyncIterator]=function(){return this}),t.prototype.next=function(e){return this._invoke("next",e)},t.prototype.throw=function(e){return this._invoke("throw",e)},t.prototype.return=function(e){return this._invoke("return",e)},{wrap:function(e){return function(){return new t(e.apply(this,arguments))}},await:function(t){return new e(t)}}}(),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},s=void 0===e?self:e,c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],i=!0,r=!1,a=void 0;try{for(var o,s=e[Symbol.iterator]();!(i=(o=s.next()).done)&&(n.push(o.value),!t||n.length!==t);i=!0);}catch(e){r=!0,a=e}finally{try{!i&&s.return&&s.return()}finally{if(r)throw a}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},l=Object.freeze({asyncIterator:function(e){if("function"==typeof Symbol){if(Symbol.asyncIterator){var t=e[Symbol.asyncIterator];if(null!=t)return t.call(e)}if(Symbol.iterator)return e[Symbol.iterator]()}throw new TypeError("Object is not async iterable")},asyncGenerator:i,asyncGeneratorDelegate:function(e,t){var n={},i=!1;function r(n,r){return i=!0,r=new Promise(function(t){t(e[n](r))}),{done:!1,value:t(r)}}return"function"==typeof Symbol&&Symbol.iterator&&(n[Symbol.iterator]=function(){return this}),n.next=function(e){return i?(i=!1,e):r("next",e)},"function"==typeof e.throw&&(n.throw=function(e){if(i)throw i=!1,e;return r("throw",e)}),"function"==typeof e.return&&(n.return=function(e){return r("return",e)}),n},asyncToGenerator:function(e){return function(){var t=e.apply(this,arguments);return new Promise(function(e,n){return function i(r,a){try{var o=t[r](a),s=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(s).then(function(e){i("next",e)},function(e){i("throw",e)});e(s)}("next")})}},classCallCheck:function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass:r,defineEnumerableProperties:function(e,t){for(var n in t){var i=t[n];i.configurable=i.enumerable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,n,i)}return e},defaults:function(e,t){for(var n=Object.getOwnPropertyNames(t),i=0;i<n.length;i++){var r=n[i],a=Object.getOwnPropertyDescriptor(t,r);a&&a.configurable&&void 0===e[r]&&Object.defineProperty(e,r,a)}return e},defineProperty:a,get:function e(t,n,i){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var a=Object.getPrototypeOf(t);return null===a?void 0:e(a,n,i)}if("value"in r)return r.value;var o=r.get;return void 0!==o?o.call(i):void 0},inherits:function(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function, not "+(void 0===n?"undefined":t(n)));e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),n&&(Object.setPrototypeOf?Object.setPrototypeOf(e,n):e.__proto__=n)},interopRequireDefault:function(e){return e&&e.__esModule?e:{default:e}},interopRequireWildcard:function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t},newArrowCheck:function(e,t){if(e!==t)throw new TypeError("Cannot instantiate an arrow function")},objectDestructuringEmpty:function(e){if(null==e)throw new TypeError("Cannot destructure undefined")},objectWithoutProperties:function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n},possibleConstructorReturn:function(e,n){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!n||"object"!==(void 0===n?"undefined":t(n))&&"function"!=typeof n?e:n},selfGlobal:s,set:function e(t,n,i,r){var a=Object.getOwnPropertyDescriptor(t,n);if(void 0===a){var o=Object.getPrototypeOf(t);null!==o&&e(o,n,i,r)}else if("value"in a&&a.writable)a.value=i;else{var s=a.set;void 0!==s&&s.call(r,i)}return i},slicedToArray:c,slicedToArrayLoose:function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e)){for(var n,i=[],r=e[Symbol.iterator]();!(n=r.next()).done&&(i.push(n.value),!t||i.length!==t););return i}throw new TypeError("Invalid attempt to destructure non-iterable instance")},taggedTemplateLiteral:function(e,t){return Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))},taggedTemplateLiteralLoose:function(e,t){return e.raw=t,e},temporalRef:function(e,t,n){if(e===n)throw new ReferenceError(t+" is not defined - temporal dead zone");return e},temporalUndefined:{},toArray:function(e){return Array.isArray(e)?e:Array.from(e)},toConsumableArray:function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)},typeof:n,extends:o,instanceof:function(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?t[Symbol.hasInstance](e):e instanceof t}}),u=function(){var e=function(){};try{return Object.defineProperty(e,"a",{get:function(){return 1}}),Object.defineProperty(e,"prototype",{writable:!1}),1===e.a&&e.prototype instanceof Object}catch(e){return!1}}(),d=!u&&!Object.prototype.__defineGetter__,h=Object.prototype.hasOwnProperty,p=u?Object.defineProperty:function(e,t,n){"get"in n&&e.__defineGetter__?e.__defineGetter__(t,n.get):(!h.call(e,t)||"value"in n)&&(e[t]=n.value)},f=Array.prototype.indexOf||function(e){var t=this;if(!t.length)return-1;for(var n=arguments[1]||0,i=t.length;n<i;n++)if(t[n]===e)return n;return-1},m=Object.create||function(e,t){var n;function i(){}for(var r in i.prototype=e,n=new i,t)h.call(t,r)&&p(n,r,t[r]);return n},g=Array.prototype.slice,b=Array.prototype.concat,v=Array.prototype.push,_=Array.prototype.join,y=Array.prototype.shift,C=Function.prototype.bind||function(e){var t=this,n=g.call(arguments,1);return t.length,function(){return t.apply(e,b.call(n,g.call(arguments)))}},I=m(null),w=Math.random();function S(e){for(var t in e)(e instanceof S||h.call(e,t))&&p(this,t,{value:e[t],enumerable:!0,writable:!0,configurable:!0})}function A(){p(this,"length",{writable:!0,value:0}),arguments.length&&v.apply(this,g.call(arguments))}function O(){if(I.disableRegExpRestore)return function(){};for(var e={lastMatch:RegExp.lastMatch||"",leftContext:RegExp.leftContext,multiline:RegExp.multiline,input:RegExp.input},t=!1,n=1;n<=9;n++)t=(e["$"+n]=RegExp["$"+n])||t;return function(){var n=/[.?*+^$[\]\\(){}|-]/g,i=e.lastMatch.replace(n,"\\$&"),r="";if(t)for(var a=1;a<=9;a++){var o=e["$"+a];o?(o=o.replace(n,"\\$&"),r+=i.substring(0,i.indexOf(o))+"(",i=o+")"+i.substring(i.indexOf(o)+o.length)):(r+="(",i=")"+i)}r=(r+=i).replace(/((^|[^\\])((\\\\)*\\[()])+|[^()])+/g,function(e){return"[\\s\\S]{"+e.replace(/\\(.)/g,"$1").length+"}"});var s=new RegExp(r,e.multiline?"gm":"g");s.lastIndex=e.leftContext.length,s.exec(e.input)}}function E(e){if(null===e)throw new TypeError("Cannot convert null or undefined to object");return"object"===(void 0===e?"undefined":l.typeof(e))?e:Object(e)}function T(e){return"number"==typeof e?e:Number(e)}function D(e){return h.call(e,"__getInternalProperties")?e.__getInternalProperties(w):m(null)}S.prototype=m(null),A.prototype=m(null);var L=RegExp("^(?:(?:[a-z]{2,3}(?:-[a-z]{3}(?:-[a-z]{3}){0,2})?|[a-z]{4}|[a-z]{5,8})(?:-[a-z]{4})?(?:-(?:[a-z]{2}|\\d{3}))?(?:-(?:[a-z0-9]{5,8}|\\d[a-z0-9]{3}))*(?:-[0-9a-wy-z](?:-[a-z0-9]{2,8})+)*(?:-x(?:-[a-z0-9]{1,8})+)?|x(?:-[a-z0-9]{1,8})+|(?:(?:en-GB-oed|i-(?:ami|bnn|default|enochian|hak|klingon|lux|mingo|navajo|pwn|tao|tay|tsu)|sgn-(?:BE-FR|BE-NL|CH-DE))|(?:art-lojban|cel-gaulish|no-bok|no-nyn|zh-(?:guoyu|hakka|min|min-nan|xiang))))$","i"),N=RegExp("^(?!x).*?-((?:[a-z0-9]{5,8}|\\d[a-z0-9]{3}))-(?:\\w{4,8}-(?!x-))*\\1\\b","i"),M=RegExp("^(?!x).*?-([0-9a-wy-z])-(?:\\w+-(?!x-))*\\1\\b","i"),P=RegExp("-[0-9a-wy-z](?:-[a-z0-9]{2,8})+","ig"),x=void 0,R={tags:{"art-lojban":"jbo","i-ami":"ami","i-bnn":"bnn","i-hak":"hak","i-klingon":"tlh","i-lux":"lb","i-navajo":"nv","i-pwn":"pwn","i-tao":"tao","i-tay":"tay","i-tsu":"tsu","no-bok":"nb","no-nyn":"nn","sgn-BE-FR":"sfb","sgn-BE-NL":"vgt","sgn-CH-DE":"sgg","zh-guoyu":"cmn","zh-hakka":"hak","zh-min-nan":"nan","zh-xiang":"hsn","sgn-BR":"bzs","sgn-CO":"csn","sgn-DE":"gsg","sgn-DK":"dsl","sgn-ES":"ssp","sgn-FR":"fsl","sgn-GB":"bfi","sgn-GR":"gss","sgn-IE":"isg","sgn-IT":"ise","sgn-JP":"jsl","sgn-MX":"mfs","sgn-NI":"ncs","sgn-NL":"dse","sgn-NO":"nsl","sgn-PT":"psr","sgn-SE":"swl","sgn-US":"ase","sgn-ZA":"sfs","zh-cmn":"cmn","zh-cmn-Hans":"cmn-Hans","zh-cmn-Hant":"cmn-Hant","zh-gan":"gan","zh-wuu":"wuu","zh-yue":"yue"},subtags:{BU:"MM",DD:"DE",FX:"FR",TP:"TL",YD:"YE",ZR:"CD",heploc:"alalc97",in:"id",iw:"he",ji:"yi",jw:"jv",mo:"ro",ayx:"nun",bjd:"drl",ccq:"rki",cjr:"mom",cka:"cmr",cmk:"xch",drh:"khk",drw:"prs",gav:"dev",hrr:"jal",ibi:"opa",kgh:"kml",lcq:"ppr",mst:"mry",myt:"mry",sca:"hle",tie:"ras",tkk:"twm",tlw:"weo",tnf:"prs",ybd:"rki",yma:"lrr"},extLang:{aao:["aao","ar"],abh:["abh","ar"],abv:["abv","ar"],acm:["acm","ar"],acq:["acq","ar"],acw:["acw","ar"],acx:["acx","ar"],acy:["acy","ar"],adf:["adf","ar"],ads:["ads","sgn"],aeb:["aeb","ar"],aec:["aec","ar"],aed:["aed","sgn"],aen:["aen","sgn"],afb:["afb","ar"],afg:["afg","sgn"],ajp:["ajp","ar"],apc:["apc","ar"],apd:["apd","ar"],arb:["arb","ar"],arq:["arq","ar"],ars:["ars","ar"],ary:["ary","ar"],arz:["arz","ar"],ase:["ase","sgn"],asf:["asf","sgn"],asp:["asp","sgn"],asq:["asq","sgn"],asw:["asw","sgn"],auz:["auz","ar"],avl:["avl","ar"],ayh:["ayh","ar"],ayl:["ayl","ar"],ayn:["ayn","ar"],ayp:["ayp","ar"],bbz:["bbz","ar"],bfi:["bfi","sgn"],bfk:["bfk","sgn"],bjn:["bjn","ms"],bog:["bog","sgn"],bqn:["bqn","sgn"],bqy:["bqy","sgn"],btj:["btj","ms"],bve:["bve","ms"],bvl:["bvl","sgn"],bvu:["bvu","ms"],bzs:["bzs","sgn"],cdo:["cdo","zh"],cds:["cds","sgn"],cjy:["cjy","zh"],cmn:["cmn","zh"],coa:["coa","ms"],cpx:["cpx","zh"],csc:["csc","sgn"],csd:["csd","sgn"],cse:["cse","sgn"],csf:["csf","sgn"],csg:["csg","sgn"],csl:["csl","sgn"],csn:["csn","sgn"],csq:["csq","sgn"],csr:["csr","sgn"],czh:["czh","zh"],czo:["czo","zh"],doq:["doq","sgn"],dse:["dse","sgn"],dsl:["dsl","sgn"],dup:["dup","ms"],ecs:["ecs","sgn"],esl:["esl","sgn"],esn:["esn","sgn"],eso:["eso","sgn"],eth:["eth","sgn"],fcs:["fcs","sgn"],fse:["fse","sgn"],fsl:["fsl","sgn"],fss:["fss","sgn"],gan:["gan","zh"],gds:["gds","sgn"],gom:["gom","kok"],gse:["gse","sgn"],gsg:["gsg","sgn"],gsm:["gsm","sgn"],gss:["gss","sgn"],gus:["gus","sgn"],hab:["hab","sgn"],haf:["haf","sgn"],hak:["hak","zh"],hds:["hds","sgn"],hji:["hji","ms"],hks:["hks","sgn"],hos:["hos","sgn"],hps:["hps","sgn"],hsh:["hsh","sgn"],hsl:["hsl","sgn"],hsn:["hsn","zh"],icl:["icl","sgn"],ils:["ils","sgn"],inl:["inl","sgn"],ins:["ins","sgn"],ise:["ise","sgn"],isg:["isg","sgn"],isr:["isr","sgn"],jak:["jak","ms"],jax:["jax","ms"],jcs:["jcs","sgn"],jhs:["jhs","sgn"],jls:["jls","sgn"],jos:["jos","sgn"],jsl:["jsl","sgn"],jus:["jus","sgn"],kgi:["kgi","sgn"],knn:["knn","kok"],kvb:["kvb","ms"],kvk:["kvk","sgn"],kvr:["kvr","ms"],kxd:["kxd","ms"],lbs:["lbs","sgn"],lce:["lce","ms"],lcf:["lcf","ms"],liw:["liw","ms"],lls:["lls","sgn"],lsg:["lsg","sgn"],lsl:["lsl","sgn"],lso:["lso","sgn"],lsp:["lsp","sgn"],lst:["lst","sgn"],lsy:["lsy","sgn"],ltg:["ltg","lv"],lvs:["lvs","lv"],lzh:["lzh","zh"],max:["max","ms"],mdl:["mdl","sgn"],meo:["meo","ms"],mfa:["mfa","ms"],mfb:["mfb","ms"],mfs:["mfs","sgn"],min:["min","ms"],mnp:["mnp","zh"],mqg:["mqg","ms"],mre:["mre","sgn"],msd:["msd","sgn"],msi:["msi","ms"],msr:["msr","sgn"],mui:["mui","ms"],mzc:["mzc","sgn"],mzg:["mzg","sgn"],mzy:["mzy","sgn"],nan:["nan","zh"],nbs:["nbs","sgn"],ncs:["ncs","sgn"],nsi:["nsi","sgn"],nsl:["nsl","sgn"],nsp:["nsp","sgn"],nsr:["nsr","sgn"],nzs:["nzs","sgn"],okl:["okl","sgn"],orn:["orn","ms"],ors:["ors","ms"],pel:["pel","ms"],pga:["pga","ar"],pks:["pks","sgn"],prl:["prl","sgn"],prz:["prz","sgn"],psc:["psc","sgn"],psd:["psd","sgn"],pse:["pse","ms"],psg:["psg","sgn"],psl:["psl","sgn"],pso:["pso","sgn"],psp:["psp","sgn"],psr:["psr","sgn"],pys:["pys","sgn"],rms:["rms","sgn"],rsi:["rsi","sgn"],rsl:["rsl","sgn"],sdl:["sdl","sgn"],sfb:["sfb","sgn"],sfs:["sfs","sgn"],sgg:["sgg","sgn"],sgx:["sgx","sgn"],shu:["shu","ar"],slf:["slf","sgn"],sls:["sls","sgn"],sqk:["sqk","sgn"],sqs:["sqs","sgn"],ssh:["ssh","ar"],ssp:["ssp","sgn"],ssr:["ssr","sgn"],svk:["svk","sgn"],swc:["swc","sw"],swh:["swh","sw"],swl:["swl","sgn"],syy:["syy","sgn"],tmw:["tmw","ms"],tse:["tse","sgn"],tsm:["tsm","sgn"],tsq:["tsq","sgn"],tss:["tss","sgn"],tsy:["tsy","sgn"],tza:["tza","sgn"],ugn:["ugn","sgn"],ugy:["ugy","sgn"],ukl:["ukl","sgn"],uks:["uks","sgn"],urk:["urk","ms"],uzn:["uzn","uz"],uzs:["uzs","uz"],vgt:["vgt","sgn"],vkk:["vkk","ms"],vkt:["vkt","ms"],vsi:["vsi","sgn"],vsl:["vsl","sgn"],vsv:["vsv","sgn"],wuu:["wuu","zh"],xki:["xki","sgn"],xml:["xml","sgn"],xmm:["xmm","ms"],xms:["xms","sgn"],yds:["yds","sgn"],ysl:["ysl","sgn"],yue:["yue","zh"],zib:["zib","sgn"],zlm:["zlm","ms"],zmi:["zmi","ms"],zsl:["zsl","sgn"],zsm:["zsm","ms"]}};function j(e){for(var t=e.length;t--;){var n=e.charAt(t);n>="a"&&n<="z"&&(e=e.slice(0,t)+n.toUpperCase()+e.slice(t+1))}return e}function F(e){return!!L.test(e)&&!N.test(e)&&!M.test(e)}function V(e){for(var t=void 0,n=void 0,i=1,r=(n=(e=e.toLowerCase()).split("-")).length;i<r;i++)if(2===n[i].length)n[i]=n[i].toUpperCase();else if(4===n[i].length)n[i]=n[i].charAt(0).toUpperCase()+n[i].slice(1);else if(1===n[i].length&&"x"!==n[i])break;(t=(e=_.call(n,"-")).match(P))&&t.length>1&&(t.sort(),e=e.replace(RegExp("(?:"+P.source+")+","i"),_.call(t,""))),h.call(R.tags,e)&&(e=R.tags[e]);for(var a=1,o=(n=e.split("-")).length;a<o;a++)h.call(R.subtags,n[a])?n[a]=R.subtags[n[a]]:h.call(R.extLang,n[a])&&(n[a]=R.extLang[n[a]][0],1===a&&R.extLang[n[1]][1]===n[0]&&(n=g.call(n,a++),o-=1));return _.call(n,"-")}var U=/^[A-Z]{3}$/,k=/-u(?:-[0-9a-z]{2,8})+/gi;function B(e){if(void 0===e)return new A;for(var t=new A,n=E(e="string"==typeof e?[e]:e),i=function(e){var t=function(e){var t=T(e);return isNaN(t)?0:0===t||-0===t||t===1/0||t===-1/0?t:t<0?-1*Math.floor(Math.abs(t)):Math.floor(Math.abs(t))}(e);return t<=0?0:t===1/0?Math.pow(2,53)-1:Math.min(t,Math.pow(2,53)-1)}(n.length),r=0;r<i;){var a=String(r);if(a in n){var o=n[a];if(null===o||"string"!=typeof o&&"object"!==(void 0===o?"undefined":l.typeof(o)))throw new TypeError("String or Object type expected");var s=String(o);if(!F(s))throw new RangeError("'"+s+"' is not a structurally valid language tag");s=V(s),-1===f.call(t,s)&&v.call(t,s)}r++}return t}function z(e,t){for(var n=t;n;){if(f.call(e,n)>-1)return n;var i=n.lastIndexOf("-");if(i<0)return;i>=2&&"-"===n.charAt(i-2)&&(i-=2),n=n.substring(0,i)}}function W(e,t){for(var n=0,i=t.length,r=void 0,a=void 0,o=void 0;n<i&&!r;)a=t[n],r=z(e,o=String(a).replace(k,"")),n++;var s=new S;if(void 0!==r){if(s["[[locale]]"]=r,String(a)!==String(o)){var c=a.match(k)[0],l=a.indexOf("-u-");s["[[extension]]"]=c,s["[[extensionIndex]]"]=l}}else s["[[locale]]"]=x;return s}function H(e,t,n,i,r){if(0===e.length)throw new ReferenceError("No locale data has been provided for this object yet.");var a,o=(a="lookup"===n["[[localeMatcher]]"]?W(e,t):function(e,t){return W(e,t)}(e,t))["[[locale]]"],s=void 0,c=void 0;h.call(a,"[[extension]]")&&(c=(s=function(e){var t=e.length;if(0===t)return[];for(var n=[],i=!0,r=3,a=r,o=r;r<t;){if(45===e.codePointAt(r)){if(r-a==2){if(a-o>1){var s=e.substring(o,a-1);n.push(s)}var c=e.substring(a,r);n.push(c),o=r+1,i=!1}else if(!0===i){var l=e.substring(a,r);n.push(l),o=r+1}a=r+1}r+=1}if(t-a==2){if(a-o>1){var u=e.substring(o,a-1);n.push(u)}o=a}var d=e.substring(o,t);return n.push(d),n}(a["[[extension]]"])).length);var l=new S;l["[[dataLocale]]"]=o;for(var u="-u",d=0,p=i.length;d<p;){var m=i[d],g=r[o][m],b=g[0],v="",_=f;if(void 0!==s){var y=_.call(s,m);if(-1!==y)if(y+1<c&&s[y+1].length>2){var C=s[y+1];-1!==_.call(g,C)&&(v="-"+m+"-"+(b=C))}else-1!==_(g,"true")&&(b="true")}if(h.call(n,"[["+m+"]]")){var I=n["[["+m+"]]"];-1!==_.call(g,I)&&I!==b&&(b=I,v="")}l["[["+m+"]]"]=b,u+=v,d++}if(u.length>2){var w=o.indexOf("-x-");-1===w?o+=u:o=o.substring(0,w)+u+o.substring(w),o=V(o)}return l["[[locale]]"]=o,l}function $(e,t){for(var n=t.length,i=new A,r=0;r<n;){var a=t[r];void 0!==z(e,String(a).replace(k,""))&&v.call(i,a),r++}return g.call(i)}function G(e,t,n){var i,r=void 0;if(void 0!==n&&void 0!==(r=(n=new S(E(n))).localeMatcher)&&"lookup"!==(r=String(r))&&"best fit"!==r)throw new RangeError('matcher should be "lookup" or "best fit"');for(var a in i=void 0===r||"best fit"===r?function(e,t){return $(e,t)}(e,t):$(e,t))h.call(i,a)&&p(i,a,{writable:!1,configurable:!1,value:i[a]});try{p(i,"length",{writable:!1})}catch(e){}return i}function K(e,t,n,i,r){var a=e[t];if(void 0!==a){if(a="boolean"===n?Boolean(a):"string"===n?String(a):a,void 0!==i&&-1===f.call(i,a))throw new RangeError("'"+a+"' is not an allowed value for `"+t+"`");return a}return r}function Q(e,t,n,i,r){var a=e[t];if(void 0!==a){if(a=Number(a),isNaN(a)||a<n||a>i)throw new RangeError("Value is not a number or outside accepted range");return Math.floor(a)}return r}var q={};Object.defineProperty(q,"getCanonicalLocales",{enumerable:!1,configurable:!0,writable:!0,value:function(e){for(var t=B(e),n=[],i=t.length,r=0;r<i;)n[r]=t[r],r++;return n}});var Y={BHD:3,BYR:0,XOF:0,BIF:0,XAF:0,CLF:4,CLP:0,KMF:0,DJF:0,XPF:0,GNF:0,ISK:0,IQD:3,JPY:0,JOD:3,KRW:0,KWD:3,LYD:3,OMR:3,PYG:0,RWF:0,TND:3,UGX:0,UYI:0,VUV:0,VND:0};function X(){var e=arguments[0],t=arguments[1];return this&&this!==q?function(e,t,n){var i=D(e),r=O();if(!0===i["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");p(e,"__getInternalProperties",{value:function(){if(arguments[0]===w)return i}}),i["[[initializedIntlObject]]"]=!0;var a=B(t);n=void 0===n?{}:E(n);var o=new S,s=K(n,"localeMatcher","string",new A("lookup","best fit"),"best fit");o["[[localeMatcher]]"]=s;var c=I.NumberFormat["[[localeData]]"],l=H(I.NumberFormat["[[availableLocales]]"],a,o,I.NumberFormat["[[relevantExtensionKeys]]"],c);i["[[locale]]"]=l["[[locale]]"],i["[[numberingSystem]]"]=l["[[nu]]"],i["[[dataLocale]]"]=l["[[dataLocale]]"];var u=l["[[dataLocale]]"],h=K(n,"style","string",new A("decimal","percent","currency"),"decimal");i["[[style]]"]=h;var f,m=K(n,"currency","string");if(void 0!==m&&(f=j(String(m)),!1===U.test(f)))throw new RangeError("'"+m+"' is not a valid currency code");if("currency"===h&&void 0===m)throw new TypeError("Currency code is required when style is currency");var g=void 0;"currency"===h&&(m=m.toUpperCase(),i["[[currency]]"]=m,g=function(e){return void 0!==Y[e]?Y[e]:2}(m));var b=K(n,"currencyDisplay","string",new A("code","symbol","name"),"symbol");"currency"===h&&(i["[[currencyDisplay]]"]=b),J(i,n,"currency"===h?g:0),void 0===i["[[maximumFractionDigits]]"]&&(i["[[maximumFractionDigits]]"]="currency"===h?Math.max(i["[[minimumFractionDigits]]"],g):"percent"===h?Math.max(i["[[minimumFractionDigits]]"],0):Math.max(i["[[minimumFractionDigits]]"],3));var v=K(n,"useGrouping","boolean",void 0,!0);i["[[useGrouping]]"]=v;var _=c[u].patterns[h];return i["[[positivePattern]]"]=_.positivePattern,i["[[negativePattern]]"]=_.negativePattern,i["[[boundFormat]]"]=void 0,i["[[initializedNumberFormat]]"]=!0,d&&(e.format=Z.call(e)),r(),e}(E(this),e,t):new q.NumberFormat(e,t)}function J(e,t,n){var i=Q(t,"minimumIntegerDigits",1,21,1),r=Q(t,"minimumFractionDigits",0,20,n),a=Q(t,"maximumFractionDigits",r,20),o=t.minimumSignificantDigits,s=t.maximumSignificantDigits;e["[[minimumIntegerDigits]]"]=i,e["[[minimumFractionDigits]]"]=r,e["[[maximumFractionDigits]]"]=a,void 0===o&&void 0===s||(s=Q(t,"maximumSignificantDigits",o=Q(t,"minimumSignificantDigits",1,21,1),21,21),e["[[minimumSignificantDigits]]"]=o,e["[[maximumSignificantDigits]]"]=s)}function Z(){var e=null!==this&&"object"===l.typeof(this)&&D(this);if(!e||!e["[[initializedNumberFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.NumberFormat object.");if(void 0===e["[[boundFormat]]"]){var t=C.call(function(e){return ne(this,Number(e))},this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function ee(e,t){var n=D(e);return h.call(n,"[[minimumSignificantDigits]]")&&h.call(n,"[[maximumSignificantDigits]]")?function(e,t,n){var i=n,r=void 0,a=void 0;if(0===e)r=_.call(Array(i+1),"0"),a=0;else{a=function(e){if("function"==typeof Math.log10)return Math.floor(Math.log10(e));var t=Math.round(Math.log(e)*Math.LOG10E);return t-(Number("1e"+t)>e)}(Math.abs(e));var o=Math.round(Math.exp(Math.abs(a-i+1)*Math.LN10));r=String(Math.round(a-i+1<0?e*o:e/o))}if(a>=i)return r+_.call(Array(a-i+1+1),"0");if(a===i-1)return r;if(a>=0?r=r.slice(0,a+1)+"."+r.slice(a+1):a<0&&(r="0."+_.call(Array(1-(a+1)),"0")+r),r.indexOf(".")>=0&&n>t){for(var s=n-t;s>0&&"0"===r.charAt(r.length-1);)r=r.slice(0,-1),s--;"."===r.charAt(r.length-1)&&(r=r.slice(0,-1))}return r}(t,n["[[minimumSignificantDigits]]"],n["[[maximumSignificantDigits]]"]):function(e,t,n,i){var r,a=i,o=Math.pow(10,a)*e,s=0===o?"0":o.toFixed(0),c=(r=s.indexOf("e"))>-1?s.slice(r+1):0;c&&(s=s.slice(0,r).replace(".",""),s+=_.call(Array(c-(s.length-1)+1),"0"));var l=void 0;if(0!==a){var u=s.length;if(u<=a)s=_.call(Array(a+1-u+1),"0")+s,u=a+1;var d=s.substring(0,u-a);s=d+"."+s.substring(u-a,s.length),l=d.length}else l=s.length;for(var h=i-n;h>0&&"0"===s.slice(-1);)s=s.slice(0,-1),h--;("."===s.slice(-1)&&(s=s.slice(0,-1)),l<t)&&(s=_.call(Array(t-l+1),"0")+s);return s}(t,n["[[minimumIntegerDigits]]"],n["[[minimumFractionDigits]]"],n["[[maximumFractionDigits]]"])}function te(e,t){var n=D(e),i=n["[[dataLocale]]"],r=n["[[numberingSystem]]"],a=I.NumberFormat["[[localeData]]"][i],o=a.symbols[r]||a.symbols.latn,s=void 0;!isNaN(t)&&t<0?(t=-t,s=n["[[negativePattern]]"]):s=n["[[positivePattern]]"];for(var c=new A,l=s.indexOf("{",0),u=0,d=0,h=s.length;l>-1&&l<h;){if(-1===(u=s.indexOf("}",l)))throw new Error;if(l>d){var p=s.substring(d,l);v.call(c,{"[[type]]":"literal","[[value]]":p})}var f=s.substring(l+1,u);if("number"===f)if(isNaN(t)){var m=o.nan;v.call(c,{"[[type]]":"nan","[[value]]":m})}else if(isFinite(t)){"percent"===n["[[style]]"]&&(t*=100);var g=ee(e,t);ie[r]?function(){var e=ie[r];g=String(g).replace(/\d/g,function(t){return e[t]})}():g=String(g);var b=void 0,_=void 0,C=g.indexOf(".",0);if(C>0?(b=g.substring(0,C),_=g.substring(C+1,C.length)):(b=g,_=void 0),!0===n["[[useGrouping]]"]){var w=o.group,S=[],O=a.patterns.primaryGroupSize||3,E=a.patterns.secondaryGroupSize||O;if(b.length>O){var T=b.length-O,L=T%E,N=b.slice(0,L);for(N.length&&v.call(S,N);L<T;)v.call(S,b.slice(L,L+E)),L+=E;v.call(S,b.slice(T))}else v.call(S,b);if(0===S.length)throw new Error;for(;S.length;){var M=y.call(S);v.call(c,{"[[type]]":"integer","[[value]]":M}),S.length&&v.call(c,{"[[type]]":"group","[[value]]":w})}}else v.call(c,{"[[type]]":"integer","[[value]]":b});if(void 0!==_){var P=o.decimal;v.call(c,{"[[type]]":"decimal","[[value]]":P}),v.call(c,{"[[type]]":"fraction","[[value]]":_})}}else{var x=o.infinity;v.call(c,{"[[type]]":"infinity","[[value]]":x})}else if("plusSign"===f){var R=o.plusSign;v.call(c,{"[[type]]":"plusSign","[[value]]":R})}else if("minusSign"===f){var j=o.minusSign;v.call(c,{"[[type]]":"minusSign","[[value]]":j})}else if("percentSign"===f&&"percent"===n["[[style]]"]){var F=o.percentSign;v.call(c,{"[[type]]":"literal","[[value]]":F})}else if("currency"===f&&"currency"===n["[[style]]"]){var V=n["[[currency]]"],U=void 0;"code"===n["[[currencyDisplay]]"]?U=V:"symbol"===n["[[currencyDisplay]]"]?U=a.currencies[V]||V:"name"===n["[[currencyDisplay]]"]&&(U=V),v.call(c,{"[[type]]":"currency","[[value]]":U})}else{var k=s.substring(l,u);v.call(c,{"[[type]]":"literal","[[value]]":k})}d=u+1,l=s.indexOf("{",d)}if(d<h){var B=s.substring(d,h);v.call(c,{"[[type]]":"literal","[[value]]":B})}return c}function ne(e,t){for(var n=te(e,t),i="",r=0;n.length>r;r++)i+=n[r]["[[value]]"];return i}p(q,"NumberFormat",{configurable:!0,writable:!0,value:X}),p(q.NumberFormat,"prototype",{writable:!1}),I.NumberFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["nu"],"[[localeData]]":{}},p(q.NumberFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:C.call(function(e){if(!h.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=O(),n=arguments[1],i=this["[[availableLocales]]"],r=B(e);return t(),G(i,r,n)},I.NumberFormat)}),p(q.NumberFormat.prototype,"format",{configurable:!0,get:Z}),Object.defineProperty(q.NumberFormat.prototype,"formatToParts",{configurable:!0,enumerable:!1,writable:!0,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=null!==this&&"object"===l.typeof(this)&&D(this);if(!t||!t["[[initializedNumberFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.NumberFormat object.");return function(t,n){for(var i=te(t,Number(e)),r=[],a=0,o=0;i.length>o;o++){var s=i[o],c={};c.type=s["[[type]]"],c.value=s["[[value]]"],r[a]=c,a+=1}return r}(this)}});var ie={arab:["٠","١","٢","٣","٤","٥","٦","٧","٨","٩"],arabext:["۰","۱","۲","۳","۴","۵","۶","۷","۸","۹"],bali:["᭐","᭑","᭒","᭓","᭔","᭕","᭖","᭗","᭘","᭙"],beng:["০","১","২","৩","৪","৫","৬","৭","৮","৯"],deva:["०","१","२","३","४","५","६","७","८","९"],fullwide:["０","１","２","３","４","５","６","７","８","９"],gujr:["૦","૧","૨","૩","૪","૫","૬","૭","૮","૯"],guru:["੦","੧","੨","੩","੪","੫","੬","੭","੮","੯"],hanidec:["〇","一","二","三","四","五","六","七","八","九"],khmr:["០","១","២","៣","៤","៥","៦","៧","៨","៩"],knda:["೦","೧","೨","೩","೪","೫","೬","೭","೮","೯"],laoo:["໐","໑","໒","໓","໔","໕","໖","໗","໘","໙"],latn:["0","1","2","3","4","5","6","7","8","9"],limb:["᥆","᥇","᥈","᥉","᥊","᥋","᥌","᥍","᥎","᥏"],mlym:["൦","൧","൨","൩","൪","൫","൬","൭","൮","൯"],mong:["᠐","᠑","᠒","᠓","᠔","᠕","᠖","᠗","᠘","᠙"],mymr:["၀","၁","၂","၃","၄","၅","၆","၇","၈","၉"],orya:["୦","୧","୨","୩","୪","୫","୬","୭","୮","୯"],tamldec:["௦","௧","௨","௩","௪","௫","௬","௭","௮","௯"],telu:["౦","౧","౨","౩","౪","౫","౬","౭","౮","౯"],thai:["๐","๑","๒","๓","๔","๕","๖","๗","๘","๙"],tibt:["༠","༡","༢","༣","༤","༥","༦","༧","༨","༩"]};p(q.NumberFormat.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new S,n=["locale","numberingSystem","style","currency","currencyDisplay","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","useGrouping"],i=null!==this&&"object"===l.typeof(this)&&D(this);if(!i||!i["[[initializedNumberFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.NumberFormat object.");for(var r=0,a=n.length;r<a;r++)h.call(i,e="[["+n[r]+"]]")&&(t[n[r]]={value:i[e],writable:!0,configurable:!0,enumerable:!0});return m({},t)}});var re=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g,ae=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,oe=/[rqQASjJgwWIQq]/,se=["era","year","month","day","weekday","quarter"],ce=["hour","minute","second","hour12","timeZoneName"];function le(e){for(var t=0;t<ce.length;t+=1)if(e.hasOwnProperty(ce[t]))return!1;return!0}function ue(e){for(var t=0;t<se.length;t+=1)if(e.hasOwnProperty(se[t]))return!1;return!0}function de(e,t){for(var n={_:{}},i=0;i<se.length;i+=1)e[se[i]]&&(n[se[i]]=e[se[i]]),e._[se[i]]&&(n._[se[i]]=e._[se[i]]);for(var r=0;r<ce.length;r+=1)t[ce[r]]&&(n[ce[r]]=t[ce[r]]),t._[ce[r]]&&(n._[ce[r]]=t._[ce[r]]);return n}function he(e){return e.pattern12=e.extendedPattern.replace(/'([^']*)'/g,function(e,t){return t||"'"}),e.pattern=e.pattern12.replace("{ampm}","").replace(ae,""),e}function pe(e,t){switch(e.charAt(0)){case"G":return t.era=["short","short","short","long","narrow"][e.length-1],"{era}";case"y":case"Y":case"u":case"U":case"r":return t.year=2===e.length?"2-digit":"numeric","{year}";case"Q":case"q":return t.quarter=["numeric","2-digit","short","long","narrow"][e.length-1],"{quarter}";case"M":case"L":return t.month=["numeric","2-digit","short","long","narrow"][e.length-1],"{month}";case"w":return t.week=2===e.length?"2-digit":"numeric","{weekday}";case"W":return t.week="numeric","{weekday}";case"d":return t.day=2===e.length?"2-digit":"numeric","{day}";case"D":case"F":case"g":return t.day="numeric","{day}";case"E":return t.weekday=["short","short","short","long","narrow","short"][e.length-1],"{weekday}";case"e":return t.weekday=["numeric","2-digit","short","long","narrow","short"][e.length-1],"{weekday}";case"c":return t.weekday=["numeric",void 0,"short","long","narrow","short"][e.length-1],"{weekday}";case"a":case"b":case"B":return t.hour12=!0,"{ampm}";case"h":case"H":return t.hour=2===e.length?"2-digit":"numeric","{hour}";case"k":case"K":return t.hour12=!0,t.hour=2===e.length?"2-digit":"numeric","{hour}";case"m":return t.minute=2===e.length?"2-digit":"numeric","{minute}";case"s":return t.second=2===e.length?"2-digit":"numeric","{second}";case"S":case"A":return t.second="numeric","{second}";case"z":case"Z":case"O":case"v":case"V":case"X":case"x":return t.timeZoneName=e.length<4?"short":"long","{timeZoneName}"}}function fe(e,t){if(!oe.test(t)){var n={originalPattern:t,_:{}};return n.extendedPattern=t.replace(re,function(e){return pe(e,n._)}),e.replace(re,function(e){return pe(e,n)}),he(n)}}var me={second:{numeric:"s","2-digit":"ss"},minute:{numeric:"m","2-digit":"mm"},year:{numeric:"y","2-digit":"yy"},day:{numeric:"d","2-digit":"dd"},month:{numeric:"L","2-digit":"LL",narrow:"LLLLL",short:"LLL",long:"LLLL"},weekday:{narrow:"ccccc",short:"ccc",long:"cccc"}},ge=m(null,{narrow:{},short:{},long:{}});function be(e,t,n,i,r){var a=e[t]&&e[t][n]?e[t][n]:e.gregory[n],o={narrow:["short","long"],short:["long","narrow"],long:["short","narrow"]},s=h.call(a,i)?a[i]:h.call(a,o[i][0])?a[o[i][0]]:a[o[i][1]];return null!==r?s[r]:s}function ve(){var e=arguments[0],t=arguments[1];return this&&this!==q?function(e,t,n){var i=D(e),r=O();if(!0===i["[[initializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");p(e,"__getInternalProperties",{value:function(){if(arguments[0]===w)return i}}),i["[[initializedIntlObject]]"]=!0;var o=B(t);n=ye(n,"any","date");var s=new S,c=K(n,"localeMatcher","string",new A("lookup","best fit"),"best fit");s["[[localeMatcher]]"]=c;var l=I.DateTimeFormat,u=l["[[localeData]]"],m=H(l["[[availableLocales]]"],o,s,l["[[relevantExtensionKeys]]"],u);i["[[locale]]"]=m["[[locale]]"],i["[[calendar]]"]=m["[[ca]]"],i["[[numberingSystem]]"]=m["[[nu]]"],i["[[dataLocale]]"]=m["[[dataLocale]]"];var g=m["[[dataLocale]]"],b=n.timeZone;if(void 0!==b&&"UTC"!==(b=j(b)))throw new RangeError("timeZone is not supported.");for(var v in i["[[timeZone]]"]=b,s=new S,_e)if(h.call(_e,v)){var _=K(n,v,"string",_e[v]);s["[["+v+"]]"]=_}var y=void 0,C=u[g],E=function(e){return"[object Array]"===Object.prototype.toString.call(e)?e:function(e){var t=e.availableFormats,n=e.timeFormats,i=e.dateFormats,r=[],a=void 0,o=void 0,s=void 0,c=void 0,l=void 0,u=[],d=[];for(a in t)t.hasOwnProperty(a)&&(s=fe(a,o=t[a]))&&(r.push(s),le(s)?d.push(s):ue(s)&&u.push(s));for(a in n)n.hasOwnProperty(a)&&(s=fe(a,o=n[a]))&&(r.push(s),u.push(s));for(a in i)i.hasOwnProperty(a)&&(s=fe(a,o=i[a]))&&(r.push(s),d.push(s));for(c=0;c<u.length;c+=1)for(l=0;l<d.length;l+=1)o="long"===d[l].month?d[l].weekday?e.full:e.long:"short"===d[l].month?e.medium:e.short,(s=de(d[l],u[c])).originalPattern=o,s.extendedPattern=o.replace("{0}",u[c].extendedPattern).replace("{1}",d[l].extendedPattern).replace(/^[,\s]+|[,\s]+$/gi,""),r.push(he(s));return r}(e)}(C.formats);if(c=K(n,"formatMatcher","string",new A("basic","best fit"),"best fit"),C.formats=E,"basic"===c)y=function(e,t){for(var n=-1/0,i=void 0,r=0,a=t.length;r<a;){var o=t[r],s=0;for(var c in _e)if(h.call(_e,c)){var l=e["[["+c+"]]"],u=h.call(o,c)?o[c]:void 0;if(void 0===l&&void 0!==u)s-=20;else if(void 0!==l&&void 0===u)s-=120;else{var d=["2-digit","numeric","narrow","short","long"],p=f.call(d,l),m=f.call(d,u),g=Math.max(Math.min(m-p,2),-2);2===g?s-=6:1===g?s-=3:-1===g?s-=6:-2===g&&(s-=8)}}s>n&&(n=s,i=o),r++}return i}(s,E);else{var T=K(n,"hour12","boolean");s.hour12=void 0===T?C.hour12:T,y=function(e,t){var n=[];for(var i in _e)h.call(_e,i)&&void 0!==e["[["+i+"]]"]&&n.push(i);if(1===n.length){var r=function(e,t){var n;if(me[e]&&me[e][t])return n={originalPattern:me[e][t],_:a({},e,t),extendedPattern:"{"+e+"}"},a(n,e,t),a(n,"pattern12","{"+e+"}"),a(n,"pattern","{"+e+"}"),n}(n[0],e["[["+n[0]+"]]"]);if(r)return r}for(var o=-1/0,s=void 0,c=0,l=t.length;c<l;){var u=t[c],d=0;for(var p in _e)if(h.call(_e,p)){var m=e["[["+p+"]]"],g=h.call(u,p)?u[p]:void 0;if(m!==(h.call(u._,p)?u._[p]:void 0)&&(d-=2),void 0===m&&void 0!==g)d-=20;else if(void 0!==m&&void 0===g)d-=120;else{var b=["2-digit","numeric","narrow","short","long"],v=f.call(b,m),_=f.call(b,g),y=Math.max(Math.min(_-v,2),-2);_<=1&&v>=2||_>=2&&v<=1?y>0?d-=6:y<0&&(d-=8):y>1?d-=3:y<-1&&(d-=6)}}u._.hour12!==e.hour12&&(d-=1),d>o&&(o=d,s=u),c++}return s}(s,E)}for(var L in _e)if(h.call(_e,L)&&h.call(y,L)){var N=y[L];N=y._&&h.call(y._,L)?y._[L]:N,i["[["+L+"]]"]=N}var M=void 0,P=K(n,"hour12","boolean");if(i["[[hour]]"])if(P=void 0===P?C.hour12:P,i["[[hour12]]"]=P,!0===P){var x=C.hourNo0;i["[[hourNo0]]"]=x,M=y.pattern12}else M=y.pattern;else M=y.pattern;return i["[[pattern]]"]=M,i["[[boundFormat]]"]=void 0,i["[[initializedDateTimeFormat]]"]=!0,d&&(e.format=Ce.call(e)),r(),e}(E(this),e,t):new q.DateTimeFormat(e,t)}p(q,"DateTimeFormat",{configurable:!0,writable:!0,value:ve}),p(ve,"prototype",{writable:!1});var _e={weekday:["narrow","short","long"],era:["narrow","short","long"],year:["2-digit","numeric"],month:["2-digit","numeric","narrow","short","long"],day:["2-digit","numeric"],hour:["2-digit","numeric"],minute:["2-digit","numeric"],second:["2-digit","numeric"],timeZoneName:["short","long"]};function ye(e,t,n){if(void 0===e)e=null;else{var i=E(e);for(var r in e=new S,i)e[r]=i[r]}e=m(e);var a=!0;return"date"!==t&&"any"!==t||void 0===e.weekday&&void 0===e.year&&void 0===e.month&&void 0===e.day||(a=!1),"time"!==t&&"any"!==t||void 0===e.hour&&void 0===e.minute&&void 0===e.second||(a=!1),!a||"date"!==n&&"all"!==n||(e.year=e.month=e.day="numeric"),!a||"time"!==n&&"all"!==n||(e.hour=e.minute=e.second="numeric"),e}function Ce(){var e=null!==this&&"object"===l.typeof(this)&&D(this);if(!e||!e["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for format() is not an initialized Intl.DateTimeFormat object.");if(void 0===e["[[boundFormat]]"]){var t=C.call(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return we(this,void 0===e?Date.now():T(e))},this);e["[[boundFormat]]"]=t}return e["[[boundFormat]]"]}function Ie(e,t){if(!isFinite(t))throw new RangeError("Invalid valid date passed to format");var n=e.__getInternalProperties(w);O();for(var i,r,a,o,s=n["[[locale]]"],c=new q.NumberFormat([s],{useGrouping:!1}),l=new q.NumberFormat([s],{minimumIntegerDigits:2,useGrouping:!1}),u=(i=t,n["[[calendar]]"],r=n["[[timeZone]]"],new S({"[[weekday]]":(a=new Date(i))[(o="get"+(r||""))+"Day"](),"[[era]]":+(a[o+"FullYear"]()>=0),"[[year]]":a[o+"FullYear"](),"[[month]]":a[o+"Month"](),"[[day]]":a[o+"Date"](),"[[hour]]":a[o+"Hours"](),"[[minute]]":a[o+"Minutes"](),"[[second]]":a[o+"Seconds"](),"[[inDST]]":!1})),d=n["[[pattern]]"],h=new A,p=0,f=d.indexOf("{"),m=0,g=n["[[dataLocale]]"],b=I.DateTimeFormat["[[localeData]]"][g].calendars,_=n["[[calendar]]"];-1!==f;){var y=void 0;if(-1===(m=d.indexOf("}",f)))throw new Error("Unclosed pattern");f>p&&v.call(h,{type:"literal",value:d.substring(p,f)});var C=d.substring(f+1,m);if(_e.hasOwnProperty(C)){var E=n["[["+C+"]]"],T=u["[["+C+"]]"];if("year"===C&&T<=0?T=1-T:"month"===C?T++:"hour"===C&&!0===n["[[hour12]]"]&&0==(T%=12)&&!0===n["[[hourNo0]]"]&&(T=12),"numeric"===E)y=ne(c,T);else if("2-digit"===E)(y=ne(l,T)).length>2&&(y=y.slice(-2));else if(E in ge)switch(C){case"month":y=be(b,_,"months",E,u["[["+C+"]]"]);break;case"weekday":try{y=be(b,_,"days",E,u["[["+C+"]]"])}catch(e){throw new Error("Could not find weekday data for locale "+s)}break;case"timeZoneName":y="";break;case"era":try{y=be(b,_,"eras",E,u["[["+C+"]]"])}catch(e){throw new Error("Could not find era data for locale "+s)}break;default:y=u["[["+C+"]]"]}v.call(h,{type:C,value:y})}else"ampm"===C?(y=be(b,_,"dayPeriods",u["[[hour]]"]>11?"pm":"am",null),v.call(h,{type:"dayPeriod",value:y})):v.call(h,{type:"literal",value:d.substring(f,m+1)});p=m+1,f=d.indexOf("{",p)}return m<d.length-1&&v.call(h,{type:"literal",value:d.substr(m+1)}),h}function we(e,t){for(var n=Ie(e,t),i="",r=0;n.length>r;r++)i+=n[r].value;return i}I.DateTimeFormat={"[[availableLocales]]":[],"[[relevantExtensionKeys]]":["ca","nu"],"[[localeData]]":{}},p(q.DateTimeFormat,"supportedLocalesOf",{configurable:!0,writable:!0,value:C.call(function(e){if(!h.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=O(),n=arguments[1],i=this["[[availableLocales]]"],r=B(e);return t(),G(i,r,n)},I.NumberFormat)}),p(q.DateTimeFormat.prototype,"format",{configurable:!0,get:Ce}),Object.defineProperty(q.DateTimeFormat.prototype,"formatToParts",{enumerable:!1,writable:!0,configurable:!0,value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0,t=null!==this&&"object"===l.typeof(this)&&D(this);if(!t||!t["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for formatToParts() is not an initialized Intl.DateTimeFormat object.");return function(t,n){for(var i=Ie(t,void 0===e?Date.now():T(e)),r=[],a=0;i.length>a;a++){var o=i[a];r.push({type:o.type,value:o.value})}return r}(this)}}),p(q.DateTimeFormat.prototype,"resolvedOptions",{writable:!0,configurable:!0,value:function(){var e=void 0,t=new S,n=["locale","calendar","numberingSystem","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName"],i=null!==this&&"object"===l.typeof(this)&&D(this);if(!i||!i["[[initializedDateTimeFormat]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.DateTimeFormat object.");for(var r=0,a=n.length;r<a;r++)h.call(i,e="[["+n[r]+"]]")&&(t[n[r]]={value:i[e],writable:!0,configurable:!0,enumerable:!0});return m({},t)}});var Se=q.__localeSensitiveProtos={Number:{},Date:{}};Se.Number.toLocaleString=function(){if("[object Number]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a number for Number.prototype.toLocaleString()");return ne(new X(arguments[0],arguments[1]),this)},Se.Date.toLocaleString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];return we(new ve(t,n=ye(n,"any","all")),e)},Se.Date.toLocaleDateString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleDateString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];return we(new ve(t,n=ye(n,"date","date")),e)},Se.Date.toLocaleTimeString=function(){if("[object Date]"!==Object.prototype.toString.call(this))throw new TypeError("`this` value must be a Date instance for Date.prototype.toLocaleTimeString()");var e=+this;if(isNaN(e))return"Invalid Date";var t=arguments[0],n=arguments[1];return we(new ve(t,n=ye(n,"time","time")),e)};var Ae=[function(e,t){return"other"},function(e,t){return t?"other":1==e?"one":"other"},function(e,t){return t?"other":0==e||1==e?"one":"other"},function(e,t){var n=!String(e).split(".")[1];return t?"other":1==e&&n?"one":"other"}],Oe={af:Ae[1],ak:Ae[2],am:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ar:function(e,t){var n=String(e).split("."),i=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":i>=3&&i<=10?"few":i>=11&&i<=99?"many":"other"},ars:function(e,t){var n=String(e).split("."),i=Number(n[0])==e&&n[0].slice(-2);return t?"other":0==e?"zero":1==e?"one":2==e?"two":i>=3&&i<=10?"few":i>=11&&i<=99?"many":"other"},as:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},asa:Ae[1],ast:Ae[3],az:function(e,t){var n=String(e).split(".")[0],i=n.slice(-1),r=n.slice(-2),a=n.slice(-3);return t?1==i||2==i||5==i||7==i||8==i||20==r||50==r||70==r||80==r?"one":3==i||4==i||100==a||200==a||300==a||400==a||500==a||600==a||700==a||800==a||900==a?"few":0==n||6==i||40==r||60==r||90==r?"many":"other":1==e?"one":"other"},be:function(e,t){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?2!=r&&3!=r||12==a||13==a?"other":"few":1==r&&11!=a?"one":r>=2&&r<=4&&(a<12||a>14)?"few":i&&0==r||r>=5&&r<=9||a>=11&&a<=14?"many":"other"},bem:Ae[1],bez:Ae[1],bg:Ae[1],bh:Ae[2],bm:Ae[0],bn:function(e,t){return t?1==e||5==e||7==e||8==e||9==e||10==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},bo:Ae[0],br:function(e,t){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-1),a=i&&n[0].slice(-2),o=i&&n[0].slice(-6);return t?"other":1==r&&11!=a&&71!=a&&91!=a?"one":2==r&&12!=a&&72!=a&&92!=a?"two":(3==r||4==r||9==r)&&(a<10||a>19)&&(a<70||a>79)&&(a<90||a>99)?"few":0!=e&&i&&0==o?"many":"other"},brx:Ae[1],bs:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-1),s=i.slice(-2),c=r.slice(-1),l=r.slice(-2);return t?"other":a&&1==o&&11!=s||1==c&&11!=l?"one":a&&o>=2&&o<=4&&(s<12||s>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ca:function(e,t){var n=!String(e).split(".")[1];return t?1==e||3==e?"one":2==e?"two":4==e?"few":"other":1==e&&n?"one":"other"},ce:Ae[1],cgg:Ae[1],chr:Ae[1],ckb:Ae[1],cs:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1];return t?"other":1==e&&r?"one":i>=2&&i<=4&&r?"few":r?"other":"many"},cy:function(e,t){return t?0==e||7==e||8==e||9==e?"zero":1==e?"one":2==e?"two":3==e||4==e?"few":5==e||6==e?"many":"other":0==e?"zero":1==e?"one":2==e?"two":3==e?"few":6==e?"many":"other"},da:function(e,t){var n=String(e).split("."),i=n[0],r=Number(n[0])==e;return t?"other":1!=e&&(r||0!=i&&1!=i)?"other":"one"},de:Ae[3],dsb:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-2),s=r.slice(-2);return t?"other":a&&1==o||1==s?"one":a&&2==o||2==s?"two":a&&(3==o||4==o)||3==s||4==s?"few":"other"},dv:Ae[1],dz:Ae[0],ee:Ae[1],el:Ae[1],en:function(e,t){var n=String(e).split("."),i=!n[1],r=Number(n[0])==e,a=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?1==a&&11!=o?"one":2==a&&12!=o?"two":3==a&&13!=o?"few":"other":1==e&&i?"one":"other"},eo:Ae[1],es:Ae[1],et:Ae[3],eu:Ae[1],fa:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ff:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},fi:Ae[3],fil:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-1),s=r.slice(-1);return t?1==e?"one":"other":a&&(1==i||2==i||3==i)||a&&4!=o&&6!=o&&9!=o||!a&&4!=s&&6!=s&&9!=s?"one":"other"},fo:Ae[1],fr:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},fur:Ae[1],fy:Ae[3],ga:function(e,t){var n=String(e).split("."),i=Number(n[0])==e;return t?1==e?"one":"other":1==e?"one":2==e?"two":i&&e>=3&&e<=6?"few":i&&e>=7&&e<=10?"many":"other"},gd:function(e,t){var n=String(e).split("."),i=Number(n[0])==e;return t?"other":1==e||11==e?"one":2==e||12==e?"two":i&&e>=3&&e<=10||i&&e>=13&&e<=19?"few":"other"},gl:Ae[3],gsw:Ae[1],gu:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},guw:Ae[2],gv:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1],a=i.slice(-1),o=i.slice(-2);return t?"other":r&&1==a?"one":r&&2==a?"two":!r||0!=o&&20!=o&&40!=o&&60!=o&&80!=o?r?"other":"many":"few"},ha:Ae[1],haw:Ae[1],he:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1],a=Number(n[0])==e,o=a&&n[0].slice(-1);return t?"other":1==e&&r?"one":2==i&&r?"two":r&&(e<0||e>10)&&a&&0==o?"many":"other"},hi:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":6==e?"many":"other":e>=0&&e<=1?"one":"other"},hr:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-1),s=i.slice(-2),c=r.slice(-1),l=r.slice(-2);return t?"other":a&&1==o&&11!=s||1==c&&11!=l?"one":a&&o>=2&&o<=4&&(s<12||s>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},hsb:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-2),s=r.slice(-2);return t?"other":a&&1==o||1==s?"one":a&&2==o||2==s?"two":a&&(3==o||4==o)||3==s||4==s?"few":"other"},hu:function(e,t){return t?1==e||5==e?"one":"other":1==e?"one":"other"},hy:function(e,t){return t?1==e?"one":"other":e>=0&&e<2?"one":"other"},id:Ae[0],ig:Ae[0],ii:Ae[0],in:Ae[0],is:function(e,t){var n=String(e).split("."),i=n[0],r=Number(n[0])==e,a=i.slice(-1),o=i.slice(-2);return t?"other":r&&1==a&&11!=o||!r?"one":"other"},it:function(e,t){var n=!String(e).split(".")[1];return t?11==e||8==e||80==e||800==e?"many":"other":1==e&&n?"one":"other"},iu:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},iw:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1],a=Number(n[0])==e,o=a&&n[0].slice(-1);return t?"other":1==e&&r?"one":2==i&&r?"two":r&&(e<0||e>10)&&a&&0==o?"many":"other"},ja:Ae[0],jbo:Ae[0],jgo:Ae[1],ji:Ae[3],jmc:Ae[1],jv:Ae[0],jw:Ae[0],ka:function(e,t){var n=String(e).split(".")[0],i=n.slice(-2);return t?1==n?"one":0==n||i>=2&&i<=20||40==i||60==i||80==i?"many":"other":1==e?"one":"other"},kab:function(e,t){return t?"other":e>=0&&e<2?"one":"other"},kaj:Ae[1],kcg:Ae[1],kde:Ae[0],kea:Ae[0],kk:function(e,t){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-1);return t?6==r||9==r||i&&0==r&&0!=e?"many":"other":1==e?"one":"other"},kkj:Ae[1],kl:Ae[1],km:Ae[0],kn:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"},ko:Ae[0],ks:Ae[1],ksb:Ae[1],ksh:function(e,t){return t?"other":0==e?"zero":1==e?"one":"other"},ku:Ae[1],kw:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},ky:Ae[1],lag:function(e,t){var n=String(e).split(".")[0];return t?"other":0==e?"zero":0!=n&&1!=n||0==e?"other":"one"},lb:Ae[1],lg:Ae[1],lkt:Ae[0],ln:Ae[2],lo:function(e,t){return t&&1==e?"one":"other"},lt:function(e,t){var n=String(e).split("."),i=n[1]||"",r=Number(n[0])==e,a=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?"other":1==a&&(o<11||o>19)?"one":a>=2&&a<=9&&(o<11||o>19)?"few":0!=i?"many":"other"},lv:function(e,t){var n=String(e).split("."),i=n[1]||"",r=i.length,a=Number(n[0])==e,o=a&&n[0].slice(-1),s=a&&n[0].slice(-2),c=i.slice(-2),l=i.slice(-1);return t?"other":a&&0==o||s>=11&&s<=19||2==r&&c>=11&&c<=19?"zero":1==o&&11!=s||2==r&&1==l&&11!=c||2!=r&&1==l?"one":"other"},mas:Ae[1],mg:Ae[2],mgo:Ae[1],mk:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-1),s=i.slice(-2),c=r.slice(-1);return t?1==o&&11!=s?"one":2==o&&12!=s?"two":7!=o&&8!=o||17==s||18==s?"other":"many":a&&1==o||1==c?"one":"other"},ml:Ae[1],mn:Ae[1],mo:function(e,t){var n=String(e).split("."),i=!n[1],r=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&i?"one":!i||0==e||1!=e&&r>=1&&r<=19?"few":"other"},mr:function(e,t){return t?1==e?"one":2==e||3==e?"two":4==e?"few":"other":e>=0&&e<=1?"one":"other"},ms:function(e,t){return t&&1==e?"one":"other"},mt:function(e,t){var n=String(e).split("."),i=Number(n[0])==e&&n[0].slice(-2);return t?"other":1==e?"one":0==e||i>=2&&i<=10?"few":i>=11&&i<=19?"many":"other"},my:Ae[0],nah:Ae[1],naq:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},nb:Ae[1],nd:Ae[1],ne:function(e,t){var n=String(e).split("."),i=Number(n[0])==e;return t?i&&e>=1&&e<=4?"one":"other":1==e?"one":"other"},nl:Ae[3],nn:Ae[1],nnh:Ae[1],no:Ae[1],nqo:Ae[0],nr:Ae[1],nso:Ae[2],ny:Ae[1],nyn:Ae[1],om:Ae[1],or:Ae[1],os:Ae[1],pa:Ae[2],pap:Ae[1],pl:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1],a=i.slice(-1),o=i.slice(-2);return t?"other":1==e&&r?"one":r&&a>=2&&a<=4&&(o<12||o>14)?"few":r&&1!=i&&(0==a||1==a)||r&&a>=5&&a<=9||r&&o>=12&&o<=14?"many":"other"},prg:function(e,t){var n=String(e).split("."),i=n[1]||"",r=i.length,a=Number(n[0])==e,o=a&&n[0].slice(-1),s=a&&n[0].slice(-2),c=i.slice(-2),l=i.slice(-1);return t?"other":a&&0==o||s>=11&&s<=19||2==r&&c>=11&&c<=19?"zero":1==o&&11!=s||2==r&&1==l&&11!=c||2!=r&&1==l?"one":"other"},ps:Ae[1],pt:function(e,t){var n=String(e).split("."),i=Number(n[0])==e;return t?"other":i&&e>=0&&e<=2&&2!=e?"one":"other"},"pt-PT":Ae[3],rm:Ae[1],ro:function(e,t){var n=String(e).split("."),i=!n[1],r=Number(n[0])==e&&n[0].slice(-2);return t?1==e?"one":"other":1==e&&i?"one":!i||0==e||1!=e&&r>=1&&r<=19?"few":"other"},rof:Ae[1],root:Ae[0],ru:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1],a=i.slice(-1),o=i.slice(-2);return t?"other":r&&1==a&&11!=o?"one":r&&a>=2&&a<=4&&(o<12||o>14)?"few":r&&0==a||r&&a>=5&&a<=9||r&&o>=11&&o<=14?"many":"other"},rwk:Ae[1],sah:Ae[0],saq:Ae[1],sdh:Ae[1],se:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},seh:Ae[1],ses:Ae[0],sg:Ae[0],sh:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-1),s=i.slice(-2),c=r.slice(-1),l=r.slice(-2);return t?"other":a&&1==o&&11!=s||1==c&&11!=l?"one":a&&o>=2&&o<=4&&(s<12||s>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},shi:function(e,t){var n=String(e).split("."),i=Number(n[0])==e;return t?"other":e>=0&&e<=1?"one":i&&e>=2&&e<=10?"few":"other"},si:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"";return t?"other":0==e||1==e||0==i&&1==r?"one":"other"},sk:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1];return t?"other":1==e&&r?"one":i>=2&&i<=4&&r?"few":r?"other":"many"},sl:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1],a=i.slice(-2);return t?"other":r&&1==a?"one":r&&2==a?"two":r&&(3==a||4==a)||!r?"few":"other"},sma:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smi:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smj:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},smn:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sms:function(e,t){return t?"other":1==e?"one":2==e?"two":"other"},sn:Ae[1],so:Ae[1],sq:function(e,t){var n=String(e).split("."),i=Number(n[0])==e,r=i&&n[0].slice(-1),a=i&&n[0].slice(-2);return t?1==e?"one":4==r&&14!=a?"many":"other":1==e?"one":"other"},sr:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-1),s=i.slice(-2),c=r.slice(-1),l=r.slice(-2);return t?"other":a&&1==o&&11!=s||1==c&&11!=l?"one":a&&o>=2&&o<=4&&(s<12||s>14)||c>=2&&c<=4&&(l<12||l>14)?"few":"other"},ss:Ae[1],ssy:Ae[1],st:Ae[1],sv:function(e,t){var n=String(e).split("."),i=!n[1],r=Number(n[0])==e,a=r&&n[0].slice(-1),o=r&&n[0].slice(-2);return t?1!=a&&2!=a||11==o||12==o?"other":"one":1==e&&i?"one":"other"},sw:Ae[3],syr:Ae[1],ta:Ae[1],te:Ae[1],teo:Ae[1],th:Ae[0],ti:Ae[2],tig:Ae[1],tk:Ae[1],tl:function(e,t){var n=String(e).split("."),i=n[0],r=n[1]||"",a=!n[1],o=i.slice(-1),s=r.slice(-1);return t?1==e?"one":"other":a&&(1==i||2==i||3==i)||a&&4!=o&&6!=o&&9!=o||!a&&4!=s&&6!=s&&9!=s?"one":"other"},tn:Ae[1],to:Ae[0],tr:Ae[1],ts:Ae[1],tzm:function(e,t){var n=String(e).split("."),i=Number(n[0])==e;return t?"other":0==e||1==e||i&&e>=11&&e<=99?"one":"other"},ug:Ae[1],uk:function(e,t){var n=String(e).split("."),i=n[0],r=!n[1],a=Number(n[0])==e,o=a&&n[0].slice(-1),s=a&&n[0].slice(-2),c=i.slice(-1),l=i.slice(-2);return t?3==o&&13!=s?"few":"other":r&&1==c&&11!=l?"one":r&&c>=2&&c<=4&&(l<12||l>14)?"few":r&&0==c||r&&c>=5&&c<=9||r&&l>=11&&l<=14?"many":"other"},ur:Ae[3],uz:Ae[1],ve:Ae[1],vi:function(e,t){return t&&1==e?"one":"other"},vo:Ae[1],vun:Ae[1],wa:Ae[2],wae:Ae[1],wo:Ae[0],xh:Ae[1],xog:Ae[1],yi:Ae[3],yo:Ae[0],yue:Ae[0],zh:Ae[0],zu:function(e,t){return t?"other":e>=0&&e<=1?"one":"other"}};function Ee(){var e=arguments[0],t=arguments[1];return this&&this!==q?function(e,t,n){var i=D(e);if(!0===i["[[InitializedIntlObject]]"])throw new TypeError("`this` object has already been initialized as an Intl object");p(e,"__getInternalProperties",{value:function(){if(arguments[0]===w)return i}}),i["[[InitializedIntlObject]]"]=!0;var r=B(t),a=K(n=void 0===n?{}:E(n),"type","string",new A("cardinal","ordinal"),"cardinal");i["[[type]]"]=a;var o=new S,s=K(n,"localeMatcher","string",new A("lookup","best fit"),"best fit");o["[[localeMatcher]]"]=s,J(I,n,0),void 0===I["[[maximumFractionDigits]]"]&&(I["[[maximumFractionDigits]]"]=Math.max(I["[[minimumFractionDigits]]"],3));var c=I.PluralRules["[[localeData]]"],l=H(I.PluralRules["[[availableLocales]]"],r,o,I.PluralRules["[[relevantExtensionKeys]]"],c);return i["[[locale]]"]=l["[[locale]]"],i["[[InitializedPluralRules]]"]=!0,e}(E(this),e,t):new q.PluralRules(e,t)}if(p(q,"PluralRules",{configurable:!0,writable:!0,value:Ee}),p(Ee,"prototype",{writable:!1}),I.PluralRules={"[[availableLocales]]":Object.keys(Oe),"[[relevantExtensionKeys]]":[],"[[localeData]]":{}},p(q.PluralRules,"supportedLocalesOf",{configurable:!0,writable:!0,value:C.call(function(e){if(!h.call(this,"[[availableLocales]]"))throw new TypeError("supportedLocalesOf() is not a constructor");var t=O(),n=arguments[1],i=this["[[availableLocales]]"],r=B(e);return t(),G(i,r,n)},I.PluralRules)}),p(q.PluralRules.prototype,"select",{configurable:!0,value:function(e){return function(e,t){if(!Number.isFinite(t))return"other";var n=D(e);return function(e,t,n){for(var i=e;i;i=i.replace(/[-_]?[^-_]*$/,"")){var r=Oe[i];if(r)return r(n,"ordinal"===t)}return"other"}(n["[[locale]]"],n["[[type]]"],t)}(this,Number(e))}}),p(q.PluralRules.prototype,"resolvedOptions",{configurable:!0,writable:!0,value:function(){var e=void 0,t=new S,n=["locale","type","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],i=null!==this&&"object"===l.typeof(this)&&D(this);if(!i||!i["[[InitializedPluralRules]]"])throw new TypeError("`this` value for resolvedOptions() is not an initialized Intl.PluralRules object.");for(var r=0,a=n.length;r<a;r++)h.call(i,e="[["+n[r]+"]]")&&(t[n[r]]={value:i[e],writable:!0,configurable:!0,enumerable:!0});return m({},t)}}),p(q,"__applyLocaleSensitivePrototypes",{writable:!0,configurable:!0,value:function(){for(var e in p(Number.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Se.Number.toLocaleString}),p(Date.prototype,"toLocaleString",{writable:!0,configurable:!0,value:Se.Date.toLocaleString}),Se.Date)h.call(Se.Date,e)&&p(Date.prototype,e,{writable:!0,configurable:!0,value:Se.Date[e]})}}),p(q,"__addLocaleData",{value:function(e){if(!F(e.locale))throw new Error('Invalid language tag "'+e.locale+'" when calling __addLocaleData("'+e.locale+'", ...) to register new locale data.');!function(e,t){if(!e.number)throw new Error("Object passed doesn't contain locale data for Intl.NumberFormat");var n=void 0,i=[t],r=t.split("-");for(r.length>2&&4===r[1].length&&v.call(i,r[0]+"-"+r[2]);n=y.call(i);)v.call(I.NumberFormat["[[availableLocales]]"],n),I.NumberFormat["[[localeData]]"][n]=e.number,e.date&&(e.date.nu=e.number.nu,v.call(I.DateTimeFormat["[[availableLocales]]"],n),I.DateTimeFormat["[[localeData]]"][n]=e.date);void 0===x&&(x=t)}(e,e.locale)}}),p(q,"__disableRegExpRestore",{value:function(){I.disableRegExpRestore=!0}}),"undefined"==typeof Intl)try{window.Intl=q,q.__applyLocaleSensitivePrototypes()}catch(e){}return q})}).call(this,n(31))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){var i=n(32),r=n(114),a=n(68),o=n(69),s=n(115),c=function(e,t,n){var l,u,d,h,p=e&c.F,f=e&c.G,m=e&c.S,g=e&c.P,b=e&c.B,v=f?i:m?i[t]||(i[t]={}):(i[t]||{}).prototype,_=f?r:r[t]||(r[t]={}),y=_.prototype||(_.prototype={});for(l in f&&(n=t),n)d=((u=!p&&v&&void 0!==v[l])?v:n)[l],h=b&&u?s(d,i):g&&"function"==typeof d?s(Function.call,d):d,v&&o(v,l,d,e&c.U),_[l]!=d&&a(_,l,h),g&&y[l]!=d&&(y[l]=d)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){},function(e,t,n){"use strict";(function(e){n(3),n.d(t,"a",function(){return g}),n.d(t,"c",function(){return b}),n.d(t,"b",function(){return v}),n.d(t,"d",function(){return y});var i=n(81),r=n(905),a=n(819),o=n(852),s=n(86),c=n(80),l=n(833),u=n(866),d=n(1042),h=n(1045),p=n(1078),f=n(402),m=n(569),g=f.a.extend({staticMembers:{supportedSubDomains:i.d({readOnly:!0,type:Array,defaultValue:Object.freeze([p.a.subDomains.WWW,p.a.subDomains.BETA,p.a.subDomains.FUTURE,p.a.subDomains.CARRY])}),fallbackOrderForSubDomains:i.d({readOnly:!0,type:Object,defaultValue:function(){var e,t=p.a.subDomains,n=t.BETA,i=t.WWW,r=t.CARRY,a=t.FUTURE;return Object.freeze(((e={})[n]=Object.freeze([n,i]),e[i]=Object.freeze([i]),e[r]=Object.freeze([r,i]),e[a]=Object.freeze([a,n,i]),e))}}),subDomain:i.d({type:String,get:function(){var e=void 0,t=p.a.sharedInstance.current;return t&&(e=t.subdomain),e},set:function(t){if(this.supportedSubDomains.indexOf(t)>=0){var n=e.location.href;e.location.href=n.replace(g.subDomain,t)}}}),getFallbackOrderForSubDomain:function(e){return r.a(e)&&a.b("A subdomain string is required"),this.supportedSubDomains.includes(e)||a.b("Unknown subdomain specified "+e),this.fallbackOrderForSubDomains[e]},clientId:i.d({readOnly:!0,type:String,defaultValue:function(){return o.a()}}),supportedLocales:i.d({readOnly:!0,type:Array,get:function(){return e.__cloudOSSupportedLocales}}),childApplicationSupportedLocales:i.d({readOnly:!0,type:Array,get:function(){return e.__childApplicationSupportedLocales}}),protocolVersion:i.d({readOnly:!0,type:Number,defaultValue:2}),configuration:i.d({readOnly:!0,type:m.a,defaultValue:s.c(m.a)}),location:i.d({type:e.Location,readOnly:!0,get:function(){return e.location}}),history:i.d({type:e.History,readOnly:!0,get:function(){return e.history}}),pushHistoryState:function(e,t,n,i,r,a){var o=this.protocol,s=this.hostName,c=this.history,l="";"newspublisher"===n&&(n="#"+n),n&&(l=n+"/"),i&&(l=""+l+i);var u=_(o,s,l,r,a);c.pushState(e,t,u),t&&(this.title=t)},replaceHistoryState:function(e,t,n,i,r,a){var o=this.protocol,s=this.hostName,c=this.history,l="";"newspublisher"===n&&(n="#"+n),n&&(l=n+"/"),i&&(l=""+l+i);var u=_(o,s,l,r,a);c.replaceState(e,t,u),t&&(this.title=t)},title:i.d({type:String,defaultValue:c.d("Application.Title"),get:function(){return e.document.title},set:function(t){e.document.title=t}}),isDesktopPlatform:i.d({type:Boolean,readOnly:!0,get:function(){var e=d.a.sharedInstance;return e.primaryInteractionMode===h.a.MOUSE||e.isiPad}}),__QUALIFIED_CLASS_NAME__:"CloudOSEnvironment"}});function b(e,t,n,i){return l.a(e)||a.b("getUrlRootForApplication: Invalid protocol passed"),l.a(t)||a.b("getUrlRootForApplication: Invalid hostname passed"),l.a(n)||a.b("getUrlRootForApplication: Invalid applicationName passed"),e.endsWith(":")||(e+=":"),u.a.create({protocol:e,hostname:t,port:i,pathname:"/applications/"+n+"/current/"}).href}function v(e,t,n,i,r,o,s,c){l.a(n)||a.b("createUrlForApplication: Invalid locale passed");var d=b(e,t,i,r),h=u.a.create(d);return h.pathname+=""+n,o&&(h.pathname+="/"+o),s&&h.setQueryParameter("rootDomain",s),c&&(h.hash="#"+c),h.href}function _(e,t,n,i,r){e.endsWith(":")||(e+=":");var a=n?"/"+n:void 0;return u.a.create({protocol:e,hostname:t,pathname:a,query:i,hash:r}).href}function y(){e.removeCloudOSLoadingScreenFromDOM&&e.removeCloudOSLoadingScreenFromDOM()}}).call(this,n(31))},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var i=n(95),r=n(818),a=n(78),o=n(98),s=n(81),c=n(819),l=n(909),u=n(100),d=n(832),h=n(863),p=n(891),f=n(870),m=n(861),g=n(1085),b=n(1090),v=n(1088),_=n(1089),y=n(147),C=n(573),I=i.b("AuthenticationState",{UNKNOWN:"UNKNOWN",UNAUTHENTICATED:"UNAUTHENTICATED",AUTHENTICATING:"AUTHENTICATING",PARTIALLY_AUTHENTICATED:"PARTIALLY_AUTHENTICATED",AUTHENTICATED:"AUTHENTICATED"}),w=n(36),S=n(11),A=n(184),O=n(67),E=n(113),T=n(148),D=r.a.extend({mixinDependencies:[v.b],staticMembers:{fromSuccessResponse:function(e){return e||c.b("[CreateAccountDataResponse] fromSuccessResponse: No json response specified"),D.create({status:v.a.SUCCESS})},fromError:function(e){return e||c.b("[CreateAccountDataResponse] fromError: No error specified"),D.create({status:v.a.ERROR,error:e})},__QUALIFIED_CLASS_NAME__:"CreateAccountDataResponse"}}),L=n(51);n(3);var N=n(134),M=n(99),P=n(428),x=r.a.extend({mixinDependencies:[v.b],staticMembers:{fromSuccessResponse:function(e){e||c.b("[TermsDataResponse] fromSuccessResponse: No json response specified");var t=x.create({status:v.a.SUCCESS});return t.termsDetails=P.a.createFromResponse(e),t},fromError:function(e){return e||c.b("[TermsDataResponse] fromError: No error specified"),x.create({status:v.a.ERROR,error:e})},__QUALIFIED_CLASS_NAME__:"TermsDataResponse"},termsDetails:s.d({type:P.a})});n(3);var R=n(26),j=n(1078),F=n(3),V={hexcase:1,b64pad:"",hex_sha1:function(e){return this.rstr2hex(this.rstr_sha1(this.str2rstr_utf8(e)))},b64_sha1:function(e){return this.rstr2b64(this.rstr_sha1(this.str2rstr_utf8(e)))},sha1_vm_test:function(){return"a9993e364706816aba3e25717850c26c9cd0d89d"===this.hex_sha1("abc").toLowerCase()},rstr_sha1:function(e){return this.binb2rstr(this.binb_sha1(this.rstr2binb(e),8*e.length))},rstr2hex:function(e){for(var t,n=this.hexcase?"0123456789ABCDEF":"0123456789abcdef",i="",r=0;r<e.length;r++)t=e.charCodeAt(r),i+=n.charAt(t>>>4&15)+n.charAt(15&t);return i},rstr2b64:function(e){for(var t="",n=e.length,i=0;i<n;i+=3)for(var r=e.charCodeAt(i)<<16|(i+1<n?e.charCodeAt(i+1)<<8:0)|(i+2<n?e.charCodeAt(i+2):0),a=0;a<4;a++)8*i+6*a>8*e.length?t+=this.b64pad:t+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(r>>>6*(3-a)&63);return t},str2rstr_utf8:function(e){for(var t,n,i="",r=-1;++r<e.length;)t=e.charCodeAt(r),n=r+1<e.length?e.charCodeAt(r+1):0,55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t=65536+((1023&t)<<10)+(1023&n),r++),t<=127?i+=String.fromCharCode(t):t<=2047?i+=String.fromCharCode(192|t>>>6&31,128|63&t):t<=65535?i+=String.fromCharCode(224|t>>>12&15,128|t>>>6&63,128|63&t):t<=2097151&&(i+=String.fromCharCode(240|t>>>18&7,128|t>>>12&63,128|t>>>6&63,128|63&t));return i},rstr2binb:function(e){var t,n=Array(e.length>>2);for(t=0;t<n.length;t++)n[t]=0;for(t=0;t<8*e.length;t+=8)n[t>>5]|=(255&e.charCodeAt(t/8))<<24-t%32;return n},binb2rstr:function(e){for(var t="",n=0;n<32*e.length;n+=8)t+=String.fromCharCode(e[n>>5]>>>24-n%32&255);return t},binb_sha1:function(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n=Array(80),i=1732584193,r=-271733879,a=-1732584194,o=271733878,s=-1009589776,c=0;c<e.length;c+=16){for(var l=i,u=r,d=a,h=o,p=s,f=0;f<80;f++){n[f]=f<16?e[c+f]:this.bit_rol(n[f-3]^n[f-8]^n[f-14]^n[f-16],1);var m=this.safe_add(this.safe_add(this.bit_rol(i,5),this.sha1_ft(f,r,a,o)),this.safe_add(this.safe_add(s,n[f]),this.sha1_kt(f)));s=o,o=a,a=this.bit_rol(r,30),r=i,i=m}i=this.safe_add(i,l),r=this.safe_add(r,u),a=this.safe_add(a,d),o=this.safe_add(o,h),s=this.safe_add(s,p)}return Array(i,r,a,o,s)},sha1_ft:function(e,t,n,i){return e<20?t&n|~t&i:e<40?t^n^i:e<60?t&n|t&i|n&i:t^n^i},sha1_kt:function(e){return e<20?1518500249:e<40?1859775393:e<60?-1894007588:-899497514},safe_add:function(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n},bit_rol:function(e,t){return e<<t|e>>>32-t}};n(1),n(0),n(2),n(4),n(3),n.d(t,"a",function(){return k});var U=i.b("AuthenticationControllerError",{COULD_NOT_LOG_IN_STEP:"Could not log in while processing authentication step",COULD_NOT_LOG_IN:"Could not log in to account",COULD_NOT_LOG_IN_REAUTH:"Could not log in to reauthenticate the user",TERMS_ACCEPTANCE_REQUIRED:"Terms need to be accepted",RETRIEVING_TERMS_FAILURE:"Could not get terms and conditions",ACCEPTING_TERMS_FAILURE:"Terms could not be accepted",KVS_ERROR:"Key value store error"}),k=r.a.extend(a.b,{mixinDependencies:[g.a],init:function(){var e=arguments;this.__s._$kr$init.apply(this,e),this._writeDsidCookie(),this._pollForCookieChange()},authenticationState:o.b({type:I,defaultValue:I.UNKNOWN}),cloudOSUser:o.b({type:A.a}),delegate:s.d({type:C.a}),validateUser:function(){var e=this;return Object(T.c)().then(function(t){return e._updateApplicationConfiguration(t).then(function(){return t})}).then(function(e){return A.a.fromAuthenticationDataResponse(e)}).then(function(t){t&&t.isAuthenticated?e._showTermsIfNeeded(t).then(function(){e.authenticationState=I.AUTHENTICATED,e.cloudOSUser=t,e._fetchForAuthenticatedUser(t).then(function(){e.delegate.validationDidSucceed(e,t),e._previousValidated=!0,e._writeDsidCookie()})}):(e.authenticationState=I.UNAUTHENTICATED,e.delegate.validationDidFail(e,t),e._previousValidated=!1)})},processAuthenticationStep:function(e,t,n,i,r,a){var o=this;e||c.b("[AuthenticationController] processAuthenticationStep: accountName is undefined"),t||c.b("[AuthenticationController] processAuthenticationStep: accountType is undefined"),n||c.b("[AuthenticationController] processAuthenticationStep: session is undefined"),i||c.b("[AuthenticationController] processAuthenticationStep: accountCountry is undefined"),void 0===r&&c.b("[AuthenticationController] processAuthenticationStep: authenticationStep is undefined"),void 0===a&&c.b("[AuthenticationController] processAuthenticationStep: totalAuthenticationSteps is undefined"),r>a&&c.b("[AuthenticationController] processAuthenticationStep: invalid authentication steps "+r+" of "+a),(r>2||a>2)&&c.b("[AuthenticationController] invalid authenticationStep, totalAuthenticationStep: "+r+", "+a);var s=void 0,d=S.a.configuration.urls;d||c.b("[AuthenticationController] processAuthenticationStep: No urls found");var h=d.accountLogin;if(1===r)s=Object(T.a)(h,n,i,!1).then(function(e){if(e.isOK){var t=A.a.fromAuthenticationDataResponse(e);return o._updateApplicationConfiguration(e).then(function(){return t})}if(e.httpStatusCode===l.a.FORBIDDEN&&e.error===y.b)return o.delegate.accountNeedsSetUp(o);o.delegate.authenticationDidFail(o,z(U.COULD_NOT_LOG_IN_STEP,e))}).then(function(e){if(e)return o.cloudOSUser=e,o._showTermsIfNeeded(e).then(function(){o.authenticationState=I.PARTIALLY_AUTHENTICATED,o.delegate.authenticationStepDidComplete(o,e,r,a)})});else{var p=this.cloudOSUser.details;p.completedAuthenticationStep=r,p.totalAuthenticationSteps=a,s=u.a.resolve(),this.delegate.authenticationStepDidComplete(this,this.cloudOSUser,r,a)}return s},processAuthenticationFinish:function(e,t,n,i,r,a){var o=this;n||d.a(n)||c.b("[AuthenticationController] no session provided"),d.a(n)||c.b("[AuthenticationController] session is not a hash");var s=void 0,l=this.cloudOSUser;if(l){var h=l.details;h||c.b("[AuthenticationController] processAuthenticationFinish: cloudOSUser.details is undefined"),h.completedAuthenticationStep!==h.totalAuthenticationSteps&&c.b("[AuthenticationController] processAuthenticationFinish: completedAuthenticationStep should equal totalAuthenticationSteps"),s=!(!l.isAuthenticated||r||l.termsUpdateNeeded)}else s=!1;var p=void 0;if(s)p=u.a.resolve(l);else{var f=S.a.configuration.urls;f||c.b("[AuthenticationController] processAuthenticationFinish: No urls found");var m=f.accountLogin;p=Object(T.a)(m,n,i,r,a).then(function(e){if(e.isOK){var t=A.a.fromAuthenticationDataResponse(e);return t.accountSessionStore.clear(),o._updateApplicationConfiguration(e).then(function(){return t})}o.delegate.authenticationDidFail(o,z(U.COULD_NOT_LOG_IN,e))})}p.then(function(e){e&&e.isAuthenticated&&(o.authenticationState=I.AUTHENTICATED,o.cloudOSUser=e,o._fetchForAuthenticatedUser(e).then(function(){o.delegate.authenticationDidComplete(o,e),o._writeDsidCookie(r?14:void 0)}))})},processAuthenticationError:function(e,t){this.authenticationState=I.UNAUTHENTICATED,this.delegate.authenticationDidFail(this,W(e,t))},authenticateUser:function(){this.authenticationState===I.UNAUTHENTICATED||this.authenticationState===I.UNKNOWN?(this.authenticationState=I.AUTHENTICATING,this.delegate.startAuthentication(this)):this.continueAuthentication()},continueAuthentication:function(){this.authenticationState!==I.PARTIALLY_AUTHENTICATED&&this.authenticationState!==I.AUTHENTICATING||(this.authenticationState=I.AUTHENTICATING,this.delegate.continueAuthentication(this))},cancelUserAuthenticate:function(){if(this.authenticationState===I.AUTHENTICATING){this._updateAuthenticationState();var e=this._pendingSessionRetrievePromise,t=this._pendingReauthenticatePromise;e?(this.delegate.sessionRetrieveDidComplete(this),e.resolve(b.a.create({status:v.a.CANCELED})),this._pendingSessionRetrievePromise=void 0):t?(this.delegate.sessionRetrieveDidComplete(this),t.resolve(b.a.create({status:v.a.CANCELED})),this._pendingReauthenticatePromise=void 0):this.delegate.authenticationDidCancel(this)}else h.b.warn("[AuthenticationController] Cannot cancel authentication; unexpected AuthenticationState "+this.authenticationState)},unauthenticateUser:function(e){var t=this;return(this.cloudOSUser.hsaTrustedBrowser&&!e?this.delegate.shouldTrustCredentialsOnLogout(this):u.a.resolve(b.a.create({status:v.a.SUCCESS,data:!!e&&this.cloudOSUser.hsaTrustedBrowser}))).then(function(e){if(e.isOK){var n=e.data||!1;return t.delegate.userWillUnauthenticate(t).then(function(i){return i===v.a.SUCCESS?Object(T.b)(n).then(function(n){return t._invalidateCachedAuthenticationDetails().then(function(){return e})}):b.a.create({status:i})})}return e}).then(function(e){e.isOK&&t.delegate.userDidUnauthenticate(t)})},unauthenticateUserFromAllBrowsers:function(){var e=this;return this.delegate.userWillUnauthenticate(this).then(function(t){if(t===v.a.SUCCESS)return Object(T.b)(!1,!0).then(function(t){return e._invalidateCachedAuthenticationDetails().then(function(){return t})}).then(function(t){t.isOK&&e.delegate.userDidUnauthenticate(e)})})},reauthenticateUser:function(e){if(this.authenticationState===I.PARTIALLY_AUTHENTICATED||this.authenticationState===I.AUTHENTICATED){this.authenticationState=I.AUTHENTICATING;var t=this.cloudOSUser.details,n=t.appleId,i=t.completedAuthenticationStep;return this.delegate.startSessionRetrieve(this,n,i,e),this._pendingReauthenticatePromise=u.a.create()}c.b("[AuthenticationController] Cannot reauthenticate the current user; unexpected AuthenticationState "+this.authenticationState)},performSecondaryAuth:function(e){if(this.authenticationState===I.PARTIALLY_AUTHENTICATED||this.authenticationState===I.AUTHENTICATED){var t=p.a.application.currentChildApplicationIdentifier,n=this.cloudOSUser.details.appleId,i=S.a.configuration.urls.accountLogin,r={appName:t,apple_id:n,password:e},a=u.a.create();return Object(T.a)(i,r,void 0,null).then(function(e){a.resolve(b.a.create({status:e.isOK?v.a.SUCCESS:v.a.ERROR}))}),a}c.b("[AuthenticationController] Cannot fully authenticate the current user; unexpected AuthenticationState "+this.authenticationState)},retrieveSession:function(e,t,n){if(this.authenticationState===I.PARTIALLY_AUTHENTICATED||this.authenticationState===I.AUTHENTICATED)return this.authenticationState=I.AUTHENTICATING,this.delegate.startSessionRetrieve(this,e,t,n),this._pendingSessionRetrievePromise=u.a.create();c.b("[AuthenticationController] Cannot authenticate for the given Apple ID; unexpected AuthenticationState "+this.authenticationState)},processSessionRetrieveFinish:function(e,t,n,i,r,a){var o=this;if(this.authenticationState===I.AUTHENTICATING){this._updateAuthenticationState(),this.delegate.sessionRetrieveDidComplete(this);var s=this._pendingSessionRetrievePromise,l=this._pendingReauthenticatePromise;if(s&&l&&c.b("[AuthenticationController] Both pending session retrieve and reauthenticate promise exist in processSessionRetrieveFinish"),s)s.resolve(b.a.create({status:v.a.SUCCESS,data:n})),this._pendingSessionRetrievePromise=void 0;else if(l){var u=S.a.configuration.urls.accountLogin;Object(T.a)(u,n,i,r,a).then(function(e){e.isOK?(l.resolve(b.a.create({status:v.a.SUCCESS})),o._pendingReauthenticatePromise=void 0):o.delegate.cloudOSAuthenticationDidFail(o,z(U.COULD_NOT_LOG_IN_REAUTH,e))})}else c.b("[AuthenticationController] No pending session retrieve or reauthenticate promise in processSessionRetrieveFinish")}else c.b("[AuthenticationController] Cannot unexpected AuthenticationState "+this.authenticationState+" in processSessionRetrieveFinish")},createAccount:function(){this.delegate&&this.delegate.createAccount()},createAccountCompleted:function(e){var t=this,n=S.a.configuration.urls.accountCreate;this.delegate.willFinishCreateAccountFlow(),this._showTermsForCreate(e).then(function(i){if(i)return function(e,t,n){return Object(L.a)(e,{method:"POST",body:{createPayload:t,acceptedICloudTerms:n}}).then(function(e){var t=e.status;return 0===t?D.fromError("Timeout"):e.json().then(function(e){return t===l.a.OK?D.fromSuccessResponse(e,t):D.fromErrorResponse(e,t)})})}(n,e,i).then(function(){return t.validateUser()})}).finally(function(){t.delegate.didFinishCreateAccountFlow()})},createAccountCanceled:function(){this.delegate.didCancelCreateAccountFlow()},processRepairDidStart:function(){this.authenticationState===I.UNAUTHENTICATED&&(this.authenticationState=I.AUTHENTICATING)},_updateApplicationConfiguration:function(e){var t=e.environment,n=e.applications,i=e.webServices,r=e.urls,a=e.accountCreateEnabled,o=e.trustTokens,s=e.isPCSKeyDeleted,c=e.rawResponse;return S.a.configuration.updateConfiguration(t,n,i,r,a,o,s,c)},_invalidateCachedAuthenticationDetails:function(){return this.cloudOSUser.accountSessionStore.clear(),this.authenticationState=I.UNAUTHENTICATED,this._clearDsidCookie(),E.a.sharedInstance.invalidate(),S.a.configuration.invalidateConfiguration()},_showTermsIfNeeded:function(e){var t=this,n=e.termsUpdateNeeded,i=e.countryCode;return(n?this._fetchTerms().then(function(e){return e.isOK?t._presentTerms(e.termsDetails,i):e}).then(function(e){if(e.isOK)return t._acceptTerms(e.data.iCloudTerms.version)}):u.a.resolve()).then(function(){return t._showTermsSuccessIfNeeded(n)})},_showTermsForCreate:function(e){var t=this,n=S.a.locale;return this._fetchTerms(n,e).then(function(e){return e.isOK?t._presentTerms(e.termsDetails,e.termsDetails.country):e}).then(function(e){if(e.isOK)return e.data.iCloudTerms.version})},_showTermsSuccessIfNeeded:function(e){return R.a.sharedInstance.needsTermsFlow?this.delegate.displayTermsAndConditionsSuccessConfirmation(this,e):u.a.resolve()},_fetchTerms:function(e,t){var n=this;return function(e,t,n){var i={};return t&&n&&(i.createPayload=n,i.locale=t),Object(L.a)(e,{method:M.a.POST,body:i}).then(function(e){var t=e.status;return 0!==t?e.json().then(function(e){var n=void 0;return e&&(n=200===t?x.fromSuccessResponse(e):x.fromError("Invalid authentication response code "+t)),n}):x.fromError("Terms Data Response timed out with status "+t)})}(B("getICloudTerms"),e,t).then(function(e){return e.isOK||n.delegate.authenticationDidFail(n,z(U.RETRIEVING_TERMS_FAILURE,e)),e})},_presentTerms:function(e,t){e||c.b("[AuthenticationController] No terms details specified"),t||c.b("[AuthenticationController] No account country specified");var n=this.delegate.acceptTermsAndConditions(this,e,t);if(n&&f.a(n))return n.then(function(){return b.a.create({status:v.a.SUCCESS,data:e})});c.b("[AuthenticationController] Could not display terms of service")},_acceptTerms:function(e){var t=this;return e||c.b("[AuthenticationController]] No terms version specified"),function(e,t){return Object(L.a)(e,{method:M.a.POST,body:{acceptedICloudTerms:t}}).then(function(e){var t=e.status;return 0!==t?e.json().then(function(e){if(e){var n=e.success;return 200===t&&n?b.a.create({status:v.a.SUCCESS}):b.a.create({status:v.a.ERROR})}}):b.a.create({status:v.a.ERROR})})}(B("repairDone"),e).then(function(e){e.isOK||t.delegate.authenticationDidFail(t,z(U.ACCEPTING_TERMS_FAILURE,e))})},_fetchForAuthenticatedUser:function(e){var t=this;N.a.sharedInstance.refreshMeCard();var n=E.a.sharedInstance,i=w.a.sharedInstance.configurations.toArray().map(function(e){return e.applicationInfo.authBagId});return n.initialize(i).then(function(e){if(e.isOK){var i=R.a.sharedInstance.locale,r=n.accountPreferences,a=r.locale,o=r.secondaryLocale,s=r.regionFormat,c=i||a;return o&&(S.a.secondaryLocale=o),t._startAuthenticationPolling(),O.a.sharedInstance.setCurrentLocaleAndRegionFormat(c,s)}t.delegate.authenticationDidFail(t,z(U.KVS_ERROR,e))})},_updateAuthenticationState:function(){var e=this.cloudOSUser;if(e&&e.details){var t=e.details,n=t.completedAuthenticationStep,i=t.totalAuthenticationSteps;this.authenticationState=0===n?I.UNAUTHENTICATED:n<i?I.PARTIALLY_AUTHENTICATED:I.AUTHENTICATED}else this.authenticationState=I.UNAUTHENTICATED,this.cloudOSUser=null},_startAuthenticationPolling:function(){var e=this;m.a(function(){Object(T.c)().then(function(){return e._startAuthenticationPolling()})},84e4)},_previousDsidCookie:"",_previousValidated:!1,_cookieIntervalToken:-1,_writeDsidCookie:function(e){var t=this.cloudOSUser,n=this.authenticationState;if(t&&n!==I.UNKNOWN&&n!==I.UNAUTHENTICATED){var i=t.details,r=i.dsid,a=i.accountType,o=void 0;n===I.UNAUTHENTICATED?o=0:n===I.PARTIALLY_AUTHENTICATED||n===I.AUTHENTICATING?o=a===_.a.HSA1.value||a===_.a.HSA2.value?1:a===_.a.MANAGED.value?3:0:n===I.AUTHENTICATED&&(o=2);var s=""+r+o,c=V.hex_sha1(s),l={domain:j.a.sharedInstance.current.domain};void 0!==e&&(l.expires=e),F.set("X-APPLE-WEB-ID",c,l),this._previousDsidCookie=c}},_clearDsidCookie:function(){var e=j.a.sharedInstance.current.domain;F.remove("X-APPLE-WEB-ID",{domain:e}),this._previousDsidCookie=void 0},_getDsidCookie:function(){return F.get("X-APPLE-WEB-ID")},_getValidateCookie:function(){return F.get("X-APPLE-WEBAUTH-VALIDATE")},_pollForCookieChangeValidateUserPromise:null,_pollForCookieChange:function(){var e=this;this._stopPollingForCookieChange(),this._previousDsidCookie=this._getDsidCookie(),this._previousValidated=!!this._getValidateCookie(),this._cookieIntervalToken=m.a(function(){var t=e._getDsidCookie(),n=!!e._getValidateCookie();t===e._previousDsidCookie&&n===e._previousValidated||(e._previousValidated&&e.authenticationState===I.AUTHENTICATED&&(e._invalidateCachedAuthenticationDetails(),e.delegate.userDidUnauthenticate(e)),!n||!t||e.authenticationState!==I.UNAUTHENTICATED)?e._pollForCookieChange():e._pollForCookieChangeValidateUserPromise=e.validateUser().then(function(){return e._pollForCookieChange()},function(){return e._pollForCookieChange()})},1e3)},_stopPollingForCookieChange:function(){var e=this._cookieIntervalToken;-1!==e&&(clearTimeout(e),this._cookieIntervalToken=-1)},__superMap:{_$kr$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"AuthenticationController"}});function B(e){e||c.b("[AuthenticationController] no configuration urlKey specified");var t=S.a.configuration.urls;t||c.b("[AuthenticationController] getUrlFromConfiguration: No urls found");var n=t[e];return n||c.b("[AuthenticationController] getUrlFromConfiguration: URL ["+e+"] not found"),n}function z(e,t){return W(e,t&&t.hasMixin(v.b)?t.error:void 0)}function W(e,t){var n={errorType:e.name,message:e.value};return t&&(n.info=t),n}},function(e,t,n){},function(e,t,n){"use strict";var i=n(80);i.b(i.c(),{"CrashReporter.PrivacyPolicy.URL":"https://www.apple.com/mx/privacy/","CrashReporter.Privacy":"Al hacer clic en “Enviar a Apple”, aceptas que Apple recopile y use esta información como parte de sus servicios de asistencia y con el fin de mejorar sus productos y servicios. Este informe incluirá información personal, como tus datos y nombre de usuario. Para obtener más información sobre la política de privacidad de Apple, consulta ","CrashReporter.Heading":"%{appName} ha dejado de responder.","CrashReporter.CreateRadar":"Crear un Radar","CrashReporter.Details":"Detalles","CrashReporter.Title":"Un error ha provocado que esta aplicación no funcione correctamente. Ayúdanos a mejorar los productos Apple enviándonos tus datos de uso y diagnóstico de %{appName}.","CrashReporter.Close":"Cerrar","CrashReporter.SendToApple":"Enviar a Apple"})},function(e,t,n){"use strict";(function(e){n(3),n.d(t,"a",function(){return f});var i=n(818),r=n(81),a=n(866),o=n(905),s=n(819),c=n(869),l=n(572),u=n(11),d=n(571),h=n(404),p=n(299),f=i.a.extend({staticMembers:{sharedInstance:r.d({type:f,readOnly:!0,get:function(){var e=this._parametersSharedInstance;return e||(e=this._parametersSharedInstance=f.create(a.a.create(u.a.location),!1)),e}}),_parametersSharedInstance:r.d({type:f}),__QUALIFIED_CLASS_NAME__:"CloudOSParameters"},applicationUrl:r.d({type:a.a,readOnly:!0,get:function(){return this._applicationParametersUrl}}),isDebug:r.d({type:Boolean,readOnly:!0,defaultValue:!1,get:function(){return this._isDebugMode}}),applicationIdentifier:r.d({readOnly:!0,type:String,get:function(){var e=this._applicationParameter.applicationIdentifier;if(this._isDeveloperMode){var t=this.applicationUrl.queryObject;t&&t.appIdentifier&&(e=t.appIdentifier)}return e}}),setChildApplication:function(e,t,n){var i=e.applicationRelativePath;this.pushHistoryState(e,t,n,i)},pushHistoryState:function(e,t,n,i,r){var a=this.applicationUrl.query;u.a.pushHistoryState(e,t,n,i,a,r),this._update()},replaceHistoryState:function(e,t,n,i,r){var a=this.applicationUrl.query;u.a.replaceHistoryState(e,t,n,i,a,r),this._update()},relativePath:r.d({readOnly:!0,type:String,get:function(){return this._applicationParameter.relativePath}}),shortGuid:r.d({type:String,readOnly:!0,get:function(){var e=void 0;if(this._isDeveloperMode){var t=this.applicationUrl.queryObject;t&&t.shortGuid&&(e=t.shortGuid)}else e=this._applicationParameter.shortGuid;return e}}),showApps:r.d({type:Array,readOnly:!0,get:function(){var e=this.applicationUrl.getPath("queryObject.showApps"),t=void 0;if(e){var n=Array.isArray(e)?e:[e];t=new Array;var i=n,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var s;if(r){if(a>=i.length)break;s=i[a++]}else{if((a=i.next()).done)break;s=a.value}var c=s.split(":"),l=c[0],u=c[1];o.a(l)||t.push({identifier:l,generation:parseInt(u,10)||void 0})}o.a(t)&&(t=void 0)}return t}}),locale:r.d({type:String,readOnly:!0,get:function(){var e=void 0,t=this.applicationUrl.queryObject;return t&&(e=t.locale),e}}),port:r.d({type:Number,readOnly:!0,get:function(){var e=void 0;if(this._isDeveloperMode){var t=this.applicationUrl.queryObject;t&&t.port&&(e=t.port)}return e}}),enableAuthorization:r.d({type:Boolean,readOnly:!0,get:function(){var e=!0,t=this.applicationUrl.queryObject;return t&&void 0!==t.enableAuthorization&&!1===t.enableAuthorization&&(e=!1),e}}),showEnvironmentInfo:r.d({type:Boolean,readOnly:!0,get:function(){var e=!0,t=this.applicationUrl.queryObject;return t&&void 0!==t.showEnvironmentInfo&&!1===t.showEnvironmentInfo&&(e=!1),e}}),banner:r.d({type:String,readOnly:!0,get:function(){var e=this.isDebug,t=this.applicationUrl;if(e)return t.getPath("queryObject.banner")}}),delegate:r.d({type:d.a}),redirectedFromCarry:r.d({type:Boolean,readOnly:!0,get:function(){var e=this.applicationUrl.queryObject;return e&&!1===e.carry}}),postLoginRedirectUrl:r.d({type:String,readOnly:!0,get:function(){var e=this.applicationUrl,t=e.hash.indexOf("postLoginRedirectUrl="),n=e.hash.substring(t+"postLoginRedirectUrl=".length);return-1!==t?decodeURIComponent(n):""}}),isInCulDeSacMode:r.d({type:Boolean,readOnly:!0,get:function(){return this._applicationParameter.isInCulDeSacMode}}),isSignupRequested:r.d({type:String,readOnly:!0,get:function(){var e=this.applicationUrl.hash;return/[#&]signup(&.*)?$/.test(e)}}),vettingParameters:r.d({type:h.a,readOnly:!0,get:function(){var e=this.applicationUrl.path,t=void 0;if(e){var n=e.split("/");n[1]===h.b&&((t=h.a.create()).vettingToken=n[2],t.vettingStatus=n[3])}return t}}),needsTermsFlow:r.d({get:function(){return this._needsTermsFlow}}),needsGameCenterTermsFlow:r.d({get:function(){return this._needsGameCenterTermsFlow}}),init:function(e,t){this.__s._$4s6$init.call(this),e||s.b("CloudOSParameters: init: no application url specified"),this._applicationParametersUrl=e,this._applicationParameter=new l.a(e),this._isDebugMode=t,this._registerEventListeners(),this._detectTermsConfirmationFlow(e)},isOnSupportedMouseDeviceWithWarningMode:r.d({type:Boolean,get:function(){return this._applicationParameter.isOnSupportedMouseDeviceWithWarningMode()}}),isOnSupportedTouchDeviceWithWarningMode:r.d({type:Boolean,get:function(){return this._applicationParameter.isOnSupportedTouchDeviceWithWarningMode()}}),_isDeveloperMode:r.d({type:Boolean,get:function(){var e=!1,t=this.isDebug,n=this.applicationUrl;if(t){var i=n.queryObject;i&&i.developerMode&&!0===i.developerMode&&(e=!0)}return e}}),_applicationParametersUrl:r.d({type:a.a}),_isDebugMode:r.d({type:Boolean}),_applicationParameter:r.d({type:Object}),_registerEventListeners:function(){var t=this,n=function(){return t._update()};c.a(e,"popstate",n),c.a(e,"hashchange",n)},_detectTermsConfirmationFlow:function(e){var t=Object(p.a)(e.path);if(!t.length){var n=e.hash||"";t=Object(p.a)("#"===n[0]?n.slice(1):n)}var i=this._needsTermsFlow="terms"===t[0];this._needsGameCenterTermsFlow=i&&"gc"===t[1]},_update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:u.a.location;if(a.a.create(e).href!==this._applicationParametersUrl.href){this._updateApplicationParameter(e);var t=this.delegate;t&&t.parametersDidChange(this)}},_updateApplicationParameter:function(e){var t=a.a.create(e);this._applicationParametersUrl=t,this._applicationParameter=new l.a(t)},__superMap:{_$4s6$init:"init"}})}).call(this,n(31))},function(e,t,n){"use strict";(function(e){n(4),n(3),n.d(t,"a",function(){return E}),n.d(t,"d",function(){return L}),n.d(t,"c",function(){return N}),n.d(t,"b",function(){return M});var i=n(818),r=n(78),a=n(905),o=n(819),s=n(81),c=n(86),l=n(98),u=n(878),d=n(832),h=n(821),p=n(831),f=n(833),m=n(863),g=n(828),b=n(1044),v=n(1045),_=n(1093),y=n(1078),C=n(1079),I=n(236),w=n(49),S=n(11),A=n(26),O=n(237),E=i.a.extend(r.b,{staticMembers:{createFromDynamicallyLoadedInfoJSON:function(e,t){a.a(e)&&o.b("Auth bag id is required");var n=E.create({authBagId:e});return T(n,t,!0),n},__QUALIFIED_CLASS_NAME__:"ChildApplicationInfo"},authBagId:s.d({type:String}),applicationName:s.d({type:String,defaultValue:function(){return this.authBagId}}),path:s.d({type:String}),radarComponentId:s.d({type:Number}),shouldRedirectForDocument:s.d({type:Boolean,defaultValue:!1}),generation:s.d({type:Number,defaultValue:1}),configuration:s.d({type:w.a}),requiredServices:s.d({type:Array}),supportedDeviceTypes:s.d({type:Array,defaultValue:c.c([b.a.PHONE,b.a.TABLET,b.a.DESKTOP])}),supportedDevices:s.d({type:Array,defaultValue:function(){return[{primaryInteractionMode:v.a.MOUSE,sizeClass:_.a.REGULAR},{primaryInteractionMode:v.a.MOUSE,sizeClass:_.a.COMPACT},{primaryInteractionMode:v.a.TOUCH,sizeClass:_.a.REGULAR},{primaryInteractionMode:v.a.TOUCH,sizeClass:_.a.COMPACT}]}}),availableFromDomains:s.d({type:Array}),supportedSizeClasses:s.d({type:Array,defaultValue:c.c([_.a.REGULAR,_.a.COMPACT])}),supportedSubDomains:s.d({type:Array}),supportedFileExtensions:s.d({type:Array}),supportedLocales:s.d({type:Array}),additionalSupportedLocales:s.d({type:Array}),applicationIconUrl1x:l.b({type:String}),applicationIconUrl2x:l.b({type:String}),applicationIconUrl3x:l.b({type:String}),notificationIconUrl1x:l.b({type:String}),notificationIconUrl2x:s.d({type:String}),notificationIconUrl3x:s.d({type:String}),usesLegacyCloudOSProtocol:s.d({type:Boolean,defaultValue:!1}),isDynamicallyLoaded:s.d({type:Boolean,defaultValue:!1}),isHidden:s.d({type:Boolean,defaultValue:!1}),areRequiredServicesEnabled:l.b({dependencies:["missingRequiredServices"],type:Boolean,readOnly:!0,get:Object.assign(function(){var e=!1;return this.missingRequiredServices&&(e=0===this.missingRequiredServices.length),e},{__CW__getter:function(e,t,n,i){var r=!1;return i.internalGet(this,t[0+n])&&(r=0===i.internalGet(this,t[0+n]).length),r}})}),missingRequiredServices:l.b({type:Array}),shouldPreloadCoreTypes:s.d({type:Boolean,defaultValue:!1}),allowsUnauthenticatedMode:s.d({type:Boolean,defaultValue:!1}),allowsOneFactorAuthenticationMode:s.d({type:Boolean,defaultValue:!1}),allowsiCloudLiteAccounts:s.d({type:Boolean,defaultValue:!1}),allowsMAIDAccounts:s.d({type:Boolean,defaultValue:!0}),allowsPhoneNumberAsAppleId:s.d({type:Boolean,defaultValue:!0}),hasUIForAcceptedSharesOnMobile:s.d({type:Boolean,defaultValue:!1}),isUsingCloudOSPreferencesAPI:s.d({type:Boolean,defaultValue:!1}),isPCSRequired:s.d({type:Boolean,defaultValue:!1}),pushTopic:s.d({type:String}),shouldShowPushNotifications:s.d({type:Boolean,defaultValue:!1}),shouldAwakeInBackgroundFromPush:s.d({type:Boolean,defaultValue:!1}),shareAcceptanceInfo:s.d({type:Object}),cloudKitInfo:s.d({type:I.a}),iconUrlForCurrentDPR:l.b({dependencies:["applicationIconUrl1x","applicationIconUrl2x","applicationIconUrl3x"],type:String,readOnly:!0,get:function(){var e=u.a.sharedInstance.devicePixelRatio,t=this.applicationIconUrl1x,n=this.applicationIconUrl2x,i=this.applicationIconUrl3x,r=void 0;return e>2&&i?r=i:e>1&&n?r=n:t&&(r=t),r}}),updateFromInfoJSON:function(e){d.a(e)||o.b("A infoJSON object is required"),T(this,e,this.isDynamicallyLoaded)}});function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=y.a.subDomains,r=i.WWW,s=i.BETA,c=i.FUTURE,l=i.CARRY,u=["requiredServices","supportedFileExtensions","isHidden","isPCSRequired","pushTopic","supportedLocales","additionalSupportedLocales","radarComponentId"],g={requiresAuth:function(t){return e.allowsUnauthenticatedMode=!t},isWWW:function(t){return D(e,r,t)},isBeta:function(t){return D(e,s,t)},isFuture:function(t){return D(e,c,t)},isCarry:function(t){return D(e,l,t)},shareInfo:"shareAcceptanceInfo",isQualifiedForBeta:h.a,preloadCoreTypes:"shouldPreloadCoreTypes",supportsLite:"allowsiCloudLiteAccounts",hasPreferences:"isUsingCloudOSPreferencesAPI",showsPushNotifications:"shouldShowPushNotifications",awakesInBackgroundFromPush:"shouldAwakeInBackgroundFromPush",supportsMAID:"allowsMAIDAccounts",supportsPhoneNumberBasedAppleId:"allowsPhoneNumberAsAppleId",canLaunchWithOneFactor:"allowsOneFactorAuthenticationMode"},b=["displayName","titleName","localized"];b.push.apply(b,u),b.push.apply(b,Object.keys(g)),function(e,t){d.a(e)||o.b("An infoJSON object is required");var n=Object.keys(e),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var s=a;t.includes(s)||m.b.warn("Unknown key "+s+" found in infoJSON")}}(t,b);var v=u,_=Array.isArray(v),I=0;for(v=_?v:v[Symbol.iterator]();;){var w;if(_){if(I>=v.length)break;w=v[I++]}else{if((I=v.next()).done)break;w=I.value}var O=w;t.hasOwnProperty(O)&&(e[O]=t[O])}var E=Object.entries(g),T=Array.isArray(E),L=0;for(E=T?E:E[Symbol.iterator]();;){var N;if(T){if(L>=E.length)break;N=E[L++]}else{if((L=E.next()).done)break;N=L.value}var M=N,P=M[0],x=M[1];t.hasOwnProperty(P)&&(p.a(x)?x(t[P]):f.a(x)?e[x]=t[P]:o.b("Unknown type "+x+" when processng info.json"))}if(a.a(e.path)&&(e.path=e.authBagId),n){var R=A.a.sharedInstance.port,j=S.a.protocol,F=S.a.locale,V=S.a.deviceType,U=y.a.sharedInstance.current.domain;a.a(e.supportedSubDomains)&&o.b("Dynamic Applications must have at least one supported subdomain"),e.supportedSubDomains.length>1&&o.b("Dynamic Applications can only define one supported subdomain");var k=e.supportedSubDomains[0]+"."+U;e.isDynamicallyLoaded=!0,e.usesLegacyCloudOSProtocol=!0,e.supportedDeviceTypes=[V],e.applicationIconUrl1x=Object(S.b)(j,k,F,e.path,R,"icon.png"),e.applicationIconUrl2x=Object(S.b)(j,k,F,e.path,R,"icon@2x.png")}var B=[];if(!a.a(e.requiredServices)){var z=e.requiredServices,W=Array.isArray(z),H=0;for(z=W?z:z[Symbol.iterator]();;){var $;if(W){if(H>=z.length)break;$=z[H++]}else{if((H=z.next()).done)break;$=H.value}var G=$;Object(C.b)(G)&&Object(C.c)(G)||B.push(G)}}e.missingRequiredServices=B}function D(e,t,n){e.supportedSubDomains||(e.supportedSubDomains=new Array);var i=e.supportedSubDomains;if(n)i.includes(t)||i.push(t);else{var r=i.indexOf(t);-1!==r&&i.splice(r,1)}}function L(e,t){switch(f.a(e)&&!a.a(e)||o.b("a subdomain string is required"),d.a(t)||o.b("A infoJSON object is required"),delete t.isWWW,delete t.isCarry,delete t.isBeta,delete t.isFuture,e){case y.a.subDomains.WWW:t.isWWW=!0;break;case y.a.subDomains.BETA:t.isBeta=!0;break;case y.a.subDomains.CARRY:t.isCarry=!0;break;case y.a.subDomains.FUTURE:t.isFuture=!0;break;default:o.b("Unknown subdomain "+e)}}function N(t){g.a(t,E)||o.b("A valid ChildApplicatiohInfo instance is required");var n=M(t),i=void 0;if(!a.a(n)){var r=S.a.protocol,s=S.a.subDomain,c=A.a.sharedInstance.port,l=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e;g.a(t,E)||o.b("A valid ChildApplicatiohInfo instance is required");var i=S.a.locale,r=S.a.secondaryLocale,s=S.a.childApplicationSupportedLocales,c=Object(O.a)(n),l=new Set,u=new Set,d=function(e,t){return e.add(Object(O.d)(t))},h=function(e,t){return t.forEach(function(t){return d(e,t)})},p=void 0,f=A.a.sharedInstance.locale;f&&d(l,f),d(l,i),r&&d(l,r),c.size>0&&h(l,c),d(l,"en-us"),a.a(t.supportedLocales)?h(u,s):h(u,t.supportedLocales),a.a(t.additionalSupportedLocales)||h(u,t.additionalSupportedLocales);var m=l,b=Array.isArray(m),v=0;for(m=b?m:m[Symbol.iterator]();;){var _;if(b){if(v>=m.length)break;_=m[v++]}else{if((v=m.next()).done)break;_=v.value}var y=_;if(u.has(y)){p=y;break}}return p}(t),u=A.a.sharedInstance.relativePath;i=Object(S.b)(r,n,l,t.path,c,"index.html",s,u)}return i}function M(e){g.a(e,E)||o.b("A valid ChildApplicatiohInfo instance is required");var t=y.a.sharedInstance.current,n=t.subdomain,i=t.domain,r=void 0,a=S.a.getFallbackOrderForSubDomain(n),s=Array.isArray(a),c=0;for(a=s?a:a[Symbol.iterator]();;){var l;if(s){if(c>=a.length)break;l=a[c++]}else{if((c=a.next()).done)break;l=c.value}var u=l;if(e.supportedSubDomains.includes(u)){r=u+"."+i;break}}return r}}).call(this,n(31))},function(e,t,n){},function(e,t,n){"use strict";n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"a",function(){return D});var i=n(818),r=n(78),a=n(847),o=n(81),s=n(819),c=n(889),l=n(828),u=n(863),d=n(80),h=n(86),p=n(1042),f=n(1045),m=n(1067),g=n(1058),b=n(23),v=n(26),_=n(245),y=n(204),C=n(27),I=n(587),w=n(577),S=n(186),A=n(36),O=n(11),E=n(49),T=n(146),D=i.a.extend({mixinDependencies:[r.b,a.a,I.a],currentChildApplicationIdentifier:o.d({readOnly:!0,type:String,get:function(){var e=this._currentChildApplicationInfo;if(this._currentChildApplicationInfo)return e.configuration.identifier}}),currentChildApplicationInfo:o.d({readOnly:!0,type:String,get:function(){return this._currentChildApplicationInfo}}),switchToApplication:function(e,t){if(!e)throw new s.a("switchToApplication missing applicationIdentifier");var n=A.a.sharedInstance,i=b.a.sharedInstance,r=n.getApplicationInfo(e),a=r.configuration,o=r.missingRequiredServices,l=v.a.sharedInstance,u=l.shortGuid,d=l.applicationIdentifier;if(u&&d===e&&r.shouldRedirectForDocument){var h=this.getChildApplicationController(r);h||s.b("Unable to launch "+r.configuration.identifier+". No ChildApplicationController exists."),this.delegate.redirectChildApplicationForDocument(h,u)}else if(this.canLaunchChildApplication(r)){var p=y.a.create({launchSource:t});this.launchChildApplication(r,p)}else o&&c.a(o,["mail"])?this.delegate.showAlertForUnavailableMailService(a):a.isLocked&&a.lockType===E.b.LOCKED_PCS_DELETED?this.delegate.showAlertForLockedApplication(a):(v.a.sharedInstance.pushHistoryState({},a.titleName,e,""),i.authenticateUser())},cancelCurrentLoadingApplication:function(){this._cancelCurrentlyLoadingChildApplicationIfExists()},setTitle:function(e,t){var n=e.authBagId,i=this.currentChildApplicationInfo;i&&n===i.authBagId&&(O.a.title=t),this.updateApplicationTitle(n,t)},updateApplicationTitle:function(e,t){var n=A.a.sharedInstance.getApplicationInfoByAuthBagId(e);this.getChildApplicationController(n).currentTitleName=t},pushHistoryState:function(e,t,n,i){var r=e.authBagId,a={applicationAuthBagId:r,applicationHistoryState:t,applicationRelativePath:i,applicationTitleName:n},o=this.currentChildApplicationInfo,s=this.currentChildApplicationIdentifier;o&&r===o.authBagId&&v.a.sharedInstance.pushHistoryState(a,n,s,i),this.updateApplicationHistoryState(a)},replaceHistoryState:function(e,t,n,i){var r=e.authBagId,a={applicationAuthBagId:r,applicationHistoryState:t,applicationRelativePath:i,applicationTitleName:n},o=this.currentChildApplicationInfo,s=this.currentChildApplicationIdentifier;o&&r===o.authBagId&&v.a.sharedInstance.replaceHistoryState(a,n,s,i),this.updateApplicationHistoryState(a)},updateApplicationHistoryState:function(e){var t=A.a.sharedInstance.getApplicationInfoByAuthBagId(e.applicationAuthBagId),n=this.getChildApplicationController(t);n.currentHistoryState=e;var i=e.applicationTitleName;i&&(n.currentTitleName=i)},maximumNumberOfRemoteInstances:o.d({readOnly:!0,type:Number,get:function(){return p.a.sharedInstance.primaryInteractionMode===f.a.TOUCH?3:5}}),delegate:o.d({type:w.a}),canLaunchChildApplication:function(e){var t=b.a.getPath("sharedInstance.cloudOSUser.details"),n=v.a.sharedInstance.shortGuid,i=!1;l.a(e,C.a)||s.b("The application info parameter must be an instance of ChildApplicationInfo");var r=e.configuration;if(!r.isHidden&&!r.isLocked&&!r.isDisabled)if(e.allowsUnauthenticatedMode&&n)i=!0;else if(t){var a=t.completedAuthenticationStep;a===t.totalAuthenticationSteps?i=!0:a>0&&(i=e.allowsOneFactorAuthenticationMode&&!t.isiCloudLiteAccount)}return i},launchChildApplication:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y.a.create(),n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:m.a.ACTIVE_FOREGROUND;this.delegate||s.b("A delegate instance implementing the ChildApplicationsControllerDelegateProtocol is required"),l.a(e,C.a)||s.b("The application info parameter must be an instance of ChildApplicationInfo"),l.a(t,y.a)||s.b("The application context parameter must be an instance of ChildApplicationContext"),Object(m.c)(n,m.a.BACKGROUND,m.a.INACTIVE_FOREGROUND,m.a.ACTIVE_FOREGROUND)||s.b("The target ui state parameter must be an instance of UIState and does not support UIState.NONE"),this.canLaunchChildApplication(e)||s.b("Child application "+e.configuration.identifier+" does not have permissions to be launched. Use the canLaunchChildApplication API prior to executing this method.");var i=this.getChildApplicationController(e);i||s.b("Unable to launch "+e.configuration.identifier+". No ChildApplicationController exists.");var r=v.a.sharedInstance,a=r.relativePath,o=r.shortGuid,c=r.applicationIdentifier,u=Object(C.c)(e);this._cancelCurrentlyLoadingChildApplicationIfExists();var d=S.a.sharedInstance,h=d.currentShareRecord;h&&d.clearShare(),t.launchUrl=u,t.relativePath=a,t.shareRecord=h,t.targetUIStateWhenLaunched=n,c===e.configuration.identifier&&(t.shortGuid=o);var p=i.launchRemoteApplicationWithContext(t);Object(g.c)(p.remoteInstanceState,g.a.RUNNING)?(this.delegate.showChildApplicationRemoteViewController(i),this._currentChildApplicationIdentifier=i.applicationConfiguration.identifier):this.delegate.insertChildApplicationRemoteViewController(i),this._addControllerToRemoteInstancesArray(i),this._pruneControllersWithRemoteInstancesArrayAsNeeded()},terminateChildApplication:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];l.a(e,_.a)||s.b("A ChildApplicationController instance is required");var n=!1;if(this._controllersWithRemoteInstances.includes(e)){var i=e.remoteApplicationViewController.remoteInstanceIsReadyToTerminate;(t||i)&&(this._removeControllerFromRemoteInstancesArray(e),L(e)&&this.delegate.redirectToHomeScreen(),n=!0)}return n},reloadChildApplications:function(){var e=this._controllersWithRemoteInstances;this._pruneControllersWithRemoteInstancesArrayAsNeeded(1);var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r,o=Object(C.c)(a.applicationInfo);a.reloadRemoteApplication(o,!0)}},reloadChildApplication:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!1;if(this._controllersWithRemoteInstances.includes(e)){var i=Object(C.c)(e.applicationInfo);n=e.reloadRemoteApplication(i,t)}return n},getChildApplicationController:function(e){l.a(e,C.a)||s.b("The application info parameter must be an instance of ChildApplicationInfo");var t=this._applicationControllers;if(!t.has(e.configuration)){var n=_.a.create(e.configuration,this);t.set(e.configuration,n)}return t.get(e.configuration)},hasChildApplicationWithUnsavedChanges:function(){var e=this._controllersWithRemoteInstances,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var r=i;if(!r.applicationIsReadyToTerminate)return r}},childApplicationIsLoadingSlowly:function(e){var t=e.applicationConfiguration.identifier;u.b.debug("ChildApplicationsController.childApplicationDidFinishLaunching("+t+")"),this.delegate||s.b("A delegate instance implementing the ChildApplicationsControllerDelegateProtocol is required"),this.delegate.showChildApplicationSlowLoadingBanner(e)},childApplicationDidFinishLaunching:function(e){var t=e.remoteApplicationViewController,n=e.applicationConfiguration.identifier;u.b.debug("ChildApplicationsController.childApplicationDidFinishLaunching("+n+")"),this.delegate||s.b("A delegate instance implementing the ChildApplicationsControllerDelegateProtocol is required"),e.isActiveForeground?t.isPresentedViewController?t.transitionRemoteInstanceToActiveForeground():(this.delegate.showChildApplicationRemoteViewController(e),this._currentChildApplicationIdentifier=e.applicationConfiguration.identifier):(u.b.debug("Child Application ("+n+") is launched but is no longer the primary application for display."),t.transitionRemoteInstanceToBackground())},childApplicationDidTerminate:function(e,t,n){if(u.b.debug("ChildApplicationsController.childApplicationDidTerminate("+e.applicationConfiguration.identifier+")"),this.delegate||s.b("A delegate instance implementing the ChildApplicationsControllerDelegateProtocol is required"),t===T.a.USER_INITIATED||t===T.a.DISCONNECTED)L(e)&&this.delegate.redirectToHomeScreen();else if(t===T.a.TIMEOUT||t===T.a.LAUNCH_DEPENDENCY_UNAVAILABLE){if(Object(m.c)(e.applicationContext.targetUIStateWhenLaunched,m.a.ACTIVE_FOREGROUND)){var i=n.title,r=n.subtitle,a=e.applicationConfiguration;i||(i=d.d("Error.AppNotLoading.Title",{appName:a.displayName}),r=d.d("Error.AppNotLoading.Description")),this.delegate.showChildApplicationErrorViewController(e,i,r)}}else if(t===T.a.PCS_REQUIRED){var o=e.applicationInfo.configuration.displayName;this.delegate.showChildApplicationErrorViewController(e,d.d("Error.AppPCSRequired.Title",{applicationName:o}),d.d("Error.AppPCSRequired.Description"))}else this.delegate.showChildApplicationDidFatalErrorDialog(e,t,n);this._removeControllerFromRemoteInstancesArray(e)},_currentChildApplicationIdentifier:o.d({type:String,set:function(e){var t=v.a.sharedInstance,n=A.a.sharedInstance,i=void 0,r=void 0,a=void 0,o={};if(e&&(i=n.getApplicationInfo(e),o=(r=this.getChildApplicationController(i)).currentHistoryState,a=r.currentTitleName),e!==t.applicationIdentifier)t.setChildApplication(o,a,e);else{var s=o.applicationRelativePath;t.replaceHistoryState(o,a,e,s)}return this._currentChildApplicationInfo=i,e}}),_currentChildApplicationInfo:o.d({type:C.a}),_controllersWithRemoteInstances:o.d({type:Array,defaultValue:h.c(Array)}),_applicationControllers:o.d({readOnly:!0,defaultValue:h.c(Map)}),_cancelCurrentlyLoadingChildApplicationIfExists:function(){if(this._controllersWithRemoteInstances.length){var e=this._controllersWithRemoteInstances[0];e.isLoading&&this._removeControllerFromRemoteInstancesArray(e)}},_addControllerToRemoteInstancesArray:function(e){var t=this._controllersWithRemoteInstances;t.includes(e)&&this._removeControllerFromRemoteInstancesArray(e,!1),t.unshift(e)},_removeControllerFromRemoteInstancesArray:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=this._controllersWithRemoteInstances;if(!n.includes(e)){var i=e.applicationConfiguration.identifier;s.b("Can not remove a controller that is not in the remote instances array ("+i+")")}var r=n.indexOf(e);n.splice(r,1),t&&e.clearForReuse()},_pruneControllersWithRemoteInstancesArrayAsNeeded:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.maximumNumberOfRemoteInstances,t=this._controllersWithRemoteInstances;if(t.length>e){var n=t.slice(e),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a,s=o.remoteApplicationViewController,c=s.isPresentedViewController;s.remoteInstanceIsReadyToTerminate&&!c&&this._removeControllerFromRemoteInstancesArray(o)}}},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildApplicationsController"}});function L(e){return l.a(e,_.a)||s.b("A ChildApplicationController instance is required"),D.sharedInstance.currentChildApplicationIdentifier===e.applicationConfiguration.identifier}},function(e,t,n){var i=n(37);e.exports=function(e){if(!i(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){},function(e,t,n){"use strict";var i=n(818),r=n(78),a=n(81),o=n(98),s=n(87),c=n(819),l=n(905),u=n(89),d=n(86),h=n(100),p=n(836),f=n(828),m=n(832),g=n(863),b=n(1078),v=n(409),_=n(49),y=n(27),C=n(159),I=n(910),w=n(1045),S=n(1042),A=n(1044),O=n(1093),E=n(1092),T=n(53),D=(n(4),n(3),y.a.extend({helpButtonConfigs:a.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(T.b)("mm6b1aa045")}]}})}).create({authBagId:"find",path:"find",generation:1,usesLegacyCloudOSProtocol:!0,requiredServices:["findme"],supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT},{primaryInteractionMode:w.a.TOUCH,sizeClass:O.a.REGULAR}],supportedSubDomains:[b.a.subDomains.WWW,b.a.subDomains.CARRY],allowsOneFactorAuthenticationMode:!0,shouldShowPushNotifications:!0,shouldAwakeInBackgroundFromPush:!0,applicationIconUrl1x:n(470),applicationIconUrl2x:n(471),radarComponentId:413287})),L=y.a.extend({helpButtonConfigs:a.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(T.b)("mm6b1aa045")}]}})}).create({authBagId:"find",path:"find-my-iphone",applicationName:"find-my-iphone",generation:2,requiredServices:["findme"],supportedDevices:[{primaryInteractionMode:w.a.TOUCH,sizeClass:O.a.COMPACT}],supportedSubDomains:[b.a.subDomains.WWW,b.a.subDomains.CARRY],allowsOneFactorAuthenticationMode:!0,applicationIconUrl1x:n(470),applicationIconUrl2x:n(471),radarComponentId:990584}),N=_.a.extend({_setApplicationInfoForConfiguration:function(e,t,n){var i=this,r=void 0,a=n.showApps;if(a&&a.find(function(e){return e.identifier===i.identifier}))r=e;else{var o=S.a.sharedInstance.deviceType,s=E.a.sharedInstance,c=s.sizeClassHorizontal,l=s.sizeClassVertical,u=c===O.a.REGULAR&&l===O.a.REGULAR;r=o===A.a.DESKTOP||u?D:L}return I.a(this,"_applicationInfo",r),h.a.resolve()}}).create({identifier:"find",displayNameLocKey:"FMIP.DisplayName",titleNameLocKey:"FMIP.TitleName",generations:[D,L],defaultGenerationToPreload:D}),M=(n(4),n(3),y.a.extend({helpButtonConfigs:a.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(T.b)("mm6b1a17e3")}]}})}).create({authBagId:"mail",path:"mail",generation:1,usesLegacyCloudOSProtocol:!0,requiredServices:["mail"],supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT},{primaryInteractionMode:w.a.TOUCH,sizeClass:O.a.REGULAR}],supportedSubDomains:[b.a.subDomains.WWW,b.a.subDomains.CARRY],pushTopic:"e850b097b840ef10ce5a7ed95b171058c42cc435",shouldShowPushNotifications:!0,shouldAwakeInBackgroundFromPush:!0,allowsPhoneNumberAsAppleId:!1,applicationIconUrl1x:n(472),applicationIconUrl2x:n(473),applicationIconUrl3x:n(474),radarComponentId:437728})),P=y.a.extend({helpButtonConfigs:a.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(T.b)("mm6b1a17e3")}]}})}).create({authBagId:"mail2",path:"mail2",generation:2,requiredServices:["ckdatabasews"],supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT},{primaryInteractionMode:w.a.TOUCH,sizeClass:O.a.REGULAR}],supportedSubDomains:[b.a.subDomains.WWW,b.a.subDomains.BETA,b.a.subDomains.CARRY,b.a.subDomains.FUTURE],allowsPhoneNumberAsAppleId:!1,radarComponentId:437728,applicationIconUrl1x:n(472),applicationIconUrl2x:n(473),applicationIconUrl3x:n(474)}),x=_.a.create({identifier:"mail",displayNameLocKey:"Mail.DisplayName",titleNameLocKey:"Mail.TitleName",generations:[M,P],defaultGenerationToPreload:M}),R=n(408),j=n(586),F=(n(4),n(3),y.a.create({authBagId:"schoolwork2",path:"schoolwork2",generation:2,supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT},{primaryInteractionMode:w.a.TOUCH,sizeClass:O.a.REGULAR}],supportedSubDomains:[b.a.subDomains.FUTURE],allowsUnauthenticatedMode:!0,applicationIconUrl1x:n(468),applicationIconUrl2x:n(469),radarComponentId:689048})),V=_.a.create({identifier:"schoolwork2",displayNameLocKey:"Schoolwork.DisplayName",generation:F}),U=n(120),k=(n(4),n(3),y.a.extend({helpButtonConfigs:a.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(T.b)("mma80b9fcb56")}]}})}).create({authBagId:"fmf",path:"fmf",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT},{primaryInteractionMode:w.a.TOUCH,sizeClass:O.a.REGULAR}],supportedSubDomains:[b.a.subDomains.WWW,b.a.subDomains.CARRY],applicationIconUrl1x:n(914),applicationIconUrl2x:n(915),radarComponentId:618206})),B=_.a.create({identifier:"fmf",displayNameLocKey:"FMF.DisplayName",titleNameLocKey:"FMF.TitleName",generation:k}),z=n(238),W=n(239),H=n(240),$=n(128),G=n(129),K=(n(4),n(3),y.a.extend({helpButtonConfigs:a.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(T.b)("mmfba7481b")}]}})}).create({authBagId:"contacts",path:"contacts",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT},{primaryInteractionMode:w.a.TOUCH,sizeClass:O.a.REGULAR}],supportedSubDomains:[b.a.subDomains.WWW,b.a.subDomains.CARRY],allowsiCloudLiteAccounts:!0,applicationIconUrl1x:n(911),applicationIconUrl2x:n(912),applicationIconUrl3x:n(913),radarComponentId:421464,pushTopic:"73f7bfc9253abaaa423eba9a48e9f187994b7bd9"})),Q=_.a.create({identifier:"contacts",displayNameLocKey:"Contacts.DisplayName",titleNameLocKey:"Contacts.TitleName",generation:K}),q=n(11),Y={name:"news",svgPath:"M 101.758 -14.7949 L 37.793 -78.7598 C 35.9863 -80.5664 34.9121 -81.0059 32.5684 -81.0059 L 20.6055 -81.0059 C 17.6758 -81.0059 15.8203 -80.7617 14.2578 -79.1992 C 12.6465 -77.5879 12.4512 -75.5371 12.4512 -72.8516 L 12.4512 -60.8887 C 12.4512 -58.4961 12.9395 -57.373 14.6973 -55.6641 L 78.6621 8.30078 C 80.4688 10.1074 81.5918 10.5469 83.8867 10.5469 L 95.8496 10.5469 C 98.7793 10.5469 100.635 10.3027 102.197 8.74023 C 103.809 7.12891 104.004 5.07812 104.004 2.39258 L 104.004 -9.57031 C 104.004 -11.9629 103.516 -13.0859 101.758 -14.7949 Z M 102.49 -40.4297 C 102.686 -40.0391 102.93 -39.8926 103.271 -39.8926 C 103.613 -39.8926 103.955 -40.1855 103.955 -40.7227 L 103.955 -72.8516 C 103.955 -75.5371 103.76 -77.5879 102.148 -79.1992 C 100.586 -80.7617 98.7305 -81.0059 95.8008 -81.0059 L 63.6719 -81.0059 C 63.1348 -81.0059 62.793 -80.7129 62.793 -80.3223 C 62.793 -80.0293 62.9883 -79.7363 63.3789 -79.5898 C 81.8848 -70.1172 93.0664 -58.9355 102.49 -40.4297 Z M 13.8672 -30.0293 C 13.7207 -30.4199 13.4277 -30.5664 13.1348 -30.5664 C 12.7441 -30.5664 12.4512 -30.2734 12.4512 -29.7363 L 12.4512 2.39258 C 12.4512 5.07812 12.6465 7.12891 14.2578 8.74023 C 15.8203 10.3027 17.6758 10.5469 20.6055 10.5469 L 52.7344 10.5469 C 53.2715 10.5469 53.5645 10.2539 53.5645 9.86328 C 53.5645 9.57031 53.418 9.27734 53.0273 9.13086 C 34.5215 -0.341797 23.3398 -11.5234 13.8672 -30.0293 Z",layoutBox:{viewBox:"0 0 212.646728515625 159.98291015625",width:212.646728515625,height:159.98291015625,translateX:48.09576904296864,translateY:115.221435546875,baseline:115.221435546875,capline:44.761474609375},glyphBox:{viewBox:"0 0 91.5528564453125 91.5537109375",width:91.5528564453125,height:91.5537109375,translateX:-12.45116699218761,translateY:81.0068359375,baseline:81.0068359375,capline:10.546875}},X=(n(4),n(3),y.a.extend({helpButtonConfigs:a.d({readOnly:!0,type:Array,get:function(){return[{externalURL:(e=q.a.locale,"https://help.apple.com/newspublisher/icloud/"+("en-us"===e.toLowerCase()?"":"?lang="+e))},{externalURL:"https://developer.apple.com/news-publisher/",title:"Newspublisher.ResourcesTitle",symbolMetadata:Y}];var e}})}).create({authBagId:"newspublisher",path:"newspublisher",usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT}],supportedSubDomains:[b.a.subDomains.WWW],availableFromDomains:[b.a.subDomains.WWW],supportedLocales:["en-us"],isUsingCloudOSPreferencesAPI:!0,allowsiCloudLiteAccounts:!0,allowsMAIDAccounts:!1,applicationIconUrl1x:n(918),applicationIconUrl2x:n(919),radarComponentId:662718})),J=_.a.create({identifier:"newspublisher",displayName:"News Publisher",titleName:"iCloud - News Publisher",generation:X}),Z=(n(4),n(3),y.a.create({authBagId:"excel",path:"excel",usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT}],supportedSubDomains:[b.a.subDomains.FUTURE],isHidden:!0})),ee=_.a.create({identifier:"excel",displayName:"Excel",generation:Z}),te=(n(4),n(3),y.a.create({authBagId:"powerpoint",path:"powerpoint",usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT}],supportedSubDomains:[b.a.subDomains.FUTURE],isHidden:!0})),ne=_.a.create({identifier:"powerpoint",displayName:"Powerpoint",generation:te}),ie=(n(4),n(3),y.a.create({authBagId:"word",path:"word",usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.REGULAR},{primaryInteractionMode:w.a.MOUSE,sizeClass:O.a.COMPACT}],supportedSubDomains:[b.a.subDomains.FUTURE],isHidden:!0})),re=_.a.create({identifier:"word",displayName:"Word",generation:ie}),ae=(n(4),n(3),[C.a,Q,U.a,ee,B,N,z.a,x,J,R.a,W.a,H.a,j.a,ne,$.a,V,G.a,re]),oe=n(26);n(4),n(3),n.d(t,"a",function(){return se});var se=i.a.extend(r.b,{staticMembers:{sharedInstance:a.d({type:se,readOnly:!0,get:function(){var e=this._sharedInstance;return e||(e=this._sharedInstance=se.create()),e}}),_sharedInstance:a.d({type:se}),__QUALIFIED_CLASS_NAME__:"ChildApplicationManager"},displayOrder:o.b({readOnly:!0,binding:s.c("_displayOrder")}),configurations:o.b({readOnly:!0,binding:s.c("_configurations")}),initialize:function(){return this._addConfigurations(ae),this._initializeHasBeenCalled=!0,this.update()},update:function(){var e=this;if(this._initializeHasBeenCalled||c.b("The manager method initialize() must be called before performing updates"),this._updatePromise)return this._updatePromise;var t=oe.a.sharedInstance,n=q.a.configuration.applications;return this._updatePromise=this._loadDynamicApplicationsIfNeeded(n,t).then(function(){return e._updateConfigurations()}).then(function(){return e._updateDisplayOrder(n,t)}).then(function(){return e._updatePromise=void 0}),this._updatePromise},getConfiguration:function(e){l.a(e)&&c.b("A non-empty string is required.");var t=this._configurations,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;if(a.identifier===e)return a}return null},getApplicationInfo:function(e){l.a(e)&&c.b("A non-empty string is required.");var t=this._configurations,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;if(a.identifier===e)return a.applicationInfo}return null},getApplicationInfoByAuthBagId:function(e){l.a(e)&&c.b("A non-empty string is required.");var t=this._configurations,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r.getApplicationInfoGenerationByAuthBagId(e);if(a)return a}return null},_loadingOfDynamicApplicationsIsSupported:a.d({readOnly:!0,defaultValue:!0}),_displayOrder:o.b({type:u.b,defaultValue:d.c(u.b)}),_configurations:o.b({type:u.b,defaultValue:d.c(u.b)}),_initializeHasBeenCalled:o.b({type:Boolean,defaultValue:!1}),_updatePromise:a.d({type:h.a}),_addConfigurations:function(e){p.a(e)&&!l.a(e)||c.b("The childApplicationConfigurations must be an array containing at least one ChildApplicationConfiguration instance"),this._configurations.beginBatchedChanges();var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;this._addConfiguration(a)}this._configurations.endBatchedChanges()},_addConfiguration:function(e){f.a(e,_.a)||c.b("Invalid application configuration passed "+e),this.getConfiguration(e.identifier)&&c.b("A ChildApplicationConfiguration with identifier "+e.identifier+" already registered"),this._configurations.push(e)},_updateConfigurations:function(){var e=this._configurations,t=new Array,n=e,i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a;t.push(o.update())}return h.a.all(t)},_updateDisplayOrder:function(e,t){var n=this._displayOrder,i=this._configurations,r=new Set;if(e){var a=e,o=Array.isArray(a),s=0;for(a=o?a:a[Symbol.iterator]();;){var c;if(o){if(s>=a.length)break;c=a[s++]}else{if((s=a.next()).done)break;c=s.value}var l=c.name,u=this.getApplicationInfoByAuthBagId(l);u&&!u.configuration.isHidden&&r.add(u.configuration)}var d=i,h=Array.isArray(d),p=0;for(d=h?d:d[Symbol.iterator]();;){var f;if(h){if(p>=d.length)break;f=d[p++]}else{if((p=d.next()).done)break;f=p.value}var m=f;m.applicationInfo.isDynamicallyLoaded&&!m.isHidden&&r.add(m)}}n.beginBatchedChanges(),n.clear(),n.appendArrays(Array.from(r)),n.endBatchedChanges()},_loadDynamicApplicationsIfNeeded:function(e,t){if(!this._loadingOfDynamicApplicationsIsSupported)return h.a.resolve();var n=new Set,i=new Map,r=t.applicationIdentifier,a=t.showApps;if(r&&!this.getConfiguration(r)&&(n.add(r),i.set(r,!0)),a){var o=a,s=Array.isArray(o),l=0;for(o=s?o:o[Symbol.iterator]();;){var u;if(s){if(l>=o.length)break;u=o[l++]}else{if((l=o.next()).done)break;u=l.value}var d=u,p=d.identifier,f=d.generation;this.getConfiguration(p)||(f&&1!==f&&c.b("Dynamically loaded app '"+p+"' specifies an invalid generation '"+f+"' in showApps query param"),n.add(p),i.set(p,!0))}}if(e){var m=e.filter(function(e){return!e.setupInfo.isHidden}).map(function(e){return e.name}),g=Array.isArray(m),b=0;for(m=g?m:m[Symbol.iterator]();;){var v;if(g){if(b>=m.length)break;v=m[b++]}else{if((b=m.next()).done)break;v=b.value}var _=v;this.getApplicationInfoByAuthBagId(_)||n.add(_)}}if(n.size){var y=new Array,C=n,I=Array.isArray(C),w=0;for(C=I?C:C[Symbol.iterator]();;){var S;if(I){if(w>=C.length)break;S=C[w++]}else{if((w=C.next()).done)break;S=w.value}var A=S;y.push(this._fetchDynamicApplicationAndCreateConfiguration(A,t,i.get(A)))}return h.a.all(y)}return h.a.resolve()},_fetchDynamicApplicationAndCreateConfiguration:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];l.a(e)&&c.b("Invalid identifier passed");var r=b.a.sharedInstance.current.subdomain,a=q.a.getFallbackOrderForSubDomain(r).entries();return this._iterateAndFetchDynamicApplicationInfoJSON(e,a,t,i).then(function(t){m.a(t)&&n._addConfiguration(_.a.createDynamicallyLoadedApplication(e,t))})},_iterateAndFetchDynamicApplicationInfoJSON:function(e,t,n,i){var r=this,a=arguments,o=t.next();if(o.done)return i&&c.b("Unable to load dynamic application '"+e+"'"),g.b.warn("Unable to fetch dynamic application '"+e+"'"),h.a.resolve();var s=n.port,l=q.a.protocol,u=b.a.sharedInstance.current.domain,d=o.value[1],p=d+"."+u,f=Object(q.c)(l,p,e,s)+"info.json";return this._fetchDynamicApplicationInfoJSON(e,f).then(function(e){return m.a(e)?(Object(y.d)(d,e),e):r._iterateAndFetchDynamicApplicationInfoJSON.apply(r,a)})},_fetchDynamicApplicationInfoJSON:function(e,t){return Object(v.a)(t).then(function(e){if(e.ok)return e.json()})}})},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){"use strict";n.d(t,"c",function(){return o}),n.d(t,"e",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"f",function(){return l}),n.d(t,"i",function(){return u}),n.d(t,"h",function(){return d}),n.d(t,"a",function(){return f}),n.d(t,"b",function(){return m}),n.d(t,"g",function(){return g});var i=n(207),r=(n(13),"fade-transition-in"),a="fade-transition-out";function o(e,t){return Object(i.a)(e,r,a,t)}function s(e,t){return o(e.element,t)}function c(e,t){return Object(i.a)(e,a,r,t)}function l(e,t){return c(e.element,t)}function u(e){var t=e.classList;t.remove(r),t.remove(a)}function d(e){u(e.element)}var h="fade-and-scale-transition-in",p="fade-and-scale-transition-out";function f(e,t){return Object(i.a)(e.element,h,p,t)}function m(e,t){return Object(i.a)(e.element,p,h,t)}function g(e){var t=e.element.classList;t.remove(h),t.remove(p)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a});var i=n(95),r=Object(i.b)("VerticalAlignment",function(e){e("Top"),e("Middle"),e("Bottom")}),a=Object(i.b)("HorizontalAlignment",function(e){e("Left"),e("Middle"),e("Right")})},function(e,t,n){var i=n(211)("wks"),r=n(163),a=n(32).Symbol,o="function"==typeof a;(e.exports=function(e){return i[e]||(i[e]=o&&a[e]||(o?a:r)("Symbol."+e))}).store=i},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n(4),n(3),n.d(t,"b",function(){return O}),n.d(t,"a",function(){return D});var i=n(80),r=n(95),a=n(818),o=n(78),s=n(81),c=n(905),l=n(98),u=n(87),d=n(832),h=n(819),p=n(836),f=n(837),m=n(86),g=n(910),b=n(100),v=n(828),_=n(1092),y=n(1093),C=n(27),I=n(26),w=n(11),S=n(23),A=i.a.sharedInstance.bindingFor("locale"),O=r.b("LockType",{LOCKED_HSA:"LOCKED_HSA",LOCKED_PCS_DELETED:"LOCKED_PCS_DELETED"}),E=r.b("IsHiddenReason",{APPLICATION_INFO_SPECIFIED_IS_HIDDEN:"APPLICATION INFO SPECIFIED IS HIDDEN",NO_SUPPORTED_APPLICATION_INFO_SUBDOMAIN:"NO SUPPORTED APPLICATION INFO SUBDOMAIN",APPLICATION_INFO_DOES_NOT_SUPPORT_DEVICE_TYPE:"APPLICATION INFO DOES NOT SUPPORT DEVICE TYPE",APPLICATION_INFO_DOES_NOT_SUPPORT_SIZE_CLASS:"APPLICATION INFO DOES NOT SUPPORT SIZE CLASS",APPLICATION_INFO_DOES_NOT_SUPPORT_DEVICE:"APPLICATION INFO DOES NOT SUPPORT DEVICE",APPLICATION_INFO_DOES_NOT_SUPPORT_LITE_ACCOUNT_TYPE:"APPLICATION INFO DOES NOT SUPPORT LITE ACCOUNT TYPE",APPLICATION_INFO_DOES_NOT_SUPPORT_MAID_ACCOUNT_TYPE:"APPLICATION INFO DOES NOT SUPPORT MAID ACCOUNT TYPE",APPLICATION_INFO_DOES_NOT_SUPPORT_MAKO_ACCOUNT_TYPE:"APPLICATION INFO DOES NOT SUPPORT MAKO ACCOUNT TYPE"}),T=r.b("IsDisabledReason",{APPLICATION_INFO_REQUIRED_SERVICES_NOT_ENABLED:"ONE OR MORE APPLICATION INFO REQUIRED SERVICES ARE NOT ENABLED"}),D=a.a.extend(o.b,{staticMembers:{createDynamicallyLoadedApplication:function(e,t){var n=C.a.createFromDynamicallyLoadedInfoJSON(e,t);return this.create({identifier:e,displayName:t.displayName,titleName:t.titleName,_localizedValuesForDynamicApplication:t.localized,generation:n})},__QUALIFIED_CLASS_NAME__:"ChildApplicationConfiguration"},identifier:s.d({type:String}),titleOrDisplayName:s.d({readOnly:!0,get:function(){var e=this.titleName,t=this.displayName;return c.a(e)?t:e}}),displayName:l.b({dependencies:[A],readOnly:!0,get:function(){return N(this,"displayName")}}),titleName:l.b({dependencies:[A],readOnly:!0,get:function(){return N(this,"titleName")}}),generations:s.d({readOnly:!0,type:Array,cacheable:!1,get:function(){return Object.freeze(this._generations)}}),applicationInfo:l.b({readOnly:!0,type:C.a,binding:u.c("_applicationInfo")}),isHidden:l.b({readOnly:!0,type:Boolean,binding:u.c("_isHidden")}),isLocked:l.b({dependencies:["_lockType"],readOnly:!0,type:Boolean,get:Object.assign(function(){return!!this._lockType},{__CW__getter:function(e,t,n,i){return!!i.internalGet(this,t[0+n])}})}),missingRequiredServices:l.b({readOnly:!0,type:Array,binding:u.c("_missingRequiredServices")}),isDisabled:l.b({readOnly:!0,type:Boolean,binding:u.c("_isDisabled")}),lockType:l.b({type:O,readOnly:!0,dependencies:["_lockType"],get:Object.assign(function(){return this._lockType},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])}})}),init:function(e){var t=arguments;d.a(e)||h.b("A initialization hash is required");var n=void 0,i=void 0,r=void 0,a=void 0,o=void 0,s=void 0,l=e.generation;l?(e.generations&&h.b("Both generations and generation were defined. Please include only one."),n=[l],i=l,delete e.generation):(n=e.generations,i=e.defaultGenerationToPreload,p.a(n)&&!c.a(n)||h.b("The generations property must be an array containing at least one ChildApplicationInfo instance"),1===n.length&&(i=n[0]),i||h.b("A defaultGenerationToPreload is required when including generations in opts"),delete e.generations,delete e.defaultGenerationToPreload),e.displayName&&e.displayNameLocKey&&h.b("Specifying a displayName and displayNameLocKey is not allowed"),e.displayName&&(r=e.displayName,delete e.displayName),e.displayNameLocKey&&(a=e.displayNameLocKey,delete e.displayNameLocKey),e.titleName&&e.titleNameLocKey&&h.b("Specifying a titleName and titleNameLocKey is not allowed"),e.titleName&&(o=e.titleName,delete e.titleName),e.titleNameLocKey&&(s=e.titleNameLocKey,delete e.titleNameLocKey),this.__s._$3nE$init.apply(this,t);var u=new Map,f=n,m=Array.isArray(f),g=0;for(f=m?f:f[Symbol.iterator]();;){var b;if(m){if(g>=f.length)break;b=f[g++]}else{if((g=f.next()).done)break;b=g.value}var v=b;L(v),u.has(v.generation)&&h.b("invalid options generations array contains two or more ApplicationInfo instances with the same generation id"),u.set(v.generation,!0),v.configuration=this,this._generations.push(v)}this._applicationInfo=i,this._defaultApplicationInfo=i,this._displayName=r,this._displayNameLocKey=a,this._titleName=o,this._titleNameLocKey=s,c.a(this.identifier)&&h.b("An identifier is required"),c.a(this.displayName)&&h.b("A display name is required")},getApplicationInfoGenerationByAuthBagId:function(e){c.a(e)&&h.b("A non-empty string is required.");var t=this._generations,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;if(a.authBagId===e)return a}return null},getApplicationInfoGeneration:function(e){f.a(e)||h.b("A numeric generationId is required");var t=this._generations,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;if(a.generation===e)return a}return null},update:function(){var e=this,t=I.a.sharedInstance,n=w.a.configuration.applications,i=this._defaultApplicationInfo,r=!1;if(n){var a=new Array,o=n,s=Array.isArray(o),l=0;for(o=s?o:o[Symbol.iterator]();;){var u;if(s){if(l>=o.length)break;u=o[l++]}else{if((l=o.next()).done)break;u=l.value}var d=u,p=d.name,m=this.getApplicationInfoGenerationByAuthBagId(p);m&&(m.updateFromInfoJSON(d.setupInfo),a.push(m))}a.length>1&&h.b("auth bag returned information for multiple generations"),c.a(a)||(i=a[0])}if(t){var g=t.applicationIdentifier,b=t.showApps,v=b&&b.find(function(t){return t.identifier===e.identifier});if(v){var _=v.generation;if(!f.a(_)&&this._generations.length>1&&h.b("Invalid showApps query entry, a generation must be specified for '"+this.identifier+"'"),f.a(_)){var y=this.getApplicationInfoGeneration(_);y||h.b("Invalid showApps query entry, '"+this.identifier+"' does not define generation: "+_),i=y}}(g===this.identifier||v)&&(r=!0)}return this._setApplicationInfoForConfiguration(i,n,t).then(function(){var t=e._applicationInfo,n=S.a.getPath("sharedInstance.cloudOSUser.details"),i=void 0;t.updateFromInfoJSON({}),e._computeConfigurationIsHiddenPropertyValue(t,n,r),n&&!t.areRequiredServicesEnabled&&(e._isDisabled=!0,e._reasonConfigurationIsDisabled=T.APPLICATION_INFO_REQUIRED_SERVICES_NOT_ENABLED,e._missingRequiredServices=t.missingRequiredServices),w.a.configuration.isPCSKeyDeleted&&t.isPCSRequired&&(i=O.LOCKED_PCS_DELETED),n&&n.completedAuthenticationStep&&(t.allowsOneFactorAuthenticationMode||n.isAuthenticated||(i=O.LOCKED_HSA)),e._lockType=i})},_displayNameLocKey:s.d({type:String}),_displayName:s.d({type:String}),_titleNameLocKey:s.d({type:String}),_titleName:s.d({type:String}),_localizedValuesForDynamicApplication:s.d({type:Object}),_applicationInfo:l.b({type:C.a}),_lockType:l.b({type:O}),_defaultApplicationInfo:s.d({type:C.a}),_generations:s.d({type:Array,defaultValue:m.c(Array)}),_isHidden:l.b({type:Boolean,defaultValue:!1}),_isDisabled:l.b({type:Boolean,defaultValue:!1}),_missingRequiredServices:l.b({type:Array,defaultValue:[]}),_reasonConfigurationIsHidden:s.d({type:E}),_reasonConfigurationIsDisabled:s.d({type:T}),_computeConfigurationIsHiddenPropertyValue:function(e,t,n){var i=w.a.deviceType,r=w.a.subDomain,a=_.a.sharedInstance,o=a.sizeClassHorizontal,s=a.sizeClassVertical,l=o===y.a.REGULAR&&s===y.a.REGULAR;if(!function(e){var t=w.a.primaryInteractionMode,n=_.a.sharedInstance,i=n.sizeClassHorizontal,r=n.sizeClassVertical,a=y.a.COMPACT;i===y.a.REGULAR&&r===y.a.REGULAR&&(a=y.a.REGULAR);for(var o=e.supportedDevices,s=0;s<o.length;s++){var c=o[s];if(c.primaryInteractionMode===t&&c.sizeClass===a)return!0}return!1}(e))return this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.APPLICATION_INFO_DOES_NOT_SUPPORT_DEVICE);if(!e.supportedDeviceTypes.includes(i))return this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.APPLICATION_INFO_DOES_NOT_SUPPORT_DEVICE_TYPE);var u=l?y.a.REGULAR:y.a.COMPACT;if(!e.supportedSizeClasses.includes(u))return this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.APPLICATION_INFO_DOES_NOT_SUPPORT_SIZE_CLASS);if(c.a(Object(C.b)(e)))return this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.NO_SUPPORTED_APPLICATION_INFO_SUBDOMAIN);if(t){if(t.isiCloudLiteAccount&&!e.allowsiCloudLiteAccounts)return this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.APPLICATION_INFO_DOES_NOT_SUPPORT_LITE_ACCOUNT_TYPE);if(t.isMAIDAccount&&!e.allowsMAIDAccounts)return this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.APPLICATION_INFO_DOES_NOT_SUPPORT_MAID_ACCOUNT_TYPE);if(t.hasPhoneNumberAsAppleId&&!e.allowsPhoneNumberAsAppleId)return this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.APPLICATION_INFO_DOES_NOT_SUPPORT_MAKO_ACCOUNT_TYPE)}return n?(this._isHidden=!1,void(this._reasonConfigurationIsHidden=void 0)):e.availableFromDomains&&!e.availableFromDomains.includes(r)?(this._isHidden=!0,void(this._reasonConfigurationIsHidden=E.APPLICATION_INFO_SPECIFIED_IS_HIDDEN)):(this._isHidden=e.isHidden,void(this._reasonConfigurationIsHidden=e.isHidden?E.APPLICATION_INFO_SPECIFIED_IS_HIDDEN:void 0))},_setApplicationInfoForConfiguration:function(e,t,n){return g.a(this,"_applicationInfo",e),b.a.resolve()},__superMap:{_$3nE$init:"init"}});function L(e){var t="A valid ChildApplicationInfo instance is required";v.a(e,C.a)||h.b(t),(c.a(e.authBagId)||c.a(e.path))&&h.b(t),(!e.generation||e.generation<1)&&h.b(t),c.a(e.supportedDevices)&&h.b(t),c.a(e.supportedSubDomains)&&h.b(t),e.path.includes("/")&&h.b('ChildApplicationInfo.path should not contain "/"')}function N(e,t){var n=e.applicationInfo,r=e._localizedValuesForDynamicApplication,a=e["_"+t],o=e["_"+t+"LocKey"],s=void 0;if(n.isDynamicallyLoaded){var l=w.a.locale;s=d.a(r)&&d.a(r[t])&&r[t][l]?r[t][l]:a}else s=c.a(o)?a:i.d(o);return s}},function(e,t,n){var i=n(117),r=Math.min;e.exports=function(e){return e>0?r(i(e),9007199254740991):0}},function(e,t,n){"use strict";var i=n(1157),r=n(81),a=n(819),o=n(1082),s=n(410),c=n(23),l=(n(3),o.a.extend({appName:r.d({type:String,readOnly:!0}),init:function(e,t,n,i){this.__s._$FG$init.call(this,t,n,i),e||a.b("[CloudOSReportingURLConnection] No app name specified"),this._appName=e},dsid:r.d({type:String,readOnly:!0,get:function(){var e=void 0,t=c.a.sharedInstance;if(t){var n=t.cloudOSUser;n&&n.details&&(e=n.details.dsid)}return e}}),recordStat:function(e,t,n,i){s.a.sharedInstance.recordStat(this._applicationInfo,e,t,n,i)},_applicationInfo:r.d({type:Object,readOnly:!0,get:function(){return{appName:this.appName,masteringNumber:this.masteringNumber,buildNumber:this.buildNumber}}}),__superMap:{_$FG$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSReportingURLConnection"}})),u=n(11);function d(e,t){var n=u.a.clientId,i=u.a.masteringNumber,r=u.a.buildNumber;return(t=t||{}).credentials="include",l.create("cloudos2",n,i,r).fetch(e,t)}function h(e,t){return i.a.create().fetch(e,t)}n(3),n.d(t,"a",function(){return d}),n.d(t,"b",function(){return h})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return c});var i=n(95),r=n(818),a=n(81),o=n(27),s=i.b("NotificationType",{PUSH:"PUSH",ALARM:"ALARM"}),c=r.a.extend({notificationType:a.d({type:s}),applicationInfo:a.d({type:o.a}),applicationIdentifier:a.d({readOnly:!0,type:String,get:function(){var e=this.applicationInfo;if(e)return e.configuration.identifier}}),notificationObject:a.d({type:Object}),isDismissable:a.d({type:Boolean,defaultValue:!0}),omitWhenActive:a.d({type:Boolean,defaultValue:!0}),init:function(e,t,n,i,r){this.__s._$Zv$init.call(this),this._notificationType=e,this._applicationInfo=t,this._notificationObject=n,this._isDismissable=void 0===i||!!i,this._omitWhenActive=void 0===r||!!r},__superMap:{_$Zv$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Notification"}})},function(e,t,n){"use strict";n(1),n(0),n(2),n(4),n(3),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n(23),r=n(11),a="https://help.apple.com",o="icloudwebonly",s="icloud",c="https://support.apple.com/";function l(e){var t=r.a.locale,n=void 0,c=i.a.sharedInstance.cloudOSUser,l=c?c.details:void 0,u=!!l&&l.isiCloudLiteAccount;return n=(n=a+"/"+(u?o:s))+"/"+("en-us"===t.toLowerCase()?"":"?lang="+t),e&&(n=n+"#"+e),n}function u(e){var t=r.a.locale,n=c,i="";"en-us"!==t.toLowerCase()&&(i=t+"/");var a=void 0;return e&&(a=e+"/"),""+n+i+a}},function(e,t,n){e.exports=!n(34)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){var i=n(30),r=n(432),a=n(121),o=Object.defineProperty;t.f=n(54)?Object.defineProperty:function(e,t,n){if(i(e),t=a(t,!0),i(n),r)try{return o(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r}),n.d(t,"g",function(){return a}),n.d(t,"e",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"c",function(){return l});var i={PARSE_ERROR:-32700,INVALID_REQUEST:-32600,METHOD_NOT_FOUND:-32601,INVALID_PARAMS:-32602,INTERNAL_ERROR:-32603},r=function(e,t,n){this.message=e,this.code=t,this.data=n};r.prototype=Object.create(Error.prototype),r.prototype.constructor=r;var a=function(e){this.code=i.PARSE_ERROR,this.name="Parse error",this.message=e};a.prototype=Object.create(r.prototype),a.prototype.constructor=a;var o=function(e){this.code=i.INVALID_REQUEST,this.name="Invalid request",this.message=e};o.prototype=Object.create(r.prototype),o.prototype.constructor=o;var s=function(e){this.code=i.METHOD_NOT_FOUND,this.name="Method not found",this.message=e};s.prototype=Object.create(r.prototype),s.prototype.constructor=s;var c=function(e){this.code=i.INVALID_PARAMS,this.name="Invalid params",this.message=e};c.prototype=Object.create(r.prototype),c.prototype.constructor=c;var l=function(e){this.code=i.INTERNAL_ERROR,this.name="Internal error",this.message=e};l.prototype=Object.create(r.prototype),l.prototype.constructor=l},function(e,t,n){var i=n(122);e.exports=function(e){return Object(i(e))}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(852),r=n(202),a={appName:"",localizedAppName:"",buildInfo:"",radarComponentID:"",radarTitle:"",isAppleInternal:!1,isSendingStatsEnabled:!1,flushInterval:6e4,sessionID:i.a(),primaryInteractionMode:r.a.MOUSE}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(95),r=Object(i.b)("SelectionOperations",function(e){e("TOGGLE"),e("EXTEND"),e("SET"),e("ADD"),e("REMOVE")})},function(e,t,n){},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";n.d(t,"c",function(){return h}),n.d(t,"a",function(){return p}),n.d(t,"b",function(){return m});var i=n(839),r=n(821),a=n(196),o=n(828),s=n(181),c=n(78),l=n(98);function u(e,t){for(var n=i.a;t.parent;)n=e._getNodeHandler(t).generateLookupFunction(t,n),t=t.parent;return n}function d(e,t){return t(e)}function h(e,t,n,i){var s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:r.a,h=t.name,p=e.prototype,f="_"+h+"OutletObserver",m=p.getMetadataByType(c.d),g=void 0,b=void 0,v=void 0;if(m.hasOwnProperty(f)){var _=m[f];g=_.transforms,b=_.paths,v=_.sideEffects}else{g=[],b=[],v=[];var y="_render"+h+"Outlet";p[y]=function(e){for(var t=b.length,n=this.element,i=[],r=0;r<t;r++)i[r]=d(n,b[r]);(this[y]=function(e){for(var n=0;n<t;n++){var r=g[n].call(this,i[n],e);r&&(i[n]=r),v[n].call(this,r,e)}}).call(this,e)};var C=Object(a.a)(h)[0];Object(o.a)(p.getMetadata(C),l.a)||(i||(i={}),i.outletProperty=!0,p.registerMetadata(C,l.a.define(i)));var I=function(e){this[y](e)};I.displayName=h+" template outlet observer";var w=Object(c.h)({inputs:[h],callback:I});w.transforms=g,w.paths=b,w.sideEffects=v,p.registerMetadata(f,w),e._outletWasRegistered(C)}var S=t.attributes;if(S){var A=S.signal;A&&p.registerMetadata(A,Object(c.h)(f,r.a))}g.push(n),v.push(s),b.push(u(e,t))}function p(e){if(e.hasOwnProperty("validvalues")){var t=Object(s.a)(e.validvalues);return function(e){if(t[e])return e}}if(e.hasOwnProperty("truevalue")){var n=e.truevalue;if(e.hasOwnProperty("falsevalue")){var i=e.falsevalue;return function(e){return e?n:i}}return function(e){if(e)return n}}return f}var f=function(e){return e};function m(e,t,n){var i=u(e,n);e.prototype.registerMetadata(t,Object(l.b)({readOnly:!0,dependencies:["element"],get:Object.assign(function(){return d(this.element,i)},{__CW__getter:function(e,t,n,r){return d(r.internalGet(this,t[0+n]),i)}})}))}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});var i=n(84),r=n(824),a=n(832),o={DEFAULT:0,FORCE_FIRE:1,SKIP_FIRE:2},s=i.a.extend(r.a,{didFire:!1,_fireState:!1,previousValues:null,context:null,type:"",initFromPool:function(e){e&&Object(a.a)(e)&&(this.type=e.type||"",this.didFire=e.didFire||!1,this.forceFire=e.forceFire||!1,this.previousValues=e.previousValues||null,this.context=e.context||null,this._fireState=e._fireState||o.DEFAULT)},staticMembers:{__QUALIFIED_CLASS_NAME__:"SignalEvent"}})},function(e,t,n){"use strict";var i=n(818),r=n(78),a=n(80),o=n(81),s=n(819),c=n(100),l=n(1094),u=n(928),d=n(929).a.extend({message:"INVALID_URL_ERROR",pattern:/[a-zA-Z0-9]{1,256}:\/\/[a-zA-Z0-9\-./]{1,256}/i,staticMembers:{__QUALIFIED_CLASS_NAME__:"URLValidator"}}),h=i.a.extend(u.a,{urlString:o.d({defaultValue:"",validators:[d]}),requestProperties:{},staticMembers:{__QUALIFIED_CLASS_NAME__:"HostInfo"}}),p=n(409),f=n(1078),m=n(1085),g=n(1090),b=n(1088),v=n(11),_=n(828),y=n(299),C=i.a.extend({staticMembers:{sharedInstance:o.d({type:C,readOnly:!0,get:function(){var e=this._fileResourcesSharedInstance;if(!e){var t=n.p;e=this._fileResourcesSharedInstance=C.create(t)}return e}}),initialize:function(e){C._fileResourcesSharedInstance&&s.b("FileResources: initialize: An file resources was already set"),_.a(e,C)||s.b("File reources must be an instance of FileResources"),C._fileResourcesSharedInstance=e},_fileResourcesSharedInstance:o.d({type:C}),__QUALIFIED_CLASS_NAME__:"FileResources"},publicPath:o.d({type:String}),rootContentPath:o.d({type:String}),init:function(e){this.__s._$jU$init.call(this),e||s.b("No public path specified");var t=Object(y.a)(e);(!t||t.length<2)&&s.b("Could not normalize public path "+e),this.publicPath=t.join("/"),this.rootContentPath=t.slice(0,t.length-1).join("/")},__superMap:{_$jU$init:"init"}});n(4),n(3),n.d(t,"a",function(){return I});var I=i.a.extend(r.b,m.a,{staticMembers:{createSharedInstance:function(){return I.create(f.a.sharedInstance,a.c())},__QUALIFIED_CLASS_NAME__:"LocalizationController"},regionFormatRulesVersion:5,regionFormatterLocaleMap:{no:"nb","no-NO":"nb-NO","iw-IL":"he-IL","vi-VI":"vi","zh-CN":"zh-Hans-CN","zh-TW":"zh-Hant-TW","zh-Hant-CN":"zh-Hant"},localeOrRegionFormatChanged:r.i(),regionFormatBaseUrl:o.d({type:String,readOnly:!0,get:function(){var e=this.domainManager.current.domain;return e||s.b("Region Formatter: No domain"),"https://www."+e+"/locales/"}}),regionFormattingRules:o.d({type:String,readOnly:!0,get:function(){return this._cachedFormattingRules}}),domainManager:o.d({type:f.a,readOnly:!0}),init:function(e,t){this.__s._$19n$init.call(this),e||s.b("[LocalizationController] No domain manager specified"),this._domainManager=e,t&&(this._previousLocaleAndRegionFormat={locale:t,regionFormat:void 0}),l.a.localeMap=this.regionFormatterLocaleMap},setCurrentLocaleAndRegionFormat:function(e,t){var n=this;if(!e||!t)return c.a.resolve(g.a.create({status:b.a.ERROR}));var i=[];if(this._previousLocaleAndRegionFormat){var r=this._previousLocaleAndRegionFormat.locale,a=this._previousLocaleAndRegionFormat.regionFormat;if(e===r&&t===a)return c.a.resolve(g.a.create({status:b.a.SUCCESS}));e!==r&&i.push(this._fetchStringsJson(e)),t!==a&&i.push(this._loadRegionFormattingRules(t))}else i.push(this._fetchStringsJson(e)),i.push(this._loadRegionFormattingRules(t));return this._previousLocaleAndRegionFormat={locale:e,regionFormat:t},c.a.all(i).then(function(e){var t=!0;return e.forEach(function(e){e.status!==b.a.SUCCESS&&(t=!1)}),t?(n.localeOrRegionFormatChanged(),g.a.create({status:b.a.SUCCESS})):g.a.create({status:b.a.ERROR,error:e})})},_previousLocaleAndRegionFormat:null,_cachedFormattingRules:null,_getHostInfo:function(){var e=this._hostInfo;return e||(this._hostInfo=h.create({urlString:""+this.regionFormatBaseUrl+this.regionFormatRulesVersion,requestProperties:{useCredentialsIfCrossOrigin:!1}}))},_fetchStringsJson:function(e){e||s.b("No locale specified");var t=v.a.protocol+"//"+v.a.hostName+"/"+C.sharedInstance.rootContentPath+"/"+e+"/strings.json";return Object(p.a)(t).then(function(t){return t.ok?t.json().then(function(t){return a.b(e,t),a.e(e),g.a.create({status:b.a.SUCCESS})}):g.a.create({status:b.a.ERROR,error:t})})},_loadRegionFormattingRules:function(e){var t=this;return l.a.loadFormattingRules(this._getHostInfo(),e,{maxRetries:2,fallbackRegionFormat:"en-us"}).then(function(e){var n=e.formattingRules,i=n?b.a.SUCCESS:b.a.ERROR;return n&&(t._cachedFormattingRules=n),g.a.create({status:i})}).catch(function(e){s.b("Could not load formatting rules",e)})},__superMap:{_$19n$init:"init"}})},function(e,t,n){var i=n(55),r=n(162);e.exports=n(54)?function(e,t,n){return i.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var i=n(32),r=n(68),a=n(74),o=n(163)("src"),s=n(616),c=(""+s).split("toString");n(114).inspectSource=function(e){return s.call(e)},(e.exports=function(e,t,n,s){var l="function"==typeof n;l&&(a(n,"name")||r(n,"name",t)),e[t]!==n&&(l&&(a(n,o)||r(n,o,e[t]?""+e[t]:c.join(String(t)))),e===i?e[t]=n:s?e[t]?e[t]=n:r(e,t,n):(delete e[t],r(e,t,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[o]||s.call(this)})},function(e,t,n){var i=n(9),r=n(34),a=n(122),o=/"/g,s=function(e,t,n,i){var r=String(a(e)),s="<"+t;return""!==n&&(s+=" "+n+'="'+String(i).replace(o,"&quot;")+'"'),s+">"+r+"</"+t+">"};e.exports=function(e,t){var n={};n[e]=t(s),i(i.P+i.F*r(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",n)}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(818),r=n(824),a=n(81),o=n(936),s=i.a.extend(r.a,{itemsChanges:Object(a.d)({strong:!0}),invalidateItemAt:function(e){var t=this.invalidItems;t||(t=this.invalidItems=o.a.create()),t.add(e)},invalidItems:Object(a.d)({strong:!0}),sectionsChanges:Object(a.d)({strong:!0}),invalidateSectionAt:function(e){var t=this.invalidSections;t||(t=this.invalidSections=o.a.create()),t.add(e)},invalidSections:Object(a.d)({strong:!0}),movedBy:Object(a.d)({strong:!0}),sizeChangedBy:Object(a.d)({strong:!0}),itemShown:Object(a.d)({strong:!0}),itemShownAt:Object(a.d)({strong:!0}),itemScrolledTo:Object(a.d)({strong:!0}),everythingChanged:!1,layoutMetricsChanged:Object(a.d)({strong:!0}),collectionChanged:!1,didEnterPool:function(){var e=arguments;this.itemsChanges=null,this.invalidItems=null,this.sectionsChanges=null,this.invalidSections=null,this.movedBy=null,this.sizeChangedBy=null,this.itemShown=null,this.itemShownAt=null,this.itemScrolledTo=null,this.everythingChanged=!1,this.layoutMetricsChanged=null,this.collectionChanged=!1,this.__s._$cv$didEnterPool.apply(this,e)},toString:function(){var e=arguments,t="["+this.__s._$e1$toString.apply(this,e)+" ";return this.itemsChanges&&(t+="itemsChanges("+this.itemsChanges.lengthDelta+") "),this.invalidItems&&(t+="invalidItems("+this.invalidItems.size+") "),this.sectionsChanges&&(t+="sectionsChanges("+this.sectionsChanges.lengthDelta+") "),this.invalidSections&&(t+="invalidSections("+this.invalidSections.size+") "),this.movedBy&&(t+="movedBy("+this.movedBy.toString()+") "),this.sizeChangedBy&&(t+="sizeChangedBy("+this.sizeChangedBy.toString()+") "),this.everythingChanged&&(t+="everythingChanged "),this.layoutMetricsChanged&&(t+="layoutMetricsChanged("+this.layoutMetricsChanged.toArray().join(", ")+") "),this.collectionChanged&&(t+="collectionChanged "),this.itemShown&&(t+="itemShown "),this.itemShownAt&&(t+="itemShownAt("+this.itemShownAt.toString()+") "),t+"]"},__superMap:{_$cv$didEnterPool:"didEnterPool",_$e1$toString:"toString"},staticMembers:{__QUALIFIED_CLASS_NAME__:"InvalidationContext"}})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var i=n(212),r=n(122);e.exports=function(e){return i(r(e))}},function(e,t,n){var i=n(213),r=n(162),a=n(75),o=n(121),s=n(74),c=n(432),l=Object.getOwnPropertyDescriptor;t.f=n(54)?l:function(e,t){if(e=a(e),t=o(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return r(!i.f.call(e,t),e[t])}},function(e,t,n){var i=n(74),r=n(57),a=n(329)("IE_PROTO"),o=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),i(e,a)?e[a]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?o:null}},function(e,t,n){"use strict";n.d(t,"b",function(){return v}),n.d(t,"e",function(){return _}),n.d(t,"d",function(){return I}),n.d(t,"c",function(){return S}),n.d(t,"a",function(){return A}),n.d(t,"h",function(){return O}),n.d(t,"g",function(){return E}),n.d(t,"f",function(){return D}),n.d(t,"i",function(){return N});var i=n(85),r=n(81),a=n(819),o=n(832),s=n(831),c=n(828),l=n(821),u=n(492),d=n(87),h=n(844),p=n(198),f=n(66),m=n(98),g=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},b={isObservable:!0,initializeInstance:function(){this._nodes=[];var e=this.upstreamNodes={},t=this.downstreamNodes={};this._connectables=[],this._connectableTargets=[],h.a.pause(),this.initializeObservers(e,t),this.initializeSignals(e,t),this.__s._$Tn$initializeInstance.call(this),this._connectAllConnectables(),h.a.triggerFlush(),h.a.resume()},initializeObservers:function(e,t){var n=this.getMetadataByType(I);for(var i in n){var r=n[i],a=this.allocNode(r.manager,h.a.PULL_ON_FLUSH|h.a.NOTIFY);t[i]=a,this.addConnectable(r,a,h.a.NULL_INDEX)}},initializeSignals:function(e,t){var n=this.getMetadataByType(D);for(var i in n){var r=n[i],a=this.allocNode(r,h.a.PULL_ON_FLUSH|h.a.NOTIFY);r.initializeEvent(a),e[i]=t[i]=a}},upstreamNodes:null,downstreamNodes:null,_connectables:null,_connectableTargets:null,isConnected:!1,addConnectable:function(e,t,n){this.isConnected?e.connect(this,t,n):(this._connectables.push(e),this._connectableTargets.push(t),this._connectableTargets.push(n))},_connectAllConnectables:function(){var e,t=this._connectables,n=this._connectableTargets,i=t.length,r=h.a.NULL_INDEX,a=h.a.NULL_INDEX;for(e=0;e<i;e++)r=n[2*e],a=n[2*e+1],t[e].connect(this,r,a);this._connectables=this._connectableTargets=null,this.isConnected=!0},allocNode:function(e,t){var n=h.a.allocNode(e,this,t);return this._nodes.push(n),n},freeNode:function(e){var t=this._nodes,n=t.indexOf(e);n>=0?t.splice(n,1):Object(a.b)("CW.Observable `freeNode` called with a node not managed by this Observable!",{nodeID:e,observable:this}),h.a.freeNode(e)},dispose:function(){var e,t=this._nodes,n=t.length,i=h.a.NULL_INDEX;for(e=0;e<n;e++)i=t[e],h.a.freeNode(i);this._nodes=null,this.downstreamNodes=null,this.upstreamNodes=null,this.__s._$2Y_$dispose.call(this)},observe:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n[0];return(e=Object(o.a)(r)?S.create(this,r):S.create.apply(S,[this].concat(n,[!0]))).connect(),e},listen:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=n[0];return(e=Object(o.a)(r)?A.create(this,r):A.create.apply(A,[this].concat(n,[!1]))).connect(),e},bindingFor:function(e){return d.a.create(e,this)},propertyChanged:function(e){var t=this.downstreamNodes[e];"number"!=typeof t&&Object(a.b)("propertyChanged must be called with the key of an observable property (key: "+e+", object: "+this+").",{object:this,key:e}),h.a.setNodeToDirtyFromParent(t)},bind:function(e,t){var n=this.getMetadataByType(m.a);if(n){var i=n[e];i||Object(a.b)("Bind must be called on an observable property",e),i.bind(this,t)}return this},unbind:function(e){var t=this.getMetadataByType(m.a);if(t){var n=t[e];n||Object(a.b)("Unbind must be called on an observable property",e),n.unbind(this)}return this},beginBatchSet:function(){return u.a.begin(this)},__superMap:{_$Tn$initializeInstance:"initializeInstance",_$2Y_$dispose:"dispose"}},v=g({staticMembers:g({},b)},b,{mixinDependencies:[i.b,r.b]}),_=p.a.extend({_onlyFireIfChanged:!0,_debug_dependencyNames:null,_debug_key:null,_observedTypes:null,_observesSignals:!0,init:function(e,t,n){this.__s._$4vt$init.call(this),void 0===n&&(n=!0),Object(s.a)(t)||Object(a.b)("Cannot create CW.ObserverNodeManager without an observer function to call when there is a change."),this.observer=t,this._inputCount=e,this._inputCollectorPool=[],this._observedTypes=new Array(e),n||(this._onlyFireIfChanged=n,this.invokeObserverCallback=this._actuallyInvokeObserverCallback)},calculateValueForNode:function(e,t,n){n||Object(a.b)("Observers should not be set directly, they must pull from their parents.",t);var i=this._getInputCollectorFromPool();h.a.pullDataFromParents(t,i);var r=h.a.getDataForNode(t);if(r||!C(t)){var o=r;return r._fireState!==f.a.SKIP_FIRE?o=this.invokeObserverCallback(e,i,r,t):(r._fireState=f.a.DEFAULT,y(i,r)),this._returnInputCollectorToPool(i),o}},invokeObserverCallback:function(e,t,n,i){return n._fireState===f.a.FORCE_FIRE||this._didObservedValuesChange(t,n.previousValues)?this._actuallyInvokeObserverCallback(e,t,n,i):(n.didFire=!1,n)},notifyNode:function(e,t){h.a.getDataForNode(t).didFire=!1},_actuallyInvokeObserverCallback:function(e,t,n,i){n._fireState=f.a.DEFAULT,y(t,n);var r=m.a.isInsideSetter;return m.a.isInsideSetter=!1,this._substituteSignalInputsIfNeccessary(t),this.observer.apply(e,t),m.a.isInsideSetter=r,function(e,t){var n=h.a.getDataForNode(e);if(n||!C(e)){var i=f.b.create({previousValues:n.previousValues,_fireState:f.a.DEFAULT,didFire:!0});return i.retain(),n.previousValues=null,n.release(),i}}(i)},_substituteSignalInputsIfNeccessary:function(e){if(this._observesSignals){for(var t,n,i=!1,r=this._observedTypes,a=0;a<e.length;a++)void 0===(t=r[a])&&void 0!==(t=this._getValueType(e[a]))&&(r[a]=t),1===t?((n=e[a])&&!n.didFire&&(e[a]=void 0),i=!0):void 0===t&&(i=!0);this._observesSignals=i}},_didObservedValuesChange:function(e,t){var n=e,i=t;if(n.length!==i.length)return!0;for(var r,a,o=this._observedTypes,s=n.length,c=0;c<s;c++)if(r=o[c],a=n[c],void 0===r&&(r=o[c]=this._getValueType(a)),1===r){if(a&&a.didFire)return!0}else if(a!==i[c])return!0;return!1},_getValueType:function(e){return void 0===e?void 0:Object(c.a)(e,f.b)?1:2},addDebugInfoForNode:function(e,t,n){t.type="Observer",t.object=e,t.key=this._debug_key||"(Anonymous)",t.dependencyNames=this._debug_dependencyNames,t.toString=function(){return this.object+"."+this.key},t.name=t.toString()},_getInputCollectorFromPool:function(){var e=this._inputCollectorPool;return e.length>0?e.pop():new Array(this._inputCount)},_returnInputCollectorToPool:function(e){for(var t=e.length,n=0;n<t;n++)e[n]=void 0;this._inputCollectorPool.push(e)},__superMap:{_$4vt$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ObserverNodeManager"}});function y(e,t){for(var n=t.previousValues,i=e.length,r=0;r<i;r++)n[r]=e[r]}function C(e){if(h.a.nodeIsFreeing(e))return!0;Object(a.b)("An observer with node %{nodeID} was corrupted (node data was lost)",{nodeID:e})}var I=i.a.extend({init:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=void 0,r=void 0,a=void 0,c=this.notifyOnCreate,l=t[0];if(Object(o.a)(l))i=l.inputs,r=l.callback,void 0!==l.notifyOnCreate&&(c=l.notifyOnCreate),void 0!==l.onlyFireIfChanged&&(a=l.onlyFireIfChanged);else{var u=(i=t).pop();Object(s.a)(u)||(void 0!==u&&(c=u),u=i.pop()),r=u}this.inputs=i,this.callback=r,this.bindings=d.a.createForPaths(i),this.manager=this.managerClass.create(i.length,r,a),this.manager._debug_inputNames=i,this.notifyOnCreate=c,this.__s._$8ci$init.call(this)},wasRegistered:function(e,t){var n=arguments;this.__s._$8fD$wasRegistered.apply(this,n),this.manager._debug_key=t},getValue:function(e,t){return function(){var e=this.downstreamNodes[t],n=h.a.getDataForNode(e);!n&&C(e)||(n._fireState=f.a.FORCE_FIRE,h.a.setNodeToDirtyFromParent(e))}},notifyOnCreate:!0,manager:null,managerClass:_,requiresSupport:v,bindings:null,inputs:null,callback:null,allowAtCreate:!0,connect:function(e,t){for(var n,i=this.bindings,r=this.notifyOnCreate,o=0,s=i.length;o<s;o++)n=i[o],d.a.hookUpDownstreamNode(e,n,t,!0)||Object(a.b)("Observer could not hook up to one of its observed properties.",{object:e,observer:this,binding:n,bindingPath:n.path});var c=f.b.create({previousValues:[],_fireState:r?f.a.FORCE_FIRE:f.a.SKIP_FIRE});c.retain(),h.a.setDataForNode(c,t),e.isConnected&&h.a.triggerFlush()},__superMap:{_$8ci$init:"init",_$8fD$wasRegistered:"wasRegistered"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ObserverMetadata"}}),w=I.extend({notifyOnCreate:!1,staticMembers:{__QUALIFIED_CLASS_NAME__:"ListenerMetadata"}}),S=I.extend({node:-1,init:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];e&&e.hasMixin&&e.hasMixin(v)||Object(a.b)("A CW.Observer must be defined on an observable object.",{owningObject:e,inputs:n}),this.owningObject=e;var r=n[0];Object(o.a)(r)?this.__s._$BRa$init.call(this,r):this.__s._$BRa$init.apply(this,n),this.node=e.allocNode(this.manager,h.a.PULL_ON_FLUSH)},connect:function(){return this.__s._$BYG$connect.call(this,this.owningObject,this.node)},disconnect:function(){h.a.disconnectParentsFromNode(this.node)},__superMap:{_$BRa$init:"init",_$BYG$connect:"connect"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Observer"}}),A=S.extend({notifyOnCreate:!1,staticMembers:{__QUALIFIED_CLASS_NAME__:"Listener"}}),O=function(){return I.define.apply(I,arguments)},E=function(){return w.define.apply(w,arguments)},T={key:"Signal Not Set Sentinel"},D=i.a.extend({requiresSupport:v,isCacheable:!0,notifyNode:function(e,t){var n=h.a.getDataForNode(t);n.context=null,n.didFire=!1,this.didPropagate.call(e)},calculateValueForNode:function(e,t,n){var i=h.a.getStateDataForNode(t);if(n){h.a.setStateDataForNode(T,t);var r=h.a.getStateIDForNode(t);h.a.getValueForNode(r),i=h.a.getStateDataForNode(t)}return i=i===T?h.a.getDataForNode(t):L(t,this._debug_key,i),this.willPropagate.call(e,i),i},validateDescendantDownstreamNodeManager:l.a,getValue:function(e,t){return function(e){var n=this.downstreamNodes[t];if(void 0!==n){var i=e;m.a.isInsideSetter&&h.a.nodeIsDirty(n)?h.a.passValueToNode(i,n):h.a.setValueForNode(i,n)}}},didPropagate:l.a,willPropagate:l.a,wasRegistered:function(e,t){var n=arguments;this.__s._$DZ3$wasRegistered.apply(this,n),this._debug_key=t},addDebugInfoForNode:function(e,t,n){t.type="Signal",t.object=e,t.key=this._debug_key,t.toString=function(){return this.object+"."+this.key},t.name=t.toString()},initializeEvent:function(e){var t=L(e,this._debug_key,null);t.didFire=!1,h.a.setDataForNode(t,e),h.a.setStateDataForNode(T,e)},__superMap:{_$DZ3$wasRegistered:"wasRegistered"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SignalMetadata"}}),L=function(e,t,n){var i=h.a.getDataForNode(e),r=f.b.create({type:t,context:n,didFire:!0});return r.retain(),i&&i.release(),r},N=function(){return D.create.apply(D,arguments)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"b",function(){return o}),n.d(t,"f",function(){return s}),n.d(t,"e",function(){return c}),n.d(t,"d",function(){return l}),n.d(t,"g",function(){return u}),n.d(t,"h",function(){return d});var i=n(84),r="strong",a="weak",o="unsafe";function s(e,t,n){e&&e!==t&&e.retain&&e.retain(t,n)}function c(e,t,n){e&&e!==t&&e.release&&e.release(t,n)}function l(e,t,n){e&&e!==t&&e.autorelease&&e.autorelease(t,n)}function u(e,t,n,r){return e&&e.registerWeakReference?e.registerWeakReference(t,n,r):i.b}function d(e,t){t!==i.b&&e&&e.deregisterWeakReference&&e.deregisterWeakReference(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"e",function(){return h}),n.d(t,"c",function(){return p});var i=n(818),r=n(847),a=n(78),o=n(98),s=n(820),c=i.a.extend(a.b,r.a,{DEFAULT_LOCALE:"en-us",_locales:{},_rtlLocales:["ar-sa","iw-il"],getRegistryFor:function(e){var t=this._locales[e]&&this._locales[e];return t||(t=this._locales[e]={}),t},addValuesFor:function(e,t){for(var n=this.getRegistryFor(e),i=Object.keys(t),r=0,a=i.length;r<a;r++){var o=i[r];n[o]=t[o]}},locale:Object(o.b)("en-us"),isRTL:Object(o.b)({readOnly:!0,dependencies:["locale"],get:Object.assign(function(){var e=this.locale;return l._rtlLocales.indexOf(e)>-1},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return l._rtlLocales.indexOf(r)>-1}})}),getValue:function(e,t){var n=this._getValue(e,t);return n?t?Object(s.a)(n,t):n:e},hasValue:function(e){return!!this._getValue(e)},_getValue:function(e,t){var n=this.locale,i=this.getRegistryFor(n),r=i[e];if(!r)for(var a=n.split(/-|_/),o=0,s=a.length;o<s+1;o++){a.pop();var c=a.join("-");if(r=(i=this.getRegistryFor(c))[e])break}if(!r){var l=this.getRegistryFor(this.DEFAULT_LOCALE),u=this.DEFAULT_LOCALE.split(/-|_/)[0],d=this.getRegistryFor(u);r=l[e]||d[e]}return r},staticMembers:{__QUALIFIED_CLASS_NAME__:"Locale"}}),l=c.sharedInstance,u=function(e,t){return l.addValuesFor(e,t)},d=function(e,t){return l.getValue(e,t)},h=function(e){l.locale=e},p=function(){return l.locale};if(window.__CW_BUILD_INFO){var f=window.__CW_BUILD_INFO.locale;h(f)}},function(e,t,n){"use strict";n.d(t,"c",function(){return S}),n.d(t,"a",function(){return A}),n.d(t,"d",function(){return T}),n.d(t,"b",function(){return D});var i=n(832),r=n(828),a=n(819),o=n(821),s=n(839),c=n(831),l=n(364),u=n(485),d=n(366),h=n(825),p=n(829),f=n(85),m=n(84),g=n(79),b=n(273),v=n(368),_=n(369),y=n(843),C=n(86),I=n(367),w={},S="$value",A=f.a.extend(p.a,{staticMembers:{create:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=arguments,r=this.__s._$3In$create.apply(this,i);return r._originalArgs=t,r},__superMap:{_$3In$create:"create"},__QUALIFIED_CLASS_NAME__:"Property"},readOnly:!1,defaultValue:void 0,_hasBeenUsed:!1,initializeMember:function(){var e=arguments;return this._hasBeenUsed?this.clone():this.__s._$3lH$initializeMember.apply(this,e)},clone:function(){var e;return(e=this.constructor).create.apply(e,this._originalArgs)},set:null,_transformedSet:null,get:null,_transformedGet:null,setterReturnArray:[],usesBuiltinGet:!1,usesBuiltinSet:!1,isComputedProperty:!1,type:null,typeIsPrimitive:!1,strong:!1,weak:!1,unsafe:!1,reference:"",validators:null,init:function(e){if(Object(i.a)(e)){this.defaultValue=e.defaultValue;var t={};for(var n in e)"defaultValue"!==n&&(t[n]=e[n]);this.__s._$5_p$init.call(this,t)}else this.defaultValue=e,this.__s._$5_p$init.call(this);var a=this.validators;if(a)for(var o=a.length,s=0;s<o;++s){var c=a[s];Object(r.a)(c,I.a)||(a[s]=c.create())}},requiresSupport:D,allowedOnClass:!0,getValue:function(){return this.defaultValue},_ivar:null,_getParamOffset:0,_setParamOffset:0,_callsGetSuper:!1,_callsSetSuper:!1,_validateType:function(){return!0},_manageSwappingValues:function(e,t,n){var i="Strong ref for `"+this.key+"`";Object(g.f)(n,e,i),Object(g.e)(t,e,i)},_referenceId:void 0,wasRegistered:function(e,t,n){var i=arguments;this._hasBeenUsed=!0;var r=this.get;if(r&&r.__CW__getter){var o=r.__superMap,s=this.__superMap;for(var c in o)s[c]="_transformedGet"}var l=this.set;if(l&&l.__CW__setter){var u=l.__superMap,d=this.__superMap;for(var h in u)d[h]="_transformedSet"}this.__s._$7Nj$wasRegistered.apply(this,i),n&&this._inheritFromSuperMap(e,n,t),this.writeDependencies||!this.dependencies||this.readOnly||(this.writeDependencies=this.dependencies),n&&this.inheritFrom(n),this._setUpInternalVariables(t),this._synthesizeInternalMethods(),this._setUpReferenceFlag(e,t),this.reference===g.c&&this.defaultValue&&Object(a.b)("A weak-reference property may not provide a default value ('%{key})'.",{key:t,object:e}),this._setUpReferenceManagers(),this._moveDefaultValuesToPrepareForNativeAccessors(e,t),e[D.staticMembers.defaultValuePrefix+t]=e[t],this.setUpNativeAccessors(e,t)},inheritFrom:function(e){this.get||e.usesBuiltinGet||(this.get=e.get),this.set||e.usesBuiltinSet||(this.set=e.set),e.dependencies&&(this.dependencies?this._callsGetSuper&&(this.dependencies=e.dependencies.concat(this.dependencies),this._getParamOffset=e.dependencies.length):this.dependencies=e.dependencies),e.writeDependencies&&(this.writeDependencies?this._callsGetSuper&&(this.writeDependencies=e.writeDependencies.concat(this.writeDependencies),this._setParamOffset=e.writeDependencies.length):this.writeDependencies=e.writeDependencies),e.hasOwnProperty("readOnly")&&!this.hasOwnProperty("readOnly")&&(this.readOnly=e.readOnly),e.hasOwnProperty("strong")&&!this.hasOwnProperty("strong")&&(this.strong=e.strong),e.hasOwnProperty("weak")&&!this.hasOwnProperty("weak")&&(this.weak=e.weak),e.hasOwnProperty("unsafe")&&!this.hasOwnProperty("unsafe")&&(this.unsafe=e.unsafe)},_inheritFromSuperMap:function(e,t,n){var i=e.__s,r=this.__superMap;for(var a in r){var o=r[a];if("get"===o||"_transformedGet"===o)o="_transformedGet",this._callsGetSuper=!0;else{if("set"!==o&&"_transformedSet"!==o)continue;o="_transformedSet",this._callsSetSuper=!0}i[a]=t[o]}},_setUpReferenceFlag:function(e,t){var n=this.strong,i=this.weak,r=this.unsafe;n?(i&&Object(a.b)("Cannot define a property as both strong and weak.",{key:t,object:e}),r&&Object(a.b)("Cannot define a property as both strong and unsafe.",{key:t,object:e}),this.reference=g.a):i?(r&&Object(a.b)("Cannot define a property as both weak and unsafe.",{key:t,object:e}),this.reference=g.c):this.reference=g.b},_setUpReferenceManagers:function(){var e=this.reference;e===g.b||this.typeIsPrimitive?this._manageSwappingValues=o.a:e===g.c&&(this._manageSwappingValues=E,this._setUpWeakRefHashIfNeeded=O)},_setUpInternalVariables:function(e){this._ivar="_"+e},_moveDefaultValuesToPrepareForNativeAccessors:function(e,t){var n=D.staticMembers.defaultValuePrefix;e.hasOwnProperty(t)&&(e[n+t]=e[t])},_synthesizeInternalMethods:function(){if(this._synthesizeAccessors(),this._synthesizeInternalSet(),this._fillSetPathMap(),Object(b.a)(this),this._setUpInternalAccessors(),this.getForObject||this._synthesizeGetForObject(),!this.setForObject){var e=this.writeDependencies;e&&(this.setterReturnArray=new Array(e.length)),this._synthesizeSetForObject()}},_synthesizeAccessors:function(){var e=this.get;if(e){var t=e.__CW__getter||e,n=this._getParamOffset;this._transformedGet=function(e,i,r,a){return t.call(this,e,i,n,a)}}else this.usesBuiltinGet=!0,this._transformedGet=this.get=s.a;var i=this.set;if(i){var r=i.__CW__setter||i,a=this._setParamOffset;this._transformedSet=function(e,t,n,i,o){return r.call(this,e,t,n,a,o)}}else this.usesBuiltinSet=!0,this._transformedSet=this.set=s.a;this.isComputedProperty=!this.usesBuiltinGet||!this.usesBuiltinSet},_fillSetPathMap:function(){var e=this.writeDependencySetPathMap;e||(e=this.writeDependencySetPathMap=[!1]);for(var t=e.length,n=0;n<t;n++)e[n]=e[n]?this.internalSetPath:this.internalSet},initForObject:function(e,t){this._setUpWeakRefHashIfNeeded(e,t)},_setUpWeakRefHashIfNeeded:o.a,setInitialValueForObject:function(e,t,n){void 0!==n&&this.setForObjectReadWrite(e,t,n)},disposeForObject:function(e,t){var n=this._ivar;this._manageSwappingValues(e,e[n]),e[n]=void 0},setUpNativeAccessors:function(e,t){var n=this,i=this.setForObject,r=this.getForObject;Object.defineProperty(e,t,{get:function(e){return r.call(n,this,t)},set:function(e){return i.call(n,this,t,e)},configurable:!0})},_setUpInternalAccessors:o.a,getForObject:null,_synthesizeGetForObject:function(){var e=this.dependencies,t=this._transformedGet,n=this,i=D.staticMembers.defaultValuePrefix+this.key,r=this._ivar;this.getForObject=function(a,o){return a.hasOwnProperty("propertiesAreInitialized")?t.call(a,a[r],e,0,n):a[i]}},setForObject:null,setForObjectReadWrite:null,_synthesizeSetForObject:function(){var e=this.writeDependencies,t=this.setterReturnArray,n=this._transformedSet,i=this,r=this._validateType,o=t.length,s=this.writeDependencySetPathMap;this.clearSetterReturnArray(t);var c=this._ivar,l=D.staticMembers.defaultValuePrefix+this.key;this.setForObjectReadWrite=function(u,d,h){if(u.hasOwnProperty("propertiesAreInitialized")){var p=u[c],f=n.call(u,h,p,t,0,i);r.call(u,f)||Object(a.b)("Type error: cannot set value `%{value}` to property `%{key}` on %{object}.",{object:u,key:d,value:f,setValue:h}),u[c]=f;for(var m=0;m<o;m++)t[m]!==w&&s[m](u,e[m],t[m]);return this._manageSwappingValues(u,p,f),this.clearSetterReturnArray(t),f}u[l]=h},this.readOnly?this.setForObject=function(e,t,n){e.hasOwnProperty("propertiesAreInitialized")?Object(a.b)("Cannot set `"+t+"`: it is read-only.",{key:t,object:e,property:this,value:n}):e[l]=n}:this.setForObject=this.setForObjectReadWrite},clearSetterReturnArray:function(e){for(var t=e.length,n=0;n<t;n++)e[n]=w},internalGet:function(e,t){return e.get(t)},internalGetPath:function(e,t){return e.getPath(t)},_synthesizeInternalSet:function(){var e=S,t=this._ivar;this.internalSet=function(n,i,r){return i===e?(n[t]=r,r):n.set(i,r)}},internalSet:null,internalSetPath:function(e,t,n){return e.setPath(t,n)},__superMap:{_$3lH$initializeMember:"initializeMember",_$5_p$init:"init",_$7Nj$wasRegistered:"wasRegistered"}});function O(e,t){var n=e._weakReferenceTokens;n||(n=e._weakReferenceTokens={}),n[t]=m.b}function E(e,t,n){var i=this.key,r=e._weakReferenceTokens,a=r[i];Object(g.h)(t,a);var o=Object(g.g)(n,e,e.weaklyReferencedObjectWasDisposed,i);r[i]=o}var T=function(e){return A.define.apply(A,arguments)},D={mixinDependencies:[C.b,v.a],staticMembers:{get:x,set:R,setPath:M,getPath:P,getPropertiesAsObject:j,setPropertiesWithObject:F,getPropertiesAsArray:V,setPropertiesWithArrays:U,weaklyReferencedObjectWasDisposed:k,_weakReferenceTokens:null,initializeClass:function(){this.__s._$ELz$initializeClass.call(this),L.call(this)},initializeInstance:function(){this.__s._$EPP$initializeInstance.call(this),N.call(this)},defaultValuePrefix:"__CW__",propertiesAreInitialized:!1,__superMap:{_$ELz$initializeClass:"initializeClass",_$EPP$initializeInstance:"initializeInstance"}},initializeClass:function(){this.__s._$EXs$initializeClass.call(this),L.call(this)},initializeInstance:function(){this.__s._$Ear$initializeInstance.call(this),N.call(this)},dispose:function(){var e,t=arguments,n=this._properties;for(e in n)n[e].disposeForObject(this,e);this.__s._$Elx$dispose.apply(this,t)},get:x,set:R,setPath:M,getPath:P,getPropertiesAsObject:j,setPropertiesWithObject:F,getPropertiesAsArray:V,setPropertiesWithArrays:U,weaklyReferencedObjectWasDisposed:k,_weakReferenceTokens:null,propertiesAreInitialized:!1,beginBatchSet:function(){return _.a.begin(this)},__superMap:{_$EXs$initializeClass:"initializeClass",_$Ear$initializeInstance:"initializeInstance",_$Elx$dispose:"dispose"}};function L(){this._properties=this.getMetadataByType(A)}function N(){var e,t,n=this.getMetadataByType(A),i=D.staticMembers.defaultValuePrefix;for(e in n){var r=n[e];r.initForObject&&r.initForObject(this,e)}for(e in this.propertiesAreInitialized=!0,n){var a=n[e];t=this[i+e],Object(c.a)(t)&&(t=t.call(this)),t===y.a&&(t=this),a.setInitialValueForObject&&a.setInitialValueForObject(this,e,t)}}function M(e,t){var n=Object(l.a)(e,this);return n||Object(a.b)("cannot call set on null or undefined object",{object:this,path:e,value:t}),Object(u.a)(n,Object(d.a)(e),t),this}function P(e){return Object(h.a)(this,e)}function x(e){var t=this._properties[e];return t?t.getForObject(this,e):this[e]}function R(e,t){var n=this._properties[e];return n?n.setForObject(this,e,t):this[e]=t,this}function j(){for(var e={},t=0;t<arguments.length;t++)e[arguments[t]]=this.get(arguments[t]);return e}function F(e){for(var t in e)e.hasOwnProperty(t)&&this.set(t,e[t]);return this}function V(){return Array.prototype.map.call(arguments,this.get,this)}function U(e,t){e.length>t.length&&Object(a.b)("Not enough values to set");for(var n=0;n<e.length;n++)this.set(e[n],t[n]);return this}function k(e,t){t.set(this,e,null)}},function(e,t,n){"use strict";n.d(t,"a",function(){return M}),n.d(t,"b",function(){return P}),n.d(t,"c",function(){return R}),n.d(t,"d",function(){return F});var i,r,a=n(84),o=n(368),s=n(878),c=n(819),l=n(832),u=n(863),d={"animation-duration":"s","animation-delay":"s","animation-iteration-count":"","column-count":"",columns:"","font-size-adjust":"","font-weight":"",opacity:"",order:"",orphans:"","tab-size":"","transition-delay":"s","transition-duration":"s",widows:"","z-index":"","flex-grow":"","flex-shrink":""},h=s.a.sharedInstance,p={translate:{subkeys:"translateX translateY translateZ".split(" "),defaultUnit:"px",processArgs:function(){T<2&&Object(c.b)("When adding a `translate` transform, at least two arguments (for X and Y) are required.")}},translateDevicePixels:{transform:"translate",subkeys:"translateX translateY translateZ".split(" "),defaultUnit:"px",processArgs:function(){T<2&&Object(c.b)("When adding a `translate` transform, at least two arguments (for X and Y) are required.");for(var e=0;e<T;e++){var t=E[e],n=h.ceilToDevicePixelRatio(t);E[e]=n}}},scale:{subkeys:"scaleX scaleY scaleZ".split(" "),defaultUnit:"",processArgs:function(){1===T&&(T=2,E[1]=E[0])}},rotate:{subkeys:"rotateX rotateY rotateZ".split(" "),defaultUnit:"deg",processArgs:function(){2===T&&Object(c.b)("When adding a `rotate` transform, either one or three arguments (for Z-only or X, Y, Z) are required."),1===T&&(T=3,E[2]=E[0],E[0]=E[1]=void 0)}},skew:{subkeys:"skewX skewY".split(" "),defaultUnit:"deg",processArgs:function(){}},matrix:{subkeys:[],_name:"matrix",_requiredArgs:6,processArgs:function(){p.matrix3d.processArgs.call(this)}},matrix3d:{subkeys:[],_name:"matrix3d",_requiredArgs:16,processArgs:function(){var e,t,n=1===T&&E[0];if(n&&Array.isArray(n))for(T=n.length,e=0;e<T;e++)E[e]=n[e];for(T!==this._requiredArgs&&Object(c.b)("When adding a `"+this._name+"` transform, exactly "+this._requiredArgs+" arguments are required."),e=0;e<T;e++)t=E[e],isNaN(t)&&Object(c.b)("All arguments to `"+this._name+"` must be numbers."),E[e]=(+t).toFixed(15)}}},f=function(){var e,t,n,i,r,a,o={};for(e in p)for(n=(t=p[e]).defaultUnit,a=(i=t.subkeys).length,r=0;r<a;r++)o[i[r]]=n;return o}(),m=a.a.extend(o.a,{element:null,_unflushedStyles:null,_unflushedStyleKeys:null,_unflushedStyleKeysLen:0,_pauseCount:0,init:function(e){this.element=e,this._unflushedStyles={},this._unflushedStyleKeys=[],this.__s._$25x$init.call(this)},set:function(e,t){if(Object(l.a)(e))return this._setWithHash(e);t=function(e,t){if(0!==t&&!t)return"";if(!isNaN(t)){var n=d[e];return void 0===n&&(n="px"),t+n}return t}(e,t),e=v(e);var n=this._unflushedStyles;return n[e]||(this._unflushedStyleKeys[this._unflushedStyleKeysLen++]=e),n[e]=t,this._flushStylesToElement(),this},get:function(e){return e=O(e)+e,function(e,t){var n;(n=e._computedStyle)||(n=e._computedStyle=document.defaultView.getComputedStyle(e,null));var i=n.getPropertyValue(t);return!i&&I[t]&&(i=I[t](n)||i),i}(this.element,e)},getInline:function(e){return e=v(e),this.element.style[e]},clear:function(e){return e?this.set(e,void 0):this._clearAll()},transform:function(e){if(!arguments.length)return this._partialTransformString=null,this.set("transform","");var t,n,i,r,a,o,s=p[e],c=this._partialTransformString||"";if(this._partialTransformString=null,s){var l=s.transform||e;for(t=s.subkeys,n=s.defaultUnit,a=arguments.length,T=a-1,r=1;r<a;r++)E[r-1]=arguments[r];if(s.processArgs(),t.length>=T)for(r=0;r<T;r++)void 0!==(i=E[r])&&(isNaN(i)||(i+=n),o=t[r],L[o]&&("rotateZ"!==o||L.rotateX||L.rotateY||(o="rotate"),c+=(r?" ":"")+o+"("+i+")"));else for(c+=l+"(",r=0;r<T;r++)c+=(i=E[r])+(r<T-1?", ":")")}else void 0!==(i=arguments[1])&&L[e]&&(isNaN(i)||(i+=f[e]),"rotateZ"!==e||L.rotateX||L.rotateY||(e="rotate"),c+=e+"("+i+")");return this.set("transform",c),b.styleInstance=this,b._partialTransformString=c+" ",b},layerBack:function(){return this.translateZ(0)},forceRedraw:function(){var e=this.element,t=e.parentNode;if(t){var n=e.nextSibling;t.removeChild(e),t.insertBefore(e,n)}return this},layerBackIf:function(e){return this.translateZ(e?0:void 0)},pause:function(){return this._pauseCount++,this},resume:function(){return--this._pauseCount<=0&&(this._pauseCount=0),this._hasUnflushedStyles&&this._flushStylesToElement(),this},_setWithHash:function(e){for(var t in this.pause(!0),e)e.hasOwnProperty(t)&&this.set(t,e[t]);return this.resume(!0),this},_clearAll:function(){return this.element.style.cssText="",this},_flushStylesToElement:function(){if(this._pauseCount)this._hasUnflushedStyles=!0;else{var e,t,n=this.element.style,i=this._unflushedStyles,r=this._unflushedStyleKeys,a=this._unflushedStyleKeysLen;for(e=0;e<a;e++)t=r[e],r[e]=void 0,n[t]=i[t],i[t]=void 0;this._unflushedStyleKeysLen=0}},__superMap:{_$25x$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Style"}}),g=(i={transform:!0,layerBack:!0,layerBackIf:!0},r=function(e){i[e]=!0},Object.keys(p).forEach(r),Object.keys(f).forEach(r),i);!function(){var e=m.prototype,t=[],n=function(e){return function(){for(var n=(t.length=arguments.length+1)-1;n>=1;n--)t[n]=arguments[n-1];return t[0]=e,this.transform.apply(this,t)}};for(var i in p)e[i]=n(i);for(var r in f)e[r]=n(r)}();var b=function(){var e={styleInstance:null,_partialTransformString:null},t=m.prototype,n=function(e){return g[e]?function(){var t=this.styleInstance;return t._partialTransformString=this._partialTransformString,t[e].apply(t,arguments)}:function(){var t=this.styleInstance;return t[e].apply(t,arguments)}};for(var i in t)t.hasOwnProperty(i)&&t[i]instanceof Function&&"_"!==i[0]&&"constructor"!==i&&!e[i]&&(e[i]=n(i));return e}();function v(e){return y(e=O(e)+e)}var _={};function y(e){var t=_[e];if(t)return t;if(!e)return"";0!==e.indexOf("-ms-")&&0!==e.indexOf("-webkit-")||(e=e.substring(1));var n,i=e,r=i.length;for(n=0;n<r;n++)"-"===i[n]&&n<r-1&&(i=i.substring(0,n)+i[n+1].toUpperCase()+i.substring(n+2),r--);return _[e]=i,i}var C=["style","variant","weight","size","family"],I={font:function(e){for(var t="",n=0,i=C.length;n<i;n++){var r=C[n],a=e.getPropertyValue("font-"+r);if(a&&(t&&(t+=" "),t+=a,"size"===r)){var o=e.getPropertyValue("line-height");o&&(t+="/"+o)}}return t}},w=["","-ms-","-moz-","-webkit-","-o-"],S={},A=document.createElement("div");function O(e){var t=S[e];if(void 0!==t)return t;e.match(D)&&Object(c.b)('Attempting to set style "'+e+"\". Use the dashed form of the style's name instead.");var n,i,r=w.length,a=!1;for(n=0;n<r;n++)if(i=w[n],"string"==typeof A.style[y(i+e)]){a=!0,i&&w.length>2&&(w=["",i]);break}return a?S[e]=i:u.b.warn("Using unsupported style "+e+"."),a?i:""}var E=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],T=0,D=/[A-Z]/,L={};function N(){var e;for(e in f)f.hasOwnProperty(e)&&(L[e]=!0);var t=m.create(document.createElement("div"));for(e in L)if(L.hasOwnProperty(e)){var n=t.transform(e,1).getInline("transform");n&&"none"!==n||(L[e]=!1),t.transform()}}N();var M=L,P=N,x=function(){var e=m.create(),t=e.pause,n=e.resume;return e.pause=function(e){if(e)return t.call(this);Object(c.b)("Cannot `pause` the shared CW.UI.Style instance.")},e.resume=function(e){if(e)return n.call(this);Object(c.b)("Cannot `resume` the shared CW.UI.Style instance.")},e}();function R(e,t,n){if(e){var i=arguments.length;if(!(i>1))return e._cwStyleProxy||(e._cwStyleProxy=m.create(e));var r=e._cwStyleProxy,a=r||Object.assign(x,{element:e});3===i&&a.set(t,n),2===i&&a.set(t),r||(x.element=null)}}var j=O("transform")+"transform";function F(e,t,n){e[j]="translate("+h.ceilToDevicePixelRatio(t)+"px, "+h.ceilToDevicePixelRatio(n)+"px)"}},function(e,t,n){"use strict";n.d(t,"c",function(){return y}),n.d(t,"b",function(){return C}),n.d(t,"d",function(){return I}),n.d(t,"a",function(){return w});var i=n(98),r=n(87),a=n(78),o=n(106),s=n(44),c=n(559).a.extend({arrowLength:Object(i.b)(Object(r.c)("config.arrowLength")),_layoutRectangle:null,staticMembers:{__QUALIFIED_CLASS_NAME__:"OnSideLayout"}}),l={left:"x",right:"width",top:"y",bottom:"height"},u={left:"vertical",right:"vertical",top:"horizontal",bottom:"horizontal"},d={left:"width",right:"x",top:"height",bottom:"y",width:"height",height:"width"},h={left:-1,right:1,top:-1,bottom:1},p={left:"width",right:"width",top:"height",bottom:"height"},f={left:"y",right:"y",top:"x",bottom:"x"},m={left:"height",right:"height",top:"width",bottom:"width"},g={x:0,y:0,height:0,width:0},b={vertical:s.b.Top,horizontal:s.a.Left},v={vertical:s.b.Bottom,horizontal:s.a.Right};function _(e){var t=l[e],n=h[e],r=d[e],s=f[e],c=m[e],_=p[e],y=u[e],C=b[y],I=v[y];return{fit:Object(i.b)({readOnly:!0,dependencies:["layout.height","layout.width","layout."+s,"layout."+c,"anchorLayout."+s,"anchorLayout."+c,"config.isAlignmentRequired","config."+y+"Alignment"],get:Object.assign(function(){var e,t=arguments,n=this.__s._$rW$get.apply(this,t),i=$property.internalGet(this,$getArray[2+$offset]),r=$property.internalGet(this,$getArray[3+$offset]),a=$property.internalGet(this,$getArray[4+$offset]),o=$property.internalGet(this,$getArray[5+$offset]),s=$property.internalGet(this,$getArray[6+$offset]),c=$property.internalGet(this,$getArray[7+$offset]);return e=c===C?a-i:c===I?o-r:i+r/2-(a+o/2),s?0!==e&&(n=0):n-=Math.abs(e),n},{__CW__getter:function(e,t,n,i){var r,a=arguments,o=this.__s._$rW$get.apply(this,a),s=i.internalGet(this,t[2+n]),c=i.internalGet(this,t[3+n]),l=i.internalGet(this,t[4+n]),u=i.internalGet(this,t[5+n]),d=i.internalGet(this,t[6+n]),h=i.internalGet(this,t[7+n]);return r=h===C?l-s:h===I?u-c:s+c/2-(l+u/2),d?0!==r&&(o=0):o-=Math.abs(r),o}}),__superMap:{_$rW$get:"get"}}),layoutCalculator:Object(a.h)("arrowLength","desiredSize."+_,"desiredSize."+d[_],"anchorLayout."+t,"anchorLayout."+r,"anchorLayout."+s,"anchorLayout."+c,"spaceLayout."+t,"spaceLayout."+r,"spaceLayout."+s,"spaceLayout."+c,"config.spaceInset","config."+y+"Alignment",function(e,i,a,l,u,d,h,p,f,m,b,v,_){"height"===t||"width"===t?(l+=u,p+=f,p-=v):"height"!==r&&"width"!==r||(u+=l,f+=p,p+=v),b+=m,h+=d,m+=v,b-=v;var y,w,S=l+e*n,A=S+i*n;if((A>p&&n>0||A<p&&n<0)&&(A=p),_===C)y=d,w=d+a;else if(_===I)w=h,y=h-a;else{var O=(d+h)/2,E=a/2;y=O-E,w=O+E}var T=m-y;T>0&&(y+=T,w+=T);var D=b-w;D<0&&(y+=D,w+=D),y<m&&(y=m),g[t]=A,g[r]=S,g[s]=y,g[c]=w,g.width-=g.x,g.height-=g.y;var L=this._layoutRectangle;L?L.beginBatchSet().set("x",g.x).set("y",g.y).set("height",g.height).set("width",g.width).end():this._layoutRectangle=L=o.a.create(g),this.layout=L})}}var y=c.extend(_("right"),{staticMembers:{__QUALIFIED_CLASS_NAME__:"OnRightLayout"}}),C=c.extend(_("left"),{staticMembers:{__QUALIFIED_CLASS_NAME__:"OnLeftLayout"}}),I=c.extend(_("top"),{staticMembers:{__QUALIFIED_CLASS_NAME__:"OnTopLayout"}}),w=c.extend(_("bottom"),{staticMembers:{__QUALIFIED_CLASS_NAME__:"OnBottomLayout"}})},function(e,t,n){"use strict";n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"c",function(){return w});var i=n(819),r=n(821),a=n(822),o=n(157),s=n(196),c=n(825),l=n(824),u="__s",d=0,h={isClass:!0,name:null,isNamed:null,mixins:[],ancestors:[],superclass:null,create:function(){var e=new this.Constructor;return e.init.apply(e,arguments),e._baseInitCalled||Object(i.b)("Base init was never invoked. Overridden init methods must always call `super()`."),e.isInitialized=!0,e},mixinWasApplied:r.a,isInitialized:!0,extend:function(){var e=Object.create(this),t=e.prototype=Object.create(e.prototype);e.isInitialized=!1,t.isInitialized=!1,e.mixins=e.mixins.slice();var n=function(){};return n.prototype=t,e.Constructor=n,t.constructor=e,e.ancestors=this.ancestors.slice(),e.ancestors.push(this),e.superclass=this,f(e,arguments),e._baseInitCalled=!1,t._baseInitCalled=!1,e.init(),e._baseInitCalled||Object(i.b)("Base init was never invoked. Overridden init methods must always call `super()`."),e.isInitialized=!0,e},init:function(){this._baseInitCalled=!0},hasMixin:function(e){return this.mixins.indexOf(e)>=0},subclassOf:function(e){return this.ancestors.indexOf(e)>=0},kindOf:function(e){return!!e&&(this.hasMixin(e)||this.subclassOf(e)||this===e)},toString:function(){return"[Class "+Object(a.a)(this)+"]"},toJSON:function(){return this.toString()},prototype:{_cwGUID:"",init:function(e){var t;arguments.length>1&&Object(i.b)("Default initializer supports at most one argument. If you would like to apply a mixin it should be done when calling .extend()."),I(this,e),this.trackReferences&&((t=this)._trackRetain=b,t._trackRelease=v,t.referenceTracker={}),this._baseInitCalled=!0},_baseInitCalled:!1,_metadataKeysForCreate:null,isObject:!0,isInitialized:!0,isDisposing:!1,isDisposed:!1,_retainCount:0,retain:function(e,t){this.isDisposed&&Object(i.b)("Cannot retain an object that has already been disposed.",{object:this,type:this.constructor.name,referencer:e,description:t}),this._retainCount++,this._trackRetain(e,t);var n=this._autoreleaseForTransferToken;return isNaN(n)||(this._autoreleaseForTransferToken=NaN,Object(o.a)(this,n)),this},release:function(e,t){var n=--this._retainCount,r=this._autoreleaseForTransferToken;return isNaN(r)||(this._autoreleaseForTransferToken=NaN),this._trackRelease(e,t),n<0&&Object(i.b)("Cannot release an object more times than it has been retained.",{object:this,type:this.constructor.name,referencer:e,description:t,referenceTracker:this.referenceTracker,overreleasedReference:this.overreleasedReference}),0===n&&(this.cleanup(),this._baseCleanupCalled||Object(i.b)("Base cleanup was never invoked. Overridden cleanup methods must always call `$super()`.",this),this._baseCleanupCalled=!1,this._captureDisposingObjectForPool(),this.isPooled?(this.didEnterPool(),this._baseDidEnterPoolCalled||Object(i.b)("Base didEnterPool was never invoked. Overridden didEnterPool methods must always call `$super()`.",this),this._baseDidEnterPoolCalled=!1):(this.isDisposing=!0,this.dispose(),this._baseDisposeCalled||Object(i.b)("Base dispose was never invoked. Overridden dispose methods must always call `$super()`.",this),this.isDisposing=!1,this.isDisposed=!0)),this},autorelease:function(e,t){return Object(o.b)(this,e,t),this},_autoreleaseForTransfer:function(e,t){return this._autoreleaseForTransferToken=Object(o.b)(this,e,t),this},_autoreleaseForTransferToken:NaN,trackReferences:!1,referenceTracker:null,overreleasedReference:null,cleanup:function(){!function(e){var t=e._weakReferences;if(t){var n,i,r,a,o=t.length,s=w._bestBatchSetterClass.begin();for(n=0;n<o;n+=3)(r=t[n])&&(i=t[n+1],a=t[n+2],i.call(r,a,s));s.end(),t.length=0}}(this),this._baseCleanupCalled=!0},didEnterPool:function(){this._baseDidEnterPoolCalled=!0},dispose:function(){this._baseDisposeCalled=!0},_baseCleanupCalled:!1,_baseDidEnterPoolCalled:!1,_baseDisposeCalled:!1,_captureDisposingObjectForPool:r.a,registerWeakReference:function(e,t,n){var i,r=this._weakReferences;if(r){var a=this._weakReferenceAvailableIndicesLength;a>=0?(i=this._weakReferenceAvailableIndices[a],this._weakReferenceAvailableIndicesLength=a-1):i=r.length+1}else r=this._weakReferences=[],this._weakReferenceAvailableIndices=[],this._weakReferenceAvailableIndicesLength=-1,i=1;return r[i-1]=e,r[i]=t,r[i+1]=n,i},deregisterWeakReference:function(e){var t=this._weakReferences;t[e-1]||(e===d?Object(i.b)("Attempted to deregister the null weak reference token.",this):Object(i.b)("Cannot deregister a weak reference that wasn't registered or was previously deregistered.",this)),t[e-1]=t[e]=t[e+1]=null,this._weakReferenceAvailableIndices[++this._weakReferenceAvailableIndicesLength]=e},_weakReferences:null,_weakReferenceAvailableIndices:null,_weakReferenceAvailableIndicesLength:-1,_trackRetain:r.a,_trackRelease:r.a,hasMixin:function(e){return this.constructor.hasMixin(e)},instanceOf:function(e){if(!e)return!1;if(e.isClass){var t=e&&e.Constructor;return!!t&&this instanceof t}return this.hasMixin(e)}}};Object.defineProperties(h,{name:{get:function(){return Object(a.a)(this)}},isNamed:{get:function(){return this.hasOwnProperty("__QUALIFIED_CLASS_NAME__")}}});var p=function(){};function f(e,t){var n,r,a=t.length;for(n=0;n<a;n++)(r=t[n])||Object(i.b)("Error: attempting to mixin undefined as a mixin to "+e.toString()+"."),r.isClass&&Object(i.b)("Error: attempting to mixin class "+r.toString()+" as a mixin to "+e.toString()+". Cannot use classes as mixins.",{class:e,mixin:r}),e.hasMixin(r)||m(e,r);return e}function m(e,t){var n,i,r;return(n=t.mixinDependencies)&&f(e,n),e.mixins.push(t),g(e,i=t.staticMembers),I(e,i),g(r=e.prototype,t),I(r,t),e.mixinWasApplied(t),e}function g(e,t){if(t){var n=t.__superMap,i=e[u];for(var r in i=i?Object.create(i):{},n){var a=n[r];i[r]=e[a]}e[u]=i}}p.prototype=h.prototype,h.Constructor=p,h.prototype.constructor=h;var b=function(e,t){var n=_(this.referenceTracker,e,t),i=++n.referenceCount;n.highestReferenceCount=Math.max(i,n.highestReferenceCount);var r=C();n.timestamps.push(r)},v=function(e,t){var n=_(this.referenceTracker,e,t),i=--n.referenceCount,r=0-C();n.timestamps.push(r),i<0&&(n.hasOverreleased=!0,this.overreleasedReference=n)};function _(e,t,n){var i=t?Object(a.a)(t):"Unknown referencer",r=n?n+" - "+i:i,o=e[r];return o||(o=e[r]={descriptor:r,referenceCount:0,highestReferenceCount:0,timestamps:[],hasOverreleased:!1}),o}var y,C=(y=Date.now(),function(){return(Date.now()-y)/1e3});function I(e,t){if(t){var n=Object.getOwnPropertyNames(t);n.push.apply(n,Object.getOwnPropertySymbols(t));for(var i=n.length,r=0;r<i;r++){var a=n[r];if("staticMembers"!==a&&"mixinDependencies"!==a){for(var o=t[a];o&&o.initializeMember;)o=o.initializeMember(e,a);void 0!==o&&(e[a]=o)}}}}var w=h.extend(l.a,{staticMembers:{begin:function(){var e=this.create();return e.retain(e,S),e._isReady=!0,e},_bestBatchSetterClass:null,init:function(){var e=arguments;this.__s._$BNp$init.apply(this,e),this._bestBatchSetterClass=this},__superMap:{_$BNp$init:"init"},__QUALIFIED_CLASS_NAME__:"NonObservableBatchSetter"},begin:function(){Object(i.b)("BatchSetter Begin must be called on the class, reusing BatchSetter objects is not allowed.")},set:function(e,t,n){this._isReady||Object(i.b)("BatchSetter Begin must be called on the class before calling set, reusing BatchSetter objects is not allowed. (Path: %{path})",{path:t,object:e,value:n}),e&&t||Object(i.b)("BatchSetter Set requires a path and an object. (Path: %{path}, Object: %{object})",{path:t,object:e,value:n});var r={rootObject:e,path:t,value:n};return this._toSetArray.push(r),this},setIfChanged:function(e,t,n){return this._isReady||Object(i.b)("BatchSetter.begin must be called on the class before calling set, reusing BatchSetter objects is not allowed. (Path: %{path}, Object: %{object})",{path:t,object:e,value:n}),n!==this._getOldValue(e,t)&&this.set(e,t,n),this},end:function(){this._performSet(this._toSetArray),this._toSetArray.length=0,this._isReady=!1;var e=this._pointerTuple;e[0]=e[1]=null,this.release(this,S)},init:function(){var e=arguments;this.__s._$C5h$init.apply(this,e),this._toSetArray=[],this._pointerTuple=new Array(2)},_isReady:!1,_toSetArray:null,_pointerTuple:null,_performSet:function(e){for(var t=this._pointerTuple,n=0,i=e.length;n<i;n++){var r=e[n],a=r.value,o=this._resolvePointer(r,t);o[0][o[1]]=a}},_resolvePointer:function(e,t){for(var n=Object(s.a)(e.path),i=e.rootObject,r=n.length,a=0;a<r-1;a++)i=i[n[a]];return t[0]=i,t[1]=n[r-1],t},_getOldValue:function(e,t){for(var n=this._toSetArray,i=n.length-1;i>=0;i--){var r=n[i],a=r.rootObject,o=r.path,s=r.value;if(a===e&&o===t)return s}return Object(c.a)(e,t)},__superMap:{_$C5h$init:"init"}}),S="BatchSetter: self-reference for the duration"},function(e,t,n){"use strict";n.d(t,"c",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"b",function(){return h});var i=n(826),r=n(819),a=n(821),o=n(828),s=n(822),c=n(823);function l(e){var t=Object(i.a)(arguments,0,1);return e.define.apply(e,t)}var u=n(84).a.extend({staticMembers:{define:function(){return this.create.apply(this,arguments)},_ancestorGuids:[],__QUALIFIED_CLASS_NAME__:"Metadata"},value:void 0,initializeMember:function(e,t){return e.hasMixin(h)||Object(r.b)("cannot add metadata to a class without CW.MetadataSupport"),e.registerMetadata(t,this,!0),this.getValue(e,t)},wasRegistered:a.a,getValue:function(e,t){return this.value},requiresSupport:null,allowedOnClass:!1,allowedOnInstance:!0,allowAtExtend:!0,allowAtRuntime:!1,allowAtCreate:!1,isOnlyMetadataForKey:!0}),d={initializeMember:function(){return{}}},h={staticMembers:{init:function(e){var t=this.prototype;p(this),p(t),this.__s._$2LT$init.call(this,e),t.initializeClass(),this.initializeClass(),this.initializeInstance()},_metadataByType:d,_metadataByKey:d,registerMetadata:f,getMetadataByType:g,getMetadata:b,initializeClass:a.a,initializeInstance:a.a,initializeRuntime:a.a,__superMap:{_$2LT$init:"init"}},init:function(e){this.__s._$33W$init.call(this,e),this.initializeInstance()},_metadataByType:d,_metadataByKey:d,registerMetadata:f,getMetadataByType:g,getMetadata:b,initializeClass:a.a,initializeInstance:a.a,initializeRuntime:a.a,__superMap:{_$33W$init:"init"}};function p(e){if(!e.hasOwnProperty("_metadataByType")){for(var t=e._metadataByType,n={},i=Object.keys(t),r=i.length,a=0;a<r;a++){var o=i[a];n[o]=Object.create(t[o])}e._metadataByType=n;var s=e._metadataByKey;e._metadataByKey=Object.create(s)}}function f(e,t,n){e||Object(r.b)("'key' is required"),t||Object(r.b)("'metadata' is required"),Object(o.a)(t,u)||Object(r.b)("Metadata must inherit from CW.Metadata");var i=t.key;i&&i!==e&&Object(r.b)("metadata cannot be registered on key '"+e+"'; it is already registered for a different key '"+i);var a=this.isClass,l=this.constructor,d=t.requiresSupport;d&&!(a?this:l).kindOf(d)&&Object(r.b)("This class does not mix in the required support for metadata of type "+Object(s.a)(t)+".",{metadata:t,requiresSupport:d});var h=this.isInitialized,f=t.allowAtExtend,m=t.allowAtCreate;if(a)t.allowedOnClass||Object(r.b)("This metadata cannot be added to a class because `allowedOnClass` is false (key: '"+e+"', class: "+this+", metadata: "+t.constructor+").",{key:e,onClass:this,metadata:t}),h||f||m||Object(r.b)("New static metadata may not be added at extend time when `allowAtExtend` and `allowAtCreate` are false (key: '"+e+"', class: "+this+", metadata: "+t.constructor+").",{key:e,onClass:this,metadata:t});else{t.allowedOnInstance||Object(r.b)("This metadata cannot be added to an instance because `allowedOnInstance` is false (key: '"+e+"', instance of: "+l+", metadata: "+t.constructor+").",{key:e,instance:this,metadata:t});var g=l.isInitialized;g||h||f||Object(r.b)("New metadata may not be added in extend when `allowAtExtend` is false (key: '"+e+"', instance of: "+l+", metadata: "+t.constructor+").",{key:e,instance:this,metadata:t}),!g||h||m||Object(r.b)("New metadata may not be added in create when `allowAtCreate` is false (key: '"+e+"', instance of: "+l+", metadata: "+t.constructor+").",{key:e,instance:this,metadata:t})}h&&(t.allowAtRuntime?this.initializeRuntime():Object(r.b)("New metadata may not be added at runtime when `allowAtRuntime` is false (key: '"+e+"', instance: "+this+", metadata: "+t.constructor+").",{key:e,instance:this,metadata:t}));var b=t.constructor,v=this._metadataByKey[e];v&&v.isOnlyMetadataForKey&&t.isOnlyMetadataForKey&&!t.instanceOf(v.constructor)&&Object(r.b)("isOnlyMetadataForKey metadata may only be overridden if the new value is the same type or a subclass (key: '"+e+"', target: "+this+", metadata: "+t.constructor+").",{key:e,target:this,metadata:t}),p(this);var _=this._metadataByKey,y=this._metadataByType;t.isOnlyMetadataForKey||(v=null);var C=void 0;if(b.hasOwnProperty("_ancestorGuids"))C=b._ancestorGuids;else{C=b._ancestorGuids=[];for(var I=b.ancestors,w=I.length,S=0;S<w&&I[S]!==u;S++);for(S++;S<w;S++){var A=I[S];C.push(Object(c.b)(A))}C.push(Object(c.b)(b))}var O=C.length;if(!v){var E=y[C[0]];E&&(v=E[e])}for(var T=0;T<O;T++){var D=C[T],L=y[D];L||(y[D]=L={}),L[e]=t}if(t.isOnlyMetadataForKey&&(_[e]=t),t.key=e,!n){var N=t.getValue(this,e);void 0!==N&&(this[e]=N)}t.wasRegistered(this,e,v)}var m={};function g(e){return this._metadataByType[Object(c.b)(e)]||m}function b(e){return this._metadataByKey[e]}},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"c",function(){return m}),n.d(t,"b",function(){return g});var i=n(831),r=n(832),a=n(819),o=n(838),s=n(841),c=n(85),l=n(840),u=n(179),d=c.a.extend({instantiate:null,init:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=n[0];e===Array?e=r||[]:e===Object&&(e=r||{}),this.value=e,this.configs=n,this.__s._$1Pq$init.call(this)},wasRegistered:function(e,t){var n=this.value;Object(l.a)(n)?this.instantiate=h:Object(i.a)(n)?this.instantiate=p:Array.isArray(n)||Object(r.a)(n)?this.instantiate=f:Object(a.b)("Error on key '%{key}': CW.instance may only instantiate CW classes, JavaScript constructors, and arrays.",{key:t,object:e,type:n})},configs:null,requiresSupport:g,isOnlyMetadataForKey:!1,allowedOnClass:!0,allowAtCreate:!0,__superMap:{_$1Pq$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Instance"}}),h=function(e,t,n){if(!Object(o.a)(t))return t;if(Object(u.a)(t))return t;var i,a;Object(r.a)(t)||Array.isArray(t)?(i=this.value,a=[t]):(i=t,a=this.configs);var s=i.create.apply(i,a);return s.owner=s.owner||n,s},p=function(e,t,n){if(!Object(i.a)(t))return t;var r=t;return new(Function.prototype.bind.apply(r,[null].concat(this.configs)))},f=function(e,t,n){return Object(s.a)(t)};function m(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return d.define.apply(d,[e].concat(n))}var g={mixinDependencies:[c.b],staticMembers:{initializeInstance:function(){var e=this.getMetadataByType(d);for(var t in e){var n,i=e[t];n=this.hasOwnProperty(t)?this[t]:i.value,this[t]=i.instantiate(t,n,this)}this.__s._$2fY$initializeInstance.call(this)},__superMap:{_$2fY$initializeInstance:"initializeInstance"}},initializeInstance:function(){var e=this.getMetadataByType(d);for(var t in e){var n=e[t],i=this[t];this[t]=n.instantiate(t,i,this)}this.__s._$2m4$initializeInstance.call(this)},__superMap:{_$2m4$initializeInstance:"initializeInstance"}}},function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p}),n.d(t,"c",function(){return m});var i=n(95),r=n(84),a=n(833),o=n(819),s=n(196),c=n(154),l=n(844),u={upstreamNode:0,downstreamNode:0,clear:function(){this.upstreamNode=0,this.downstreamNode=0}},d=Object(i.b)("BindingConnection",function(e){e("CONNECT"),e("DONT_CONNECT"),e("OPTIONAL")}),h=Symbol("CW.OWNER"),p=r.a.extend(d.toStaticMixin(),{staticMembers:{createForPaths:function(e){var t,n,i=e?e.length:0,r=new Array(i);if(!e)return r;for(t=0;t<i;t++)(n=e[t]).instanceOf&&n.instanceOf(this)||(n=this.create(n)),r[t]=n;return r},hookUpBinding:function(e,t,n,i,r,o,s){t&&Object(a.a)(t)&&(t=this.create(t)),n&&Object(a.a)(n)&&(n=this.create(n)),void 0===o&&(o=this.OPTIONAL),void 0===s&&(s=this.CONNECT),u.clear(),f(e,t,i,!0,u);var c=u.upstreamNode,d=u.downstreamNode;u.clear(),f(e,n,i,!1,u);var h=u.upstreamNode,p=u.downstreamNode;if(s!==this.DONT_CONNECT)if(d>0&&p>0)l.a.addChildToNode(p,d,r);else if(s===this.CONNECT)return!1;if(o!==this.DONT_CONNECT)if(c>0&&h>0)l.a.addChildToNode(c,h,i);else if(o===this.CONNECT)return!1;return!0},hookUpDownstreamNode:function(e,t,n,i){u.clear(),f(e,t,!1,!0,u);var r=u.downstreamNode;return!(r<=0||(l.a.addChildToNode(n,r,i),0))},__QUALIFIED_CLASS_NAME__:"Binding"},rootObject:null,path:"",components:null,init:function(e,t){this.__s._$3ez$init.call(this),e||Object(o.b)("Cannot create CW.Binding with no path.",{path:e});var n=!1;"."===e[0]&&(n=!0,e=e.substring(1));var i=Object(s.a)(e),r=i[0];n||("global"===r||"🌐"===r?(t=window,i.shift()):"(owner)"===r&&(t&&Object(o.b)("Cannot create a CW.Binding relative to (owner): %{path}. It already has a root object.",{rootObject:t,path:e}),t=h,i.shift())),t!==h&&0===i.length&&Object(o.b)("Cannot create CW.Binding with an invalid path ('%{path}').",{path:e,rootObject:t}),this.components=i,this.path=i.join("."),t&&(this.rootObject=t)},__superMap:{_$3ez$init:"init"}});function f(e,t,n,i,r){var a,s=t.components,u=s.length,d=0,p=t.rootObject||e;for(p===h&&Object(o.b)("CW.Binding cannot resolve path %{path}. (owner) was specified, but a value was not provided.",{path:t.path}),a=s[d];p&&(!p.downstreamNodes||!p.downstreamNodes.hasOwnProperty(a));)p=p[a],a=s[++d];if(!p||d===u){var f=s.join(".");Object(o.b)("No observable properties found along binding path ("+f+").",{object:e,path:f})}return d===u-1?function(e,t,n){var i=e.upstreamNodes[t];(i=l.a._sanitizeNodeID(i))>0&&(n.upstreamNode=i);var r=e.downstreamNodes[t];return(r=l.a._sanitizeNodeID(r))>0&&(n.downstreamNode=r),n}(p,a,r):function(e,t,n,i,r,a,o){var s,l,u=n.length,d=n[i],h=d;for(s=c.b.instanceFor(d).setUpForObject(e,t),i++;i<u-1;i++)h+="."+(d=n[i]),s=c.a.instanceFor(d,h).setUpForObject(e,t,s);return h+="."+(d=n[i]),(l=a?c.c.instanceFor(d,h):c.d.instanceFor(d,h)).setUpForObject(e,t,s,r),o.downstreamNode=l.getDownstreamProxyNode(t),o.upstreamNode=l.getUpstreamProxyNode(t),o}(e,p,s,d,n,i,r)}function m(e){return p.create(e)}},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r}),n.d(t,"c",function(){return a});var i={Pointer:"pointer",Touch:"touch",Mouse:"mouse",None:"none"},r=n(818).a.extend({init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.window,n=void 0===t?window:t,r=e.navigator,a=void 0===r?navigator:r,o=e.document,s=void 0===o?document:o,c=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["window","navigator","document"]),l=this.isPointerSupported="PointerEvent"in n,u="createTouch"in s||"Touch"in n;this.isTouchSupported=l?a.maxTouchPoints>0:u,this.isMouseSupported="onmousedown"in s,this.isMouseWheelSupported="onwheel"in s||"onmousewheel"in s,this.isInputSupported=!0,this.__s._$eB$init.call(this,c);var d;d=this.isPointerSupported?i.Pointer:this.isTouchSupported?i.Touch:this.isMouseSupported?i.Mouse:i.None,this.pointerEventClass=d},pointerEventClass:i.None,isPointerSupported:!1,isTouchSupported:!1,isMouseSupported:!1,isMouseWheelSupported:!1,isInputSupported:!1,__superMap:{_$eB$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EventCapabilities"}}),a=r.create()},function(e,t,n){"use strict";n.d(t,"b",function(){return w}),n.d(t,"a",function(){return O}),n.d(t,"c",function(){return E});var i=n(819),r=n(383),a=n(839),o=n(889),s=n(828),c=n(821),l=n(853),u=n(81),d=n(86),h=n(79),p=n(844),f=n(78),m=n(512),g=n(511),b=n(884),v=n(98),_=n(883),y=n(286),C=y.a.INSERT,I=y.a.REMOVE,w=l.a.extend(f.b,g.a,_.a,{staticMembers:{INSERT:C,REMOVE:I,shouldAutomaticallySubclass:!0,__QUALIFIED_CLASS_NAME__:"ObservableArray"},isObservable:!0,firstItem:Object(v.b)({dependencies:["contentsDidChangeUntracked"],writeDependencies:[],get:function(){return this.objectAt(0)}}),lastItem:Object(v.b)({dependencies:["length","contentsDidChangeUntracked"],writeDependencies:[],get:Object.assign(function(){return this.objectAt(this.length-1)},{__CW__getter:function(e,t,n,i){return this.objectAt(i.internalGet(this,t[0+n])-1)}})}),itemsWillChange:function(){this._ignoreCount>0||(p.a.pause(),this.changes||(this.changes=this.changesClass.acquire(this)))},itemsWereInserted:function(e,t){if(!(this._ignoreCount>0||t<=0)){var n,i,r=this.changes;if(A(this)){var a=e+(t-1);for(n=e;n<=a;n++)r.recordInsertion(n,this._array[n])}else r.lengthDelta+=t;var o,s,c=this._iterators;for(i=c.length,n=0;n<i;n++)(o=c[n]).shouldObserveChanges&&(s=o.position)>=e&&(o.position=s+t)}},itemsWillBeRemoved:function(e,t){if(!(this._ignoreCount>0||t<=0)){var n,i=this.changes,r=e+t;if(A(this))for(n=r-1;n>=e;n--)i.recordRemoval(n,this._array[n]);else i.lengthDelta-=t;var a,o,s,c=this._internalLength===t,l=this._iterators;for(n=0,a=l.length;n<a;n++)(o=l[n]).shouldObserveChanges&&(s=o.position,c?(o.position=void 0,o.wasRemoved=!0):s>=e&&(s<r?(o.position=void 0,o.wasRemoved=!0):o.position=s-t))}},itemsDidChange:function(){this._ignoreCount>0||(this.notifyIfNecessary(),p.a.resume())},notifyIfNecessary:function(){var e,t;0===this._batchCount&&(t=(e=this).changes,e.contentsDidChangeUntracked(),t&&(t.length||0!==t.lengthDelta)&&e._shouldFireLengthChange&&(0!==t.lengthDelta&&e.propertyChanged("length"),e.contentsDidChange(t)))},_shouldFireLengthChange:!0,length:Object(v.b)({writeDependencies:["contentsDidChange","contentsDidChangeUntracked"],cacheable:!1,set:Object.assign(function(){var e=arguments;if(this._shouldFireLengthChange=!1,this.__s._$2vx$set.apply(this,e),this._shouldFireLengthChange=!0,0===this._batchCount){this.contentsDidChangeUntracked=void 0;var t=this.changes;t&&(this.contentsDidChange=t)}},{__CW__setter:function(e,t,n,i,r){var a=arguments;if(this._shouldFireLengthChange=!1,this.__s._$2vx$set.apply(this,a),this._shouldFireLengthChange=!0,0===this._batchCount){n[1+i]=void 0;var o=this.changes;o&&(n[0+i]=o)}}}),didChange:function(){},__superMap:{_$2vx$set:"set"},writeDependencySetPathMap:["false","false"]}),sort:function(){var e=arguments;this.beginBatchedChanges();var t=this.__s._$38w$sort.apply(this,e);return this.endBatchedChanges(),t},addEach:function(){var e=arguments;this.beginBatchedChanges();var t=this.__s._$3Bh$addEach.apply(this,e);return this.endBatchedChanges(),t},reverse:function(){var e=arguments;this.beginBatchedChanges();var t=this.__s._$3ES$reverse.apply(this,e);return this.endBatchedChanges(),t},changes:Object(u.d)(),changesClass:O,_batchCount:0,beginBatchedChanges:function(){this._batchCount++},endBatchedChanges:function(){this._batchCount--,this.notifyIfNecessary(),this._batchCount<0&&Object(i.b)("Mismatched batched changes in observable array: "+this,{array:this}),this.notifyEverythingChangedIfNecessary()},swap:function(){var e=arguments;this.beginBatchedChanges();var t=this.__s._$3dr$swap.apply(this,e);return this.endBatchedChanges(),t},move:function(){var e=arguments;this.beginBatchedChanges();var t=this.__s._$3hn$move.apply(this,e);return this.endBatchedChanges(),t},contentsDidChange:Object(f.i)({didPropagate:function(){if(0===this._batchCount){var e=this.changes;e&&(this.changesClass.returnToPool(e),this.changes=null)}}}),iteratorClass:m.a,serializer:Object(v.b)(),_iterators:Object(d.c)(Array),_registerIterator:function(e){this._iterators.push(e)},_unregisterIterator:function(e){Object(r.a)(e,this._iterators)},contentsDidChangeUntracked:Object(f.i)(),HandleProviderClass:b.a,encodedHandleFor:function(e){var t=this.encodedIndexOf(e);return this.startHandle.atDistance(t)},_ignoreCount:0,beginIgnoringChanges:function(){this._ignoreCount++},endIgnoringChanges:function(){this._ignoreCount--,0===this._ignoreCount&&(this._notifyEverythingChanged=!0,this.notifyEverythingChangedIfNecessary())},notifyEverythingChangedIfNecessary:function(){0===this._batchCount&&this._notifyEverythingChanged&&(this.propertyChanged("length"),this.everythingChanged())},everythingChanged:Object(f.i)({didPropagate:function(){this._notifyEverythingChanged=!1}}),__superMap:{_$38w$sort:"sort",_$3Bh$addEach:"addEach",_$3ES$reverse:"reverse",_$3dr$swap:"swap",_$3hn$move:"move"}}),S=[];function A(e){var t=e.downstreamNodes.contentsDidChange,n=p.a.getChildrenIDs(t,S).length>0;return S.length=0,n}function O(e){this.owner=e}O.fromArrays=function(e,t,n){var i=new O(n),r=n&&n.encode||a.a;if(!e||0===e.length){for(var s=0,c=t.length;s<c;s++)i.recordInsertion(s,r.call(n,t[s],s));return i}if(!t||0===t.length){for(var l=0,u=e.length;l<u;l++)i.recordRemoval(l,r.call(n,e[l],l));return i}for(var d=Math.min(e.length,t.length),h=0;h<d;h++)Object(o.a)(e[h],t[h])||(i.recordRemoval(h,r.call(n,e[h],h)),i.recordInsertion(h,r.call(n,t[h],h)));var p=t.length-e.length;if(p>0)for(var f=d;f<t.length;f++)i.recordInsertion(f,r.call(n,t[f],f));else if(p<0)for(var m=d;m<e.length;m++)i.recordRemoval(m,r.call(n,e[m],m));return i},O.prototype=Object.create(Array.prototype),O.prototype.lengthDelta=0,O.prototype.recordInsertion=function(e,t){this.push(D(this.owner,e,t,C)),this.lengthDelta++},O.prototype.recordRemoval=function(e,t){this.push(D(this.owner,e,t,I)),this.lengthDelta--},O.prototype.applyChanges=function(e){var t=this.length,n=Object(s.a)(e,l.a),i=Object(s.a)(e,w);if(n){i&&e.beginBatchedChanges();for(var r=0;r<t;r++){var a=this[r];a.operation===I?e.encodedSplice(a.index,1):e.encodedSplice(a.index,0,a.encodedItem)}i&&e.endBatchedChanges()}else for(var o=0;o<t;o++){var c=this[o];c.operation===I?e.splice(c.index,1):e.splice(c.index,0,c.item)}return e},O.prototype.reverseChanges=function(e){var t=this.length,n=Object(s.a)(e,l.a),i=Object(s.a)(e,w);if(n){i&&e.beginBatchedChanges();for(var r=t-1;r>=0;r--){var a=this[r];a.operation===I?e.encodedSplice(a.index,0,a.encodedItem):e.encodedSplice(a.index,1)}i&&e.endBatchedChanges()}else for(var o=t-1;o>=0;o--){var c=this[o];c.operation===I?e.splice(c.index,0,c.item):e.splice(c.index,1)}return e},O.prototype.clear=function(){for(var e=this.length;e--;){var t=this[e];delete this[e],t.reset(),L.length<N&&L.push(t)}this.length=0,this.lengthDelta=0},O.prototype.toString=function(){return"[ArrayChangeList("+this.length+"): "+this.join(", ")+"]"},O.prototype.get=function(e){return this[e]},O.prototype.set=function(e,t){return this[e]=t},O.prototype.objectAt=function(e){return this[e]};var E=function(e){function t(){return function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.recordInsertion=function(t,n){Object(h.f)(n,this,"StrongArrayChangeList: strong referencing change item"),e.prototype.recordInsertion.call(this,t,n)},t.prototype.recordRemoval=function(t,n){Object(h.f)(n,this,"StrongArrayChangeList: strong referencing change item"),e.prototype.recordRemoval.call(this,t,n)},t.prototype.clear=function(){for(var t=this.length;t--;){var n=this[t];Object(h.e)(n.item,this,"StrongArrayChangeList: strong referencing change item")}e.prototype.clear.call(this)},t}(O);function T(e,t,n,i){this._sourceArray=e,this.index=t,this.encodedItem=n,this.operation=i}function D(e,t,n,i){if(L.length>0){var r=L.pop();return r._sourceArray=e,r.index=t,r.encodedItem=n,r.operation=i,r}return new T(e,t,n,i)}T.prototype.reset=function(){this._sourceArray=null,this.encodedItem=null,this.index=null,this.operation=null},T.prototype.toString=function(){return"["+this.operation+"@"+this.index+":"+this.item+"]"},Object.defineProperty(T.prototype,"item",{get:function(){var e=this.encodedItem,t=this.index,n=this._sourceArray;return n&&n.decode&&(e=n.decode(e,t)),e},set:c.a}),Object.defineProperty(T.prototype,"object",{get:function(){return this.item},set:c.a});var L=[],N=100;O.pool=[],E.pool=[],O.acquire=function(e){if(this.pool.length){var t=this.pool.pop();return t.owner=e,t}return new this(e)},O.returnToPool=function(e){e.clear(),e.owner=null,this.pool.push(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return b}),n.d(t,"c",function(){return y}),n.d(t,"b",function(){return C}),n(1);var i=n(818),r=n(86),a=n(862),o=n(869),s=n(892),c=n(819),l=n(821),u=n(863),d=n(828),h=n(88),p=n(283),f=n(103),m=n(872),g=n(379),b=i.a.extend(m.a,{application:null,events:null,init:function(e){var t=e&&e.element;if(t){var n=window.document,i=t;t===n&&(i=n.body),this._cursorLockElement=i,delete e.element}if(this.__s._$aV$init.call(this,e),this._eventListeners=new Map,this.events){var r=this.events,o=Array.isArray(r),s=0;for(r=o?r:r[Symbol.iterator]();;){var c;if(o){if(s>=r.length)break;c=r[s++]}else{if((s=r.next()).done)break;c=s.value}var l=c,u=l.handlers,d=l.useCapture,h=Object.entries(u),p=Array.isArray(h),f=0;for(h=p?h:h[Symbol.iterator]();;){var m;if(p){if(f>=h.length)break;m=h[f++]}else{if((f=h.next()).done)break;m=f.value}var g=m,b=g[0],v=g[1],_=Object(a.a)(v.bind(this));this._eventListeners.set(b,[_,{capture:d||!1,passive:!1}])}}}t&&this.addEventListenersToElement(t)},addEventListenersToElement:function(e){var t=window.document;!t||e!==t.body&&e!==t.documentElement||(e=window.document),v(e),this._listenedElements.push(e);var n=this._eventListeners.entries(),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var s=a,c=s[0],l=s[1],u=l[0],d=l[1];Object(o.a)(e,c,u,d)}},prependEventListenerToElement:function(e,t,n,i){var r=this._listenedElements.indexOf(e)>=0;r&&this._removeEventListener(e,t),Object(o.a)(e,t,n,i),r&&this._addEventListener(e,t)},_addEventListener:function(e,t){if(this._eventListeners.has(t)){var n=this._eventListeners.get(t),i=n[0],r=n[1];Object(o.a)(e,t,i,r)}},_removeEventListener:function(e,t){if(this._eventListeners.has(t)){var n=this._eventListeners.get(t),i=n[0],r=n[1];Object(s.a)(e,t,i,r)}},_listenedElements:Object(r.c)(Array),_eventListeners:null,dispatchEvent:function(e){e||Object(c.b)("RootResponder#dispatchEvent requires an event.");var t=e.cwType;"keyDown"!==t&&"keyUp"!==t||p.a.sharedInstance[t](e),"pointerDown"===t&&p.a.sharedInstance.syncMetaKeyStateFromEvent(e);var n,i=void 0;"number"==typeof e.pointerId&&(i=this.getPointerCapture(e.pointerId));var r=y(e);if(e.targetView=r,this._synthesizePointerMoveEventsIfNecessary(e),i){if(!function(e,t){var n=t.cwType;if("pointerUp"===n||"pointerCancel"===n||"pointerMove"===n)return!0;var i=_(t.target);return!i||e.get("element")===i}(i,e))return;n=i}else(n=r)||(n=this.getPath("application.topFocusLayer.focusResponder"));n||(n=this),this.willDispatchEvent(e);var a=!1;if(e.bubbles?a=Object(g.a)(n,t,e):n.handleEvent&&(w[0]=t,w[1]=e,a=n.handleEvent.apply(n,w),w[0]="",w[1]=null),this.didDispatchEvent(e,a),e.pointerType===f.b.TOUCH&&("pointerUp"===t||"pointerCancel"===t)){if(!r||!r.isDisposed){var o=f.a.create({nativeEvent:e,cwType:"pointerOut",target:e.target});this.dispatchEvent(o)}for(var s=r;s&&!s.isDisposed;){var l=f.a.create({cwType:"pointerLeave",bubbles:!1,target:s.element});this.dispatchEvent(l),s=s.parent}}return a},_synthesizePointerMoveEventsIfNecessary:function(e){var t,n=e.cwType;if("pointerOut"===n&&this._checkIfPointerLeft(e),"pointerMove"===n&&this._dispatchPointerEnterOrLeave(e,e.targetView),e.pointerType===f.b.TOUCH&&"pointerDown"===n)for(t=e.targetView;t;){var i=f.a.create({cwType:"pointerEnter",bubbles:!1,target:t.element});this.dispatchEvent(i);var r=f.a.create({target:t.element,bubbles:!1,cwType:"pointerOver"});this.dispatchEvent(r),t=t.parent}},_checkIfPointerLeft:function(e){for(var t=e.relatedTarget,n=this._listenedElements,i=n.length,r=0;r<i;r++)if(n[r].contains(t))return;return this._pointerLeft(e)},_previousPointerMoveView:null,_previousViewAncestors:Object(r.c)(Array),_previousViewAncestorsSwap:Object(r.c)(Array),_pointerLeft:function(e){return this._dispatchPointerEnterOrLeave(e,null),!1},_dispatchPointerEnterOrLeave:function(e,t){if(t!==this._previousPointerMoveView){var n=this._previousViewAncestorsSwap;n.length=0;for(var i=t;i;)n.push(i),i=i.parent;for(var r,a=n.length-1,o=this._previousViewAncestors,s=o.length-1;o[s]===n[a]&&s>=0&&a>=0;)s--,a--;for(r=0;r<=s;r++){var c=o[r];if(!c.isDisposed){var l=f.a.create({cwType:"pointerLeave",bubbles:!1,target:c.element});this.dispatchEvent(l)}}for(r=0;r<=a;r++){var u=n[r],d=f.a.create({cwType:"pointerEnter",bubbles:!1,target:u.element});this.dispatchEvent(d)}this._previousViewAncestors=n,this._previousViewAncestorsSwap=o,this._previousPointerMoveView=t}},willDispatchEvent:l.a,didDispatchEvent:l.a,lockCursor:function(e){var t;switch(e){case"default":t="cw-global-cursor-default";break;case"pointer":t="cw-global-cursor-pointer";break;case"horizontal-resize":t="cw-global-cursor-horizontal-resize";break;case"vertical-resize":t="cw-global-cursor-vertical-resize"}var n=this._cursorLockElement;t&&n.classList.add(t),this._cursorLockClassName=t,Object(o.a)(n,"selectstart",I)},releaseCursor:function(){var e=this._cursorLockClassName,t=this._cursorLockElement;e&&t.classList.remove(e),this._cursorLockClassName=null,Object(s.a)(t,"selectstart",I)},__superMap:{_$aV$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"RootResponder"}}),v=function(e){if(h.c.isPointerSupported){var t=window.document;e===t&&(e=t.body);var n=e.style;n?(n.msTouchAction="none",n.touchAction="none"):u.b.warn("Could not attach `touch-action` property to the `RootResponder`’s element. Some touch events will be handled by default browser behavior instead of going to the `RootResponder`.")}};function _(e){return Object(d.a)(e,window.SVGElementInstance)?e.correspondingElement:e}function y(e){return C(_(e.target))}function C(e){for(var t;e&&!(t=e.view);)e=e.parentNode;return t}function I(e){return e.preventDefault&&e.preventDefault(),!1}var w=new Array(2)},function(e,t,n){"use strict";n.d(t,"c",function(){return s}),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var i=n(818),r=n(847),a=n(819),o=n(863),s=i.a.extend(r.a,{init:function(e){e||Object(a.b)("Storage#init requires a storage type."),this.__s._$Iw$init.call(this),this.storageType=e},storageType:null,getItem:function(e,t){var n=u(this.storageType);return n&&n.getItem?(t&&(e=t+"."+e),n.getItem(e)):null},setItem:function(e,t,n){var i=u(this.storageType);if(i&&i.setItem){n&&(e=n+"."+e);try{return i.setItem(e,t),!0}catch(e){}}return!1},getKeys:function(e){var t=u(this.storageType),n=[];if(t){var i=(e=e?e+".":"").length,r=function(t){return 0===t.indexOf(e)},a=function(e){return e.substring(i)};if(void 0!==t.length&&"function"==typeof t.key)for(var o=0,s=t.length;o<s;o++){var c=t.key(o);r(c)&&n.push(a(c))}else n=Object.keys(t).filter(r).map(a)}return n},removeItem:function(e,t){var n=u(this.storageType);if(n&&n.removeItem){t&&(e=t+"."+e);try{return n.removeItem(e),!0}catch(e){}}return!1},clear:function(e){var t=u(this.storageType);if(t){if(e){for(var n=this.getKeys(e),i=0,r=n.length;i<r;i++)this.removeItem(n[i],e);return!0}try{return t.clear(),!0}catch(e){}}return!1},__superMap:{_$Iw$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"StorageManager"}}),c=s.extend({init:function(){this.__s._$1hX$init.call(this,"localStorage")},__superMap:{_$1hX$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LocalStorage"}}),l=s.extend({init:function(){this.__s._$1mn$init.call(this,"sessionStorage")},__superMap:{_$1mn$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SessionStorage"}});function u(e){try{return window[e]}catch(t){o.b.warn("Could not get storage object for %@: %@",e,t)}}},function(e,t,n){"use strict";n.d(t,"c",function(){return _}),n.d(t,"b",function(){return y}),n.d(t,"a",function(){return w});var i=n(95),r=n(818),a=n(81),o=n(86),s=n(294),c=n(878),l=n(838),u=n(821),d=n(550),h=n(98),p=n(142),f=n(106),m=n(78),g=n(107),b=n(393),v=n(394),_=Object(i.b)("ListPosition",function(e){e("Top"),e("Bottom")}),y=v.a.extend({rowHeight:Object(h.b)(30),rowSpacing:Object(h.b)(0),topPadding:Object(h.b)(0),bottomPadding:Object(h.b)(0),initialPosition:Object(h.b)({defaultValue:_.Top,type:_}),minimumSizePosition:Object(h.b)({defaultValue:_.Top,type:_}),shouldStickAtTop:Object(h.b)(!1),shouldStickAtBottom:Object(h.b)(!1),topInset:Object(h.b)(0),hideableTopHeight:Object(h.b)(0),hideableBottomHeight:Object(h.b)(0),shouldStartHidden:Object(h.b)(!0),staticMembers:{__QUALIFIED_CLASS_NAME__:"ListLayoutMetrics"}}),C=p.a.create().retain(window,"initial retain"),I=f.a.create().retain(window,"initial retain"),w=r.a.extend(b.a,m.b,{staticMembers:{LayoutMetricsClass:y,__QUALIFIED_CLASS_NAME__:"ListLayoutDelegate"},isAtEnd:null,_distancePastEnd:0,setUpInitialCell:function(e,t,n){var i=e.layoutMetrics.initialPosition;return i===_.Top?this.setUpFirstCell(e,t,n):i===_.Bottom?this.setUpLastCell(e,t,n):void 0},setUpFirstCell:function(e,t,n){if(!t)return null;var i=t.startHandle.retain(this,"setUpFirstCell");if(!i.isValid)return i.release(this,"setUpFirstCell"),null;var r=this.cellForHandle(i).retain(this,"setUpFirstCell");i.release(this,"setUpFirstCell");var a=this.topForCell(e,r),o=e.layoutMetrics;o.shouldStartHidden||(a+=o.hideableTopHeight);var s=r.isLaidOut;return this.layOutCellInDirection(e,r,1,a,1,this.leftForCell(e,r)),n&&(r.isLaidOut=s),r.autorelease(this,"setUpFirstCell")},setUpLastCell:function(e,t,n){if(!t)return null;var i=t.handleProvider.endHandle.retain(this,"setUpLastCell");if(!i.isValid)return i.release(this,"setUpLastCell"),null;var r=this.cellForHandle(i).retain(this,"setUpLastCell");i.release(this,"setUpLastCell");var a=e.viewportHeight-this.spaceBelowCell(e,r),o=e.layoutMetrics;o.shouldStartHidden||(a-=o.hideableBottomHeight);var s=r.isLaidOut;return this.layOutCellInDirection(e,r,-1,a,1,this.leftForCell(e,r)),n&&(r.isLaidOut=s),r.autorelease(this,"setUpLastCell")},_findCellForItemInDirection:function(e,t,n,i){for(n=n.next;n.isValid;){if(n.value===t)return this.cellForHandle(n).retain().autorelease();n=n.atDistance(i)}return null},_findCellForItem:function(e,t,n,i){var r=n.find(function(e){return e.handle.value===i});return r||((r=this._findCellForItemInDirection(e,i,n.objectAt(0).handle,-1))?r:r=this._findCellForItemInDirection(e,i,n.lastItem.handle,1))},getCellForItem:function(e,t,n,i){var r=this._findCellForItem(e,t,n,i);if(!r)return null;if(r.retain(),n.contains(r))return r;var a=n.objectAt(0),o=this.topForCell(e,a)-a.y;return this.layOutCellInDirection(e,r,1,this.topForCell(e,r)-o,1,this.leftForCell(e,r)),r.autorelease()},layOutCellsInDirection:function(e,t,n,i,r){for(var a=n,o=e.viewportBounds,s=i>0,c=!1;;){var u=a;if(a=this.positionNextCell(e,u,i),!Object(l.a)(a))return r;if(a.retain(this,"layOutCellsInDirection"),this.cellIsVisible(e,o,a))c=!0,this.isCellAnchorable(a)&&(r=!0);else if(c&&r||u.y*i>0)return a.release(this,"layOutCellsInDirection"),a.isLaidOut=!1,r;s?t.push(a):t.unshift(a),a.release(this,"layOutCellsInDirection")}},cellIsVisible:function(e,t,n){return n.intersects(t)},_visibleCells:Object(a.d)({strong:!0,defaultValue:Object(o.c)(s.a)}),_previousVisibleCells:Object(a.d)({strong:!0,defaultValue:Object(o.c)(s.a)}),acquireVisibleCells:function(e,t,n){var i=this._visibleCells.retain(this,"acquireVisibleCells: swapping visibleCells"),r=this._previousVisibleCells.retain(this,"acquireVisibleCells: swapping visibleCells");return this._visibleCells=r,this._previousVisibleCells=i,i.length=0,i.release(this,"acquireVisibleCells: swapping visibleCells"),r.release(this,"acquireVisibleCells: swapping visibleCells"),i},reusePreviousVisibleCells:function(e,t,n,i,r){for(var a=e.viewportBounds,o=i.length,s=0;s<o;s++){var c=i.objectAt(s);c.isReusable||c.invalidate()}var l=r.movedBy;l&&this.handleMovedBy(l.x,l.y,e,t,n,i);var u=r.itemShown;if(u){var d=r.itemShownAt,h=d.x,p=d.y;this.handleShowItem(u,h,p,e,t,n,i)}var f=r.itemScrolledTo;f&&this.handleScrollToItem(f,e,t,n,i);var m=r.sizeChangedBy;m&&this.handleSizeChangedBy(m.width,m.height,e,t,n,i),r.everythingChanged&&this.handleEverythingChanged(e,t,n,i,r),r.collectionChanged&&this.invalidateOtherCells(i);var g=r.itemsChanges;g&&this.handleItemsChanges(g,e,t,n,i,r);var b=r.invalidItems;b&&this.handleInvalidItems(b,e,t,n,i,r);var v=r.layoutMetricsChanged;v&&this.handleLayoutMetricsChanged(v,e,t,n,i,r);for(var _=!1,y=!1,C=0;C<o;C++){var I=i.objectAt(C);!y&&I.isReusable&&I.isLaidOut&&this.cellIsVisible(e,a,I)?(I.retain(this,"reusePreviousVisibleCells: retaining reused cells"),n.push(I),I.release(this,"reusePreviousVisibleCells: retaining reused cells"),_=!0):_?(y=!0,I.isLaidOut=!1):I.isLaidOut=!1}},handleLayoutMetricsChanged:function(e,t,n,i,r,a){var o=t.layoutMetrics;if(e.contains("rowHeight")){this.invalidateOtherCells(r);var s=this.topMostItem(t,r);this.recoverLayoutFromCell(t,s)}else if(e.contains("rowSpacing")){var c=this.topMostItem(t,r);this.invalidateOtherCells(r,c)}else if(e.contains("hideableTopHeight")){if(o.shouldStartHidden&&this.isAtEnd===_.Top&&o.initialPosition===_.Top){var l=this.setUpFirstCell(t,n,!0);this.invalidateOtherCells(r,l)}}else if(e.contains("hideableBottomHeight")){if(o.shouldStartHidden&&this.isAtEnd===_.Bottom&&o.initialPosition===_.Bottom){var u=this.setUpLastCell(t,n,!0);this.invalidateOtherCells(r,u)}}else this.handleEverythingChanged(t,n,i,r,a)},recoverLayoutFromCell:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=t.handle;i.wasRemoved||i.isValid&&this.layOutCellInDirection(e,t,1,n.y,1,n.x)},handleEverythingChanged:function(e,t,n,i,r){if(this.invalidateOtherCells(i),!this.isAtEnd){var a=this.topMostValidItem(e,i);if(!a)return;a.retain(this,"handleEverythingChanged: first valid cell"),this.recoverLayoutFromCell(e,a),a.release(this,"handleEverythingChanged: first valid cell")}},handleInvalidItems:function(e,t,n,i,r,a){e.forEach(function(e){var t=this.cellForHandle(e).retain(this,"handleInvalidItems: invalid cell");t.invalidate(),t.release(this,"handleInvalidItems: invalid cell")},this);for(var o=r.length,s=0;s<o;s++){var c=r.objectAt(s);e.contains(c.handle)&&c.invalidate()}},invalidateOtherCells:function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e.objectAt(i);r!==t&&r.invalidate()}},handleItemsChanges:function(e,t,n,i,r,a){this.handleEverythingChanged(t,n,i,r,a)},handleCollectionChanged:function(e,t,n,i,r){var a=this.setUpInitialCell(e,t);a&&(a.retain(this,"handleCollectionChanged"),n.push(a),a.release(this,"handleCollectionChanged"),this.isAtEnd=e.layoutMetrics.initialPosition,this._distancePastEnd=0)},endOffset:function(e,t,n){var i=this.isAtEnd,r=this._distancePastEnd,a=0,o=e.layoutMetrics;if(i===_.Top){var s=o.hideableTopHeight;r=Math.min(r,s);var c=this.topMostLaidOutItem(e,n);(a=-this._distancePastTop(e,c))>0&&!o.shouldStickAtTop?a=0:a+=r}else if(i===_.Bottom){var l=o.hideableBottomHeight;r=Math.min(r,l);var u=this.bottomMostLaidOutItem(e,n);(a=this._distancePastBottom(e,u))<0&&!o.shouldStickAtBottom?a=0:a-=r}return a},moveCellsBy:function(e,t,n,i){for(var r=0,a=i.length;r<a;r++){var o=i.objectAt(r);o.isLaidOut&&o.moveBy(e,t,n)}},handleMovedBy:function(e,t,n,i,r,a){this.moveCellsBy(n,e,t,a)},handleShowItem:function(e,t,n,i,r,a,o){var s=this.cellForHandleIfPresent(e);if(s){if(s.retain(this,"handleShowItem: target cell"),s.isLaidOut)return this.moveCellsBy(i,0,n-s.y,o),void s.release(this,"handleShowItem: target cell");s.release(this,"handleShowItem: target cell")}this.invalidateOtherCells(o)},handleScrollToItem:function(e,t,n,i,r){var a=this.cellForHandleIfPresent(e);if(a){if(a.retain(this,"handleScrollToItem: target cell"),a.isLaidOut){var o=this.minimumTopOffsetForCell(t,a),s=t.viewportBounds.bottom-this.minimumBottomOffsetForCell(t,a);return a.y<o?this.moveCellsBy(t,0,o-a.y,r):a.bottom>s&&this.moveCellsBy(t,0,s-a.bottom,r),void a.release(this,"handleScrollToItem: target cell")}a.release(this,"handleScrollToItem: target cell")}this.invalidateOtherCells(r)},handleSizeChangedBy:function(e,t,n,i,r,a){0!==e&&a.forEach(function(e){e.width=n.viewportWidth,e.size=null})},initializeVisibleCells:function(e,t,n,i,r){if(r.collectionChanged)this.handleCollectionChanged(e,t,n,i,r);else{if(i.length>0&&t.startHandle.isValid)if(r.itemsChanges||r.everythingChanged){var a=this.handleNoPreviouslyValidCells(e,t,n,i,r);a.retain(this,"initializeVisibleCells: newCell"),n.push(a),a.release(this,"initializeVisibleCells: newCell")}else if(r.itemShown)this.initializeItemShown(e,t,n,r);else if(r.itemScrolledTo)this.initializeItemScrolledTo(e,t,n,i,r);else{var o=this.topMostItem(e,i);if(o){o.retain(this,"initializeVisibleCells: previous topMostItem");var s=e.viewportBounds,c=s.x-o.x,l=s.y-o.y,u=0;l>0?u=1:l<0?u=-1:c>0?u=1:c<0&&(u=-1);var d=void 0;o.handle.hasHandleAtDistance(u)?d=this.setUpCellAtDistance(e,t,o,c,l):(this.recoverLayoutFromCell(e,o),d=o),d.retain(this,"initializeVisibleCells: setUpCellAtDistance"),o.release(this,"initializeVisibleCells: previous topMostItem"),d.isLaidOut&&n.push(d),d.release(this,"initializeVisibleCells: setUpCellAtDistance")}}if(0===n.length){var h=this.setUpInitialCell(e,t);if(h){var p=this.isAtEnd=e.layoutMetrics.initialPosition,f=this._distancePastEnd;p===_.Top?h.y+=f:p===_.Bottom&&(h.y-=f),h.retain(this,"initializeVisibleCells: setUpInitialCell"),n.push(h),h.release(this,"initializeVisibleCells: setUpInitialCell")}}}},initializeItemShown:function(e,t,n,i){var r=i.itemShown,a=this.cellForHandle(r).retain(this,"initializeItemShown: cell"),o=i.itemShownAt.y;void 0===o?this.layOutCellAtTop(e,a):this.layOutCellInDirection(e,a,1,o,1,this.leftForCell(e,a)),n.push(a),a.release(this,"initializeItemShown: cell")},layOutCellAtTop:function(e,t){var n=this.minimumTopOffsetForCell(e,t);this.layOutCellInDirection(e,t,1,n,1,this.leftForCell(e,t))},minimumTopOffsetForCell:function(e,t){return t.handle.hasPrevious?0:this.topForCell(e,t)},layOutCellAtBottom:function(e,t){var n=this.minimumBottomOffsetForCell(e,t);this.layOutCellInDirection(e,t,-1,e.viewportBounds.bottom-n,1,this.leftForCell(e,t))},minimumBottomOffsetForCell:function(e,t){return t.handle.hasNext?0:this.spaceBelowCell(e,t)},initializeItemScrolledTo:function(e,t,n,i,r){var a=r.itemScrolledTo,o=this.cellForHandle(a).retain(this,"initializeItemScrolledTo: cell"),s=this.topMostItem(e,i);s?this.topForCell(e,o)<=this.topForCell(e,s)?this.layOutCellAtTop(e,o):this.layOutCellAtBottom(e,o):this.layOutCellAtTop(e,o),n.push(o),o.release(this,"initializeItemScrolledTo: cell")},handleNoPreviouslyValidCells:function(e,t,n,i,r){var a,o=this.topMostItem(e,i);if(!o){var s=this.setUpInitialCell(e,t);return this.isAtEnd=e.layoutMetrics.initialPosition,this._distancePastEnd=0,s}if(e.layoutMetrics.initialPosition===_.Top){var c=this.topForCell(e,o)-o.y,l=this.setUpFirstCell(e,t,!0);l.y-=c,a=this.setUpCellAtDistance(e,t,l,0,c)}else{var u=this.spaceBelowCell(e,o)-(o.bottom-e.viewportHeight),d=this.setUpLastCell(e,t,!0);d.y-=u,a=this.setUpCellAtDistance(e,t,d,0,u)}return a},_distancePastBottom:function(e,t){return c.a.sharedInstance.floorToDevicePixelRatio(e.viewportHeight)-c.a.sharedInstance.floorToDevicePixelRatio(t.bottom+this.spaceBelowCell(e,t))},_distancePastTop:function(e,t){return c.a.sharedInstance.floorToDevicePixelRatio(t.y-this.topForCell(e,t))},checkForMinimumSize:function(e,t){var n=this.topMostLaidOutItem(e,t),i=this._distancePastTop(e,n),r=i>=0,a=this.bottomMostLaidOutItem(e,t),o=this._distancePastBottom(e,a);if(r&&o>=0){var s=e.layoutMetrics;s.minimumSizePosition===_.Top?(this.isAtEnd=_.Top,this._distancePastEnd=i):s.minimumSizePosition===_.Bottom&&(this.isAtEnd=_.Bottom,this._distancePastEnd=o)}},completeVisibleCells:function(e,t,n,i){var r=!!n.find(this.isCellAnchorable),a=this.layOutCellsInDirection(e,n,n.objectAt(0),-1,r),o=this.layOutCellsInDirection(e,n,n.lastItem,1,r||a);if(!1!==r||!1!==a||!1!==o)if(i.movedBy||i.itemShown||i.itemScrolledTo){var s=e.layoutMetrics,l=null,u=0,d=this.topMostItem(e,n),h=this._distancePastTop(e,d),p=h>=0,f=this.bottomMostItem(e,n),m=this._distancePastBottom(e,f),g=m>=0;g&&p&&(s.minimumSizePosition===_.Top?g=!1:s.minimumSizePosition===_.Bottom&&(p=!1)),g?(l=_.Bottom,u=m):p&&(l=_.Top,u=h),this.isAtEnd=l,this._distancePastEnd=u}else{var b;for(this.checkForMinimumSize(e,n);Math.abs(c.a.sharedInstance.floorToDevicePixelRatio(b=this.endOffset(e,t,n)))>0;)this.moveCellsBy(e,0,b,n),b>0?this.layOutCellsInDirection(e,n,n.objectAt(0),-1,!0):this.layOutCellsInDirection(e,n,n.lastItem,1,!0)}},verticalScan:1/0,horizontalScan:1/0,setUpCellAtDistance:function(e,t,n,i,r){var a=this.horizontalScan,o=this.verticalScan;if(Math.abs(i)>a||Math.abs(r)>o)return this.estimateCellAtDistance(e,t,n,i,r);var s,c=isFinite(a)||isFinite(o),l=0;if(r>0)l=1;else if(r<0)l=-1;else if(i>0)l=1;else{if(!(i<0))return n.isLaidOut||this.recoverLayoutFromCell(e,n),n;l=-1}if(C.x=n.x+i,C.y=n.y+r,c){var u=e.viewportBounds;I.x=u.x-a,I.y=u.y-o,I.width=u.width+2*a,I.height=u.height+2*o}for(n.retain();null!==(s=this.positionNextCell(e,n,l));){if(s.retain(),s.containsPoint(C)||l<0&&s.y<=C.y||l>0&&s.y>=C.y||c&&!s.intersects(I))return n.release(),s.autorelease();n.release(),s.isLaidOut=!1,n=s}return l>0?this.setUpLastCell(e,t):this.setUpFirstCell(e,t)},estimateCellAtDistance:u.a,verticalSpacingForCellTypes:function(e,t,n){return"item"===t&&"item"===n?e.layoutMetrics.rowSpacing:0},positionNextCell:function(e,t,n){var i=t.handle.atDistance(n).retain();if(!i.isValid)return i.release(),null;var r,a=this.cellForHandle(i).retain();return i.release(),r=n>0?this.verticalSpacingForCellTypes(e,t.cellType,a.cellType):this.verticalSpacingForCellTypes(e,a.cellType,t.cellType),this.positionAdjacentCell(e,t,a,n,r).autorelease()},positionAdjacentCell:function(e,t,n,i,r){var a;return t.retain(),n.retain(),a=i>0?t.bottom+r:t.y-r,t.release(),this.layOutCellInDirection(e,n,i,a,1,this.leftForCell(e,n)),n.autorelease()},layOutCellInDirection:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,o=this.sizeForCell(e,t),s=t.height=o.height;n>0?t.y=i:n<0&&(t.y=i-s);var c=t.width=o.width;return r>0?t.x=a:r<0&&(t.x=a-c),t.isLaidOut=!0,t},sizeForCell:function(e,t){var n=t.size;return n||(n=t.size=this[this.sizeKeyByCellType[t.cellType]](e,t)),n},estimatedSizeForCell:function(e,t){var n=this.estimatedSizeKeyByCellType;if(!n){n={};var i=this.sizeKeyByCellType;for(var r in i)n[r]="estimated"+Object(d.a)(i[r])}var a=t.size;return a||(a=t.size=this[n[t.cellType]](e,t)),a},sizeKeyByCellType:{item:"sizeForItem"},estimatedSizeKeyByCellType:null,sizeForItem:function(e,t){return g.a.create({height:e.layoutMetrics.rowHeight,width:e.viewportWidth})},leftForCell:function(e,t){return 0},topForCell:function(e,t){for(var n=e.layoutMetrics,i=t.handle,r=-1;i.isValid;)i=i.previous,r++;return(r=Math.max(r,0))*(n.rowHeight+n.rowSpacing)+n.topPadding+n.topInset-n.hideableTopHeight},spaceBelowCell:function(e,t){for(var n=e.layoutMetrics,i=t.handle,r=-1;i.isValid;)i=i.next,r++;return(r=Math.max(r,0))*(n.rowHeight+n.rowSpacing)+n.bottomPadding-n.hideableBottomHeight},topMostItem:function(e,t){return this.topMostAnchor(e,t,this._isCellReusable)},topMostLaidOutItem:function(e,t){return this.topMostAnchor(e,t,this._isCellReusableAndLaidOut)},topMostValidItem:function(e,t){return this.topMostAnchor(e,t,this._isCellReusableAndValid)},bottomMostItem:function(e,t){return this.bottomMostAnchor(e,t,this._isCellReusable)},bottomMostLaidOutItem:function(e,t){return this.bottomMostAnchor(e,t,this._isCellReusableAndLaidOut)},bottomMostValidItem:function(e,t){return this.bottomMostAnchor(e,t,this._isCellReusableAndValid)},topMostAnchor:function(e,t,n){var i=this,r=t.find(function(e){return i.isCellPreferredAnchor(e)&&n.call(i,e)});return r||(r=t.find(function(e){return i.isCellAnchorable(e)&&n.call(i,e)})),r},bottomMostAnchor:function(e,t,n){var i=this,r=t.findLast(function(e){return i.isCellPreferredAnchor(e)&&n.call(i,e)});return r||(r=t.findLast(function(e){return i.isCellAnchorable(e)&&n.call(i,e)})),r},_isCellReusable:function(e){return e.isReusable},_isCellReusableAndLaidOut:function(e){return e.isReusable&&e.isLaidOut},_isCellReusableAndValid:function(e){var t=e.handle;return t.isValid&&!t.wasRemoved},isCellAnchorable:function(e){return"item"===e.cellType},isCellPreferredAnchor:function(e){return this.isCellAnchorable(e)},computeSpaceAroundViewport:function(e){var t=e.spaceAroundViewport,n=e.visibleCells,i=0,r=0,a=e.layoutMetrics,o=e.viewportHeight,s=a.hideableTopHeight,c=a.hideableBottomHeight,l=this.topMostItem(e,n),u=0,d=0;l&&(d=this.topForCell(e,l),u=l.y);var h=this.bottomMostItem(e,n),p=0,f=0;h&&(f=this.spaceBelowCell(e,h),p=h.bottom);var m=Math.min(o,d+f+p-u),g=void 0,b=void 0;m<o&&a.minimumSizePosition===_.Bottom?(g=o-m,b=o):(g=0,b=m),i=d-u+g,r=f-(b-p);var v=m+s<=o;a.minimumSizePosition===_.Bottom&&v||(i+=s);var y=m+c<=o;return a.minimumSizePosition===_.Top&&y||(r+=c),t.beginBatchSet().set("left",0).set("right",0).set("top",i).set("bottom",r).end(),t}})},function(e,t,n){"use strict";n(1),n(0),n(21),n(20),n(8),n(2),n.d(t,"c",function(){return g}),n.d(t,"a",function(){return b}),n.d(t,"b",function(){return v});var i=n(879),r=n(98),a=n(78),o=n(87),s=n(107),c=n(819),l=n(841),u=n(86),d=n(557),h=n(44),p=n(82),f=n(143),m=n(83),g=n(386).a.extend({view:Object(r.b)({downstreamBindings:{layout:"(owner).matchedLayout.layout",anchorLayout:"(owner).anchorLayout",arrowLength:"(owner).arrowLength",arrowWidth:"(owner).arrowWidth",arrowAlignment:"(owner).arrowAlignment",verticalAlignment:"(owner).verticalAlignment",horizontalAlignment:"(owner).horizontalAlignment"}}),anchorLayoutMeasurer:Object(r.b)({strong:!0,defaultValue:Object(u.c)(d.a),downstreamBindings:{target:"(owner).anchor",shouldMeasure:"(owner)._shouldMeasure"}}),_hideOnAnchorDetach:Object(a.h)("anchorLayoutMeasurer.targetIsHidden",function(e){e&&this.hide()}),_shouldMeasure:Object(r.b)(!1),anchor:Object(r.b)(),anchorLayout:Object(r.b)(Object(o.c)("anchorLayoutMeasurer.targetLayout")),spaceLayout:Object(r.b)(i.a.sharedInstance.window),spaceInset:Object(r.b)(10),allowedLayouts:Object(r.b)([m.c,m.b,m.d,m.a]),fallbackLayout:m.a,arrowLength:Object(r.b)(10),arrowWidth:Object(r.b)(10),arrowAlignment:Object(r.b)({defaultValue:f.a.TargetMiddle,type:f.a}),verticalAlignment:Object(r.b)(h.b.Middle),horizontalAlignment:Object(r.b)(h.a.Middle),isAlignmentRequired:Object(r.b)(!0),resolutionStrategy:b,shouldAutosize:Object(r.b)({type:"boolean",defaultValue:!1}),desiredSize:Object(r.b)({strong:!0,defaultValue:Object(u.c)(s.a,{height:100,width:50})}),minimumSize:Object(r.b)({strong:!0,defaultValue:Object(u.c)(s.a,{height:10,width:10})}),show:function(e){var t=arguments;if(!this.isAttached)return e&&(this.anchor=e),this.anchor||Object(c.b)("PopoverViewController#show requires an anchor view: %{popover}",{popover:this}),this._shouldMeasure=!0,this.__s._$3hQ$show.apply(this,t)},hide:function(){var e=arguments;if(this.isAttached)return this._shouldMeasure=!1,this.__s._$3nO$hide.apply(this,e)},init:function(){var e=arguments;this.__s._$3oU$init.apply(this,e),this.anchorLayout||this.anchorLayoutMeasurer.bind("target",this.bindingFor("anchor"))},willAppear:function(){var e=arguments;return this.shouldAutosize&&this._calculateSize(),this.__s._$3yp$willAppear.apply(this,e)},_calculateSize:function(){var e=this.getPath("view.popoverView")||this.view;if(e){var t=e.element,n=e.container;if(t&&n){var i=Object(p.c)(t),r=Object(p.c)(n),a=r.getInline("position"),o=i.getInline("height"),c=i.getInline("width");i.set({width:"auto",height:"auto"}),r.set("position","static");var l=n.getBoundingClientRect(),u=l.width,d=l.height;i.set({height:o,width:c}),r.set("position",a);var h=s.a.create({width:u,height:d});this.beginBatchSet().set("minimumSize",h).set("desiredSize",h).end()}}},_reconnectAllowedLayouts:Object(a.h)("allowedLayouts",function(e){var t=this.fitObserver;t&&t.disconnect();for(var n=Object(l.a)(e),i=n.length,r=[],a=0;a<i;a++){var o=n[a];o=o.create({config:this}),r.push(o.bindingFor("fit")),n[a]=o}this.allowedLayoutsInstances=n,r.push(this._resolveLayouts),this.fitObserver=this.observe.apply(this,r)}),_resolveLayouts:function(){var e,t=this.resolutionStrategy.apply(this,arguments);e=null!==t?this.allowedLayoutsInstances[t]:this._fallbackLayoutInstance||(this._fallbackLayoutInstance=this.fallbackLayout.create({config:this})),this.matchedLayout=e},matchedLayout:Object(r.b)(),viewClass:f.b,__superMap:{_$3hQ$show:"show",_$3nO$hide:"hide",_$3oU$init:"init",_$3yp$willAppear:"willAppear"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PopoverViewController"}});function b(){for(var e=arguments,t=e.length,n=0,i=null,r=0;r<t;r++){var a=e[r];a>n&&(n=a,i=r)}return i}function v(){for(var e=arguments,t=e.length,n=0;n<t;n++)if(e[n]>0)return n;return null}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return c});var i=n(819),r=n(484),a=n(85),o={mixinDependencies:[r.a,a.b],initializeClass:function(){var e=s(this),t=this.constructor;t.isAbstract=!!e,t.missingRequires=e,this.__s._$uM$initializeClass.call(this)},staticMembers:{initializeClass:function(){var e=s(this);this.isAbstract=this.isAbstract||!!e,this.missingRequires+=e,this.__s._$12U$initializeClass.call(this)},__superMap:{_$12U$initializeClass:"initializeClass"}},init:function(e){this.constructor.isAbstract?Object(i.b)(this+" cannot be instantiated because it is abstract. Missing keys: "+this.constructor.missingRequires):this.__s._$19r$init.call(this,e)},__superMap:{_$uM$initializeClass:"initializeClass",_$19r$init:"init"}};function s(e){var t=e.getMetadataByType(c),n="";for(var i in t)t[i].validate(e,i)||(n+="\n    "+i);return n}var c=a.a.extend({validate:function(e,t){return t in e},requiresSupport:o,isOnlyMetadataForKey:!1,allowedOnClass:!0,staticMembers:{__QUALIFIED_CLASS_NAME__:"Required"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return d});var i=n(831),r=n(832),a=n(836),o=n(819),s=n(84),c=n(96),l=s.a.extend({items:null,name:null,id:null,init:function(e){this.__s._$Si$init.call(this,e),this.items=[],this.id=u,u++},toStaticMixin:function(){var e={};return this.items.forEach(function(t){t.level||(e[t.name]=t)}),{staticMembers:e}},getItemForValue:function(e){return this.items.find(function(t){return t.value===e})||null},toString:function(){return"[CW.Enum.Group: "+this.name+"]"},retain:function(){return this},release:function(){return this},autorelease:function(){return this},__superMap:{_$Si$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EnumGroup"}}),u=1;function d(e,t){var n,s,u,d=l.create({name:e}),h=d.items;if(Object(i.a)(t))t(function e(t,n){var i=1;return function(r,a){var o=null;n?(o=n.createSubitem(r),n.items.push(o)):o=c.a.create({name:r,value:i,parent:null,level:0,group:t});var s=o.fullName.replace(/\./g,"");(t.items.push(o),t[s]=o,n&&(n[r]=o),i+=1,a)&&a(e(t,o));return o}}(d,null));else if(Object(r.a)(t))for(var p in t)n=c.a.create({name:p,value:t[p],group:d}),h.push(n),d[p]=n;else if(Object(a.a)(t))for(s=0,u=t.length;s<u;s++){var f=t[s];n=c.a.create({name:f,value:s,group:d}),h.push(n),d[f]=n}else Object(o.b)("Cannot create enum group. Invalid value",{name:e,obj:t});return d}},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});var i=n(819),r=[4278190080,4294901760,4294967040,4294967280,4294967295],a=[24,16,8,4,0],o=n(84).a.extend({name:null,value:null,level:null,parent:null,group:null,fullValue:null,fullName:null,hasLevel:!1,retain:function(){return this},release:function(){return this},autorelease:function(){return this},init:function(e){this.__s._$17J$init.call(this,e);var t=this.name,n=this.value,r=this.parent,o=this.level,s=(this.hasLevel="number"==typeof this.level)?n<<a[o]:null;r&&!r.hasLevel&&Object(i.b)(this+" Cannot init. parent does not have an assigned level"),this.items=[],this._flags={},this.fullValue=r?r.fullValue+s:s,this.fullName=r?r.fullName+"."+t:t,this._nextSubitemValue=0},flagAs:function(){for(var e=arguments.length,t=this._flags,n=0;n<e;n++)t[arguments[n]]=!0;return this},flagged:function(e){return!!this._flags[e]},equals:function(e){return this.group===e.group&&e.fullValue===this.fullValue},subitemOf:function(e){return this.level>e.level&&this.group===e.group&&(this.fullValue&r[e.level])===e.fullValue},superitemOf:function(e){return this.level<e.level&&this.group===e.group&&(e.fullValue&r[this.level])===this.fullValue},contains:function(e){return this.equals(e)||e.subitemOf(this)},createSubitem:function(e){return o.create({name:e,value:this._getNextSubitemValue(),parent:this,level:this.level+1,group:this.group})},toString:function(){return this._toString(!1)},toJSON:function(){return""+this},toStringFull:function(){return this._toString(!0)},_toString:function(e){var t,n,i=this.group,r=i?i.name:"CW.Enum.Item",a=e||!i?" <"+(t=this.fullValue,(n=t.toString(16).toUpperCase()).length%2!=0&&(n="0"+n),n.match(/\d\d/g).join(" "))+">":"";return"["+r+": "+this.fullName+a+"]"},_getNextSubitemValue:function(){return this._nextSubitemValue++,this._nextSubitemValue},__superMap:{_$17J$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EnumItem"}});function s(e,t){return o.create({name:e,value:t,level:0})}o.prototype.substateOf=o.prototype.subitemOf,o.prototype.superstateOf=o.prototype.superitemOf},function(e,t,n){"use strict";n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var i=n(84),r=n(821),a=n(819),o=n(828),s=n(844),c={},l=n(198).a.extend({debugType:"Base",key:null,init:function(e){e&&(this.property=e,this.key=e.key,this.set=e._transformedSet,this.internalGet=e.internalGet,this.validateType=e._validateType,this._valueOffsetCount=1,this.setterReturnArray=new Array(e.writeDependencies?e.writeDependencies.length:e.dependencies?e.dependencies.length:0),this.clearReturnArray(this.setterReturnArray)),this.dependencyCollector=[],this.__s._$fe$init.call(this)},property:null,isCacheable:!0,validateType:null,reference:null,set:null,internalGet:null,_valueOffsetCount:0,setUpNode:r.a,validateDescendantDownstreamNodeManager:function(e,t,n){e.property!==this.property&&Object(a.b)("A property’s upstream node may only connect to the downstream node for the same property (key: %{key}, downstream property key: {%downstreamKey}). …If you get this error, please contact the CoreWeb team, as you’ve discovered a unicorn.",{key:this.key,downstreamKey:e.key})},willRemoveChildFromNode:function(e,t,n){s.a.getValueForNode(t)},wasDirtiedByParent:function(e,t,n,i){this._manageForWasDirtiedByParent(i,e)},_manageForWasDirtiedByParent:r.a,wasDirtiedBySelf:function(e,t,n,i){this._manageForWasDirtiedBySelf(n,i,e)},_manageForWasDirtiedBySelf:r.a,calculateValueForNode:function(e,t,n){var r,l=s.a.getDataForNode(t);if(n){var u=s.a.getStateIDForNode(t);if((r=this.pullDataFromParent(t,u))===c)return l}else r=s.a.getStateDataForNode(t),s.a.setStateDataForNode(void 0,t);var d=this.setterReturnArray,h=this.set.call(e,r,l,d,0,this.property);if(!this.validateType(h)){var p=this.property.type;Object(o.a)(h,i.a)?Object(a.b)('Type error: cannot set value `%{value}` (an instance of %{constructor}) to observable property "%{key}" of %{object} which expected a %{type}. (Note that `set` may have been called on a downstream property.)',{object:e,key:this.key,value:h,constructor:h.constructor,setValue:r,type:p}):Object(a.b)('Type error: cannot set value `%{value}` to observable property "%{key}" of %{object} which expected a %{type}. (Note that `set` may have been called on a downstream property.)',{object:e,key:this.key,value:h,setValue:r,type:p})}return this.passValuesToChildren(t,d,h),this.clearReturnArray(d),this._manageForCalculateValueForNode(h,r,e),h},_manageForCalculateValueForNode:r.a,pullDataFromParent:function(e,t){if(s.a.getStateDataForNode(e)===c){var n=s.a.getManagerForNode(t).property,i=n.key;n.dependencies!==n.writeDependencies?Object(a.b)("Infinite loop detected in the %{property} observable property. This is likely because you are attempting to get the write dependency '%{key}' inside your setter.",{key:this.key,property:i}):Object(a.b)("Infinite loop detected in the %{property} observable property. Try adding a writeDependencies array that contains only the dependencies you actually write to (not %{key}).",{key:this.key,property:i})}return s.a.setStateDataForNode(c,e),t<0&&Object(a.b)("Couldn't tell which parent set the upstream node (%{node})",{node:e}),s.a.getValueForNode(t),s.a.getStateDataForNode(e)},clearReturnArray:function(e){for(var t=e.length,n=0;n<t;n++)e[n]=c},passValuesToChildren:function(e,t,n){var i=this.dependencyCollector;s.a.getChildrenIDs(e,i);for(var r=this._valueOffsetCount,a=t.length,o=0;o<a;o++){var l=i[o+r];t[o]!==c&&l>=0&&s.a.getStateIDForNode(l)===e&&s.a.passValueToNode(t[o],l)}s.a.passValueToNode(n,i[0])},dependencyCollector:null,setterReturnArray:null,addDebugInfoForNode:function(e,t,n){t.type=this.debugType+" Upstream Node",t.object=e,t.key=this.key,t.toString=function(){return e+"."+this.key+" (Upstream)"},t.name=t.toString()},__superMap:{_$fe$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"UpstreamNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return E}),n.d(t,"b",function(){return D});var i,r=n(81),a=n(79),o=n(843),s=n(828),c=n(838),l=n(819),u=n(833),d=n(821),h=n(87),p=n(844),f=n(845),m=n(275),g=n(490),b=n(489),v=n(371),_=n(78),y=n(97),C=n(370),I=n(486),w=n(487),S=n(491),A=[],O="_cw_itselfProperty",E=r.a.extend({staticMembers:{isInsideSetter:!1,getDependencyValuesAsTempArray:function(e,t,n,i){A.length=0;for(var r=0;r<t.length;r++){var a=t[r+n];p.a._sanitizeNodeID(a)>0&&(A[r]=i.internalGet(e,a))}return A},__QUALIFIED_CLASS_NAME__:"ObservableProperty"},readOnly:null,cacheable:void 0,binding:void 0,downstreamBindings:null,dependencies:null,writeDependencies:null,bindings:null,writeBindings:null,_valueCount:0,didChange:null,isComputedProperty:!1,isDependentComputedProperty:!1,isRootValueProperty:!1,requiresSupport:_.b,downstreamNodeManagerClass:null,upstreamNodeManagerClass:null,downstreamNodeManager:null,upstreamNodeManager:null,weakRootValueUpstreamNodeManager:null,init:function(e){Object(s.a)(e,h.a)&&(e={binding:e}),this.__s._$B4l$init.call(this,e)},getValue:function(e,t){var n=this.binding||this.defaultValue;return void 0===n&&(this.get||this.set)&&Object(s.a)(e[r.b.staticMembers.defaultValuePrefix+t],h.a)?null:n},inheritFrom:function(e){var t=arguments;this.__s._$BM9$inheritFrom.apply(this,t),this.didChange||(this.didChange=e.didChange),e.hasOwnProperty("cacheable")&&!this.hasOwnProperty("cacheable")&&(this.cacheable=e.cacheable);var n=e.downstreamBindings;if(n){var i=this.downstreamBindings;this.downstreamBindings=i?Object.assign(Object.create(n),i):n}},wasRegistered:function(e,t,n){var i=arguments;this.__s._$Biw$wasRegistered.apply(this,i),this._validateProvidedInitValues(e,t),this._validateProvidedAccessors(t),this.reference!==a.c||this.readOnly||(this._setRootValueNodeManagerIfNeeded=this._setRootValueNodeManagerIfNeededWeakWritable,this._setBoundNodeManagerIfNeeded=this._setBoundNodeManagerIfNeededWeakWritable),this.setUpManagers(),t=(t=t.replace(/\\/g,"\\\\")).replace(/\./g,"\\."),this._ownBinding=Object(h.c)(t),this.initializeNodeFlags(),this._setUpDidChangeObserver(e,t)},_validateProvidedInitValues:function(e,t){var n=this.binding,r=this.defaultValue;Object(c.a)(n)&&Object(c.a)(r)&&Object(l.b)("You can't define an observable property with both a binding and a defaultValue (%{key}).",{key:t,property:this}),Object(s.a)(r,h.a)&&Object(l.b)("You can’t pass bindings into a property definition on `defaultValue`; you must pass it in on `binding` (%{key}).",{binding:n,property:this,key:t}),Object(u.a)(n)&&(this.binding=Object(h.c)(n));var a=this.computedDownstreamBindings=[],o=this.downstreamBindings;for(var d in o){var p=o[d];if(Object(c.a)(p)){if(Object(u.a)(p)&&(p=Object(h.c)(p)),Object(s.a)(p,h.a)){var f=p.rootObject;if(f){if(f===h.b){p.rootObject=null;var m=p.components;0===m.length&&(m.push(O),e.getMetadata(O)||e.registerMetadata(O,i))}a.push({upstreamSide:p,downstreamSide:Object(h.c)(t+"."+d)});continue}Object(l.b)("Right side of downstream bindings must either explicitly specify a root object or begin with `'(owner).'`: `'%{path}'`",{path:p.path})}Object(l.b)("Right side of downstream bindings must be a string or a binding",{binding:p})}}},_validateProvidedAccessors:function(e){var t=this.dependencies,n=this.writeDependencies,i=t&&t.length>0,r=n?n.length>0:i,o=this.isDependentComputedProperty=i||r,s=this.reference;i&&this.usesBuiltinGet&&Object(l.b)("Computed properties with dependencies must provide a getter (%{key}).",{property:this,dependencies:t,key:e}),r&&this.usesBuiltinSet&&!this.readOnly&&Object(l.b)("Computed properties with (explicit or implicit) write-dependencies must either include a setter or be marked readOnly (%{key}).",{property:this,dependencies:t,key:e}),this.isComputedProperty&&s===a.c&&Object(l.b)("Computed properties may not be WEAK references (%{key}).",{property:this,dependencies:t,key:e}),!1!==this.cacheable||s===a.b||this.typeIsPrimitive||Object(l.b)("Non-cacheable, non-primitively-typed properties may not be STRONG or WEAK references; you must manage them yourself. (%{key}).",{property:this,key:e}),o&&(n&&(this.writeBindings=h.a.createForPaths(this.writeDependencies)),this.bindings=h.a.createForPaths(this.dependencies))},_setUpDidChangeObserver:function(e,t){if(this.didChange){var n="_"+t+"_didChangeObserver";e.registerMetadata(n,Object(_.h)(t,this.didChange))}},setUpManagers:function(){var e=this.upstreamNodeManagerClass,t=this.downstreamNodeManagerClass,n=this.reference;e||(e=this.readOnly?n===a.a?I.a:C.a:n===a.a?w.a:y.b),t||(t=n===a.a?this.usesBuiltinGet||!1===this.cacheable?this.typeIsPrimitive?f.a:m.b:m.a:n===a.c?this.usesBuiltinGet||!1===this.cacheable?v.a:b.a:g.a),this.upstreamNodeManager=e.create(this),this.downstreamNodeManager=t.create(this),n===a.c&&(this.weakRootValueUpstreamNodeManager=S.a.create(this))},initializeNodeFlags:function(){var e=this.upstreamNodeFlags,t=this.downstreamNodeFlags;if(-1===e||-1===t){var n=this.reference;n===a.a&&this.typeIsPrimitive&&(n=a.b),-1===e&&(e=p.a.DIRTY_TRACKING|p.a.RELATIONSHIPS|p.a.PULL_ON_FREE,this.readOnly&&(e|=p.a.FLUSH),n!==a.c&&n!==a.a||(e|=p.a.PULL_ON_FLUSH),n===a.a&&(e|=p.a.PREVIOUS_VALUE_TRACKING),n!==a.b&&(e|=p.a.FREE),this.upstreamNodeFlags=e),-1===t&&(t=p.a.RELATIONSHIPS,n===a.b||this.usesBuiltinGet||!1===this.cacheable||(t|=p.a.FREE,n===a.a&&(t|=p.a.PREVIOUS_VALUE_TRACKING)),n===a.a&&(t|=p.a.PREVIOUS_VALUE_TRACKING,t|=p.a.FREE),this.downstreamNodeFlags=t)}},upstreamNodeFlags:-1,downstreamNodeFlags:-1,initForObject:function(e,t){var n,i=arguments,r=p.a.NULL_INDEX,o=p.a.NULL_INDEX,s=this.downstreamNodeManager;n=this.reference===a.c&&this.isRootValueProperty?this.weakRootValueUpstreamNodeManager:this.upstreamNodeManager,r=e.allocNode(s,this.downstreamNodeFlags),e.downstreamNodes[t]=r,o=e.allocNode(n,this.upstreamNodeFlags),e.upstreamNodes[t]=o,e.addConnectable(this,r,o),this.__s._$Gtl$initForObject.apply(this,i)},setInitialValueForObject:function(e,t,n){var i=e.downstreamNodes[t],r=e.upstreamNodes[t];if(p.a.getManagerForNode(i).setUpNode(e,i),p.a.getManagerForNode(r).setUpNode(e,r),Object(s.a)(n,h.a)){var o=n;this.isDependentComputedProperty&&Object(l.b)("Dependent computed properties cannot be created with a binding (%{key}).",{property:this,key:t,object:e}),p.a.setDataForNode(o,i)}else this.readOnly?(this.reference===a.a&&Object(a.f)(n,e,"Observable strong ref for `"+t+"` (read-only default value)"),p.a.setDataForNode(n,r)):void 0!==n&&p.a.passValueToNode(n,r)},connect:function(e,t,n){this.isRootValueProperty=!this.isDependentComputedProperty,this._configurePropertyAsRootValue(t,n);var i=this._ownBinding;if(this.isDependentComputedProperty){var r,a,o,s=this.bindings,c=this.writeBindings,u=n>=0&&void 0!==p.a.getStateDataForNode(n);if(s&&(r=s.length)>0)for(a=0;a<r;a++)o=s[a],h.a.hookUpBinding(e,o,i,u,!0,h.a.DONT_CONNECT,h.a.CONNECT)||Object(l.b)("Unable to connect dependency for computed property (key: "+this.key+", dependency: "+o.path+").",{object:e,property:this,key:this.key,dependency:o.path});if(c&&(r=c.length)>0)for(a=0;a<r;a++)o=c[a],h.a.hookUpBinding(e,o,i,u,!0,h.a.CONNECT,h.a.DONT_CONNECT)||Object(l.b)("Unable to connect write dependency for computed property (key: "+this.key+", dependency: "+o.path+").",{object:e,property:this,key:this.key,dependency:o.path})}else{var d;t>=0&&(d=p.a.getDataForNode(t)),d&&d.instanceOf&&d.instanceOf(h.a)&&(this.isRootValueProperty=!1,this.bind(e,d),p.a.setDataForNode(void 0,t),n&&p.a.setDataForNode(void 0,n))}for(var f=this.computedDownstreamBindings,m=f.length,g=0;g<m;g++){var b=f[g];h.a.hookUpBinding(e,b.upstreamSide,b.downstreamSide,!1,!0)}},_configurePropertyAsRootValue:function(e,t){p.a.addChildToNode(e,t,!0),this._setRootValueNodeManagerIfNeeded(e,t)},_setRootValueNodeManagerIfNeeded:d.a,_setRootValueNodeManagerIfNeededWeakWritable:function(e,t){p.a.setManagerForNode(this.weakRootValueUpstreamNodeManager,t)},bind:function(e,t){var n=this.key;this.isDependentComputedProperty&&Object(l.b)("Cannot bind property %{key}. Properties with dependencies cannot be bound.",{property:this,key:this.key,object:e});var i=e.downstreamNodes[n],r=e.upstreamNodes[n];this._disconnectNodes(i,r),this._configurePropertyAsBound(i,r);var a=t;t&&t.instanceOf&&t.instanceOf(h.a)||(a=h.a.create(a)),h.a.hookUpBinding(e,a,this._ownBinding,!1,!0)||Object(l.b)("Unable to bind property (key: "+this.key+", binding: "+a.path+").",{object:e,property:this,key:this.key,binding:a,path:a.path}),e.isConnected&&p.a.triggerFlush()},_configurePropertyAsBound:function(e,t){this._setBoundNodeManagerIfNeeded(e,t)},_setBoundNodeManagerIfNeeded:d.a,_setBoundNodeManagerIfNeededWeakWritable:function(e,t){p.a.setManagerForNode(this.upstreamNodeManager,t)},unbind:function(e){var t=this.key;this.isDependentComputedProperty&&Object(l.b)("Cannot unbind property %{key}. Properties with dependencies cannot be unbound.",{property:this,key:this.key,object:e});var n=e.downstreamNodes[t],i=e.upstreamNodes[t];this._disconnectNodes(n,i),this._configurePropertyAsRootValue(n,i),p.a.passValueToNode(void 0,i),e.isConnected&&p.a.triggerFlush()},_disconnectNodes:function(e,t){t>0&&p.a.disconnectChildrenFromNode(t),p.a.disconnectParentsFromNode(e)},_getter:null,_setter:null,_setUpInternalAccessors:function(){var e=this.key,t=r.b.staticMembers.defaultValuePrefix+e;this._getter=function(){if(!this.hasOwnProperty("propertiesAreInitialized"))return this[t];var n=E.isInsideSetter;E.isInsideSetter=!1;var i=this.downstreamNodes[e],r=p.a.getValueForNode(i);return E.isInsideSetter=n,r},this.readOnly?this._setter=function(n){this.hasOwnProperty("propertiesAreInitialized")?Object(l.b)("Cannot write to read-only property: "+e,{object:this,value:n}):this[t]=n}:this._setter=function(n){if(this.hasOwnProperty("propertiesAreInitialized")){var i=E.isInsideSetter;E.isInsideSetter=!0;var r=this.upstreamNodes[e];i&&p.a.nodeIsDirty(r)?p.a.passValueToNode(n,r):p.a.setValueForNode(n,r),E.isInsideSetter=i}else this[t]=n}},internalGet:T,internalGetPath:T,_synthesizeInternalGet:d.a,setUpNativeAccessors:function(e,t){Object.defineProperty(e,t,{get:this._getter,set:this._setter,configurable:!0})},getForObject:function(e,t){return this._getter.call(e)},setForObject:function(e,t,n){return this._setter.call(e,n)},disposeForObject:function(e,t){},__superMap:{_$B4l$init:"init",_$BM9$inheritFrom:"inheritFrom",_$Biw$wasRegistered:"wasRegistered",_$Gtl$initForObject:"initForObject"}});function T(e,t){return p.a.getValueForNode(t)}var D=function(e){return E.define.apply(E,arguments)};i=D({defaultValue:o.a,readOnly:!0})},function(e,t,n){"use strict";n.d(t,"b",function(){return i}),n.d(t,"a",function(){return r});var i={WILLSEND:"willSend",SENT:"didSend",SUCCEEDED:"didSucceed",FAILED:"didFail",COMPLETED:"didComplete",ABORTED:"didAbort",FINALIZED:"didFinalize",UNSENT:"unsent",SENDING:"sending",TIMEDOUT:"timedout",PROGRESS:"didProgress"},r={GET:"GET",PATCH:"PATCH",POST:"POST",PUT:"PUT",DELETE:"DELETE"}},function(e,t,n){"use strict";n.d(t,"b",function(){return p}),n.d(t,"a",function(){return g});var i=n(819),r=n(828),a=n(870),o=n(849),s=n(157),c=n(831),l=n(861),u=n(84),d=n(95),h=[],p={then:function(e,t){var n=this.internalPromise,i=g.createEmpty();return this.isExceptionHandlingEnabled&&(e&&(e=f(i,e),i._resolveHandler=e),t&&(t=f(i,t,!0),i._rejectHandler=t,this._hasRejectionHandler=t),this._linkNestedPromise(i)),i.internalPromise=n.then(e,t),i},catch:function(e){return this.then(null,e)},finally:function(e){var t=this.internalPromise,n=g.create();n._hasRejectionHandler=!1;var i=function(t){e(t),n.resolve(t)},r=function(t){e(t),n.rejectWithExceptionHandling(t)};return e&&this.isExceptionHandlingEnabled?t.then(f(n,i),f(n,r,!0)):e&&t.then(i,r),this._linkNestedPromise(n)},promiseState:null,isExceptionHandlingEnabled:!0,resolve:function(e){if(this.promiseState===g.PENDING)if(e===this&&Object(i.b)("Promise cannot resolve with itself "+this,this),e instanceof Promise||Object(r.a)(e,g))e.then(this._resolveHandler.bind(this),this._rejectHandler.bind(this));else if(Object(a.a)(e))try{e.then(this._resolveHandler.bind(this),this._rejectHandler.bind(this))}catch(e){this._rejectHandler(e)}else this._resolveHandler(e)},reject:function(e){this.promiseState===g.PENDING&&(this._rejectHandlerWasCalledDirectly=!0,this._rejectHandler(e))},rejectWithExceptionHandling:function(e){this.promiseState===g.PENDING&&(this._hasRejectionHandlerInChain()?this._rejectHandler(e):(this._exceptionWasThrown=!0,Object(o.b)(function(){throw e})))},init:function(){var e=arguments;this.__s._$2LW$init.apply(this,e),this.promiseState=g.PENDING,void 0===this.internalPromise&&(this.internalPromise=this._createPromise())},_createPromise:function(){var e=this;return new Promise(function(t,n){e.isExceptionHandlingEnabled?(e._resolveHandler=f(e,t),e._rejectHandler=f(e,n,!0)):(e._resolveHandler=function(n){e.promiseState=g.RESOLVED.FULFILLED,t(n)},e._rejectHandler=function(t){e.promiseState=g.RESOLVED.REJECTED,n(t)})})},internalPromise:void 0,_resolveHandler:null,_rejectHandler:null,_hasRejectionHandler:!1,_rejectHandlerWasCalledDirectly:!1,_exceptionWasThrown:!1,_nestedPromises:null,_parentPromise:null,_linkNestedPromise:function(e){return this._nestedPromises=this._nestedPromises||(this._nestedPromises=[]),this._nestedPromises.push(e),e._parentPromise=this,e},_hasRejectionHandlerInChain:function(e){for(var t=this;t;){if(t._hasRejectionHandler&&t._hasRejectionHandler!==e&&t.promiseState===g.PENDING)return!0;t=t._parentPromise}return function e(t){var n=t._nestedPromises;if(n)for(var i=0,r=n.length;i<r;i++){var a=n[i];if(a._hasRejectionHandler||e(a))return!0}return!1}(this)},__superMap:{_$2LW$init:"init"}};function f(e,t,n){var i;return i=function(){var a,c=arguments.length;h.length=c+0-0;for(var l=0,u=0;l<c;l++,u++)h[u]=arguments[l];var d=h;try{(a=Object(s.e)(t,this,d))&&Object(r.a)(a,g)&&e._linkNestedPromise(a)}catch(t){var p=e._hasRejectionHandlerInChain(i);if(!Object(o.a)().exceptionWasHandled)throw p||(e._exceptionWasThrown=!0,Object(o.b)(function(){throw t})),t}return e.promiseState=n?g.RESOLVED.REJECTED:g.RESOLVED.FULFILLED,a}}var m=Object(d.b)("PROMISE_STATES",function(e){e("PENDING"),e("RESOLVED",function(e){e("FULFILLED"),e("REJECTED")})}),g=u.a.extend(m.toStaticMixin(),p,{staticMembers:{wrap:function(e){return e instanceof Promise?this.wrapPromise(e):Object(a.a)(e)?this.resolve(e):Object(c.a)(e)?this.wrapFunction(e):void Object(i.b)("CW.Promise.wrap can only be used with functions or thenables",e)},wrapPromise:function(e){return this.create({internalPromise:e})},wrapFunction:function(e){Object(c.a)(e)||Object(i.b)("CW.Promise.wrapFunction can only be used with a function.",e);var t=this;return function(){var n=t.create(),i=arguments;return Object(l.a)(function(){try{var t=e.apply(this,i);n.resolve(t)}catch(e){n.rejectWithExceptionHandling(e)}}.bind(this),0),n}},invokeFunction:function(e,t){var n=this.wrapFunction(e);return n.call(n,t)},createEmpty:function(){return this.create({internalPromise:null})},waterfall:function(e,t){var n=void 0!==t,i=n?this.invokeFunction(b(t)):void 0;if(0===e.length)return i||this.resolve();var r,a=0,o=e.length;for(n||(a=1,i=this.invokeFunction(b(e[0])));a<o;a++)r=b(e[a]),i=i.then(this.wrapFunction(r));return i},sequence:function(e){var t=[];if(0===e.length)return this.resolve(t);for(var n,i=function(e){t.push(e)},r=1,a=e.length,o=this.invokeFunction(b(e[0])).then(i);r<a;r++)n=b(e[r]),o=o.then(this.wrapFunction(n)).then(i);return o.then(b(t))},concurrent:function(e,t){if(t=t||1,0===e.length)return this.resolve([]);if(e.length<=t)return this.all(e);var n=this,i=this.create(),r=[],a=[],o=e;return function e(){for(var s,c,l;a.length<t&&o.length>0;)s=b(o.shift()),c=n.invokeFunction(s).then(function(t){r.push(t),l=a.indexOf(this),a.splice(l,1),e()}).catch(i.reject.bind(i)),a.push(c);a.length||o.length||i.resolve(r)}(),i},all:function(){return this.resolve(Promise.all.apply(Promise,arguments))},race:function(){return this.resolve(Promise.race.apply(Promise,arguments))},resolve:function(){var e=this.create();return e.resolve.apply(e,arguments),e},reject:function(){var e=this.create();return e.reject.apply(e,arguments),e},allSettled:function(e){return Array.isArray(e)||(e=Array.from(e)),this.all(e.map(function(e){return e.then(function(e){return{status:"fulfilled",value:e}},function(e){return{status:"rejected",reason:e}})}))},__QUALIFIED_CLASS_NAME__:"CorePromise"}});function b(e){return Object(c.a)(e)?e:function(){return e}}},function(e,t,n){"use strict";n(1),n(0),n(5),n(8),n(2),n.d(t,"a",function(){return g}),n.d(t,"b",function(){return b});var i=n(871),r=n(899),a=n(876),o=n(828),s=n(819),c=n(98),l=n(89),u=n(86),d=n(81),h=n(109),p=n(898),f=n(520),m=n(897),g=i.a.extend({viewClass:h.a,view:Object(c.b)({downstreamBindings:{iconNames:"(owner).iconNames",message:"(owner).message",description:"(owner).description",alertStyle:"(owner).alertStyle",accessoryView:"(owner).accessoryView",buttonViews:"(owner).buttonViews"}}),iconNames:Object(c.b)(),message:Object(c.b)(),description:Object(c.b)(),alertStyle:Object(c.b)(),accessoryView:Object(c.b)(),buttonViews:Object(c.b)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"AlertContentController"}}),b=f.a.extend({staticMembers:{show:function(e){var t=this.create(e);return t.show(),t},__QUALIFIED_CLASS_NAME__:"AlertViewController"},message:Object(c.b)(),description:Object(c.b)(),iconNames:Object(c.b)(),alertStyle:Object(c.b)(m.a.ALERT),accessoryView:Object(c.b)({strong:!0,didChange:function(e){if(e){e.alertView=this.view;var t=this._previousAccessoryView;t&&(t.alertView=null,this._previousAccessoryView=e)}}}),buttons:Object(c.b)({type:l.b}),primaryButton:Object(c.b)({set:function(e){if(e)return e.isPrimary=!0,this.createButton(e)}}),alternateButton:Object(c.b)({set:function(e){if(e)return e.isAlternate=!0,this.createButton(e)}}),otherButton:Object(c.b)({set:function(e){if(e)return e._isOther=!0,this.createButton(e)}}),createButtonView:function(e){return p.a.create(e)},createButton:function(e){if(e){!1===Object(o.a)(e,r.a)&&(e=this.createButtonView(e));var t=e.element.classList;return!0===e.isPrimary&&(t.add("primary"),void 0===e.keyEquivalent&&(e.keyEquivalent=a.a.RETURN)),!0===e.isAlternate&&(!0===e.isPrimary&&Object(s.b)("AlertButton cannot be configured as both `isPrimary` and `isAlternate`.",{button:e}),t.add("alternate"),void 0===e.keyEquivalent&&(e.keyEquivalent=a.a.ESC)),!0===e.isDestructive&&t.add("destructive"),e._isOther&&t.add("other"),e}},viewClass:h.b,contentController:Object(c.b)({defaultValue:Object(u.c)(g),downstreamBindings:{iconNames:"(owner).iconNames",message:"(owner).message",description:"(owner).description",alertStyle:"(owner).alertStyle",accessoryView:"(owner).accessoryView",buttonViews:"(owner).buttonViews"}}),_previousAccessoryView:Object(d.d)({strong:!0}),_buttonViewsArray0:Object(d.d)({get:function(){return l.b.create()}}),_buttonViewsArray1:Object(d.d)({get:function(){return l.b.create()}}),_currentlyUsingButtonViewsArray1:!0,buttonViews:Object(c.b)({readOnly:!0,dependencies:["primaryButton","alternateButton","otherButton","buttons","buttons.contentsDidChange"],get:function(){var e=this,t=this.primaryButton,n=this.alternateButton,i=this.otherButton,r=this.buttons;r&&(t||n||i)&&Object(s.b)("Cannot use `primaryButton`/`alternateButton`/`otherButton` API in conjunction with the `buttons[]` API.",{primaryButton:t,alternateButton:n,otherButton:i,buttons:r});var a=this._currentlyUsingButtonViewsArray1,o=a?this._buttonViewsArray0:this._buttonViewsArray1;return o.length=0,r?r.forEach(function(t){t&&o.push(e.createButton(t))}):(t&&o.push(t),n&&o.push(n),i&&o.push(i)),this._currentlyUsingButtonViewsArray1=!a,o}})})},function(e,t,n){"use strict";n.d(t,"b",function(){return u}),n.d(t,"a",function(){return p});var i=n(95),r=n(818),a=n(94),o=n(824),s=n(81),c=n(830),l=n(873),u=Object(i.b)("GestureRecognizerState",function(e){e("Possible"),e("Failed"),e("Ended"),e("Began"),e("Changed"),e("Cancelled")}),d=u.Possible,h=u.Failed,p=r.a.extend(a.a,o.a,{delegate:l.a,event:"",shouldPreventDefault:!0,location:null,ignore:function(e){this.sequence.gestureRecognizerIgnoredPointerId(this,e.pointerId)},isEnabled:!0,state:Object(s.d)({type:u,defaultValue:d,set:function(e){if(this._isDone&&e!==h)throw new Error("GestureRecognizer: cannot set `state`. The state machine has already finished.");var t=this._stateMachine.next(e),n=t.value,i=t.done;n&&(e=n),i&&!this._isDone&&(this._isDone=!0),this._state=e;var r=this.sequence;return r&&r.gestureRecognizerStateChanged(this,e),this._state}}),view:null,pointerDown:c.a.define(),pointerMove:c.a.define(),pointerUp:c.a.define(),pointerCancel:c.a.define(),reset:function(){this._isDone=!1,this.sequence=null,this._initializeStateMachine()},shouldBegin:function(){return this.delegate.gestureRecognizerShouldBegin(this)},shouldReceive:function(e){return this.delegate.gestureRecognizerShouldReceive(this,e)},shouldRecognizeSimultaneouslyWith:function(e){return this.delegate.gestureRecognizerShouldRecognizeSimultaneouslyWith(this,e)},shouldRequireFailureOf:function(e){return this.delegate.gestureRecognizerShouldRequireFailureOf(this,e)},shouldBeRequiredToFailBy:function(e){return this.delegate.gestureRecognizerShouldBeRequiredToFailBy(this,e)},gestureWasRecognized:function(){var e=this.event;if(!e)throw new Error("GestureRecognizer: event may not be empty");this.view.sendEvent(e,this)},stateGenerator:null,_initializeStateMachine:function(){this._stateMachine=this.stateGenerator(this),this._stateMachine.next(),this.state=d},init:function(){var e=arguments;this._stateMachine=this.stateGenerator(this),this._stateMachine.next(),this.__s._$5I0$init.apply(this,e)},initFromPool:function(){var e=arguments;this._initializeStateMachine(),this.__s._$5JN$initFromPool.apply(this,e)},didEnterPool:function(){this.reset();var e=this.constructor.prototype;this.isEnabled=e.isEnabled,this.shouldPreventDefault=e.shouldPreventDefault,this.__s._$5P9$didEnterPool.call(this)},dispose:function(){this._isDone=!1,this.__s._$5RV$dispose.call(this)},_stateMachine:null,_isDone:!1,sequence:Object(s.d)({strong:!0}),__superMap:{_$5I0$init:"init",_$5JN$initFromPool:"initFromPool",_$5P9$didEnterPool:"didEnterPool",_$5RV$dispose:"dispose"},staticMembers:{__QUALIFIED_CLASS_NAME__:"GestureRecognizer"}})},function(e,t,n){"use strict";n.d(t,"b",function(){return r}),n.d(t,"a",function(){return a});var i=n(104),r={MOUSE:"mouse",PEN:"pen",TOUCH:"touch"},a=n(380).a.extend({staticMembers:{nativePropertiesToCopy:Object(i.b)(["pointerId","width","height","pressure","tiltX","tiltY","pointerType","isPrimary"]),eventPropertiesToCopy:Object(i.b)(["pointerId","width","height","pressure","tiltX","tiltY","pointerType","isPrimary"]),__QUALIFIED_CLASS_NAME__:"PointerEvent"},pointerId:0,width:0,height:0,pressure:0,tiltX:0,tiltY:0,pointerType:"",isPrimary:!1})},function(e,t,n){"use strict";n.d(t,"a",function(){return p}),n.d(t,"b",function(){return f});var i=n(841),r=n(832),a=n(827),o=n(875),s=n(819),c=n(838),l=n(84),u=n(840),d="[CW.Property#extendedForAccumulatorDefaultValue] Cannot extend property.",h=[],p=l.a.extend({init:function(e){this.value=Object(i.a)(arguments),this.__s._$f7$init.call(this)},value:null,initializeMember:function(e,t){var n,i=e[t],l=this.value;if(Array.isArray(i))n=i.concat.apply(i,l);else if(Object(r.a)(i))l.every(r.a)?(Object(a.a)(h,l,1,0),h[0]=i,n=o.a.apply(null,h)):Object(s.b)(d+" The default value of the superclass property is a hash, but the subclass does not provide a hash.",{value:l,property:this});else if(Object(u.a)(i))l.every(r.a)?n=i.extend.apply(i,l):Object(s.b)(d+" The default value of the superclass property is a class, but the subclass does not provide a hash.",{value:l,property:this});else if(Object(c.a)(i))Object(s.b)(d+" This property class returned a default value that is not valid for aggregation.  It must be either an array or a hash object.",{property:this,previousValue:i});else if(l.every(r.a))n=o.a.apply(null,l);else if(l.every(Array.isArray)){Object(a.a)(h,l,0,1);var p=l[0];n=p.concat.apply(p,h)}else Object(s.b)(d+" If the default value of the superclass property is "+i+", the subclass must provide a hash or an array.",{value:l,property:this});return n},__superMap:{_$f7$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Accumulator"}}),f=function(){return p.create.apply(p,arguments)}},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return f});var i=n(828),r=n(821),a=n(861),o=n(78),s=n(98),c=n(87),l=n(872),u={mixinDependencies:[o.b,l.a],defaultFocusChildren:Object(s.b)(),isFocused:Object(s.b)({readOnly:!0,dependencies:["isInFocusedBranch","focusedChild"],get:Object.assign(function(){return this.isInFocusedBranch&&!this.focusedChild},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])&&!i.internalGet(this,t[1+n])}})}),descendantHasFocus:Object(s.b)({readOnly:!0,dependencies:["isInFocusedBranch","focusedChild"],get:Object.assign(function(){return this.isInFocusedBranch&&!!this.focusedChild},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])&&!!i.internalGet(this,t[1+n])}})}),isFocusable:Object(s.b)(!1),isFocusablePane:Object(s.b)(!0),shouldFocusPaneOnAttach:Object(s.b)(!0),isFocusedPane:Object(s.b)({readOnly:!0,dependencies:["focusParent.isFocusedLayer"],get:Object.assign(function(){return this.getPath("focusParent.isFocusedLayer")},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])}})}),isInTheFocusedPane:Object(s.b)({readOnly:!0,dependencies:["focusParent.isInTheFocusedPane","isFocusedPane"],get:Object.assign(function(){return!!this.isFocusedPane||!!this.getPath("focusParent.isInTheFocusedPane")},{__CW__getter:function(e,t,n,i){return!!i.internalGet(this,t[1+n])||!!i.internalGetPath(this,t[0+n])}})}),inheritsFocusLayer:Object(s.b)(!1),isInFocusableLayer:Object(s.b)(Object(c.c)("focusParent.isInFocusableLayer")),isInFocusedLayer:Object(s.b)(Object(c.c)("focusParent.isInFocusedLayer")),isInFocusedBranch:Object(s.b)({readOnly:!0,dependencies:["isInFocusedLayer","isFocusedInParent","focusParent.isInFocusedBranch"],get:Object.assign(function(){var e=this.isInFocusedLayer,t=this.isFocusedInParent,n=this.getPath("focusParent.isInFocusedBranch");return e&&t&&n},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]),a=i.internalGet(this,t[1+n]),o=i.internalGetPath(this,t[2+n]);return r&&a&&o}})}),isFocusedInParent:Object(s.b)({dependencies:["focusParent.focusedChild"],readOnly:!0,get:Object.assign(function(){var e=this.getPath("focusParent.focusedChild");return this.isRootViewController||e===this},{__CW__getter:function(e,t,n,i){var r=i.internalGetPath(this,t[0+n]);return this.isRootViewController||r===this}})}),focusResponder:Object(s.b)({dependencies:["focusedChild","focusedChild.focusResponder"],readOnly:!0,get:Object.assign(function(){return this.focusedChild&&this.focusedChild.focusResponder||(this.isFocusable?this:null)},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])&&i.internalGetPath(this,t[1+n])||(this.isFocusable?this:null)}})}),parent:Object(s.b)(null),focusParent:Object(s.b)({dependencies:["parent"],writeDependencies:[],get:Object.assign(function(e){var t=e||this.parent;return Object(i.a)(t,u)?t:void 0},{__CW__getter:function(e,t,n,r){var a=e||r.internalGet(this,t[0+n]);return Object(i.a)(a,u)?a:void 0}}),set:function(e){return e}}),focusedChild:Object(s.b)(),_focusInTree:function(){if(this.isInFocusedBranch)return!0;if(!this.isInFocusableLayer)return!1;var e=this.focusParent;return e.focusedChild=this,e._focusInTree()},focus:function(e){if(!this.isInFocusableLayer&&(this.sendEvent("appGainedFocusability"),!this.isInFocusableLayer))return!1;if(!e&&this.isInFocusedBranch)return this.focusAsLeaf();var t=!1;return(t=this.reFocus())||(t=this.focusDefault()),t||(t=this.focusAsLeaf()),t},focusAsLeaf:function(){return!!this.isFocusable&&(this.focusedChild=null,this._focusInTree(),this.sendEvent("appWantsFocus"),this.isFocused)},reFocus:function(){var e=this.focusResponder;return!(!e||e===this)&&e.focus()},focusDefault:function(){var e=this.defaultFocusChildren;if(e)for(var t=0,n=e.length;t<n;t++){var r=e.objectAt(t);if(r&&Object(i.a)(r,u)&&r.focus())return!0}var a=this.defaultFocusChild;return!!a&&a.focus()},_blurInTree:function(){if(!this.isInFocusedBranch)return!0;if(!this.isInFocusableLayer)return!1;var e=this.focusParent;return!e||!this.isFocusedInParent||(e._blurInTree(),e.focusedChild=null,!0)},blur:function(){return!(!this.isInFocusableLayer&&(this.sendEvent("appGainedFocusability"),!this.isInFocusableLayer))&&this._blurInTree()},didFocus:r.a,didBlur:r.a,defaultFocusChild:Object(s.b)(),isFocusedLayer:Object(s.b)({readOnly:!0,defaultValue:!1}),_wasFocused:!1,isFocusedDidChange:Object(o.h)("isFocused",function(e){e?(this._wasFocused=!0,this.didFocus()):this._wasFocused&&(this._wasFocused=!1,this.didBlur())}),didReceiveFocus:function(e){var t=!1;return null===e.relatedTarget&&(this.sendEvent("appGainedFocusability"),t=!0),this.isInFocusableLayer&&this.isFocusable||this.sendEvent("focusReleasedInApp"),this.isFocused||this.focus(t),!0},didReceiveBlur:function(e){return null!==e.relatedTarget||document.hasFocus()||this.sendEvent("appLostFocus"),!0}},d=null,h=null;function p(){d&&d.focus(),d=null,h=null}var f={mixinDependencies:[u],tabIndex:Object(s.b)(0),_previousDefaultFocusElement:Object(s.b)(),tabIndexObserver:Object(o.h)({inputs:["isFocusable","tabIndex","defaultFocusElement"],callback:function(e,t,n){var i=this._previousDefaultFocusElement;i&&i.removeAttribute("tabIndex"),this._previousDefaultFocusElement=n,n&&(e?n.setAttribute("tabIndex",t):n.removeAttribute("tabIndex"))}}),focusAsLeaf:function(){var e=arguments,t=this.__s._$4eU$focusAsLeaf.apply(this,e);if(t){var n=this.defaultFocusElement;h||(h=Object(a.a)(p,0)),d=n}return t},blur:function(){var e=arguments,t=this.__s._$4po$blur.apply(this,e);if(t){var n=this.defaultFocusElement;n&&n.blur()}return t},defaultFocusElement:Object(s.b)({binding:Object(c.c)("element"),readOnly:!0}),didFocus:function(){},__superMap:{_$4eU$focusAsLeaf:"focusAsLeaf",_$4po$blur:"blur"}}},function(e,t,n){"use strict";n.d(t,"b",function(){return f}),n.d(t,"a",function(){return m});var i=n(85),r=n(856),a=n(818),o=n(179),s=n(820),c=n(828),l=n(78),u=n(142),d=n(107),h=n(87),p=n(98),f={mixinDependencies:[d.b],origin:Object(i.c)(r.a),top:Object(i.c)(r.a),bottom:Object(i.c)(r.a),left:Object(i.c)(r.a),right:Object(i.c)(r.a),isAbove:function(e){return this.bottom<=e.top},isBelow:function(e){return this.top>=e.bottom},isLeftOf:function(e){return this.right<=e.left},isRightOf:function(e){return this.left>=e.right},intersects:function(e){return!(this.isAbove(e)||this.isBelow(e)||this.isRightOf(e)||this.isLeftOf(e))},containsPoint:function(e){var t=e.x,n=e.y;return t>=this.left&&t<this.right&&n>=this.top&&n<this.bottom},toString:function(){var e=arguments;return this.__s._$14B$toString.apply(this,e)+Object(s.a)("{ origin: (%{x},%{y}) size: (%{width}, %{height}) }",this)},__superMap:{_$14B$toString:"toString"}},m=a.a.extend(l.b,f,{_origin:null,init:function(e){var t=arguments;if(Object(c.a)(e,f))return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this.__s._$1NE$init.call(this);this.__s._$1NE$init.apply(this,t)},origin:Object(p.b)({dependencies:["x","y"],strong:!0,get:Object.assign(function(){var e=this.y,t=this.x,n=this._origin;return n?(n.set("x",t),n.set("y",e)):n=this._origin=u.a.create({x:t,y:e}),n},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[1+n]),a=i.internalGet(this,t[0+n]),o=this._origin;return o?(o.set("x",a),o.set("y",r)):o=this._origin=u.a.create({x:a,y:r}),o}}),set:Object.assign(function(e){Object(o.a)(e)||(e=u.a.create(e)),this.x=e.x,this.y=e.y,this._origin=e},{__CW__setter:function(e,t,n,i,r){Object(o.a)(e)||(e=u.a.create(e)),n[0+i]=e.x,n[1+i]=e.y,this._origin=e}}),writeDependencySetPathMap:["false","false"]}),x:Object(p.b)(),y:Object(p.b)(),width:Object(p.b)(),height:Object(p.b)(),top:Object(p.b)({binding:Object(h.c)("y"),readOnly:!0}),bottom:Object(p.b)({readOnly:!0,cacheable:!0,dependencies:["height","y"],get:Object.assign(function(){return this.y+this.height},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])+i.internalGet(this,t[0+n])}})}),left:Object(p.b)({binding:Object(h.c)("x"),readOnly:!0,cacheable:!0}),right:Object(p.b)({readOnly:!0,cacheable:!0,dependencies:["width","x"],get:Object.assign(function(){return this.x+this.width},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])+i.internalGet(this,t[0+n])}})}),__superMap:{_$1NE$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Rect"}})},function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p});var i=n(94),r=n(85),a=n(856),o=n(818),s=n(824),c=n(820),l=n(837),u=n(78),d=n(98),h={mixinDependencies:[i.a],width:Object(r.c)(a.a),height:Object(r.c)(a.a),toString:function(){var e=arguments;return this.__s._$8e$toString.apply(this,e)+Object(c.a)("{ width: %{width}, height: %{height} }",this)},__superMap:{_$8e$toString:"toString"}},p=o.a.extend(u.b,h,s.a,{initFromPool:function(e,t){var n=arguments;if(Object(l.a)(t))return this.width=e,this.height=t,this.__s._$Fw$initFromPool.call(this);this.__s._$Fw$initFromPool.apply(this,n)},didEnterPool:function(){var e=arguments;this.width=0,this.height=0,this.__s._$I3$didEnterPool.apply(this,e)},width:Object(d.b)(0),height:Object(d.b)(0),__superMap:{_$Fw$initFromPool:"initFromPool",_$I3$didEnterPool:"didEnterPool"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Size"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return f}),n.d(t,"b",function(){return g}),n(0);var i=n(86),r=n(882),a=n(78),o=n(832),s=n(819),c=n(821),l=n(833),u=n(836),d=n(842),h=n(181),p=n(875),f={mixinDependencies:[n(232).a],staticMembers:{init:function(e){this.__s._$1JC$init.call(this,e);var t,n=this.template;if(n){Object(o.a)(n)||Object(s.b)("Template must be a $template");var i=0;!this.hasOwnProperty("template")&&n.classes&&(i=n.classes.length);var r=this._templateExtensionsArray;if(r){for(var l=r.length,u=0;u<l;u++)n=m(n,r[u]);this.template=n,delete this._templateExtensionsArray,(t=r).length=0,A.push(t)}var d=n.classes;if(d)for(var h=i,p=d.length;h<p;h++)if("string"==typeof d[h]){this.className=!1;break}this.registerOutletAndSubOutlets(n);var f=this._handledOutlets,g=this.superclass._handledOutlets,b=this.prototype;for(var v in g)if(g[v]&&!f[v])if(b.getMetadata(v).outletProperty)Object(s.b)("Template error: template redefined with missing outlet: %{outletName}. If you are implementing this property in a different way, you may suppress this error by redefining the property in your subclass.",{outletName:v});else{var _="_"+v+"OutletObserver";b.registerMetadata(_,Object(a.h)(v,c.a))}}},_templateExtensionsArray:null,mixinWasApplied:function(){var e=this.templateExtensions;if(e){var t=this._templateExtensionsArray;t||(t=this._templateExtensionsArray=A.length>0?A.pop():[]),t.push(e),delete this.templateExtensions}},template:{type:"ELEMENT",tagname:"div"},templateExtensions:null,_nodeHandlers:{},_getNodeHandler:function(e){var t=e.type.toLowerCase(),n=this._nodeHandlers[t];return t&&!n&&Object(s.b)("No handler for template node type: "+t),n},registerOutletAndSubOutlets:function(e,t){if(Object(l.a)(e))return e;var n=this._getNodeHandler(e),i=n.register;i&&(e.parent=t,i.call(n,this,e))},renderNodeAndSubNodes:function(e,t){if(Object(l.a)(e))return e;var n=this._getNodeHandler(e),i=n.render;return i||Object(s.b)("No render handler for template node type: "+e.type),i.call(n,this,t,e)},_handledOutlets:Object(i.c)(Object),_outletWasRegistered:function(e){this._handledOutlets[e]=!0},__superMap:{_$1JC$init:"init"}},init:function(e){var t=arguments;(this.element=this.generateElementNode()).view=this,this.__s._$3eM$init.apply(this,t)},_getRenderedTemplate:function(e,t){var n=e._renderedValue;return n||(n=e._renderedValue=r.a.create()),n.get(t)},generateElementNode:function(){var e=this.constructor.template;if(e){var t=this.document,n=this._getRenderedTemplate(e,t);return n||(n=this.constructor.renderNodeAndSubNodes(e,t),e._renderedValue.set(t,n)),n.cloneNode(!0)}},__superMap:{_$3eM$init:"init"}};function m(e,t){var n=g(e);for(var i in t){var r=t[i];if(Object(u.a)(r))for(var a=r.length,c=0;c<a;c++)w(n,i,r[c]);else Object(o.a)(r)?w(n,i,r):Object(s.b)("Template extension must be a $template or an array of $templates.")}return n}function g(e){return Object(d.b)(e,y)}var b=Object(h.a)(["attribute","attributes","children","classes","data","falsevalue","index","name","namespace","property","styles","tagname","truevalue","type","unit"]),v=Object(h.a)(["styles","classes","attributes","children"]);function _(e,t){return v[t]?C:y}function y(e,t,n){return b[n]?Object(d.b)(e,_(0,n)):d.a}function C(e,t,n){return Object(d.b)(e,_(0,n))}var I="ext";function w(e,t,n){n=g(n);var i,r,a=(i=e,r=i._namesCache,r||(i._namesCache=r=function e(t,n){if(t){var i=t.name;if(i){var r=n[i];r&&t!==r?Object(s.b)("invalid node name: '"+i+"' is already used"):n[i]=t}var a=t.children;if(a)for(var o=a.length,c=0;c<o;c++)e(a[c],n);return n}}(i,{root:i})),r)[t];a||Object(s.b)("unable to find outlet with name "+t+" to extend"),n.tagname!==I&&(a.tagname=n.tagname),a.attributes=Object(p.a)(a.attributes,n.attributes),a.styles=Object(p.a)(a.styles,n.styles),a.children=S(a.children,n.children),a.classes=S(a.classes,n.classes)}function S(){for(var e,t=arguments.length,n=0;n<t;n++){var i=arguments[n];i&&(e=e?e.concat(i):i)}return e}var A=[]},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u});var i=n(276),r=n(519),a=n(98),o=n(78),s=n(104),c=1,l=n(877).a.extend(r.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",name:"alertIcon",classes:["alert-icon"]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"h1",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"message",attributes:{}}],classes:["message"],attributes:{id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaLabelledByID",attributes:{},attribute:"id"},tabindex:"0"}},{type:"ELEMENT",tagname:"p",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"description",attributes:{}}],classes:["description"],attributes:{id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaDescribedByID",attributes:{},attribute:"id"},tabindex:"0"}}],name:"contentWrapper",classes:["alert-text-container"]}],classes:["alert-main-content"]},{type:"VIEWOUTLET",tagname:"view",name:"accessoryView",classes:["alert-accessory-view"]}],classes:["main-container",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"_hasText",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]},{type:"MULTIVIEWOUTLET",tagname:"views",name:"buttonViews",classes:["alert-button-container",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"_hasMoreThanTwoButtons",truevalue:"has-more-than-two-buttons",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"_hasOtherButton",truevalue:"has-other-button",attributes:{}}]}],classes:["cw-alert",{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"_alertStyleClassName",attributes:{}}]}},__QUALIFIED_CLASS_NAME__:"AlertContentView"},ariaLabelledByID:Object(a.b)({readOnly:!0,get:function(){return"alert-m-"+ ++c}}),ariaDescribedByID:Object(a.b)({readOnly:!0,get:function(){return"alert-d-"+c++}}),message:Object(a.b)(),description:Object(a.b)(),iconNames:Object(a.b)(),alertStyle:Object(a.b)(),_alertStyleClassName:Object(a.b)({readOnly:!0,dependencies:["alertStyle"],get:Object.assign(function(){return this.alertStyle?this.alertStyle.value:""},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?i.internalGet(this,t[0+n]).value:""}})}),_hasText:Object(a.b)({readOnly:!0,dependencies:["message","description"],get:Object.assign(function(){return Boolean(this.message||this.description)},{__CW__getter:function(e,t,n,i){return Boolean(i.internalGet(this,t[0+n])||i.internalGet(this,t[1+n]))}})}),_hasMoreThanTwoButtons:Object(a.b)({dependencies:["buttonViews","buttonViews.contentsDidChange"],type:Boolean,readOnly:!0,get:Object.assign(function(){var e=this.buttonViews;return void 0!==e&&e.length>2},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return void 0!==r&&r.length>2}})}),_hasOtherButton:Object(a.b)({dependencies:["buttonViews","buttonViews.contentsDidChange"],type:Boolean,readOnly:!0,get:Object.assign(function(){var e=this.buttonViews;return void 0!==e&&e.length>1&&(e.length>2||!0!==e.objectAt(1).isAlternate)},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return void 0!==r&&r.length>1&&(r.length>2||!0!==r.objectAt(1).isAlternate)}})}),_iconNamesDidChange:Object(o.h)({inputs:["iconNames"],callback:function(e){var t=this.get("alertIcon");this._originalClassName?t.className=this._originalClassName:this._originalClassName=t.className,e&&(e instanceof Array?e.forEach(function(e){t.classList.add(e)}):t.classList.add(e))}}),disableAllButtons:function(){this.buttonViews.forEach(function(e){e.isDisabled=!0})},enableAllButtons:function(){this.buttonViews.forEach(function(e){e.isDisabled=!1})},buttonViews:Object(a.b)()}),u=i.b.extend({additionalClassNames:Object(s.b)(["cw-ui-alert-view","cw-alert-modal"]),buttonDidActivate:function(e){this.sendEvent("alertWillDismiss"),this.contentView&&this.contentView.disableAllButtons(),this.animateClosed()},dismissOnEscape:!1,staticMembers:{__QUALIFIED_CLASS_NAME__:"AlertView"}})},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n(94),r=n(830),a=n(818),o=n(86),s=n(100),c=n(862),l={mixinDependencies:[i.a],action:r.a.create()},u=a.a.extend(l,{dependencies:Object(o.c)([]),run:function(e){var t=this,n=e.initializerPromises,i=this.constructor,r=n.get(i);if(r)return r;var a=this.dependencies.map(function(t){return t.create().run(e)});return r=s.a.all(a).then(function(){return t.action(e)}).catch(Object(c.a)(function(e){throw e})),n.set(i,r),r},staticMembers:{__QUALIFIED_CLASS_NAME__:"AppInitializer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n(818),r=n(180),a=n(81),o=n(855),s=n(829),c=n(78),l=n(98),u=n(819),d=n(547),h=i.a.extend(r.a,{init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e._firstRange,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t?t.start:NaN;this._source=e,this._range=t,this._index=n,this.__s._$9_$init.call(this)},_source:null,_range:null,_index:NaN,isValid:Object(a.d)({readOnly:!0,get:function(){return!!this._range}}),encodedValue:Object(a.d)({readOnly:!0,get:function(){return this._index}}),moveToNext:function(){var e=this._index,t=this._range;e===t.end?e=(t=this._range=t.next)?t.start:NaN:e++,this._index=e},clone:function(){return this.constructor.create(this._source,this._range,this._index)},__superMap:{_$9_$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"IndexIterator"}}),p=i.a.extend(r.a,{init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e._firstRange;this._source=e,this._range=t,this.__s._$P4$init.call(this)},_source:null,_range:null,isValid:Object(a.d)({readOnly:!0,get:function(){return!!this._range}}),value:Object(a.d)({readOnly:!0,get:function(){return this.encodedValue}}),encodedValue:Object(a.d)({readOnly:!0,get:function(){return this._range}}),moveToNext:function(){this.isValid&&(this._range=this._range.next)},clone:function(){return this.constructor.create(this._source,this._range)},__superMap:{_$P4$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"IndexRangeIterator"}}),f=i.a.extend(c.b,o.a,d.a,s.a,{init:function(){var e=arguments;this._firstRange=null,this.__s._$mx$init.apply(this,e)},length:Object(l.b)({cacheable:!0,get:function(){for(var e=this._firstRange,t=0;e;)t+=e.end-e.start+1,e=e.next;return t}}),iteratorClass:Object(a.d)(h),toArray:function(e){for(var t,n,i,r=e||[],a=this._firstRange;a;){for(n=a.start,i=a.end,t=n;t<=i;t++)r.push(t);a=a.next}return r},clear:function(){for(var e=this._firstRange,t=null;e;)t=e.next,e.next=null,e.start=e.end=-1,e=t;this._firstRange=null,this.propertyChanged("length")},add:function(e,t){var n=this.encode(e),i=void 0!==t?this.encode(t):void 0;return this.encodedAdd(n,i)},encodedAdd:function(e,t){if(void 0===t)t=e;else if(t<e){var n=[t,e];e=n[0],t=n[1]}for(var i=this._firstRange,r=null,a=0;i&&!(i.end>=e);)r=i,i=i.next;if(i&&i.start<=t){var o=Math.min(i.start,e),s=Math.max(i.end,t);a+=i.start-o,a+=s-i.end,i.start=o,i.end=s}else i=new m(e,t,i||null),a=t-e+1,r?r.next=i:this._firstRange=i;r&&r.end>=i.start-1&&(a-=r.end-i.start+1,r.end=i.end,r.next=i.next,i=r);var c=i;for(i=i.next;i&&i.start<=c.end+1;)c.end=Math.max(c.end,i.end),a-=Math.min(t,i.end)-Math.max(e,i.start)+1,c.next=i.next,i=i.next;return this.propertyChanged("length"),a},remove:function(e,t){return this.encodedRemove(this.encode(e),t?this.encode(t):void 0)},encodedRemove:function(e,t){if(void 0===t)t=e;else if(t<e){var n=[t,e];e=n[0],t=n[1]}for(var i=this._firstRange,r=null,a=0;i&&!(i.start>t);){if(i.end>=e)if(i.start>=e&&i.end<=t)r?r.next=i.next:this._firstRange=i.next,a+=i.end-i.start+1;else{var o,s,c=i.start,l=Math.min(i.end,e-1),u=Math.max(i.start,t+1),d=i.end,h=i.next;a+=Math.min(t,i.end)-Math.max(e,i.start)+1,l-c>=0&&(o=new m(c,l,h),r?r.next=o:this._firstRange=o,r=i=o),d-u>=0&&(s=new m(u,d,h),r?r.next=s:this._firstRange=s,r=i=s)}r=i,i=i.next}return this.propertyChanged("length"),a},contains:function(e,t){return this.encodedContains(this.encode(e),t?this.encode(t):void 0)},encodedContains:function(e,t){void 0===t&&(t=e);for(var n=this._firstRange;n;){if(n.start<=e&&n.end>=t)return!0;n=n.next}return!1},containsSome:function(e,t){Object(u.b)("not implemented")},rangeStart:function(e){var t=this._rangeForIndex(e);return t?t.start:-1},rangeEnd:function(e){var t=this._rangeForIndex(e);return t?t.end:-1},lastIndexBefore:function(e){for(var t,n=this._firstRange,i=-1,r=e-1;n&&!(n.start>r);)t=n,n=n.next;return t&&(i=Math.min(r,t.end)),i},firstIndexAfter:function(e){for(var t=this._firstRange,n=-1,i=e+1;t&&!(t.end>=i);)t=t.next;return t&&(n=Math.max(i,t.start)),n},itemsInsertedAtIndex:function(e,t){for(var n=this._firstRange;n;)this._updateRangeForInsertion(n,e,t),n=n.next;this.remove(e,e+t-1)},itemsRemovedAtIndex:function(e,t){for(var n=this._firstRange,i=null;n;)this._updateRangeForRemoval(n,e,t),n.end>=n.start?i&&i.end>=n.start-1&&(i.end=n.end,i.next=n.next):i?i.next=n.next:this._firstRange=n.next,i=n,n=n.next;this.propertyChanged("length")},_updateRangeForInsertion:function(e,t,n){e.start>=t&&(e.start+=n),e.end>=t&&(e.end+=n)},_updateRangeForRemoval:function(e,t,n){var i=t+n-1;e.start>=t&&(e.start<=i?e.start=t:e.start-=n),e.end>=t&&(e.end<=i?e.end=t-1:e.end-=n)},_rangeForIndex:function(e){for(var t=this._firstRange;t;){if(t.start<=e&&t.end>=e)return t;t=t.next}return null},ranges:function(){return p.create(this)},union:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o.ranges(),c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var u;if(c){if(l>=s.length)break;u=s[l++]}else{if((l=s.next()).done)break;u=l.value}var d=u,h=d.start,p=d.end;this.add(h,p)}}return this},difference:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(g,this)},clone:function(){return f.create().union(this)},__superMap:{_$mx$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"IndexSet"}});function m(e,t,n){this.start=e,this.end=t,this.next=n}function g(e,t){for(var n,i,r,a,o,s=e.ranges(),c=t.ranges(),l=(n=null,i=null,r=null,function(e){if(null===n)n=e;else{var t=n.value,a=e.value;if(n.oppositeOn&&(t+=1),e.oppositeOn&&(a-=1),t<=a){var o=new m(t,a,null);null===i?(r=o,i=o):i.end===o.start-1?i.end=o.end:(i.next=o,i=o)}n=null}return r}),u=null,d=!1,h=!1;s.isValid||c.isValid;){var p=b(s,d),g=b(c,h);null===p||null!==g&&(g<p||!(g>p)&&d)?(u=l({value:g,oppositeOn:d}),h&&c.moveToNext(),h=!h):(u=l({value:p,oppositeOn:h}),d&&s.moveToNext(),d=!d)}return a=u,(o=f.create())._firstRange=a,o}function b(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return e.isValid?t?e.value.end:e.value.start:null}},function(e,t,n){"use strict";n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"a",function(){return s});var i=n(828),r=n(81),a=n(1073),o=n(603),s=a.a.extend({staticMembers:{shouldRegisterServiceForProcess:function(e,t){return!!e.isLegacyService===i.a(t,o.a)},__QUALIFIED_CLASS_NAME__:"LegacyCloudOSServiceRegistration"},isLegacyService:r.d({type:"boolean",defaultValue:!0})})},function(e,t,n){"use strict";var i=n(818),r=n(81),a=n(828),o=n(819),s=n(86),c=n(1085),l=n(407),u=i.a.extend({locale:r.d({type:String,get:function(){return this._readPreferencesValue("locale")},set:function(e){this._setPreferencesValue("locale",e)}}),secondaryLocale:r.d({type:String,get:function(){return this._readPreferencesValue("secondaryLocale")},set:function(e){this._setPreferencesValue("secondaryLocale",e)}}),regionFormat:r.d({type:String,get:function(){return this._readPreferencesValue("regionFormat")||"en-us"},set:function(e){this._setPreferencesValue("regionFormat",e)}}),startupUrls:r.d({type:Object,get:function(){return this._readPreferencesValue("startupUrls")},set:function(e){this._setPreferencesValue("startupUrls",e)}}),getStartupInfoForApp:function(e){var t=this.startupUrls;if(!t)return null;var n=t[e];if(!n)return null;try{var i=JSON.parse(n);return l.a.create(i)}catch(e){var r=n;return l.a.create({url:r})}},setStartupInfoForApp:function(e,t){var n=this.startupUrls||{};n[e]=t?JSON.stringify(t.serialize()):null,this.startupUrls=n},clearStartupInfoForApp:function(e){var t=this.startupUrls||{};t[e]=null,this.startupUrls=t},timeZone:r.d({type:String,get:function(){return this._readPreferencesValue("timeZone")||"US/Pacific"},set:function(e){this._setPreferencesValue("timeZone",e)}}),timezoneName:r.d({type:String,get:function(){return this._readPreferencesValue("timezoneName")},set:function(e){this._setPreferencesValue("timezoneName",e)}}),timeZoneCity:r.d({type:String,get:function(){return this._readPreferencesValue("timeZoneCity")},set:function(e){this._setPreferencesValue("timeZoneCity",e)}}),regionFormatsMatchLanguage:r.d({type:Boolean,get:function(){return this._readPreferencesValue("regionFormatsMatchLanguage")},set:function(e){this._setPreferencesValue("regionFormatsMatchLanguage",e)}}),preferencesData:r.d({type:Map,readOnly:!0}),init:function(e){this.__s._$1pk$init.call(this),e||o.b("[AccountPreferences] No preferences data specified"),this._preferencesData=e},_readPreferencesValue:function(e){return this.preferencesData.get(e)},_setPreferencesValue:function(e,t){this.preferencesData.set(e,t)},__superMap:{_$1pk$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"AccountPreferences"}}),d=n(95),h=n(100),p=n(909),f=n(99),m=n(1090),g=n(1088),b=n(1079),v=i.a.extend({key:r.d({type:String,readOnly:!0}),values:r.d({type:Map,readOnly:!0}),registryVersion:r.d({type:String}),init:function(e,t,n){this.__s._$EJ$init.call(this),e||o.b("[KeyValueRegistry] Created without key"),t||o.b("[KeyValueRegistry] Created without values"),void 0!==n&&null!==n||o.b("[KeyValueRegistry] Created without registry version"),this._key=e,this._values=t,this._registryVersion=n},__superMap:{_$EJ$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"KeyValueRegistry"}}),_=n(51),y=(n(3),d.b("KeyValueServiceError",{HTTP_ERROR:"HTTP_ERROR",KEY_VALUE_SERVICE_ERROR:"KEY_VALUE_SERVICE_ERROR",KEY_REGISTRY_ERROR:"KEY_REGISTRY_ERROR",KEY_VALUE_SERVICE_NO_RESPONSE:"KEY_VALUE_SERVICE_NO_RESPONSE",KEY_VALUE_SERVICE_EMPTY_RESPONSE:"KEY_VALUE_SERVICE_EMPTY_RESPONSE",KEY_VALUE_SERVICE_KEY_NOT_FOUND:"KEY_VALUE_SERVICE_KEY_NOT_FOUND",KEY_VALUE_SERVICE_UPDATE_FAILED:"KEY_VALUE_SERVICE_UPDATE_FAILED"}));function C(e){return w.create(e).fetchValuesForKeys()}var I=i.a.extend({fetchPromise:r.d({type:h.a,readOnly:!0,get:function(){var e=this._fetchPromise;return e||o.b("[KeyValueService] Promise state violation"),e}}),handleFetchSuccess:function(){},handleOperationFailure:function(e){},fetchKeyValueService:function(e){var t=this;return this._fetchPromise||(this._fetchPromise=h.a.create()),this._fetchKeyValueServiceURL(e).then(function(e){var n=e.status;if(n===p.a.OK)return e.json().then(function(e){var n=t._preprocessResponse(e)||t.processResponse(e);n?t.resolvePromiseWithError(n):t.handleFetchSuccess(e)});t.resolvePromiseWithError(O(y.HTTP_ERROR,n))})},processResponse:function(e){},resolvePromiseWithError:function(e){this.handleOperationFailure(e);var t=m.a.create({status:g.a.ERROR,error:e});this._fetchPromise.resolve(t),this._fetchPromise=void 0},resolvePromiseSuccess:function(e){var t=m.a.create({status:g.a.SUCCESS,data:e});this._fetchPromise.resolve(t),this._fetchPromise=void 0},_fetchPromise:r.d({type:h.a}),_fetchKeyValueServiceURL:function(e){return Object(_.a)(Object(b.d)("keyvalue","json/sync"),{method:f.a.POST,body:e})},_preprocessResponse:function(e){if(!e)return O(y.KEY_VALUE_SERVICE_NO_RESPONSE);var t=e.status,n=e.apps;return n&&0!==n.length?0!==t?O(y.KEY_VALUE_SERVICE_ERROR,t):void 0:O(y.KEY_VALUE_SERVICE_EMPTY_RESPONSE)},staticMembers:{__QUALIFIED_CLASS_NAME__:"KeyValueServiceConnection"}}),w=I.extend({keys:r.d({type:Array}),values:r.d({type:Map,defaultValue:s.c(Map)}),init:function(e){this.__s._$3Hd$init.call(this),a.a(e,Array)||o.b("[KeyValueService] No keys specified"),this.keys=e,this._remainingKeysToBeFetched=new Set(e)},fetchValuesForKeys:function(){return this._fetchValues(),this.fetchPromise},handleFetchSuccess:function(e){for(var t=e.apps,n=this._remainingKeysToBeFetched,i=0,r=t.length;i<r;i++){var a=t[i],o=a["app-id"];n.delete(o);var s=A(a.keys),c=a["registry-version"],l=v.create(o,s,c);this.values.set(o,l)}if(n.size>0)this._fetchValues();else{var u=this.values;this.resolvePromiseSuccess(u)}},handleOperationFailure:function(e){this.values=void 0},processResponse:function(e){for(var t=e.apps,n=this._remainingKeysToBeFetched,i=0,r=t.length;i<r;i++){var a=t[i],o=a["app-id"],s=a["registry-status"];if(1!==s)return O(y.KEY_REGISTRY_ERROR,s);if(!n.has(o))return O(y.KEY_VALUE_SERVICE_KEY_NOT_FOUND,o)}},_remainingKeysToBeFetched:r.d({type:Set}),_fetchValues:function(){var e=this._remainingKeysToBeFetched,t=this._createRequestBody(e);return this.fetchKeyValueService(t)},_createRequestBody:function(e){var t=[],n=e.values(),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a;t.push({"app-id":o,"registry-version":""})}return{"service-id":"appleprefs",apps:t}},__superMap:{_$3Hd$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"FetchKeyValueServiceConnection"}}),S=I.extend({registry:r.d({type:v}),init:function(e,t,n){this.__s._$4fT$init.call(this),e||o.b("[KeyValueService] No key specified for update"),a.a(t,Map)||o.b("[KeyValueService] No values specified for update"),this._key=e,this._values=t,this._registryVersion=n},handleFetchSuccess:function(e){for(var t=this,n=e.apps[0],i=n.keys,r=0,a=i.length;r<a;r++)switch(i[r]["update-status"]){case 1:case 4:this._updateDidConflict=!0}if(this._updateDidConflict){var o=this._registryVersion=n["registry-version"],s=this.registry;s&&(s.registryVersion=o),this._retryUpdate(),this._updateDidConflict=!1}else{var c=this.registry;if(c)this.resolvePromiseSuccess(c);else{var l=this._key;C([l]).then(function(e){e.isOK&&(t.registry=e.data.get(l)),t.resolvePromiseSuccess(t.registry)})}}},handleOperationFailure:function(e){this.registry=void 0},processResponse:function(e){var t=e.apps;if(1!==t.length)return O(y.KEY_VALUE_SERVICE_UPDATE_FAILED,{appsCount:t.length});var n=t[0],i=n.keys,r=n["registry-status"];if(2!==r&&1!==r)return O(y.KEY_REGISTRY_ERROR,r);var a=n["app-id"];if(a!==this._key)return O(y.KEY_VALUE_SERVICE_KEY_NOT_FOUND,a);for(var o=0,s=i.length;o<s;o++){var c=i[o]["update-status"];switch(c){case 2:case 3:return O(y.KEY_VALUE_SERVICE_UPDATE_FAILED,c)}}},updateValuesForKey:function(){var e=this;return void 0===this._registryVersion||null===this._registryVersion?this._fetchAppRegistry().then(function(t){if(!t.isOK)return t;var n=e.registry;return e._registryVersion=n.registryVersion,e._updateRegistry(n,e._values),e._updateKeys(),e.fetchPromise}):(this._updateKeys(),this.fetchPromise)},_key:r.d({type:String}),_registryVersion:r.d({type:String}),_retriesRemaining:r.d({type:Number,defaultValue:2}),_updateDidConflict:r.d({type:Boolean,defaultValue:!1}),_values:r.d({type:Map}),_createRequestBody:function(e,t,n){var i;return{"service-id":"appleprefs",apps:[((i={"app-id":e,keys:function(e){var n=[],i=t.entries(),r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o,c=s[0],l=s[1];n.push({name:c,data:l})}return n}()})["registry-version"]=n,i)]}},_fetchAppRegistry:function(){var e=this,t=this._key;return C([t]).then(function(n){return n.isOK&&(e.registry=n.data.get(t)),n})},_retryUpdate:function(){if(this._retriesRemaining>0)this._updateKeys(),this._retriesRemaining--;else{var e=O(y.KEY_VALUE_SERVICE_UPDATE_FAILED);this.resolvePromiseWithError(e)}},_updateRegistry:function(e,t){var n=t.entries(),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a,s=o[0],c=o[1];e.values.set(s,c)}},_updateKeys:function(){var e=this._key,t=this._values,n=this._registryVersion,i=this._createRequestBody(e,t,n);return this.fetchKeyValueService(i)},__superMap:{_$4fT$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"UpdateKeyValueServiceConnection"}});function A(e){var t=new Map;if(e)for(var n=0,i=e.length;n<i;n++){var r=e[n],a=r.name,o=r.data;t.set(a,o)}return t}function O(e,t){var n={error:e.value};return t&&(n.errorInfo=t),n}n(3),n.d(t,"a",function(){return E});var E=i.a.extend({mixinDependencies:[c.a],accountPreferences:r.d({type:u,readOnly:!0,get:function(){var e=this._registries.get("account");if(e){var t=this._accountPreferences;return t||(t=this._accountPreferences=u.create(e.values)),t}}}),initialize:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return C([].concat(t,["account"])).then(function(t){if(t.isOK){var n=t.data,i=e._registries,r=n,a=Array.isArray(r),o=0;for(r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var c=s,l=c[0],u=c[1];i.set(l,u)}}return t})},getPreferences:function(e){a.a(e,Array)||o.b("[PreferencesController] Expected list of keys for preferences",{keys:e});for(var t=new Map,n=this._registries,i=0,r=e.length;i<r;i++){var s=e[i],c=n.get(s);c&&t.set(s,c.values)}return t},invalidate:function(){this._accountPreferences=void 0,this._registries.clear()},updateAccountPreferences:function(e){var t=this;return a.a(e,u)||o.b("[PreferencesController] Expected AccountPreferences object"),this.updatePreferences("account",e.preferencesData).then(function(e){return e.isOK&&(t._accountPreferences=void 0),e})},updatePreferences:function(e,t){var n=this;"string"!=typeof e&&o.b("[PreferencesController] Expected key for preferences to save"),a.a(t,Map)||o.b("[PreferencesController] Expected Map of preferences values to save");var i=this._getRegistryVersionForKey(e);return function(e,t,n){return S.create(e,t,n).updateValuesForKey()}(e,t,i).then(function(t){if(t.isOK){var i=t.data;n._registries.set(e,i)}return t})},_accountPreferences:r.d({type:u}),_registries:r.d({type:Map,defaultValue:s.c(Map)}),_getRegistryVersionForKey:function(e){var t=this._registries.get(e);return t?t.registryVersion:void 0},staticMembers:{__QUALIFIED_CLASS_NAME__:"PreferencesController"}})},function(e,t){var n=e.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},function(e,t,n){var i=n(63);e.exports=function(e,t,n){if(i(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,i){return e.call(t,n,i)};case 3:return function(n,i,r){return e.call(t,n,i,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){var n=Math.ceil,i=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},function(e,t,n){"use strict";var i=n(34);e.exports=function(e,t){return!!e&&i(function(){t?e.call(null,function(){},1):e.call(null)})}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(95),r=Object(i.b)("SelectionDirections",function(e){e("UP"),e("DOWN"),e("LEFT"),e("RIGHT")})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return d});var i=n(81),r=n(1045),a=n(1093),o=n(1078),s=n(27),c=n(49),l=n(53),u=s.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(l.b)("mmd0b4a7f5e8")}]}})}).create({authBagId:"iclouddrive",path:"iclouddrive",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.REGULAR},{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.COMPACT},{primaryInteractionMode:r.a.TOUCH,sizeClass:a.a.REGULAR}],supportedSubDomains:[o.a.subDomains.WWW,o.a.subDomains.CARRY,o.a.subDomains.FUTURE],isPCSRequired:!0,allowsiCloudLiteAccounts:!0,applicationIconUrl1x:n(468),applicationIconUrl2x:n(469),radarComponentId:569448}),d=c.a.create({identifier:"iclouddrive",displayNameLocKey:"ICloudDrive.DisplayName",titleNameLocKey:"ICloudDrive.TitleName",generation:u})},function(e,t,n){var i=n(37);e.exports=function(e,t){if(!i(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!i(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!i(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on  "+e);return e}},function(e,t,n){var i=n(9),r=n(114),a=n(34);e.exports=function(e,t){var n=(r.Object||{})[e]||Object[e],o={};o[e]=t(n),i(i.S+i.F*a(function(){n(1)}),"Object",o)}},function(e,t,n){var i=n(115),r=n(212),a=n(57),o=n(50),s=n(345);e.exports=function(e,t){var n=1==e,c=2==e,l=3==e,u=4==e,d=6==e,h=5==e||d,p=t||s;return function(t,s,f){for(var m,g,b=a(t),v=r(b),_=i(s,f,3),y=o(v.length),C=0,I=n?p(t,y):c?p(t,0):void 0;y>C;C++)if((h||C in v)&&(g=_(m=v[C],C,b),e))if(n)I[C]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return C;case 2:I.push(m)}else if(u)return!1;return d?-1:l||u?u:I}}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return d}),n.d(t,"b",function(){return h});var i=n(179),r=n(818),a=n(181),o=n(284),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c=["is-","are-","has-"],l=Object(a.a)(["isConnected","isInitialized","isDisposed","isAbstract","propertiesAreInitialized","window"]),u={},d=function(e,t,n){n=n||"";var r=Object(i.a)(e),a=r?l:u;for(var o in e)if(!a[o]&&"_"!==o[0]&&e.hasOwnProperty(o)){var s=r?e.get(o):e[o];h(o,s,t,n)}},h=function(e,t,n,i){i=i||"";var r=void 0===t?"undefined":s(t);if("boolean"===r){for(var a,l,u=Object(o.a)(e),d=0;a=c[d];d++)l=a.length,u.substring(0,l)===a&&(u=u.substring(l));u&&n.classList.toggle(u,t)}else{if("object"===r||"function"===r){var h=t&&t.toString;h!==p&&h!==f&&h!==m||(t=null)}var g=i+Object(o.a)(e);t||0===t?n.setAttribute(g,""+t):n.removeAttribute(g)}},p=Object.prototype.toString,f=Function.prototype.toString,m=r.a.prototype.toString},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return g});var i=n(81),r=n(910),a=n(100),o=n(1045),s=n(23),c=n(1093),l=n(1078),u=n(27),d=n(49),h=n(236),p=n(53),f=u.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(p.b)("mmc0cd794a")}]}})}).create({authBagId:"reminders",path:"reminders",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:o.a.MOUSE,sizeClass:c.a.REGULAR},{primaryInteractionMode:o.a.MOUSE,sizeClass:c.a.COMPACT},{primaryInteractionMode:o.a.TOUCH,sizeClass:c.a.REGULAR}],supportedSubDomains:[l.a.subDomains.WWW,l.a.subDomains.CARRY],applicationIconUrl1x:n(924),applicationIconUrl2x:n(925),radarComponentId:469667,pushTopic:"8a40cb6b1d3fcd0f5c204504eb8fb9aa64b78faf"}),m=u.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(p.b)("mmc0cd794a")}]}})}).create({authBagId:"reminders",path:"reminders2",applicationName:"reminders2",generation:2,supportedDevices:[{primaryInteractionMode:o.a.MOUSE,sizeClass:c.a.REGULAR},{primaryInteractionMode:o.a.MOUSE,sizeClass:c.a.COMPACT},{primaryInteractionMode:o.a.TOUCH,sizeClass:c.a.REGULAR}],supportedSubDomains:[l.a.subDomains.WWW,l.a.subDomains.BETA,l.a.subDomains.CARRY,l.a.subDomains.FUTURE],isPCSRequired:!0,applicationIconUrl1x:n(926),applicationIconUrl2x:n(927),radarComponentId:469667,cloudKitInfo:h.a.create({containerIdentifier:"com.apple.reminders",partition:"https://ckdatabasews.icloud.com"})}),g=d.a.extend({_setApplicationInfoForConfiguration:function(e,t,n){var i=this,o=void 0,c=n.showApps;if(c&&c.find(function(e){return e.identifier===i.identifier}))o=e;else{var l=s.a.getPath("sharedInstance.cloudOSUser.details");o=l&&l.tantorMigrated?m:f}return r.a(this,"_applicationInfo",o),a.a.resolve()}}).create({identifier:"reminders",displayNameLocKey:"Reminders.DisplayName",titleNameLocKey:"Reminders.TitleName",generations:[f,m],defaultGenerationToPreload:f})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return b});var i=n(81),r=n(910),a=n(100),o=n(1045),s=n(1042),c=n(1044),l=n(1092),u=n(1093),d=n(1078),h=n(27),p=n(49),f=n(53),m=h.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(f.b)("mm4c87549383")}]}})}).create({authBagId:"settings",path:"settings",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:o.a.MOUSE,sizeClass:u.a.REGULAR},{primaryInteractionMode:o.a.MOUSE,sizeClass:u.a.COMPACT},{primaryInteractionMode:o.a.TOUCH,sizeClass:u.a.REGULAR}],supportedSubDomains:[d.a.subDomains.WWW,d.a.subDomains.CARRY],allowsiCloudLiteAccounts:!0,applicationIconUrl1x:n(479),applicationIconUrl2x:n(480),radarComponentId:578665}),g=h.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(f.b)("mm4c87549383")}]}})}).create({authBagId:"settings",path:"settings2",generation:2,supportedDevices:[{primaryInteractionMode:o.a.TOUCH,sizeClass:u.a.COMPACT}],supportedSubDomains:[d.a.subDomains.WWW,d.a.subDomains.CARRY,d.a.subDomains.BETA,d.a.subDomains.FUTURE],allowsiCloudLiteAccounts:!0,applicationIconUrl1x:n(479),applicationIconUrl2x:n(480),radarComponentId:578665}),b=p.a.extend({_setApplicationInfoForConfiguration:function(e,t,n){var i=this,o=void 0,d=n.showApps;if(d&&d.find(function(e){return e.identifier===i.identifier}))o=e;else{var h=s.a.sharedInstance.deviceType,p=l.a.sharedInstance,f=p.sizeClassHorizontal,b=p.sizeClassVertical,v=f===u.a.REGULAR&&b===u.a.REGULAR;o=h===c.a.DESKTOP||v?m:g}return r.a(this,"_applicationInfo",o),a.a.resolve()}}).create({identifier:"settings",displayNameLocKey:"Settings.DisplayName",titleNameLocKey:"Settings.TitleName",generations:[m,g],defaultGenerationToPreload:m})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(95).b("ViewControllerPresentationStyle",{FULLSCREEN:"FULLSCREEN",CURRENT_CONTEXT:"CURRENT_CONTEXT",SCROLLING_CONTENT:"SCROLLING_CONTENT"})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],availableContentAreaDidChange:r.a.define()}},function(e,t,n){"use strict";n(0),n(5),n(10),n(62),n.d(t,"a",function(){return h});var i=n(818),r=n(78),a=n(81),o=n(819),s=n(98),c=n(852),l=n(1085),u=n(185),d=n(574),h=i.a.extend(r.b,{mixinDependencies:[l.a],delegate:a.d({type:d.a}),displayBanner:function(e,t,n,i,r){return this._displayBanner(!1,"System",e,t,n,i,r)},displayBannerForApp:function(e,t,n,i,r,a){return this._displayBanner(!1,e,t,n,i,r,a)},setCurrentBanner:function(e,t,n,i,r){return this._displayBanner(!0,"System",e,t,n,i,r)},setCurrentBannerForApp:function(e,t,n,i,r,a){return this._displayBanner(!0,e,t,n,i,r,a)},showCurrentBanner:function(){return this._showBanner("System")},showCurrentBannerForApp:function(e){return this._showBanner(e)},removeBanner:function(e){e||o.b("[BannerController] removeBanner: Banner Id is empty");var t=this._getAllBanners(),n=void 0,i=void 0,r=t,a=Array.isArray(r),s=0;for(r=a?r:r[Symbol.iterator]();;){var c;if(a){if(s>=r.length)break;c=r[s++]}else{if((s=r.next()).done)break;c=s.value}var l=c;n=l[0],i=l[1];for(var u=0;u<i.length;u++)if(i[u].has(e)){var d=this._getBannerViewControllerForId(e);i.splice(u,1),d.release();break}0===i.length&&t.delete(n)}n&&this._showBanner(n)},updateBanner:function(e,t,n){this._getBannerViewControllerForId(e).updateBanner(t,n)},_bannerMap:s.b({type:Map,defaultValue:function(){return new Map}}),_displayBanner:function(e,t,n,i,r,a,s){t||o.b("[BannerController] displayBanner: App Name is empty"),n||o.b("[BannerController] displayBanner: Banner Title is empty"),i||o.b("[BannerController] displayBanner: Banner Description is empty");var c=this._generateUniqueIdForBanner(),l=u.b.create(c,n,i,r,s);l.retain(),r&&(a||o.b("[BannerController] displayBannerForApp: Banner neesd a target to have an action"),l.delegate=a);var d=new Map;if(d.set(c,{isOfHighPriority:e,bannerViewController:l}),this._bannerMap.has(t)){var h=this._bannerMap.get(t);if(e)h.push(d);else{for(var p=0;p<h.length;p++){var f=h[p];if(!0===f.values().next().value.isOfHighPriority){h.splice(p,1),h.push(d,f);break}}h.includes(d)||h.push(d)}}else this._bannerMap.set(t,[d]);return this._showBanner(t),c},_getAllBanners:function(){return this._bannerMap},_getAllBannersForApp:function(e){var t=this._getAllBanners(),n=void 0;return t.has(e)&&(n=t.get(e)),n},_getBannerViewControllerForId:function(e){var t=this._getAllBanners(),n=void 0,i=void 0,r=t,a=Array.isArray(r),o=0;for(r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var c=s[0];i=t.get(c);for(var l=0;l<i.length;l++){var u=i[l];if(u.has(e)){n=u.values().next().value.bannerViewController;break}}}return n},_generateUniqueIdForBanner:function(){return c.a()},_showBanner:function(e){var t=this._getAllBannersForApp(e),n=void 0;if(t&&t.length?n=t[t.length-1]:(t=this._getAllBannersForApp("System"))&&t.length&&(n=t[t.length-1]),n){var i=n.values().next().value.bannerViewController;this.delegate.showBanner(this,i)}else this.delegate.removeBanner(this)},staticMembers:{__QUALIFIED_CLASS_NAME__:"BannerController"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return l});var i=n(877),r=n(98),a=n(100),o=n(81),s=n(315),c=(n(33),n(1088)),l=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"img",name:"iconImageElement"},__QUALIFIED_CLASS_NAME__:"AppIconView"},finalImageLoadPromise:void 0,iconSrc:r.b({type:String,didChange:function(e){this.finalImageLoadPromise=e?Object(s.a)(this.element,e):a.a.resolve(c.a.ERROR)}}),prepareIcon:function(){return this.finalImageLoadPromise},naturalWidth:o.d({get:function(){return this.iconImageElement.naturalWidth}}),naturalHeight:o.d({get:function(){return this.iconImageElement.naturalHeight}})})},function(e,t,n){"use strict";var i=n(818),r=n(81),a=n(100),o=n(1085),s=n(1088),c=n(1079),l=n(819),u=n(1161),d=n(1160),h=n(852),p=i.a.extend({mixinDependencies:[d.a],field:r.d({type:String}),label:r.d({type:String}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ContactField"}}),f=i.a.extend({mixinDependencies:[d.a],firstName:r.d({type:String}),lastName:r.d({type:String}),emailAddresses:r.d({type:Array,serialization:{collectionObjectType:p}}),phones:r.d({type:Array,serialization:{collectionObjectType:p}}),contactId:r.d({type:String}),photo:r.d({type:u.a}),etag:r.d({type:String}),init:function(){this.__s._$Os$init.call(this),this._contactId=h.a()},__superMap:{_$Os$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Contact"}}),m=i.a.extend({mixinDependencies:[d.a],photo:r.d({type:u.a,readOnly:!0,serialization:{ignore:!0},get:function(){var e=this.contacts;return e&&e.length>0?e[0].photo:void 0}}),contacts:r.d({type:Array,serialization:{collectionObjectType:f}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"MeCard"}}),g=i.a.extend({mixinDependencies:[s.b],staticMembers:{fromSuccessResponse:function(e){e||l.b("[MeCardResponse] No json body specified");var t=g.create({status:s.a.SUCCESS}),n=m.deserialize(e);return t.meCard=n.contacts&&n.contacts.length>0?n:void 0,t},fromErrorResponse:function(e){return g.create({status:s.a.ERROR})},fromError:function(e){return e||l.b("[MeCardResponse] fromError: No error specified"),g.create({status:s.a.ERROR,error:e})},__QUALIFIED_CLASS_NAME__:"MeCardResponse"},meCard:r.d({type:m})}),b=n(51),v=(n(3),"contacts"),_="co/mecard/";function y(e){var t={method:"POST",body:e.serialize()};return Object(b.a)(Object(c.d)(v,_),t).then(function(e){var t=e.status;return 0===t?g.fromError("Timeout"):e.json().then(function(e){return 200===t?g.fromSuccessResponse(e):g.fromErrorResponse(e)})})}var C=n(580);n(3),n.d(t,"a",function(){return I});var I=i.a.extend({mixinDependencies:[o.a],delegate:r.d({type:C.a}),meCard:r.d({readOnly:!0,type:m,get:function(){return this._cachedMeCard}}),saveMeCardPhotoForUser:function(e,t){var n,i,r=this;if(t){if(this._cachedMeCard){var a=this._cachedMeCard;return a.contacts[0].photo=e,y(a).then(function(e){return r._cacheMeCardResponse(e),e})}return(n=this._createMeCard(t,e),i={method:"POST",body:n.serialize()},Object(b.a)(Object(c.d)(v,_),i).then(function(e){var t=e.status;return 0===t?g.fromError("Timeout"):e.json().then(function(e){return 200===t?g.fromSuccessResponse(e):g.fromErrorResponse(e)})})).then(function(e){return r._cacheMeCardResponse(e),e})}},deleteMeCardPhoto:function(){var e=this,t=this._cachedMeCard;if(!t||!t.photo){var n=g.create({status:s.a.SUCCESS,meCard:t});return a.a.resolve(n)}if(t.contacts&&t.contacts.length>0&&t.contacts[0].photo)return t.contacts[0].photo=void 0,y(t).then(function(t){return e._cacheMeCardResponse(t),t})},refreshMeCard:function(){var e=this;this._refreshPromise||Object(b.a)(Object(c.d)(v,_)).then(function(e){var t=e.status;return 0===t?g.fromError("Timeout"):e.json().then(function(e){return 200===t?g.fromSuccessResponse(e):g.fromErrorResponse(e)})}).then(function(t){e._refreshPromise=void 0,e._cacheMeCardResponse(t)})},_cachedMeCard:r.d({type:m}),_refreshPromise:r.d({type:a.a}),_cacheMeCardResponse:function(e){if(e.isOK){var t=e.meCard;t&&(this._cachedMeCard=t,this.delegate&&this.delegate.meCardDidChange(this,t))}},_createMeCard:function(e,t){var n=m.create();return n.contacts=[],n.contacts.push(this._createContact(e,t)),n},_createContact:function(e,t){var n=void 0,i=e.details;if(i){var r=i.firstName,a=i.lastName,o=i.appleId,s=i.hasPhoneNumberAsAppleId,c=i.hasEmailAddressAsAppleId;(n=f.create()).firstName=r,n.lastName=a,c?(n.emailAddresses=[],n.emailAddresses.push(p.create({field:o,label:"home"}))):s&&(n.phots=[],n.phones.push(p.create({field:o,label:"mobile"}))),n.photo=t}return n},staticMembers:{__QUALIFIED_CLASS_NAME__:"MeCardController"}})},function(e,t,n){"use strict";var i=n(101),r=n(98),a=n(104),o=n(877),s=n(109),c=(n(65),n(0),s.a.extend({staticMembers:{templateExtensions:{contentWrapper:{type:"ELEMENT",tagname:"ext",children:[{type:"VIEWOUTLET",tagname:"view",name:"detailView"}]}},__QUALIFIED_CLASS_NAME__:"CloudOSAlertContentView"},detailView:r.b({type:o.a,strong:!0})})),l=(n(0),s.b.extend({shouldDismissOnPrimaryButtonClick:r.b({type:Boolean}),buttonDidActivate:function(e){this.shouldDismissOnPrimaryButtonClick&&this.__s._$Af$buttonDidActivate.call(this)},__superMap:{_$Af$buttonDidActivate:"buttonDidActivate"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSAlertView"}}));n(1),n(0),n(5),n(8),n(2),n(65),n.d(t,"a",function(){return u});var u=i.b.extend({viewClass:l,view:r.b({downstreamBindings:{shouldDismissOnPrimaryButtonClick:"(owner).shouldDismissOnPrimaryButtonClick"}}),shouldDismissOnPrimaryButtonClick:r.b({type:Boolean,defaultValue:!0}),iconNames:["icloud-icon"],contentController:a.b({viewClass:c}),detailView:r.b({type:o.a,get:function(){return this.getPath("contentController.view.detailView")},set:function(e){return this.getPath("contentController.view").detailView=e},didChange:function(){}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSAlertViewController"}})},function(e,t,n){"use strict";if(n(54)){var i=n(149),r=n(32),a=n(34),o=n(9),s=n(259),c=n(353),l=n(115),u=n(169),d=n(162),h=n(68),p=n(171),f=n(117),m=n(50),g=n(460),b=n(165),v=n(121),_=n(74),y=n(188),C=n(37),I=n(57),w=n(342),S=n(166),A=n(77),O=n(167).f,E=n(344),T=n(163),D=n(45),L=n(124),N=n(249),M=n(215),P=n(347),x=n(190),R=n(254),j=n(168),F=n(346),V=n(449),U=n(55),k=n(76),B=U.f,z=k.f,W=r.RangeError,H=r.TypeError,$=r.Uint8Array,G=Array.prototype,K=c.ArrayBuffer,Q=c.DataView,q=L(0),Y=L(2),X=L(3),J=L(4),Z=L(5),ee=L(6),te=N(!0),ne=N(!1),ie=P.values,re=P.keys,ae=P.entries,oe=G.lastIndexOf,se=G.reduce,ce=G.reduceRight,le=G.join,ue=G.sort,de=G.slice,he=G.toString,pe=G.toLocaleString,fe=D("iterator"),me=D("toStringTag"),ge=T("typed_constructor"),be=T("def_constructor"),ve=s.CONSTR,_e=s.TYPED,ye=s.VIEW,Ce=L(1,function(e,t){return Oe(M(e,e[be]),t)}),Ie=a(function(){return 1===new $(new Uint16Array([1]).buffer)[0]}),we=!!$&&!!$.prototype.set&&a(function(){new $(1).set({})}),Se=function(e,t){var n=f(e);if(n<0||n%t)throw W("Wrong offset!");return n},Ae=function(e){if(C(e)&&_e in e)return e;throw H(e+" is not a typed array!")},Oe=function(e,t){if(!(C(e)&&ge in e))throw H("It is not a typed array constructor!");return new e(t)},Ee=function(e,t){return Te(M(e,e[be]),t)},Te=function(e,t){for(var n=0,i=t.length,r=Oe(e,i);i>n;)r[n]=t[n++];return r},De=function(e,t,n){B(e,t,{get:function(){return this._d[n]}})},Le=function(e){var t,n,i,r,a,o,s=I(e),c=arguments.length,u=c>1?arguments[1]:void 0,d=void 0!==u,h=E(s);if(void 0!=h&&!w(h)){for(o=h.call(s),i=[],t=0;!(a=o.next()).done;t++)i.push(a.value);s=i}for(d&&c>2&&(u=l(u,arguments[2],2)),t=0,n=m(s.length),r=Oe(this,n);n>t;t++)r[t]=d?u(s[t],t):s[t];return r},Ne=function(){for(var e=0,t=arguments.length,n=Oe(this,t);t>e;)n[e]=arguments[e++];return n},Me=!!$&&a(function(){pe.call(new $(1))}),Pe=function(){return pe.apply(Me?de.call(Ae(this)):Ae(this),arguments)},xe={copyWithin:function(e,t){return V.call(Ae(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return J(Ae(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return F.apply(Ae(this),arguments)},filter:function(e){return Ee(this,Y(Ae(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return Z(Ae(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Ae(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){q(Ae(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Ae(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Ae(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return le.apply(Ae(this),arguments)},lastIndexOf:function(e){return oe.apply(Ae(this),arguments)},map:function(e){return Ce(Ae(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return se.apply(Ae(this),arguments)},reduceRight:function(e){return ce.apply(Ae(this),arguments)},reverse:function(){for(var e,t=Ae(this).length,n=Math.floor(t/2),i=0;i<n;)e=this[i],this[i++]=this[--t],this[t]=e;return this},some:function(e){return X(Ae(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ue.call(Ae(this),e)},subarray:function(e,t){var n=Ae(this),i=n.length,r=b(e,i);return new(M(n,n[be]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,m((void 0===t?i:b(t,i))-r))}},Re=function(e,t){return Ee(this,de.call(Ae(this),e,t))},je=function(e){Ae(this);var t=Se(arguments[1],1),n=this.length,i=I(e),r=m(i.length),a=0;if(r+t>n)throw W("Wrong length!");for(;a<r;)this[t+a]=i[a++]},Fe={entries:function(){return ae.call(Ae(this))},keys:function(){return re.call(Ae(this))},values:function(){return ie.call(Ae(this))}},Ve=function(e,t){return C(e)&&e[_e]&&"symbol"!=typeof t&&t in e&&String(+t)==String(t)},Ue=function(e,t){return Ve(e,t=v(t,!0))?d(2,e[t]):z(e,t)},ke=function(e,t,n){return!(Ve(e,t=v(t,!0))&&C(n)&&_(n,"value"))||_(n,"get")||_(n,"set")||n.configurable||_(n,"writable")&&!n.writable||_(n,"enumerable")&&!n.enumerable?B(e,t,n):(e[t]=n.value,e)};ve||(k.f=Ue,U.f=ke),o(o.S+o.F*!ve,"Object",{getOwnPropertyDescriptor:Ue,defineProperty:ke}),a(function(){he.call({})})&&(he=pe=function(){return le.call(this)});var Be=p({},xe);p(Be,Fe),h(Be,fe,Fe.values),p(Be,{slice:Re,set:je,constructor:function(){},toString:he,toLocaleString:Pe}),De(Be,"buffer","b"),De(Be,"byteOffset","o"),De(Be,"byteLength","l"),De(Be,"length","e"),B(Be,me,{get:function(){return this[_e]}}),e.exports=function(e,t,n,c){var l=e+((c=!!c)?"Clamped":"")+"Array",d="get"+e,p="set"+e,f=r[l],b=f||{},v=f&&A(f),_=!f||!s.ABV,I={},w=f&&f.prototype,E=function(e,n){B(e,n,{get:function(){return function(e,n){var i=e._d;return i.v[d](n*t+i.o,Ie)}(this,n)},set:function(e){return function(e,n,i){var r=e._d;c&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[p](n*t+r.o,i,Ie)}(this,n,e)},enumerable:!0})};_?(f=n(function(e,n,i,r){u(e,f,l,"_d");var a,o,s,c,d=0,p=0;if(C(n)){if(!(n instanceof K||"ArrayBuffer"==(c=y(n))||"SharedArrayBuffer"==c))return _e in n?Te(f,n):Le.call(f,n);a=n,p=Se(i,t);var b=n.byteLength;if(void 0===r){if(b%t)throw W("Wrong length!");if((o=b-p)<0)throw W("Wrong length!")}else if((o=m(r)*t)+p>b)throw W("Wrong length!");s=o/t}else s=g(n),a=new K(o=s*t);for(h(e,"_d",{b:a,o:p,l:o,e:s,v:new Q(a)});d<s;)E(e,d++)}),w=f.prototype=S(Be),h(w,"constructor",f)):a(function(){f(1)})&&a(function(){new f(-1)})&&R(function(e){new f,new f(null),new f(1.5),new f(e)},!0)||(f=n(function(e,n,i,r){var a;return u(e,f,l),C(n)?n instanceof K||"ArrayBuffer"==(a=y(n))||"SharedArrayBuffer"==a?void 0!==r?new b(n,Se(i,t),r):void 0!==i?new b(n,Se(i,t)):new b(n):_e in n?Te(f,n):Le.call(f,n):new b(g(n))}),q(v!==Function.prototype?O(b).concat(O(v)):O(b),function(e){e in f||h(f,e,b[e])}),f.prototype=w,i||(w.constructor=f));var T=w[fe],D=!!T&&("values"==T.name||void 0==T.name),L=Fe.values;h(f,ge,!0),h(w,_e,l),h(w,ye,!0),h(w,be,f),(c?new f(1)[me]==l:me in w)||B(w,me,{get:function(){return l}}),I[l]=f,o(o.G+o.W+o.F*(f!=b),I),o(o.S,l,{BYTES_PER_ELEMENT:t}),o(o.S+o.F*a(function(){b.of.call(f,1)}),l,{from:Le,of:Ne}),"BYTES_PER_ELEMENT"in w||h(w,"BYTES_PER_ELEMENT",t),o(o.P,l,xe),j(l),o(o.P+o.F*we,l,{set:je}),o(o.P+o.F*!D,l,Fe),i||w.toString==he||(w.toString=he),o(o.P+o.F*a(function(){new f(1).slice()}),l,{slice:Re}),o(o.P+o.F*(a(function(){return[1,2].toLocaleString()!=new f([1,2]).toLocaleString()})||!a(function(){w.toLocaleString.call([1,2])})),l,{toLocaleString:Pe}),x[l]=D?T:L,i||D||h(w,fe,L)}}else e.exports=function(){}},function(e,t,n){var i=n(455),r=n(9),a=n(211)("metadata"),o=a.store||(a.store=new(n(458))),s=function(e,t,n){var r=o.get(e);if(!r){if(!n)return;o.set(e,r=new i)}var a=r.get(t);if(!a){if(!n)return;r.set(t,a=new i)}return a};e.exports={store:o,map:s,has:function(e,t,n){var i=s(t,n,!1);return void 0!==i&&i.has(e)},get:function(e,t,n){var i=s(t,n,!1);return void 0===i?void 0:i.get(e)},set:function(e,t,n,i){s(n,i,!0).set(e,t)},keys:function(e,t){var n=s(e,t,!1),i=[];return n&&n.forEach(function(e,t){i.push(t)}),i},key:function(e){return void 0===e||"symbol"==typeof e?e:String(e)},exp:function(e){r(r.S,"Reflect",e)}}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p});var i=n(94),r=n(85),a=n(818),o=n(824),s=n(837),c=n(820),l=n(78),u=n(880),d=n(98),h={mixinDependencies:[i.a],x:Object(r.c)(u.a),y:Object(r.c)(u.a)},p=a.a.extend(l.b,h,o.a,{initFromPool:function(e,t){var n=arguments;if(Object(s.a)(e))return this.x=e,this.y=t,this.__s._$DV$initFromPool.call(this);this.__s._$DV$initFromPool.apply(this,n)},didEnterPool:function(){var e=arguments;this.x=0,this.y=0,this.__s._$FU$didEnterPool.apply(this,e)},x:Object(d.b)(0),y:Object(d.b)(0),toString:function(){var e=arguments;return Object(c.a)("["+this.__s._$L4$toString.apply(this,e)+"(%{x}, %{y}) ]",this)},__superMap:{_$DV$initFromPool:"initFromPool",_$FU$didEnterPool:"didEnterPool",_$L4$toString:"toString"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Point2D"}})},function(e,t,n){"use strict";n(0),n(20),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c}),n(21);var i=n(95),r=n(98),a=n(44),o=n(560),s=Object(i.b)("ArrowPopoverAlignment",function(e){e("TargetMiddle"),e("Follow"),e("None")}),c=o.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"div",name:"arrow",classes:["cw-popover-arrow",{type:"CLASSNAMEOUTLET",bindingtype:"ENUMBINDING",name:"arrowDirectionClass",validvalues:["cw-up-arrow","cw-left-arrow","cw-right-arrow","cw-down-arrow","cw-no-arrow"],attributes:{}}],styles:{transform:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"arrowTransformStyle",attributes:{},unit:null,property:"transform"}}}]}},className:"cw-ui-arrow-popover-view",__QUALIFIED_CLASS_NAME__:"ArrowPopoverView"},anchorLayout:Object(r.b)(),arrowLength:Object(r.b)(10),arrowWidth:Object(r.b)(10),arrowAlignment:Object(r.b)({defaultValue:s.TargetMiddle,type:s}),arrowLeft:Object(r.b)({readOnly:!0,dependencies:["arrowDirection","arrowLength","arrowWidth","horizontalAlignment","arrowAlignment","layout.x","layout.width","anchorLayout.x","anchorLayout.width"],get:Object.assign(function(){var e=this.arrowDirection,t=this.arrowLength,n=this.layout;if(!n)return 0;var i=n.width;if("left"===e)return-t;if("right"===e)return i;var r=this.arrowWidth/2,o=n.x,c=o+r,l=o+i-r,u=void 0;if(this.arrowAlignment===s.Follow)switch(this.horizontalAlignment){case a.a.Left:u=c;break;case a.a.Right:u=l;break;case a.a.Middle:default:u=o+i/2}else{var d=this.anchorLayout;if(!d)return 0;var h=d.width,p=d.x;u=(p+(p+h))/2}return u=Math.max(Math.min(u,l),c),(u-=o)-r},{__CW__getter:function(e,t,n,i){var r=this.arrowDirection,o=this.arrowLength,c=this.layout;if(!c)return 0;var l=c.width;if("left"===r)return-o;if("right"===r)return l;var u=i.internalGet(this,t[2+n])/2,d=c.x,h=d+u,p=d+l-u,f=void 0;if(i.internalGet(this,t[4+n])===s.Follow)switch(i.internalGet(this,t[3+n])){case a.a.Left:f=h;break;case a.a.Right:f=p;break;case a.a.Middle:default:f=d+l/2}else{var m=this.anchorLayout;if(!m)return 0;var g=m.width,b=m.x;f=(b+(b+g))/2}return f=Math.max(Math.min(f,p),h),(f-=d)-u}})}),arrowTop:Object(r.b)({readOnly:!0,dependencies:["arrowDirection","arrowLength","arrowWidth","verticalAlignment","arrowAlignment","layout.y","layout.height","anchorLayout.y","anchorLayout.height"],get:Object.assign(function(){var e=this.arrowDirection,t=this.arrowLength,n=this.layout;if(!n)return 0;var i=n.height;if("up"===e)return-t;if("down"===e)return i;var r=this.arrowWidth/2,o=n.y,c=o+r,l=o+i-r,u=void 0;if(this.arrowAlignment===s.Follow)switch(this.verticalAlignment){case a.b.Bottom:u=c;break;case a.b.Top:u=l;break;case a.b.Middle:default:u=o+i/2}else{var d=this.anchorLayout;if(!d)return 0;var h=d.height,p=d.y;u=(p+(p+h))/2}return u=Math.max(Math.min(u,l),c),(u-=o)-r},{__CW__getter:function(e,t,n,i){var r=this.arrowDirection,o=this.arrowLength,c=this.layout;if(!c)return 0;var l=c.height;if("up"===r)return-o;if("down"===r)return l;var u=i.internalGet(this,t[2+n])/2,d=c.y,h=d+u,p=d+l-u,f=void 0;if(i.internalGet(this,t[4+n])===s.Follow)switch(i.internalGet(this,t[3+n])){case a.b.Bottom:f=h;break;case a.b.Top:f=p;break;case a.b.Middle:default:f=d+l/2}else{var m=this.anchorLayout;if(!m)return 0;var g=m.height,b=m.y;f=(b+(b+g))/2}return f=Math.max(Math.min(f,p),h),(f-=d)-u}})}),arrowTransformStyle:Object(r.b)({dependencies:["arrowLeft","arrowTop"],readOnly:!0,get:Object.assign(function(){return"translate("+this.arrowLeft+"px, "+this.arrowTop+"px)"},{__CW__getter:function(e,t,n,i){return"translate("+i.internalGet(this,t[0+n])+"px, "+i.internalGet(this,t[1+n])+"px)"}})}),arrowDirection:Object(r.b)({readOnly:!0,dependencies:["layout.x","layout.width","layout.y","layout.height","anchorLayout.x","anchorLayout.width","anchorLayout.y","anchorLayout.height","arrowAlignment"],get:Object.assign(function(){var e=this.getPath("anchorLayout.height"),t=this.getPath("anchorLayout.y"),n=this.getPath("anchorLayout.width"),i=this.getPath("anchorLayout.x"),r=this.getPath("layout.height"),a=this.getPath("layout.y"),o=this.getPath("layout.width"),c=this.getPath("layout.x");return this.getPath("arrowAlignment")===s.None?"no":i+n<c?"left":i>c+o?"right":t+e<a?"up":t>a+r?"down":"left"},{__CW__getter:function(e,t,n,i){var r=i.internalGetPath(this,t[7+n]),a=i.internalGetPath(this,t[6+n]),o=i.internalGetPath(this,t[5+n]),c=i.internalGetPath(this,t[4+n]),l=i.internalGetPath(this,t[3+n]),u=i.internalGetPath(this,t[2+n]),d=i.internalGetPath(this,t[1+n]),h=i.internalGetPath(this,t[0+n]);return i.internalGet(this,t[8+n])===s.None?"no":c+o<h?"left":c>h+d?"right":a+r<u?"up":a>u+l?"down":"left"}})}),arrowDirectionClass:Object(r.b)({readOnly:!0,dependencies:["arrowDirection"],get:Object.assign(function(){return"cw-"+this.arrowDirection+"-arrow"},{__CW__getter:function(e,t,n,i){return"cw-"+i.internalGet(this,t[0+n])+"-arrow"}})})})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(84),r=n(821),a=i.a.extend({nodeType:"",generateLookupFunction:function(e,t){return function(n){return n=n.childNodes[e.index],t(n)}},initializeMember:function(e,t){var n=this.nodeType.toLowerCase();e._nodeHandlers[n]=this},render:r.a,register:r.a,staticMembers:{__QUALIFIED_CLASS_NAME__:"TemplateHandler"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o}),n.d(t,"b",function(){return s});var i=n(94),r=n(830),a=n(828),o={mixinDependencies:[i.a],isEqual:r.a.define()};function s(e,t){return e===t||!!a.a(e,o)&&e.isEqual(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(1055),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a=Object.freeze(r({},i.a,{PCS_REQUIRED:"PCS_REQUIRED"}))},function(e,t,n){"use strict";var i=n(818),r=n(819),a=n(81),o=n(1088),s=n(1080),c=n(1159),l=n(1089),u=i.a.extend({staticMembers:{createApplicationSetupInfoCollection:function(e,t){e||r.b("[ApplicationSetupInfo] no application order specified"),t||r.b("[ApplicationSetupInfo] no applications specified");var n=new Array,i=e,a=Array.isArray(i),o=0;for(i=a?i:i[Symbol.iterator]();;){var s;if(a){if(o>=i.length)break;s=i[o++]}else{if((o=i.next()).done)break;s=o.value}var c=s,l=t[c];if(l){var d=u.create({name:c,setupInfo:l});n.push(d)}}return n},__QUALIFIED_CLASS_NAME__:"ApplicationSetupInfo"},name:a.d({type:String}),setupInfo:a.d({type:Object})}),d=["dsid","aDsID","firstName","lastName","fullName","locale","languageCode","appleId","isManagedAppleID","locked","statusCode","appleIdEntries","brMigrated","tantorMigrated","notesMigrated"],h=["countryCode"],p=i.a.extend({staticMembers:{createFromResponse:function(e){var t=p.create();return function(e,t,n){e||r.b("copyFields: No source object specified"),t||r.b("copyFields: No target object specified"),n||r.b("copyFields: No fields to copy specified");var i=n,a=Array.isArray(i),o=0;for(i=a?i:i[Symbol.iterator]();;){var s;if(a){if(o>=i.length)break;s=i[o++]}else{if((o=i.next()).done)break;s=o.value}var c=s;if(e.hasOwnProperty(c)){var l=e[c];t[c]="true"===l||l}else r.b("copyFields: expected field "+c+" not found")}}(e,t,d),function(e,t,n){e||r.b("copyFields: No source object specified"),t||r.b("copyFields: No target object specified"),n||r.b("copyFields: No fields to copy specified");var i=n,a=Array.isArray(i),o=0;for(i=a?i:i[Symbol.iterator]();;){var s;if(a){if(o>=i.length)break;s=i[o++]}else{if((o=i.next()).done)break;s=o.value}var c=s;if(e.hasOwnProperty(c)){var l=e[c];t[c]="true"===l||l}}}(e,t,h),t},__QUALIFIED_CLASS_NAME__:"AuthenticatedUserDetails"},dsid:a.d({type:String}),aDsID:a.d({type:String}),firstName:a.d({type:String}),lastName:a.d({type:String}),fullName:a.d({type:String}),locale:a.d({type:String}),languageCode:a.d({type:String}),countryCode:a.d({type:String}),appleId:a.d({type:String}),brMigrated:a.d({type:Boolean}),tantorMigrated:a.d({type:Boolean}),notesMigrated:a.d({type:Boolean}),statusCode:a.d({type:Number}),appleIdEntries:a.d({type:Array}),isManagedAppleID:a.d({type:Boolean}),locked:a.d({type:Boolean}),isiCloudLiteAccount:a.d({type:Boolean,readOnly:!0,get:function(){return 4===this.statusCode}})});n.d(t,"b",function(){return f}),n.d(t,"a",function(){return m});var f=2,m=i.a.extend({mixinDependencies:[o.b],staticMembers:{fromSuccessResponse:function(e,t){e||r.b("[AuthenticationDataResponse] fromSuccessResponse: No json response specified");var n=m.fromResponse(e,t),i=e.appsOrder,a=e.apps,o=e.dsInfo,s=e.hsaChallengeRequired,c=e.webservices,d=e.isCarryUser,h=o.hsaEnabled,f=o.hsaVersion,g=o.isManagedAppleID;return h?(n.totalAuthenticationSteps=2,s?n.completedAuthenticationStep=1:(n.completedAuthenticationStep=2,n.isAuthenticated=!0),2===f?n.accountType=l.a.HSA2:1===f?n.accountType=l.a.HSA1:g&&0===f?n.accountType=l.a.MANAGED:r.b("[AuthenticationDataResponse] fromSuccessResponse: Unknown hsaVersion "+f+" from dsInfo")):(n.totalAuthenticationSteps=1,n.completedAuthenticationStep=1,n.isAuthenticated=!0,n.accountType=g?l.a.MANAGED:l.a.SA),c||r.b("[AuthenticationDataResponse] fromSuccessResponse: No services found"),n.webServices=function(e){var t=new Map;if(e)for(var n in e)e.hasOwnProperty(n)&&t.set(n,e[n]);return t}(c),n.authenticatedUserDetails=p.createFromResponse(o),n.applications=u.createApplicationSetupInfoCollection(i,a),n.isCarryUser=d,n.rawJson=e,n},fromErrorResponse:function(e,t){e||r.b("[AuthenticationDataResponse] fromErrorResponse: No json response specified");var n=e.success,i=e.error,a=m.create({status:n?o.a.SUCCESS:o.a.ERROR,error:i,httpStatusCode:t});return a.rawResponse=e,a},fromResponse:function(e,t){e||r.b("[AuthenticationDataResponse] fromResponse: No json response specified");var n=e.error,i=e.configBag,a=e.requestInfo,l=e.trustTokens,u=e.hsaTrustedBrowser,d=e.pcsDeleted,h=e.termsUpdateNeeded,p=e.environment,f=e.apps,g=e.appsOrder;if(!i){var b=s.a.create("incompleteAuthBag",{message:"[AuthenticationDataResponse] fromResponse: missing configBag"});c.b.sharedInstance.recordStat(b),r.b("[AuthenticationDataResponse] no configBag found")}if(!i.urls){var v=s.a.create("incompleteAuthBag",{message:"[AuthenticationDataResponse] fromResponse: missing configBag.urls"});c.b.sharedInstance.recordStat(v),r.b("[AuthenticationDataResponse] no configBag.urls found")}var _=m.create({status:o.a.SUCCESS,error:n,configBag:i,requestInfo:a,trustTokens:l,isPCSKeyDeleted:d,hsaTrustedBrowser:u,termsUpdateNeeded:h,environment:p,apps:f,appsOrder:g,httpStatusCode:t});return _.rawResponse=e,_},fromError:function(e){return e||r.b("[AuthenticationDataResponse] fromError: No error specified"),m.create({status:o.a.ERROR,error:e})},__QUALIFIED_CLASS_NAME__:"AuthenticationDataResponse"},completedAuthenticationStep:a.d({type:Number,defaultValue:0}),totalAuthenticationSteps:a.d({type:Number,defaultValue:0}),isAuthenticated:a.d({type:Boolean,defaultValue:!1}),accountType:a.d({type:l.a,defaultValue:l.a.UNKNOWN}),isCarryUser:a.d({type:Boolean}),isAppleInternal:a.d({readOnly:!0,type:Boolean,get:function(){var e=this._requestInfoInstance,t=!1;return e&&(t=e.isAppleInternal),t}}),urls:a.d({readOnly:!0,type:Object,get:function(){var e=void 0,t=this.configBag;return t&&((e=t.urls)||r.b("[AuthenticationDataResponse] no urls specified in the response")),e}}),accountCreateEnabled:a.d({readOnly:!0,type:Boolean,get:function(){var e=!1,t=this.configBag;return t&&(e="true"===t.accountCreateEnabled),e}}),trustTokens:a.d({type:Array}),authenticatedUserDetails:a.d({type:p}),applications:a.d({type:Array}),configBag:a.d({type:Object}),hsaTrustedBrowser:a.d({type:Boolean}),termsUpdateNeeded:a.d({type:Boolean}),requestInfo:a.d({type:Object}),webServices:a.d({type:Map}),rawResponse:a.d({type:Object}),httpStatusCode:a.d({type:Number}),_requestInfoInstance:a.d({type:Object,readOnly:!0,get:function(){var e=this.requestInfo;return e instanceof Array?e[0]:e}}),environment:a.d({type:String})})},function(e,t,n){"use strict";var i=n(909),r=n(819),a=n(1078),o=n(1091),s=n(1088),c=n(1090),l=n(147),u=n(818),d=n(81),h=n(184),p=u.a.extend({mixinDependencies:[s.b],init:function(e){this.__s._$72$init.call(this),e||r.b("[AuthenticationResponse] no status specified"),this.status=e},isAppleInternal:d.d({readOnly:!0,type:Boolean,get:function(){return this.user&&this.user.isAppleInternal}}),isAuthenticated:d.d({readOnly:!0,type:Boolean,get:function(){return this.user&&this.user.isAuthenticated}}),user:d.d({type:h.a}),environment:d.d({type:String}),__superMap:{_$72$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"AuthenticationResponse"}}),f=n(51);n(3),n.d(t,"c",function(){return y}),n.d(t,"a",function(){return C}),n.d(t,"b",function(){return I}),n.d(t,"d",function(){return w});var m="setup/ws/1",g="validate",b="logout",v="storageUsageInfo";function _(e){return"https://setup."+a.a.sharedInstance.current.domain+"/"+m+"/"+e}function y(){return Object(f.a)(_(g),{method:"POST"}).then(function(e){return e.json().then(function(t){var n=e.status;return n>0?t?n===i.a.OK?l.a.fromSuccessResponse(t,n):n===i.a.UNAUTHORIZED||421===n||n===i.a.FORBIDDEN?l.a.fromResponse(t,n):l.a.fromError("Invalid authentication response code "+n):l.a.fromError("No authentication response data found"):l.a.fromError("Timeout")})})}function C(e,t,n,a,o){e||r.b("[AuthenticaitonURLConnection] No account login url specified"),t||r.b("[AuthenticaitonURLConnection] No session specified");var s=t;return s.dsWebAuthToken&&(s.accountCountryCode=n,s.extended_login=a,o&&(s.trustToken=o)),Object(f.a)(e,{method:"POST",body:s}).then(function(e){var t=e.status;return 0===t?l.a.fromError("Timeout"):e.json().then(function(e){return t===i.a.OK?l.a.fromSuccessResponse(e,t):l.a.fromErrorResponse(e,t)})})}function I(){var e={method:"POST",body:{trustBrowser:arguments.length>0&&void 0!==arguments[0]&&arguments[0],allBrowsers:arguments.length>1&&void 0!==arguments[1]&&arguments[1]}};return Object(f.a)(_(b),e).then(function(e){var t=e.status===i.a.OK?s.a.SUCCESS:s.a.ERROR;return p.create(t)})}function w(){var e=_(v);return Object(f.a)(e,{method:"POST"}).then(function(e){return 0===e.status?c.a.create({status:s.a.CANCELED,data:e}):e.ok?e.json().then(function(e){var t=o.a.deserialize(e);return c.a.create({status:s.a.SUCCESS,data:t})}):c.a.create({status:s.a.ERROR,data:e})})}},function(e,t){e.exports=!1},function(e,t,n){var i=n(163)("meta"),r=n(37),a=n(74),o=n(55).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(34)(function(){return c(Object.preventExtensions({}))}),u=function(e){o(e,i,{value:{i:"O"+ ++s,w:{}}})},d=e.exports={KEY:i,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!a(e,i)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[i].i},getWeak:function(e,t){if(!a(e,i)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[i].w},onFreeze:function(e){return l&&d.NEED&&c(e)&&!a(e,i)&&u(e),e}}},function(e,t,n){var i=n(45)("unscopables"),r=Array.prototype;void 0==r[i]&&n(68)(r,i,{}),e.exports=function(e){r[i][e]=!0}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return C}),n.d(t,"c",function(){return O}),n.d(t,"d",function(){return E});var i=n(819),r=n(844),a=n(845),o=n(97),s=n(198),c=n(98),l=[],u=[],d=[],h=[],p=[],f=[],m=[],g=0,b=[],v=0;function _(){var e;return e=v>0?b[--v]:g++,l[e]=r.a.NULL_INDEX,u[e]=void 0,h[e]=void 0,d[e]=r.a.NULL_INDEX,p[e]=r.a.NULL_INDEX,f[e]=r.a.NULL_INDEX,m[e]=r.a.NULL_INDEX,e}var y=s.a.extend({staticMembers:{init:function(){var e=arguments;this.__s._$1wK$init.apply(this,e),this.managers={}},instanceFor:function(e,t){var n=this.managers[t];return n||(n=this.managers[t]=this.create(e,t)),n},__superMap:{_$1wK$init:"init"},__QUALIFIED_CLASS_NAME__:"ChainedLookupNodeManager"},type:"ChainedLookupNodeManager",lookupID:"",init:function(e,t){this.__s._$2LQ$init.call(this),this.lookupID=this.type+": "+t,this.key=e,this.lookupPath=t},setUpForObject:function(e,t,n){var i=t.downstreamNodes,a=this.lookupID,o=r.a._sanitizeNodeID(i[a]);if(o<0){i[a]=o=t.allocNode(this,r.a.PULL_ON_FLUSH|r.a.FREE);var s=_();l[s]=n,r.a.addChildToNode(o,n,!0),r.a.setDataForNode(s,o)}return o},calculateValueForNode:function(e,t,n){var i=r.a.getDataForNode(t),a=h[r.a.getValueForNode(l[i])];r.a.getParentIDs(t,I);var o=I[1];if(a!==u[i]){if(o>=0&&r.a.removeChildFromNode(t,o),o=r.a.NULL_INDEX,a){var s=this.key,c=a.downstreamNodes;c&&(o=r.a._sanitizeNodeID(c[s])),o>=0?r.a.addChildToNode(t,o,!1):T(this.key,this.lookupPath,a)}u[i]=a}return h[i]=o>0?r.a.getValueForNode(o):void 0,i},nodeWillFree:function(e,t){!function(e){l[e]=r.a.NULL_INDEX,d[e]=r.a.NULL_INDEX,u[e]=void 0,h[e]=void 0,p[e]=r.a.NULL_INDEX,f[e]=r.a.NULL_INDEX,m[e]=r.a.NULL_INDEX,b[v++]=e}(r.a.getDataForNode(t))},addDebugInfoForNode:function(e,t,n){t.type=this.type,t.object=e,t.key=this.lookupID,t.toString=function(){return this.object+"."+this.key},t.name=t.toString()},__superMap:{_$2LQ$init:"init"}}),C=y.extend({staticMembers:{instanceFor:function(e){var t=this.managers[e];return t||(t=this.managers[e]=this.create(e)),t},__QUALIFIED_CLASS_NAME__:"ChainedLookupRootNodeManager"},type:"ChainedLookupRootNodeManager",init:function(e){this.__s._$4NT$init.call(this,e,e)},setUpForObject:function(e,t){var n,a=t.downstreamNodes,o=this.lookupID,s=r.a._sanitizeNodeID(a[o]);if(s<0){(n=r.a._sanitizeNodeID(a[this.key]))<0&&Object(i.b)("Chained binding could not look up key on object (key: "+this.key+", object: "+t+").",{key:this.key,object:t}),a[o]=s=t.allocNode(this,r.a.PULL_ON_FLUSH|r.a.FREE);var c=_();r.a.setDataForNode(c,s),u[c]=t,r.a.addChildToNode(s,n,!0)}return s},calculateValueForNode:function(e,t,n){var i=r.a.getDataForNode(t);r.a.getParentIDs(t,I);var a=I[0],o=r.a.getValueForNode(a);return h[i]=o,i},__superMap:{_$4NT$init:"init"}}),I=[0,0],w=[0],S=s.a.extend({calculateValueForNode:function(e,t,n){if(n){var i=r.a.getDataForNode(t),a=m[i];r.a.getValueForNode(a),r.a.getParentIDs(t,I);var o,s=I[1];return r.a._sanitizeNodeID(s)>0&&(o=r.a.getValueForNode(s)),o}return r.a.getStateDataForNode(t)},isCacheable:!1,addDebugInfoForNode:function(e,t,n){t.type="ChainedLookupProxyNode (downstream)",t.object=e,t.key="[downstream proxy]",t.toString=function(){return this.object+"[downstream proxy]"},t.name=t.toString()},validateDescendantDownstreamNodeManager:function(e,t,n){r.a.getParentIDs(n,I);var i=I[1];i!==r.a.NULL_INDEX&&r.a.getManagerForNode(i).validateDescendantDownstreamNodeManager(e,t,i)},didAddParentToNode:function(e,t,n,i){if(1!==i){r.a.getChildrenIDs(t,w);var o=w[0];if(o!==r.a.NULL_INDEX){var s=r.a.getManagerForNode(o);s.isDependentComputedProperty||s.instanceOf(a.a)&&r.a.getManagerForNode(n).validateDescendantDownstreamNodeManager(s,o,n)}}}}).create(),A=o.b.extend({calculateValueForNode:function(e,t,n){var i=r.a.getDataForNode(t);r.a.getChildrenIDs(t,w);var a,s=w[0];if(!r.a.isValidNodeID(s))return i;if(n){var c=r.a.getStateIDForNode(t);a=this.pullDataFromParent(t,c)}else a=r.a.getStateDataForNode(t);return a!==o.a&&r.a.passValueToNode(a,s),i},addDebugInfoForNode:function(e,t,n){t.type="ChainedLookupProxyNode (upstream)",t.object=e,t.key="[upstream proxy]",t.toString=function(){return this.object+"[upstream proxy]"},t.name=t.toString()}}).create(),O=y.extend({type:"ChainedLookupTerminalNodeManager",connectUpstreamProxyNodeToLookedUpNodes:function(e,t,n){r.a.addChildToNode(e,t,n)},connectDownstreamProxyNodeToLookedUpNodes:function(e,t){r.a.addChildToNode(e,t,!1)},disconnectProxyNodeFromLookupUpNodes:function(e,t){r.a.removeChildFromNode(e,t)},getDownstreamProxyNode:function(e){var t=e.downstreamNodes,n=this.lookupID,i=r.a._sanitizeNodeID(t[n]),a=r.a.getDataForNode(i);return p[a]},getUpstreamProxyNode:function(e){var t=e.downstreamNodes,n=this.lookupID,i=r.a._sanitizeNodeID(t[n]),a=r.a.getDataForNode(i);return f[a]},setUpForObject:function(e,t,n,i){var a,o,s,c=t.downstreamNodes,u=this.lookupID,d=r.a._sanitizeNodeID(c[u]);return d<=0&&(c[u]=d=t.allocNode(this,r.a.PULL_ON_FLUSH|r.a.FREE|r.a.RELATIONSHIPS),a=_(),r.a.setDataForNode(a,d),m[a]=d,l[a]=n,o=t.allocNode(S,r.a.RELATIONSHIPS),c["Downstream Proxy for "+u]=o,p[a]=o,r.a.setDataForNode(a,o),r.a.addChildToNode(o,d,!1),s=t.allocNode(A,r.a.RELATIONSHIPS),t.upstreamNodes["Upstream Proxy for "+u]=s,f[a]=s,r.a.setDataForNode(a,s),this._shouldFlushUpstream=!!i,r.a.addChildToNode(d,n,!0)),d},getPreviouslyProxiedDownstreamNode:function(e){return r.a.getParentIDs(e,I),I[1]},calculateValueForNode:function(e,t,n){var i=r.a.getDataForNode(t),a=h[r.a.getValueForNode(l[i])],o=u[i];if(a!==o){u[i]=a;var s=this.key,c=f[i],m=p[i],g=this.getPreviouslyProxiedDownstreamNode(m),b=d[i];if(o&&(d[i]=r.a.NULL_INDEX,this.disconnectFromPreviousProperty(o,s,b,g,c,m)),a){var v,_,y=a.downstreamNodes;y&&(v=r.a._sanitizeNodeID(y[s])),(y=a.upstreamNodes)&&(_=r.a._sanitizeNodeID(y[s])),this.hookUpToNewProperty(a,s,_,v,c,m),d[i]=_}}return this._shouldFlushUpstream=!1,i},disconnectFromPreviousProperty:function(e,t,n,i,r,a){a>=0&&i>=0&&this.disconnectProxyNodeFromLookupUpNodes(a,i),r>=0&&n>=0&&this.disconnectProxyNodeFromLookupUpNodes(n,r)},hookUpToNewProperty:function(e,t,n,i,r,a){i>0?(n>0&&this.connectUpstreamProxyNodeToLookedUpNodes(n,r,this._shouldFlushUpstream),this.connectDownstreamProxyNodeToLookedUpNodes(a,i)):T(this.key,this.lookupPath,e)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChainedLookupTerminalNodeManager"}}),E=O.extend({init:function(e,t){t+="Downstream",this.__s._$B5c$init.call(this,e,t)},connectUpstreamProxyNodeToLookedUpNodes:function(e,t,n){r.a.addChildToNode(t,e,n)},connectDownstreamProxyNodeToLookedUpNodes:function(e,t){r.a.addChildToNode(t,e,!0)},getPreviouslyProxiedDownstreamNode:function(e){return r.a.getChildrenIDs(e,w),w[0]},disconnectProxyNodeFromLookupUpNodes:function(e,t){r.a.removeChildFromNode(t,e)},disconnectFromPreviousProperty:function(e,t){e.isDisposed||e.unbind(t)},hookUpToNewProperty:function(e,t,n,i,a,o){var s=arguments,l=e.getMetadataByType(c.a)[t];l||T(this.key,this.lookupPath,e),l._disconnectNodes(i,n),l._configurePropertyAsBound(i,n),this.__s._$Bmt$hookUpToNewProperty.apply(this,s),r.a.triggerFlush()},nodeWillFree:function(e,t){var n=this.key,i=r.a.getDataForNode(t),a=u[i];a&&!a.isDisposed&&a.unbind(n),this.__s._$Bz3$nodeWillFree.call(this,e,t)},__superMap:{_$B5c$init:"init",_$Bmt$hookUpToNewProperty:"hookUpToNewProperty",_$Bz3$nodeWillFree:"nodeWillFree"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownstreamChainedLookupTerminalNodeManager"}});function T(e,t,n){var r;r=n&&n.constructor?"an instance of "+n.constructor.toString():n?n+"":"a missing object ("+n+")",Object(i.b)("Attempted to bind or observe a non-observable property: '"+e+"' on "+r+", via path '"+t+"'.",{key:e,lookupPath:t,object:n})}},function(e,t,n){"use strict";n(0),n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u});var i=n(832),r=n(232),a=n(144),o=n(108),s=n(64),c=n(82),l=a.a.extend({nodeType:"ELEMENT",register:function(e,t,n){if(!n){var i=t.name;i&&Object(s.b)(e,i,t)}var r,a,o=t.classes;if(o){var c=o.length;for(a=0;a<c;a++)e.registerOutletAndSubOutlets(o[a],t)}var l=t.styles;if(l)for(r in l)e.registerOutletAndSubOutlets(l[r],t);var u=t.attributes;if(u)for(r in u){var d=u[r];e.registerOutletAndSubOutlets(d,t)}var h=t.children;if(h){var p=h.length;for(a=0;a<p;a++){var f=h[a];f.index=a,e.registerOutletAndSubOutlets(f,t)}}},render:function(e,t,n){var r,a,o=n.namespace,s=n.tagname,l=o?t.createElementNS(o,s):t.createElement(s),u=n.classes;if(u){var d=l.classList,h=u.length;for(a=0;a<h;a++){var p=e.renderNodeAndSubNodes(u[a],t);p&&d.add(p)}}var f=n.styles;if(f)for(r in f)Object(c.c)(l,r,e.renderNodeAndSubNodes(f[r],t));var m=n.attributes;if(m)for(r in m){var g,b=m[r];(g=Object(i.a)(b)?b.namespace:null)?l.setAttributeNS(g,r,e.renderNodeAndSubNodes(b,t)):l.setAttribute(r,e.renderNodeAndSubNodes(b,t))}var v=n.children;if(v){var _=v.length;for(a=0;a<_;a++){var y=v[a];y.index=a,l.appendChild(e.renderNodeAndSubNodes(y,t))}}return l},staticMembers:{__QUALIFIED_CLASS_NAME__:"_ElementHandler"}}),u={mixinDependencies:[o.a,r.a],staticMembers:{handler:l.create()}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return h});var i=n(95),r=n(86),a=n(861),o=n(878),s=n(536),c=n(102),l=Object(i.b)("ModifierKeys",function(e){e("Shift"),e("Ctrl"),e("Option"),e("Meta"),e("Cmd"),e("Win")});l.Alt=l.Option;var u=c.b.Ended,d=c.b.Failed,h=c.a.extend({initFromPool:function(){var e=arguments;this.__s._$MO$initFromPool.apply(this,e);var t=this.modifiers;t instanceof Set||(this.modifiers=new Set(t))},numberOfTapsRequired:1,modifiers:Object(r.c)(Set),shouldPreventDefault:!1,targetElement:null,stateGenerator:s.a,maxDelayBetweenTaps:300,maxDurationOfTaps:500,dragThreshold:100,_tapCount:0,_handlingPointerId:NaN,_lockedCursor:!1,shouldReceive:function(e){var t=arguments;return this.isModifierValid(e)&&isNaN(this._handlingPointerId)&&this.__s._$zC$shouldReceive.apply(this,t)},shouldRequireFailureOf:function(e){var t=arguments;return e.instanceOf(h)&&this.modifiers.size<e.modifiers.size||this.__s._$16Y$shouldRequireFailureOf.apply(this,t)},isModifierValid:function(e){var t=this.modifiers;if(t.has(l.Shift)&&!e.shiftKey)return!1;if(t.has(l.Ctrl)&&!e.ctrlKey)return!1;var n=o.a.sharedInstance,i=n.isWindows;return!(n.isMac&&!t.has(l.Ctrl)&&e.ctrlKey||t.has(l.Option)&&!e.altKey||t.has(l.Meta)&&!e.metaKey||t.has(l.Cmd)&&!e.metaKey&&!i||t.has(l.Win)&&!e.metaKey&&i)},_failTimerId:NaN,_startFailTimer:function(e){var t=this;this._failTimerId=Object(a.a)(function(){t.state=d},e)},_cancelTimer:function(){var e=this._failTimerId;isNaN(e)||(clearTimeout(e),this._failTimerId=NaN)},pointerDown:function(e){0===this._tapCount&&(this.location={x:e.clientX,y:e.clientY},this.targetElement=e.target),this._handlingPointerId=e.pointerId,this._cancelTimer(),0===this._tapCount&&(this.view.sendEvent("lockCursor",this.getPath("view.style.cursor")),this._lockedCursor=!0),this.numberOfTapsRequired>1&&this._startFailTimer(this.maxDurationOfTaps)},isEventTooFar:function(e){var t=this.location,n=t.x,i=t.y,r=e.clientX,a=e.clientY;return Math.pow(r-n,2)+Math.pow(a-i,2)>this.dragThreshold},shouldFailGesture:function(e){return this.isEventTooFar(e)},pointerMove:function(e){this.shouldFailGesture(e)&&(this.state=d)},pointerUp:function(e){this._cancelTimer(),this.shouldFailGesture(e)?this.state=d:(this._tapCount++,this._tapCount>=this.numberOfTapsRequired?this.state=u:this._startFailTimer(this.maxDelayBetweenTaps)),this._handlingPointerId=NaN},pointerCancel:function(e){this.state=d},dispose:function(){this._cancelTimer(),this._lockedCursor&&this.view.sendEvent("releaseCursor"),this.__s._$2E_$dispose.call(this)},didEnterPool:function(){var e=arguments,t=this.constructor.prototype;this.modifiers.clear(),this.numberOfTapsRequired=t.numberOfTapsRequired,this.__s._$2Mv$didEnterPool.apply(this,e)},reset:function(){this.__s._$2NW$reset.call(this),this._cancelTimer(),this.location=null,this._tapCount=0,this._handlingPointerId=NaN,this.targetElement=null,this._lockedCursor&&this.view.sendEvent("releaseCursor"),this._lockedCursor=!1},__superMap:{_$MO$initFromPool:"initFromPool",_$zC$shouldReceive:"shouldReceive",_$16Y$shouldRequireFailureOf:"shouldRequireFailureOf",_$2E_$dispose:"dispose",_$2Mv$didEnterPool:"didEnterPool",_$2NW$reset:"reset"},staticMembers:{__QUALIFIED_CLASS_NAME__:"TapGestureRecognizer"}})},function(e,t,n){"use strict";n.d(t,"e",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"d",function(){return o}),n.d(t,"b",function(){return s}),n.d(t,"a",function(){return l});var i=n(819);function r(e,t,n){a();var i=e.apply(t,n);return o(),i}function a(){d[u++]=p}function o(){for(var e=d[u-1];p>e;)c(--p);u--}function s(e,t,n){return 0===u&&(a(),setTimeout(o,0)),h[p]=e,p++}function c(e){var t=h[e];h[e]=null,t&&t.release(void 0,void 0)}function l(e,t){h[t]!==e&&Object(i.b)("CW.Utils._cancelAutorelease: attempted to cancel autorelease for a different object",{object:e}),c(t)}var u=0,d=[],h=[],p=0;window},function(e,t,n){"use strict";n.d(t,"a",function(){return I});var i=n(100),r=n(99),a=n(59),o=n(203),s="network",c="requestInfo",l="serverErrorOrTimeout",u="UNKNOWN",d=function(e){o.a.queueStat(e)},h={location:location};function p(e){if(e.statName!==s)return[e];var t=[],n=Object.assign({},e,{statName:c});if(t.push(n),n.response_status>299){var i=Object.assign({},e,{statName:l});t.push(i)}return t}function f(e){return Object.assign(e,{sessionID:e.sessionID||h.sessionID,isInternal:!1,isDebug:!1})}function m(e){var t=e.appName,n=e.statName,i=e.fullStatName||t+"."+n;return delete e.fullStatName,Object.assign(e,{statName:i})}function g(e){var t=e.appName;return t=t||h.appName,Object.assign(e,{appName:t})}function b(e,t,n,i){return e>n?i:function(e,t){return Math.max(0,Math.round(e/t)*t)}(e,t)}function v(e){return Number.isFinite(e.clientTiming)&&(e.clientTiming=b(e.clientTiming,100,1e5,">10s")),Number.isFinite(e.net_uncompressedResponseSize)&&(e.net_uncompressedResponseSize=b(e.net_uncompressedResponseSize,100,1e3,">1KB")),e}function _(){var e=h.buildInfo,t=h.userAgent,n=h.sessionID,i=h.location,r=h.appName,a=h.hostingAppName,o=i.hostname;return Object.assign({appName:r,hostingAppName:a,clientTime:new Date+" ("+Date.now()+")",userAgent:t,hostname:o,buildInfo:e,sessionID:n})}function y(e){var t=e.message,n=e.type,i=e.requestUUID;return g({appName:e.appName,errorTitle:t||u,errorType:n||u,requestUUID:i})}function C(e){var t=window.performance.now();return{toJSON:function(){return Object.assign(_(),{statName:e,clientTiming:Math.floor(window.performance.now()-t)})}}}var I={configure:function(e){Object.assign(h,e),!0===h.isSendingStatsEnabled&&(a.a.isSendingStatsEnabled=!0),a.a.flushInterval=e.flushInterval,o.a.scheduleFlush()},recordCWNetworkRequest:function(e){var t=C(s);e.on(r.b.FINALIZED,function(){var n=Object.assign(t.toJSON(),function(e){var t=e.url,n=e.method,i=e.response,a=i.status,o=i.encodedBody,s=t.hostname,c=t.pathname;return{request_uuid:e.getUUID?e.getUUID():"",request_method:n,request_pathname:c,request_hostname:s,request_timedOut:e.state===r.b.TIMEDOUT,response_status:a,response_body:a>299?o:"(skipped)",response_size:o?o.length:null}}(e));I.handleStat(n)})},recordErrorCatcherWasDisplayed:function(e){var t=C("errorCatcherWasDisplayed"),n=Object.assign(t.toJSON(),y(e));return I.handleStat(n),I.flush()},createErrorReport:function(e){return Object.assign(_(),y(e),{errorContext:h.stringifyExceptionContext(e.context),lineNumber:function(e){var t=e.lineNumber||e.line;if(!t)try{var n=e.stack.split("\n")[1].split(":");t=n[n.length-2]}catch(e){t="Unknown"}return t}(e),stack:function(e){var t=e.stack;if(!t)return t;var n=(t=t.trim()).split("\n"),i=n.length;if(i<=501)return t;var r=i-400-100;return n.splice(400,r,"... "+r+" lines truncated ..."),n.join("\n")}(e)})},recordErrorReportWithUserConsent:function(e){return t=e,i.a.all([o.a.sendStats(),o.a.sendCrashError(t)]);var t},handleStat:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];t=(t=function e(t){return t.reduce(function(t,n){return t.concat(Array.isArray(n)?e(n):n)},[])}(t=t.map(p))).map(f).map(g).map(m).map(v).map(d)},flush:function(){return o.a.sendStats()}}},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return d});var i=n(81),r=n(1045),a=n(1093),o=n(1078),s=n(27),c=n(49),l=n(53),u=s.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(l.b)("mmd67283e4")}]}})}).create({authBagId:"calendar",path:"calendar",requiredServices:["calendar","keyvalue"],pushTopic:"dce593a0ac013016a778712b850dc2cf21af8266",shouldShowPushNotifications:!0,shouldAwakeInBackgroundFromPush:!0,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.REGULAR},{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.COMPACT},{primaryInteractionMode:r.a.TOUCH,sizeClass:a.a.REGULAR}],supportedSubDomains:[o.a.subDomains.WWW,o.a.subDomains.CARRY],radarComponentId:431865}),d=c.a.create({identifier:"calendar",displayNameLocKey:"Calendar.DisplayName",titleNameLocKey:"Calendar.TitleName",generation:u})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(95),r=Object(i.b)("CloudKitResponseStatus",{NONE:"NONE",OK:"OK",CLOUD_KIT_ERROR:"CLOUD_KIT_ERROR",CLOUD_KIT_EXCEPTION:"CLOUD_KIT_EXCEPTION"})},function(e,t,n){"use strict";n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(33),n(13),n.d(t,"a",function(){return A}),n.d(t,"c",function(){return O}),n.d(t,"b",function(){return E});var i=n(877),r=n(98),a=n(80),o=n(818),s=n(78),c=n(87),l=n(95),u=n(873),d=n(224),h=n(889),p=n(86),f=n(81),m=n(102),g=n(133),b=n(210),v=n(49),_=n(27),y=n(245),C=n(29),I=n(36),w=(n(58),i.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div"}},className:"app-switcher-spinner-view",__QUALIFIED_CLASS_NAME__:"AppSwitcherSpinnerView"}})),S=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"badgeCountText",attributes:{}}],classes:["badge-count-label"]},{type:"ELEMENT",tagname:"div",classes:["badge-dimming-overlay"]}]},__QUALIFIED_CLASS_NAME__:"BadgeView"},value:r.b({type:Number}),badgeCountText:r.b({type:String,readOnly:!0,dependencies:["value"],get:function(){var e=this.value;return e<=9999?""+e:a.d("CloudOS.AppIcon.Badge.LargeNumber",{badgeCount:9999})}})}),A=o.a.extend({mixinDependencies:[s.b],applicationIdentifier:r.b({type:String}),applicationController:r.b({type:y.a,readOnly:!0,dependencies:["applicationInfo"],get:Object.assign(function(){var e=this.applicationInfo;if(e)return C.a.sharedInstance.getChildApplicationController(e)},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);if(r)return C.a.sharedInstance.getChildApplicationController(r)}})}),applicationInfo:r.b({type:_.a,readOnly:!0,dependencies:["applicationConfiguration.applicationInfo"],get:function(){var e=this.applicationConfiguration;return e&&e.applicationInfo}}),applicationConfiguration:r.b({type:v.a,readOnly:!0,dependencies:["applicationIdentifier"],get:function(){var e=this.applicationIdentifier;if(e)return I.a.sharedInstance.getConfiguration(e)}}),iconSrc:r.b({type:String,readOnly:!0,dependencies:["applicationInfo"],get:Object.assign(function(){var e=this.applicationInfo;return e&&e.iconUrlForCurrentDPR},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return r&&r.iconUrlForCurrentDPR}})}),isLoading:r.b({type:Boolean,readOnly:!0,dependencies:["applicationController.isLoadingForPresentation","applicationController.applicationContext.launchSource"],get:Object.assign(function(){return this.getPath("applicationController.isLoadingForPresentation")&&this.getPath("applicationController.applicationContext.launchSource")===this},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])&&i.internalGetPath(this,t[1+n])===this}})}),title:r.b({type:String,readOnly:!0,binding:c.c("applicationConfiguration.displayName")}),isLocked:r.b({type:Boolean,readOnly:!0,binding:c.c("applicationConfiguration.isLocked")}),isDisabled:r.b({type:Boolean,readOnly:!0,binding:c.c("applicationConfiguration.isDisabled")}),missingRequiredServices:r.b({type:Array,readOnly:!0,binding:c.c("applicationConfiguration.missingRequiredServices")}),badgeCount:r.b({type:Number,readOnly:!0,binding:c.c("applicationController.badgeCount")}),staticMembers:{__QUALIFIED_CLASS_NAME__:"AppSwitcherItem"}}),O=l.b("AppSwitcherListItemSize",{LARGE:"large",SMALL:"small"}),E=i.a.extend({mixinDependencies:[u.a,d.b],staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"appIconView"},{type:"ELEMENT",tagname:"div",classes:["icon-overlay"]},{type:"VIEWOUTLET",tagname:"view",name:"badgeView"},{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"}],name:"iconContainer",classes:["icon-container"]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"content.title",attributes:{}}],name:"iconNameContent"}],name:"iconName",classes:["icon-name"]},{type:"ELEMENT",tagname:"div",name:"additionalContent"}],name:"itemContent",classes:["app-switcher-item-content",{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"sizeCSSClass",attributes:{}}]}],classes:["app-switcher-item-view",{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"sizeCSSClass",attributes:{}}]},__QUALIFIED_CLASS_NAME__:"AppSwitcherItemView"},content:r.b({type:A}),contentClasses:r.b({type:Array,readOnly:!0,dependencies:["content.isLoading","content.isLocked","content.isDisabled","content.missingRequiredServices"],get:function(){var e=[],t=this.content,n=t.isLoading,i=t.isLocked,r=t.isDisabled,a=t.missingRequiredServices;return n&&e.push("loading"),i&&e.push("locked"),r&&!h.a(a,["mail"])&&e.push("disabled"),e}}),size:r.b({type:O}),sizeCSSClass:r.b({type:String,readOnly:!0,dependencies:["size"],get:function(){var e=this.size;return e&&e.value}}),spinnerView:r.b({strong:!0,readOnly:!0,defaultValue:function(){return w.create()}}),appIconView:r.b({readOnly:!0,type:g.a,dependencies:["content"],get:Object.assign(function(){return"calendar"===this.content.applicationIdentifier?b.a.create(142):g.a.create({iconSrc:this.content.bindingFor("iconSrc")})},{__CW__getter:function(e,t,n,i){return"calendar"===i.internalGet(this,t[0+n]).applicationIdentifier?b.a.create(142):g.a.create({iconSrc:i.internalGet(this,t[0+n]).bindingFor("iconSrc")})}})}),badgeView:r.b({readOnly:!0,dependencies:["content.badgeCount","content.isLocked","_badgeView"],get:Object.assign(function(){var e=this.content;return e.badgeCount>0&&!e.isLocked?this._badgeView:void 0},{__CW__getter:function(e,t,n,i){var r=this.content;return r.badgeCount>0&&!r.isLocked?i.internalGet(this,t[2+n]):void 0}})}),init:function(){var e=arguments;this.__s._$2Zw$init.apply(this,e);var t=this._tapGestureRecognizer=d.a.create({event:"_tapGestureWasRecognized",delegate:this});this.addGestureRecognizer(t)},prepareItemView:function(){return this.appIconView.prepareIcon()},_badgeView:r.b({type:S,defaultValue:p.c(S),downstreamBindings:{value:"(owner).content.badgeCount"}}),_tapGestureRecognizer:f.d({type:d.a}),_cachedContentClasses:f.d({type:Array}),_tapGestureWasRecognized:function(e){e.state===m.b.Ended&&e===this._tapGestureRecognizer&&this.sendEvent("appSwitcherDidSelectItem",this.content)},_contentClassObserver:s.h("contentClasses",function(e){var t=this.itemContent,n=this._cachedContentClasses;if(n)for(var i=0,r=n.length;i<r;i++){var a=n[i];t.classList.remove(a)}if(e)for(var o=0,s=e.length;o<s;o++){var c=e[o];t.classList.add(c)}this._cachedContentClasses=e}),__superMap:{_$2Zw$init:"init"}})},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,i=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},function(e,t,n){var i=n(434),r=n(330);e.exports=Object.keys||function(e){return i(e,r)}},function(e,t,n){var i=n(117),r=Math.max,a=Math.min;e.exports=function(e,t){return(e=i(e))<0?r(e+t,0):a(e,t)}},function(e,t,n){var i=n(30),r=n(435),a=n(330),o=n(329)("IE_PROTO"),s=function(){},c=function(){var e,t=n(327)("iframe"),i=a.length;for(t.style.display="none",n(331).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;i--;)delete c.prototype[a[i]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=i(e),n=new s,s.prototype=null,n[o]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var i=n(434),r=n(330).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return i(e,r)}},function(e,t,n){"use strict";var i=n(32),r=n(55),a=n(54),o=n(45)("species");e.exports=function(e){var t=i[e];a&&t&&!t[o]&&r.f(t,o,{configurable:!0,get:function(){return this}})}},function(e,t){e.exports=function(e,t,n,i){if(!(e instanceof t)||void 0!==i&&i in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t,n){var i=n(115),r=n(447),a=n(342),o=n(30),s=n(50),c=n(344),l={},u={};(t=e.exports=function(e,t,n,d,h){var p,f,m,g,b=h?function(){return e}:c(e),v=i(n,d,t?2:1),_=0;if("function"!=typeof b)throw TypeError(e+" is not iterable!");if(a(b)){for(p=s(e.length);p>_;_++)if((g=t?v(o(f=e[_])[0],f[1]):v(e[_]))===l||g===u)return g}else for(m=b.call(e);!(f=m.next()).done;)if((g=r(m,v,f.value,t))===l||g===u)return g}).BREAK=l,t.RETURN=u},function(e,t,n){var i=n(69);e.exports=function(e,t,n){for(var r in t)i(e,r,t[r],n);return e}},function(e,t,n){var i=n(37);e.exports=function(e,t){if(!i(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n(0),n.d(t,"b",function(){return s}),n.d(t,"c",function(){return c}),n.d(t,"a",function(){return l}),n(12);var i=n(88),r=n(98),a=n(81),o=n(899),s=n(877).a.extend(o.a,{supportsDragScroll:Object(a.d)(!i.c.get("isTouchSupported")),staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",name:"thumb",classes:["cw-scroll-indicator-thumb"]}],name:"track",classes:["cw-scroll-indicator-track"]}],classes:["cw-scroll-indicator"],styles:{display:{type:"STYLEOUTLET",bindingtype:"IFBINDING",name:"isShowing",truevalue:"block",falsevalue:"none",attributes:{},unit:null,property:"display"}}}},className:"cw-ui-scroll-indicator-view",__QUALIFIED_CLASS_NAME__:"ScrollIndicatorView"},eventCoordinateKey:null,thumbPositionKey:null,minThumbSize:Object(r.b)(20),minThumbOutsideSize:Object(r.b)(10),overscrollShrinkFactor:Object(r.b)(2),thickness:Object(r.b)({readOnly:!0,dependencies:["thicknessKey","element","isAttached"],get:Object.assign(function(){var e=this.thicknessKey,t=this.element;return e&&t&&this.isAttached?t.getBoundingClientRect()[e]:0},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]),a=i.internalGet(this,t[1+n]);return r&&a&&i.internalGet(this,t[2+n])?a.getBoundingClientRect()[r]:0}})}),thicknessKey:Object(r.b)(),beginMargin:Object(r.b)(6),endMargin:Object(r.b)(6),totalEndMargin:Object(r.b)({readOnly:!0,dependencies:["inset","endMargin"],get:Object.assign(function(){var e=this.inset;return this.endMargin+e},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return i.internalGet(this,t[1+n])+r}})}),size:Object(r.b)({readOnly:!0,dependencies:["scrollSize","beginMargin","totalEndMargin"],get:Object.assign(function(){return this.scrollSize-this.beginMargin-this.totalEndMargin},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])-i.internalGet(this,t[1+n])-i.internalGet(this,t[2+n])}})}),otherScrollIndicator:Object(r.b)(),inset:Object(r.b)({readOnly:!0,dependencies:["otherScrollIndicator.isShowing","otherScrollIndicator.thickness"],get:Object.assign(function(){return this.getPath("otherScrollIndicator.isShowing")?this.getPath("otherScrollIndicator.thickness"):0},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])?i.internalGetPath(this,t[1+n]):0}})}),scrollMin:Object(r.b)(0),totalSize:Object(r.b)(0),scrollSize:Object(r.b)(0),scrollPosition:Object(r.b)(0),isShowing:Object(r.b)({readOnly:!0,dependencies:["scrollSize","totalSize"],get:Object.assign(function(){return this.scrollSize<this.totalSize&&this.totalSize!==1/0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])<i.internalGet(this,t[1+n])&&i.internalGet(this,t[1+n])!==1/0}})}),relativeScrollPosition:Object(r.b)({dependencies:["scrollMin","scrollPosition"],writeDependencies:["scrollPosition"],get:Object.assign(function(){return this.scrollPosition-this.scrollMin},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])-i.internalGet(this,t[0+n])}}),set:Object.assign(function(e){this.scrollPosition=e+this.scrollMin},{__CW__setter:function(e,t,n,i,r){n[0+i]=e+this.scrollMin}}),writeDependencySetPathMap:["false"]}),scrollProportion:Object(r.b)({readOnly:!0,dependencies:["scrollSize","totalSize"],get:Object.assign(function(){return this.scrollSize/this.totalSize},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])/i.internalGet(this,t[1+n])}})}),minThumbProportion:Object(r.b)({readOnly:!0,dependencies:["size","minThumbSize"],get:Object.assign(function(){return this.minThumbSize/this.size},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])/i.internalGet(this,t[0+n])}})}),minThumbOutsideProportion:Object(r.b)({readOnly:!0,dependencies:["size","minThumbOutsideSize"],get:Object.assign(function(){return this.minThumbOutsideSize/this.size},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])/i.internalGet(this,t[0+n])}})}),thumbProportion:Object(r.b)({readOnly:!0,dependencies:["scrollProportion","minThumbProportion"],get:Object.assign(function(){return Math.max(this.scrollProportion,this.minThumbProportion)},{__CW__getter:function(e,t,n,i){return Math.max(i.internalGet(this,t[0+n]),i.internalGet(this,t[1+n]))}})}),sizeAdjustment:Object(r.b)({readOnly:!0,dependencies:["scrollProportion","thumbProportion"],get:Object.assign(function(){return(1-this.scrollProportion)/(1-this.thumbProportion)},{__CW__getter:function(e,t,n,i){return(1-i.internalGet(this,t[0+n]))/(1-i.internalGet(this,t[1+n]))}})}),adjustedSize:Object(r.b)({readOnly:!0,dependencies:["totalSize","sizeAdjustment"],get:Object.assign(function(){return this.totalSize*this.sizeAdjustment},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])*i.internalGet(this,t[1+n])}})}),thumbSize:Object(r.b)({readOnly:!0,dependencies:["thumbProportion","relativeScrollPosition","minThumbOutsideProportion","scrollProportion","overscrollShrinkFactor","totalSize","scrollSize","adjustedSize"],get:Object.assign(function(){var e=this.relativeScrollPosition;if(e<0){var t=-e/this.adjustedSize;return 100*Math.max(this.minThumbOutsideProportion,this.scrollProportion-this.overscrollShrinkFactor*t)}var n=this.totalSize-this.scrollSize;if(e>n){var i=(e-n)/this.adjustedSize;return 100*Math.max(this.minThumbOutsideProportion,this.scrollProportion-this.overscrollShrinkFactor*i)}return 100*this.thumbProportion},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[1+n]);if(r<0){var a=-r/i.internalGet(this,t[7+n]);return 100*Math.max(i.internalGet(this,t[2+n]),i.internalGet(this,t[3+n])-i.internalGet(this,t[4+n])*a)}var o=i.internalGet(this,t[5+n])-i.internalGet(this,t[6+n]);if(r>o){var s=(r-o)/i.internalGet(this,t[7+n]);return 100*Math.max(i.internalGet(this,t[2+n]),i.internalGet(this,t[3+n])-i.internalGet(this,t[4+n])*s)}return 100*i.internalGet(this,t[0+n])}})}),thumbPosition:Object(r.b)({readOnly:!0,dependencies:["adjustedSize","relativeScrollPosition","scrollSize","totalSize","thumbSize"],get:Object.assign(function(){var e=this.relativeScrollPosition;return e<0?0:e>this.totalSize-this.scrollSize?100-this.thumbSize:e/this.adjustedSize*100},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[1+n]);return r<0?0:r>i.internalGet(this,t[3+n])-i.internalGet(this,t[2+n])?100-i.internalGet(this,t[4+n]):r/i.internalGet(this,t[0+n])*100}})}),_dragPointerId:null,_dragStartPixel:null,_dragStartThumbPosition:null,pointerUp:function(e){var t=arguments;if(!this.get("supportsDragScroll"))return!1;this.__s._$3Nz$pointerUp.apply(this,t);var n=e.pointerId;return this._dragPointerId===n&&(this._dragPointerId=null,this._dragStartPixel=null,this._dragStartThumbPosition=null,!0)},pointerDown:function(e){var t=arguments;if(!this.get("supportsDragScroll"))return!1;this.__s._$3Tc$pointerDown.apply(this,t);var n=this.get("thumb");if(e.target===n){var i=e.pointerId;this._dragPointerId=i,this._dragStartPixel=e[this.eventCoordinateKey],this._dragStartThumbPosition=this.get("relativeScrollPosition")/this.get("totalSize")}else{var r=n.getBoundingClientRect()[this.thumbPositionKey];e[this.eventCoordinateKey]<r?this.pageUp():this.pageDown()}return!0},pointerMove:function(e){var t=arguments;if(!this.get("supportsDragScroll"))return!1;if(this._dragPointerId!==e.pointerId)return!1;this.__s._$3k1$pointerMove.apply(this,t);var n=e[this.eventCoordinateKey]-this._dragStartPixel,i=this.get("size");return this.scrollTo(100*(this._dragStartThumbPosition+n/i*this.get("sizeAdjustment"))),!0},__superMap:{_$3Nz$pointerUp:"pointerUp",_$3Tc$pointerDown:"pointerDown",_$3k1$pointerMove:"pointerMove"}}),c=s.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:["vertical"]},track:{type:"ELEMENT",tagname:"ext",styles:{top:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"beginMargin",attributes:{},unit:"px",property:"top"},bottom:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"totalEndMargin",attributes:{},unit:"px",property:"bottom"}}},thumb:{type:"ELEMENT",tagname:"ext",styles:{top:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"thumbPosition",attributes:{},unit:"%",property:"top"},height:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"thumbSize",attributes:{},unit:"%",property:"height"}}}},className:"cw-ui-vertical-scroll-indicator-view",__QUALIFIED_CLASS_NAME__:"VerticalScrollIndicatorView"},eventCoordinateKey:"clientY",thumbPositionKey:"top",thicknessKey:"width",pageUp:function(){this.get("parent").pageUp()},pageDown:function(){this.get("parent").pageDown()},scrollTo:function(e){this.get("parent").scrollTo(void 0,e)}}),l=s.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:["horizontal"]},track:{type:"ELEMENT",tagname:"ext",styles:{left:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"beginMargin",attributes:{},unit:"px",property:"left"},right:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"totalEndMargin",attributes:{},unit:"px",property:"right"}}},thumb:{type:"ELEMENT",tagname:"ext",styles:{left:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"thumbPosition",attributes:{},unit:"%",property:"left"},width:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"thumbSize",attributes:{},unit:"%",property:"width"}}}},className:"cw-ui-horizontal-scroll-indicator-view",__QUALIFIED_CLASS_NAME__:"HorizontalScrollIndicatorView"},eventCoordinateKey:"clientX",thumbPositionKey:"left",thicknessKey:"height",pageUp:function(){this.get("parent").pageLeft()},pageDown:function(){this.get("parent").pageRight()},scrollTo:function(e){this.get("parent").scrollTo(e,void 0)}})},function(e,t,n){"use strict";function i(e){return"boolean"==typeof e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e){return!(!e||!e.isObject)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(829),r=n(94),a=n(830),o=n(856),s=n(85),c=n(81),l={done:!1,value:null},u={mixinDependencies:[r.a,i.a],next:function(){return l.value=this.value,l.done=!this.isValid,this.moveToNext(),l},moveToNext:Object(s.c)(a.a),isValid:Object(s.c)(o.a),value:Object(c.d)({get:function(){return this.source.decode(this.encodedValue)},set:function(e){return this.encodedValue=this.source.encode(e),e}}),encodedValue:Object(s.c)(o.a),source:Object(c.d)()};u[Symbol.iterator]=function(){return this}},function(e,t,n){"use strict";function i(e){for(var t={},n=e.length,i=0;i<n;i++)t[e[i]]=!0;return t}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n(3),n.d(t,"a",function(){return h});var i=n(818),r=n(81),a=n(819),o=n(100),s=n(861),c=n(1091),l=n(1085),u=n(148),d=n(578),h=i.a.extend({mixinDependencies:[l.a],staticMembers:{createSharedInstance:function(){return h.create(84e4)},__QUALIFIED_CLASS_NAME__:"QuotaController"},storageQuota:r.d({type:c.a,readOnly:!0}),delegate:r.d({type:d.a}),pollingInterval:r.d({type:Number,readOnly:!0}),init:function(e){this.__s._$Po$init.call(this),(!e||e<=0)&&a.b("[QuotaController] No polling interval specified"),this._pollingInterval=e},start:function(){var e=this;this._pollingHasStarted||this._fetchQuotaData().then(function(){return e._poll(e._pollingInterval)})},refreshQuotaData:function(){var e=this,t=this._pendingRequestPromise;return t||(t=this._pendingRequestPromise=this._fetchQuotaData()),t.then(function(t){return e._pendingRequestPromise=void 0,t})},_pendingRequestPromise:r.d({type:o.a}),_pollingHasStarted:r.d({type:Boolean}),_poll:function(e){var t=this;this._pollingHasStarted=!0,s.a(function(){t._pendingRequestPromise||(t._pendingRequestPromise=t._fetchQuotaData()),t._pendingRequestPromise.then(function(){t._pendingRequestPromise=void 0,t._poll(e)})},e)},_fetchQuotaData:function(){var e=this;return Object(u.d)().then(function(t){if(t.isOK){var n=t.data,i=e.storageQuota;e._setQuotaState(i,n)}return t})},_setQuotaState:function(e,t){var n=e?e.quotaStatus:void 0,i=t?t.quotaStatus:void 0,r=!!n&&n.overQuota,a=!!n&&n.almostFull,o=i.overQuota,s=i.almostFull;this._storageQuota=t;var c=this.delegate;c&&(!r&&o?c.quotaLimitWasExceeded(this):!r&&!a||s||o?a||!s||o||c.quotaLimitAlmostExceeded(this):c.quotaLimitHasRecovered(this))},__superMap:{_$Po$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(818),r=n(81),a=n(1106),o=i.a.extend({preceedingMessageExpiry:r.d({type:Date}),preceedsMessage:r.d({type:String}),delegateMethodTarget:r.d({type:a.a}),delegateMethodName:r.d({type:String}),delegateMethodArguments:r.d({type:Array}),delegateMethodIsAsync:r.d({type:Boolean}),clearsMessage:r.d({type:String}),staticMembers:{__QUALIFIED_CLASS_NAME__:"AuthenticationMessage"}})},function(e,t,n){"use strict";var i=n(818),r=n(78),a=n(819),o=n(81),s=n(98),c=n(95).b("UserSessionType",{UNKNOWN:"UNKNOWN",INTERNAL:"INTERNAL",PUBLIC:"PUBLIC"}),l=n(1087),u=n(1161),d=n(406);n.d(t,"a",function(){return h});var h=i.a.extend(r.b,{staticMembers:{fromAuthenticationDataResponse:function(e){e||a.b("[CloudOSUser] No authentication data response specified");var t=e.isAppleInternal,n=e.hsaTrustedBrowser,i=e.termsUpdateNeeded,r=e.isCarryUser,o=h.create({userSessionType:t?c.INTERNAL:c.PUBLIC,hsaTrustedBrowser:n,termsUpdateNeeded:i,isCarryUser:r});return o.details=function(e){e||a.b("[CloudOSUser] No authentication data response specified");var t=void 0,n=e.authenticatedUserDetails;if(n){var i=n.dsid,r=n.aDsID,o=n.firstName,s=n.lastName,c=n.fullName,u=n.appleId,d=n.isManagedAppleID,h=n.statusCode,p=n.brMigrated,f=n.tantorMigrated,m=n.notesMigrated,g=n.appleIdEntries,b=e.totalAuthenticationSteps,v=e.completedAuthenticationStep,_=e.accountType;t=l.a.create({dsid:i,alternateDSID:r,firstName:o,lastName:s,fullName:c,appleId:u,isManagedAppleID:d,statusCode:h,brMigrated:p,tantorMigrated:f,notesMigrated:m,appleIdEntries:g,completedAuthenticationStep:v,totalAuthenticationSteps:b,accountType:_.value})}return t}(e),e.authenticatedUserDetails&&(o.countryCode=e.authenticatedUserDetails.countryCode),o.isAuthenticationComplete=e.isAuthenticated,o.accountSessionStore=d.a.storeForCurrentUser(),o},__QUALIFIED_CLASS_NAME__:"CloudOSUser"},accountSessionStore:o.d({type:d.a}),isAuthenticationComplete:o.d({type:Boolean}),isAuthenticated:o.d({readOnly:!0,type:Boolean,get:function(){return!!this.details&&this.details.isAuthenticated&&this.isAuthenticationComplete}}),isAppleInternal:s.b({readOnly:!0,type:Boolean,get:function(){return this.userSessionType===c.INTERNAL}}),isCarryUser:o.d({type:Boolean}),userSessionType:s.b({type:c,defaultValue:c.UNKNOWN}),details:s.b({type:l.a}),photo:s.b({type:u.a}),countryCode:s.b({type:String}),termsUpdateNeeded:o.d({type:Boolean,defaultValue:!1})})},function(e,t,n){"use strict";var i=n(95),r=n(871),a=n(935),o=n(98),s=n(81),c=n(828),l=n(905),u=n(819),d=n(106),h=n(1114),p=n(1115),f=n(1116),m=n(314),g=n(877),b=(n(62),n(0),n(10),g.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{}}],classes:["title"]},{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"description",attributes:{}}],classes:["description"]},{type:"VIEWOUTLET",tagname:"view",name:"buttonActionView"}],classes:["banner-view-inner"]}],classes:["banner-view"]},__QUALIFIED_CLASS_NAME__:"BannerView"},title:o.b({type:String}),description:o.b({type:String}),buttonActionView:o.b({type:p.a})})),v=n(405),_=n(131);n(0),n(5),n(10),n(62),n.d(t,"a",function(){return y}),n.d(t,"b",function(){return C});var y=i.b("BannerActionPresentationType",{BUTTON:"button",LINK:"link"}),C=r.a.extend({mixinDependencies:[a.a,_.a],viewClass:b,view:o.b({type:b,downstreamBindings:{title:"(owner).title",description:"(owner).description",buttonActionView:"(owner).buttonActionView"}}),bannerId:o.b({type:String}),actionPresentationType:o.b({type:y,defaultValue:y.LINK}),delegate:s.d({type:v.a}),localizedTitle:o.b({type:h.a}),localizedDescription:o.b({type:h.a}),localizedActionTitle:o.b({type:h.a}),title:o.b({type:String,dependencies:["localizedTitle.value"],writeDependencies:["localizedTitle"],get:Object.assign(function(e){return e||this.getPath("localizedTitle.value")},{__CW__getter:function(e,t,n,i){return e||i.internalGetPath(this,t[0+n])}}),set:Object.assign(function(e){if(!c.a(e,h.a))return e;this.localizedTitle=e},{__CW__setter:function(e,t,n,i,r){if(!c.a(e,h.a))return e;n[0+i]=e}}),writeDependencySetPathMap:["false"]}),description:o.b({type:String,dependencies:["localizedDescription.value"],writeDependencies:["localizedDescription"],get:Object.assign(function(e){return e||this.getPath("localizedDescription.value")},{__CW__getter:function(e,t,n,i){return e||i.internalGetPath(this,t[0+n])}}),set:Object.assign(function(e){if(!c.a(e,h.a))return e;this.localizedDescription=e},{__CW__setter:function(e,t,n,i,r){if(!c.a(e,h.a))return e;n[0+i]=e}}),writeDependencySetPathMap:["false"]}),actionTitle:o.b({type:String,dependencies:["localizedActionTitle.value"],writeDependencies:["localizedActionTitle"],get:Object.assign(function(e){return e||this.getPath("localizedActionTitle.value")},{__CW__getter:function(e,t,n,i){return e||i.internalGetPath(this,t[0+n])}}),set:Object.assign(function(e){if(!c.a(e,h.a))return e;this.localizedActionTitle=e},{__CW__setter:function(e,t,n,i,r){if(!c.a(e,h.a))return e;n[0+i]=e}}),writeDependencySetPathMap:["false"]}),buttonActionView:o.b({dependencies:["actionTitle","actionPresentationType"],readOnly:!0,get:Object.assign(function(){if(this.actionTitle){var e=this.actionPresentationType===y.LINK?m.a:null;return p.a.create({mixinDependencies:[f.a],desiredFontSize:8,symbolMetadata:e,layoutMode:"glyphBox",title:this.actionTitle,action:"_bannerActionDidClick",target:this})}},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n])){var r=i.internalGet(this,t[1+n])===y.LINK?m.a:null;return p.a.create({mixinDependencies:[f.a],desiredFontSize:8,symbolMetadata:r,layoutMode:"glyphBox",title:i.internalGet(this,t[0+n]),action:"_bannerActionDidClick",target:this})}}})}),init:function(e,t,n,i,r){this.__s._$1qp$init.call(this),l.a(e)&&u.b("[BannerViewController] No banner id specified"),l.a(t)&&u.b("[BannerViewController] No banner title specified"),l.a(n)&&u.b("[BannerViewController] No banner description specified"),this.bannerId=e,this.title=t,this.description=n,this.actionTitle=i,this.actionPresentationType=r},didAttach:function(){var e=arguments;this.__s._$20b$didAttach.apply(this,e),this._measureLayoutContext()},updateBanner:function(e,t){this.title=e,this.description=t},availableContentAreaDidChange:function(){this._measureLayoutContext()},_bannerActionDidClick:function(){this.delegate.bannerActionDidClick(this)},_measureLayoutContext:function(){if(this.isAttached){var e=this.view.element.getBoundingClientRect(),t=e.left,n=e.top,i=e.height,r=e.width;this.layoutContext=d.a.create({x:t,y:n,width:r,height:i})}},__superMap:{_$1qp$init:"init",_$20b$didAttach:"didAttach"},staticMembers:{__QUALIFIED_CLASS_NAME__:"BannerViewController"}})},function(e,t,n){"use strict";var i=n(818),r=n(78),a=n(81),o=n(819),s=n(866),c=n(241),l=n(302),u=n(1079),d=n(51),h=n(1090),p=n(1088),f=(n(3),"cksharews"),m=n(26),g=n(1085),b=n(579),v=n(205),_=n(586),y=n(408),C=n(120),I=n(11);n(4),n(3),n.d(t,"a",function(){return w});var w=i.a.extend(r.b,{mixinDependencies:[g.a],currentShareRecord:a.d({type:v.b}),delegate:a.d({type:b.a}),shouldResolveShortGuid:function(e,t){return e&&t!==_.a.identifier},resolveShortGuid:function(e,t,n){var i=this;e||o.b("[ShareAcceptanceController] - No user details has been provided"),t||o.b("[ShareAcceptanceController] - No short guid specified to resolve"),this.currentShareRecord&&o.b("[ShareAcceptanceController] - Resolving the previous shared record");var r=e.isAuthenticated,a=c.a.create(),s=r?this._getPartitionForAuthenticatedState():"https://ckdatabasews.icloud.com",u=e.details;n===C.a.identifier&&u&&!u.brMigrated?this.delegate.upgradeToiCloudDrive():n===y.a.identifier&&u&&!u.notesMigrated?this.delegate.upgradeToNotes():Object(l.b)(a,t,"com.apple.cloudkit",s).then(function(e){if(e&&e.recordInfo&&!e.recordInfo.share)return i.delegate.shareWasInvalid(i),e;var a=u?u.dsid:"",o=v.b.create(e,t,n,a);return i.currentShareRecord=o,e&&e.isOK?r?(o.isPublicShare||o.shareeAcceptanceStatus===v.a.INVITED||o.outOfNetworkParticipantList.length>0)&&o.shareeAcceptanceStatus!==v.a.ACCEPTED?i.delegate.acceptShare(i,o,r):o.shareeAcceptanceStatus===v.a.ACCEPTED&&i.delegate.shareWasAccepted(i,o):(i.delegate.authenticateWithShareInfo(i,o,r),o.isPublicShare||(i.currentShareRecord=void 0)):(r?i.delegate.shareUnavailable(i,o):i.delegate.signInAndShowShareUnavailable(i),i.currentShareRecord=void 0),e})},acceptShare:function(e,t,n){var i=this,r=this.currentShareRecord,a=r.fileType,o=r.isPublicShare,s=r.shortGuid;if(o&&!e)this.delegate.signInAndAcceptShare(this,this.currentShareRecord);else{var u=c.a.create(),d=this._getPartitionForAuthenticatedState();Object(l.a)(u,s,"com.apple.cloudkit",d).then(function(e){return e&&e.isOK?n?i.delegate.openiWorkPreview(i,n):i.delegate.shareWasAccepted(i,i.currentShareRecord,t):(i.delegate.shareUnavailable(i,a),i.currentShareRecord=void 0),e})}},verifyAccess:function(){this.delegate.verifyAccess(this)},declineShare:function(){this.currentShareRecord=void 0,this.delegate.shareWasNotAccepted(this)},clearShare:function(){this.currentShareRecord=void 0},sendVerificationLink:function(e,t){return function(e,n){var i={shortGUID:e,participantId:t};return Object(d.a)(Object(u.d)(f,"ws/v1/com.apple.cloudkit/production/share/vetting/initiate"),{method:"POST",body:i})}(e)},shouldResolveVettingToken:function(){return!!m.a.sharedInstance.vettingParameters},resolveVettingToken:function(e){var t=this,n=m.a.sharedInstance.vettingParameters,i=n.vettingToken,r=n.vettingStatus;e.isAuthenticated?function(e){var t={vettingToken:e};return Object(d.a)(Object(u.d)(f,"ws/v1/com.apple.cloudkit/production/share/token/getPermission"),{method:"POST",body:t}).then(function(e){return e.ok?e.json().then(function(t){return t&&!t.error?h.a.create({status:p.a.SUCCESS,data:t}):h.a.create({status:p.a.ERROR,data:e})}):h.a.create({status:p.a.ERROR,data:e})})}(i).then(function(n){if(n.isOK){var a=n.data.share;if("updated"!==r){var o=a.potentialMatchList[0].contactInformation.phoneNumber,c=I.a.configuration.urls,l=(o?c.vettingUrlForPhone:c.vettingUrlForEmail)+"?key="+i+"&id="+e.details.alternateDSID;window.open(s.a.create(l).toString(),"_self")}else t.resolveShortGuid(e,a.shortGUID)}else t.delegate.shareUnavailable(t)}):this.delegate.signInAndResolveVettingToken()},_getPartitionForAuthenticatedState:function(){return Object(u.d)("ckdatabasews","").slice(0,-1)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ShareAcceptanceController"}})},function(e,t,n){var i=n(55).f,r=n(74),a=n(45)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,a)&&i(e,a,{configurable:!0,value:t})}},function(e,t,n){var i=n(116),r=n(45)("toStringTag"),a="Arguments"==i(function(){return arguments}());e.exports=function(e){var t,n,o;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),r))?n:a?i(t):"Object"==(o=i(t))&&"function"==typeof t.callee?"Arguments":o}},function(e,t,n){var i=n(9),r=n(122),a=n(34),o=n(333),s="["+o+"]",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(e,t,n){var r={},s=a(function(){return!!o[e]()||"​"!="​"[e]()}),c=r[e]=s?t(d):o[e];n&&(r[n]=c),i(i.P+i.F*s,"String",r)},d=u.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(l,"")),e};e.exports=u},function(e,t){e.exports={}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819);function r(e){for(var t=[],n=/((?:(?:\\\\)*|(?:\\\.)|[^\\.])+)(?:\.|$)/g,r=e.length;n.lastIndex<r;){var a=n.exec(e);0===(a=a[1]).length&&Object(i.b)("Cannot parse a property path with an empty component ('%{path}').",{path:e}),a=(a=a.replace(/\\\./g,".")).replace(/\\\\/g,"\\"),t.push(a)}return t}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){return null===e||"object"!==(void 0===e?"undefined":i(e))&&"function"!=typeof e}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(84),r=n(821),a=i.a.extend({debugType:"Base",isCacheable:!0,calculateValueForNode:null,previousValueWasReplaced:r.a,flushNode:r.a,notifyNode:r.a,didAddParentToNode:r.a,didRemoveParentFromNode:r.a,didAddChildToNode:r.a,didRemoveChildFromNode:r.a,willRemoveChildFromNode:r.a,willRemoveParentFromNode:r.a,validateDescendantDownstreamNodeManager:r.a,wasDirtiedByParent:r.a,wasDirtiedBySelf:r.a,nodeWillFree:r.a,addDebugInfoForNode:r.a,staticMembers:{__QUALIFIED_CLASS_NAME__:"NodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(819),r=n(94),a=n(856),o=n(373),s={mixinDependencies:[r.a,o.a],length:a.a.define(),toArray:function(){for(var e=this.createIterator().retain(),t=[],n=0;e.get("isValid");){var i=e.get("value");t[n++]=i,e.moveToNext()}return e.release(),t},encodedToArray:function(){for(var e=this.createIterator().retain(),t=[],n=0;e.isValid;){var i=e.encodedValue;t[n++]=i,e.moveToNext()}return e.release(),t},reduce:function(e,t,n){var r,a,o=this.createIterator().retain();for(arguments.length>=2?(r=t,a=0):o.isValid?(r=o.value,o.moveToNext(),a=1):Object(i.b)("reduce of empty array with no initial value");o.isValid;){var s=o.value;r=e.call(n,r,s,a++,this),o.moveToNext()}return o.release(),r},find:function(e,t){for(var n=this.createIterator().retain(),i=0;n.get("isValid");){var r=n.get("value");if(e.call(t,r,i++,this))return n.release(),r;n.moveToNext()}n.release()},every:function(e,t){for(var n=this.createIterator().retain(),i=0;n.get("isValid");){var r=n.get("value");if(!e.call(t,r,i++,this))return n.release(),!1;n.moveToNext()}return n.release(),!0},some:function(e,t){for(var n=this.createIterator().retain(),i=0;n.get("isValid");){var r=n.get("value");if(e.call(t,r,i++,this))return n.release(),!0;n.moveToNext()}return n.release(),!1},forEach:function(e,t){for(var n=this.createIterator().retain(),i=0;n.get("isValid");){var r=n.get("value");e.call(t,r,i++,this),n.moveToNext()}n.release()},contains:function(e){return this.encodedContains(this.encode(e))},encodedContains:function(e){for(var t=this.createIterator().retain();t.isValid;){if(t.encodedValue===e)return t.release(),!0;t.moveToNext()}return t.release(),!1},_isCwCollection:!0}},function(e,t,n){"use strict";n.d(t,"a",function(){return b});var i=n(81),r=n(100),a=n(828),o=n(819),s=n(377),c=n(863),l=n(98),u=n(78),d=n(99),h=n(500),p=n(230),f=n(866),m=n(374),g=n(868),b=h.a.extend({staticMembers:{nextRequestSequenceNumber:1,requestLoggingLevel:null,__QUALIFIED_CLASS_NAME__:"Request"},URLClass:f.a,url:Object(l.b)({get:function(){return this._urlObject},set:function(e){var t;if(e){var n=this.URLClass;t=Object(a.a)(e,n)?e:n.create(e)}this._urlObject=t}}),method:d.a.GET,useCredentialsIfCrossOrigin:!1,bodySerializer:Object(i.d)(g.a.sharedInstance),response:Object(l.b)(),responseSerializer:Object(i.d)({get:function(){return this._responseSerializer||this.get("serializer")}}),isCrossDomain:Object(i.d)({readOnly:!0,get:function(){var e=this.get("url");if(!e)return!1;var t=e.get("protocol"),n=e.get("host");if(!n)return!1;var i=window.location;return i.protocol!==t||i.host!==n}}),transport:Object(i.d)({get:function(e){return e||m.a.get("sharedInstance")}}),allowsCredentialsInURL:!1,shouldTrackUploadProgress:Object(l.b)({defaultValue:!1,didChange:function(){this.state!==d.b.UNSENT&&Object(o.b)("Cannot change `shouldTrackUploadProgress` once a request is sent.")}}),shouldTrackProgress:Object(l.b)({defaultValue:!1,didChange:function(){this.state!==d.b.UNSENT&&Object(o.b)("Cannot change `shouldTrackProgress` once a request is sent.")}}),uploadProgress:Object(l.b)({readOnly:!0,dependencies:["shouldTrackUploadProgress"],get:Object.assign(function(){return this.shouldTrackUploadProgress?p.a.create():null},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?p.a.create():null}})}),progress:Object(l.b)({readOnly:!0,dependencies:["shouldTrackProgress"],get:Object.assign(function(){return this.shouldTrackProgress?p.a.create():null},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?p.a.create():null}})}),_fireDidProgress:Object(u.g)("progress.didChange","uploadProgress.didChange",function(){this.triggerStatusEvent(d.b.PROGRESS)}),headers:Object(i.d)(),setHeader:function(e,t){var n=this.get("headers");if(!n){if(null==t)return;n={}}Object(s.a)(n,e,t),this.set("headers",n)},setMultipleHeaders:function(e){var t=this.get("headers")||{};for(var n in e)Object(s.a)(t,n,e[n]);this.set("headers",t)},removeHeader:function(e){this.setHeader(e,null)},on:function(e,t){_(this,e,t)},onStatus:function(e,t){/^[\d*]{3}$/.test(e)?_(this,e,t):Object(o.b)(e+" is an invalid status code listener for request",this)},delegate:null,sequenceNumber:Object(i.d)({readOnly:!0,defaultValue:function(){return this.constructor.nextRequestSequenceNumber++}}),sentAt:null,willSend:null,didSend:null,didProgress:null,didSucceed:null,didAbort:null,didFail:null,didComplete:null,shouldFinalizeWithResponse:null,_logRequestIfAppropriate:function(){this.sentAt=window.performance.now();var e,t=this.constructor.requestLoggingLevel;t&&(e=this.get("bodyShouldBeLogged")?this.get("encodedBody")||"(empty)":"(omitted)",c.b[t]("--\x3e Request "+this.get("sequenceNumber")+": "+this.get("method")+" to "+this.getPath("url.href")+", headers: "+(this.get("headers")||"(empty)")+", body: "+e))},bodyShouldBeLogged:!1,_logResponseIfAppropriate:function(){var e=this.constructor.requestLoggingLevel,t=this.get("sequenceNumber");if(e)if(this.get("state")!==d.b.TIMEDOUT){var n,i=this.get("response"),r=window.performance.now()-this.sentAt;n=this.get("bodyShouldBeLogged")?i.get("encodedBody")||"(empty)":"(omitted)",c.b[e]("<-- Response "+t+": "+i.get("status")+" ("+r+"ms), headers: "+(i.get("headers")||"(empty)")+", body: "+n)}else c.b[e]("<-- Response "+t+": (timed out)")},send:function(){var e=this._promise=r.a.create();return v(this),e},sendSynchronously:function(){this.get("timeout")&&Object(o.b)("Cannot send a synchronous request with a timeout",this),v(this,!0)},abort:function(){if(this.get("state")===d.b.SENDING){var e=this.get("transport");this.get("method")!==d.a.GET&&c.b.warn("A non-GET network request was aborted. Data may have already been changed on the server.",this),e.abort(this),this.set("state",d.b.ABORTED),this.triggerStatusEvent(d.b.ABORTED),this.finalize()}},triggerStatusEvent:function(e){var t,n,i,r,a=this.get("delegate")||this,o=this._statusEventListeners;if(e===d.b.SENT&&this._logRequestIfAppropriate(),e===d.b.COMPLETED&&this._logResponseIfAppropriate(),(n=a[e])&&n.call&&n.call(a,this),o&&(t=o[e]))for(i=0,r=t.length;i<r;i++)(n=t[i])&&n(this);var s=this._promise;s&&(e===d.b.SUCCEEDED?(this._promise=void 0,s.resolve(this.response)):e===d.b.FAILED&&(this._promise=void 0,s.reject(this.response)))},triggerStatusEvents:function(){for(var e=0,t=arguments.length;e<t;e++)this.triggerStatusEvent(arguments[e])},finalize:function(){this._isFinalized=!0,this.get("transport").finalize(this),this.triggerStatusEvent(d.b.FINALIZED),delete this._statusEventListeners},toJSON:function(){return this.getPropertiesAsObject("url","method","body","headers","response")},_promise:Object(i.d)()});function v(e,t){(e.get("state")!==d.b.UNSENT||e._isFinalized)&&Object(o.b)("Cannot send a request more than once",e);var n=e.get("url");n?n.get("auth")&&!e.get("allowsCredentialsInURL")&&Object(o.b)("This request is not allowed to use authentication",e):Object(o.b)("Cannot send a request without a URL",e);var i=e.get("transport");e.set("state",d.b.SENDING),e._synchronous=t,i.send(e)}function _(e,t,n){var i=e._statusEventListeners||(e._statusEventListeners={});(i[t]||(i[t]=[])).push(n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var i=n(818),r=n(824),a=n(86),o=n(102),s=n(378),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}();function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var u=o.b.Possible,d=o.b.Began,h=o.b.Changed,p=o.b.Ended,f=o.b.Failed,m=o.b.Cancelled,g=["pointerUp","pointerCancel"],b=function(){function e(){l(this,e),this._map=new Map}return e.prototype.get=function(){var e=this._map;return e.get.apply(e,arguments)},e.prototype.set=function(){var e=this._map;return e.set.apply(e,arguments)},e.prototype.add=function(e,t){var n=this._map,i=n.get(e);i||(i=new Set,n.set(e,i)),i.add(t)},e.prototype.has=function(e,t){var n=this._map.get(e);return!!n&&n.has(t)},e.prototype.hasAny=function(e){var t=this._map.get(e);return!!t&&t.size>0},e.prototype.delete=function(e,t){var n=this._map,i=n.get(e);i&&(i.delete(t),0===i.size&&n.delete(e))},e.prototype.deleteAll=function(e){this._map.delete(e)},e.prototype.clear=function(){this._map.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._map.values()},e.prototype.entries=function(){return this._map.entries()},c(e,[{key:"size",get:function(){return this._map.size}}]),e}(),v=function(){function e(){l(this,e),this._map=new b,this._reverseMap=new b}return e.prototype.add=function(e,t){var n=this._map,i=this._reverseMap;n.add(e,t),i.add(t,e)},e.prototype.get=function(e){return this._map.get(e)},e.prototype.getKeys=function(e){return this._reverseMap.get(e)},e.prototype.has=function(e,t){return this._map.has(e,t)},e.prototype.hasKey=function(e){return this._map.hasAny(e)},e.prototype.hasValue=function(e){return this._reverseMap.hasAny(e)},e.prototype.delete=function(e,t){var n=this._map,i=this._reverseMap;n.delete(e,t),i.delete(t,e)},e.prototype.deleteKey=function(e){var t=this._map,n=this._reverseMap,i=t.get(e);i&&(i.forEach(function(t){return n.delete(t,e)}),t.deleteAll(e))},e.prototype.deleteValue=function(e){var t=this._map,n=this._reverseMap,i=n.get(e);i&&(i.forEach(function(n){return t.delete(n,e)}),n.deleteAll(e))},e.prototype.clear=function(){var e=this._map,t=this._reverseMap;e.clear(),t.clear()},e.prototype.keys=function(){return this._map.keys()},e.prototype.values=function(){return this._reverseMap.keys()},e.prototype.entries=function(){return this._map.entries()},c(e,[{key:"sizeKeys",get:function(){return this._map.size}},{key:"sizeValues",get:function(){return this._reverseMap.size}}]),e}(),_=i.a.extend(r.a,{staticMembers:{_sequences:Object(a.c)(Set),addGestureRecognizersWithEvent:function(e,t,n){if("pointerDown"===e){var i=this._sequences,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o;s.retain(this,"GestureRecognitionEventSequence#handleEvent: existing sequence");var c=s.addGestureRecognizersWithEvent(n,t);if(s.release(this,"GestureRecognitionEventSequence#handleEvent: existing sequence"),c)return!0}var l=this.create().retain(this,"GestureRecognitionEventSequence#handleEvent: new sequence"),u=l.addGestureRecognizersWithEvent(n,t);return u&&this._sequences.add(l),l.release(this,"GestureRecognitionEventSequence#handleEvent: new sequence"),u}},handleEvent:function(e,t){if("pointerDown"!==e)return!1;var n=t.pointerId,i=this._sequences,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o;if(s.gestureRecognizersByPointerId.hasKey(n))return s.handleEvent(e,t),!0}return!1},cancelGestureRecognizer:function(e){e.state=f,e.reset()},__QUALIFIED_CLASS_NAME__:"GestureRecognitionEventSequence"},gestureRecognizers:Object(a.c)(Set),addGestureRecognizersWithEvent:function(e,t){var n=this,i=t.pointerId,r=this.gestureRecognizers,a=this.gestureRecognizersByPointerId,o=this.gestureRecognizerFailureDependencies;if(!a.hasKey(i)&&r.size){var s=r,c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var d;if(c){if(l>=s.length)break;d=s[l++]}else{if((l=s.next()).done)break;d=l.value}var h=d;this._isGestureRecognizerAllowedToHandleEvents(h)&&h.shouldReceive(t)&&this._gestureRecognizerIsInterestedInPointerId(h,i)}if(!a.hasKey(i))return!1}var p=Array.from(e).filter(function(e){return e.isEnabled&&!e.sequence}).filter(function(e){return e.shouldReceive(t)});if(p.forEach(function(e){return n._gestureRecognizerIsInterestedInPointerId(e,i)}),0===p.length)return a.hasKey(i);var m=p,g=Array.isArray(m),b=0;for(m=g?m:m[Symbol.iterator]();;){var v;if(g){if(b>=m.length)break;v=m[b++]}else{if((b=m.next()).done)break;v=b.value}var _=v;r.add(_),_.sequence=this;var y=!1,C=r,I=Array.isArray(C),w=0;for(C=I?C:C[Symbol.iterator]();;){var S;if(I){if(w>=C.length)break;S=C[w++]}else{if((w=C.next()).done)break;S=w.value}var A=S;if(A!==_&&((_.shouldRequireFailureOf(A)||A.shouldBeRequiredToFailBy(_))&&o.add(_,A),A.shouldRequireFailureOf(_)||_.shouldBeRequiredToFailBy(A))){var O=A.state;if(O!==u&&O!==f){y||(_.state=f,y=!0);continue}o.add(A,_)}}}return!0},handleEvent:function(e,t){var n=this,i=this.gestureRecognizers,r=this.gestureRecognizerFailureDependencies,a=t.pointerId;this._isHandlingEvent=!0,i.forEach(function(i){if(n._isGestureRecognizerAllowedToHandleEvents(i)&&n._isGestureRecognizerInterestedInEvent(i,t)){i[e](t);var a=i.state;!i.shouldPreventDefault||a!==d&&a!==h&&a!==p||r.hasKey(i)||t.preventDefault()}}),this._isHandlingEvent=!1,this._flushPendingStateChanges(),this.isPooled||g.includes(e)&&(this.gestureRecognizersByPointerId.deleteKey(a),this.releasePointerCapture(a))},_pendingStateChanges:Object(a.c)(Set),_flushPendingStateChanges:function(){var e=this,t=this._pendingStateChanges;t.forEach(function(t){e.isPooled||e.gestureRecognizerStateChanged(t,t.state)}),t.clear()},gestureRecognizerStateChanged:function(e,t){if(this._isHandlingEvent)this._pendingStateChanges.add(e);else switch(t){case m:this._callActionIfAllowed(e);case f:this._gestureRecognizerDidFail(e),this._cleanupGestureRecognizer(e);break;case d:case h:case p:this._callActionIfAllowed(e);break;default:throw new Error("GestureRecognitionEventSequence#gestureRecognizerStateChanged: invalid state "+t)}},gestureRecognizerIgnoredPointerId:function(e,t){var n=this.gestureRecognizersByPointerId;n.delete(t,e),n.hasKey(t)||this.releasePointerCapture(t)},gestureRecognizerFailureDependencies:Object(a.c)(v),gestureRecognizersByPointerId:Object(a.c)(v),cleanup:function(){var e=this;this.gestureRecognizers.forEach(function(t){return e._cleanupGestureRecognizer(t)}),this.gestureRecognizersByPointerId.clear(),this.gestureRecognizerFailureDependencies.clear(),this._begunGestureRecognizers.clear(),this._pendingStateChanges.clear(),this._isHandlingEvent=!1,this.constructor._sequences.delete(this),this.__s._$4j_$cleanup.call(this)},_cleanupGestureRecognizer:function(e){var t=this.gestureRecognizersByPointerId,n=t.getKeys(e);if(t.deleteValue(e),n){var i=n,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o;t.hasKey(s)||this.releasePointerCapture(s)}}this.gestureRecognizerFailureDependencies.deleteValue(e),this.gestureRecognizers.delete(e),this._pendingStateChanges.delete(e),e.reset()},_begunGestureRecognizers:Object(a.c)(Set),_gestureRecognizerDidBegin:function(e){var t=this._begunGestureRecognizers;if(!t.has(e)){t.add(e);var n=this.gestureRecognizerFailureDependencies;Array.from(this.gestureRecognizers).filter(function(t){return t!==e}).filter(function(t){return!y(e,t)}).filter(function(t){return!n.has(t,e)}).forEach(function(e){return e.state=f})}},_gestureRecognizerDidFail:function(e){var t=this,n=this.gestureRecognizerFailureDependencies,i=n.getKeys(e);n.deleteValue(e),i&&i.forEach(function(e){n.hasKey(e)||t._callActionIfAllowed(e)})},_gestureRecognizerIsInterestedInPointerId:function(e,t){var n=this.gestureRecognizersByPointerId;n.hasKey(t)||this.setPointerCapture(t),n.add(t,e)},_isGestureRecognizerInterestedInEvent:function(e,t){return this.gestureRecognizersByPointerId.has(t.pointerId,e)},_isGestureRecognizerAllowedToHandleEvents:function(e){var t=e.state;return t===u||t===d||t===h},_callActionIfAllowed:function(e){var t=e.state;t!==u&&t!==f&&(this.gestureRecognizerFailureDependencies.hasKey(e)||(e.gestureWasRecognized(),t!==d&&t!==h||this._gestureRecognizerDidBegin(e),t===p&&(Array.from(this.gestureRecognizers).filter(function(t){return t!==e}).filter(function(t){return!y(e,t)}).forEach(function(e){return e.state=f}),this._cleanupGestureRecognizer(e))))},__superMap:{_$4j_$cleanup:"cleanup"}});function y(e,t){return!!e.shouldRecognizeSimultaneouslyWith(t)||!!t.shouldRecognizeSimultaneouslyWith(e)}["sendEvent","getPointerCapture","setPointerCapture","releasePointerCapture"].forEach(function(e){_.prototype[e]=function(){s.a[e].apply(this,arguments)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({MOUSE:"MOUSE",TOUCH:"TOUCH"})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(818),r=n(853),a=n(859),o=n(863),s=n(200),c=n(99),l=n(59),u=i.a.create({statsQueue:r.a.create(),queueStat:function(e){this.statsQueue.push(e)},scheduleFlush:function(){var e=this,t=l.a.flushInterval;a.a.create({delay:t,timesToFire:"Infinity",callAction:function(){o.b.debug("Broadcaster timer called..."),e.sendStats()}}).start()},sendStats:function(){try{if(0===this.statsQueue.length)return;var e={stats:this.statsQueue.toArray()};if(this.statsQueue=r.a.create(),l.a.isSendingStatsEnabled){var t=s.a.create({url:"https://feedbackws.icloud.com/reportStats",method:"POST",body:JSON.stringify(e)});t.on(c.b.SUCCEEDED,function(e){o.b.info("Successfully sent reportStat")}),t.on(c.b.FAILED,function(){o.b.info("reportStat request failed")}),t.send()}else o.b.info("The following stats have been recorded but will not be sent to feedbackws because we are in debug mode",e)}catch(e){o.b.info("reportStat request failed",e)}},sendCrashError:function(e){var t=s.a.create({url:"https://feedbackws.icloud.com/reportError",method:"POST",body:e});return t.on(c.b.SUCCEEDED,function(e){o.b.info("reportError sent successfully")}),t.on(c.b.FAILED,function(){o.b.info("reportError request failed")}),t.send()}})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return u});var i=n(818),r=n(78),a=n(81),o=n(98),s=n(1067),c=n(205),l=n(1080),u=i.a.extend(r.b,{launchUrl:a.d({type:String}),launchStat:a.d({type:l.a}),targetUIStateWhenLaunched:a.d({type:s.a}),launchSource:o.b({type:i.a}),shortGuid:a.d({type:String}),shareRecord:a.d({type:c.b}),launchItem:a.d({type:Object}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildApplicationContext"}})},function(e,t,n){"use strict";(function(e){n(4),n(3),n.d(t,"a",function(){return y}),n.d(t,"b",function(){return w});var i=n(95),r=n(818),a=n(78),o=n(98),s=n(81),c=n(86),l=n(825),u=n(80),d=n(322),h=n(301),p=n(408),f=n(240),m=n(239),g=n(238),b=n(120),v=n(128),_=n(1079),y=i.b("ShareAcceptanceStatus",{ACCEPTED:"ACCEPTED",INVITED:"INVITED",UNKNOWN:"UNKNOWN"}),C=["pages","numbers","keynote"],I=r.a.extend(a.b,{id:o.b({type:String}),emailAddress:o.b({type:String}),phoneNumber:o.b({type:String}),staticMembers:{__QUALIFIED_CLASS_NAME__:"OONParticipant"}}),w=r.a.extend({init:function(e,t,n,i){this.__s._$XB$init.call(this),this.ckShareRecord=e.recordInfo,this.shortGuid=t,this.dsid=i,this._extractCloudKitResponse(e,n),this.fileType=this._getFileType(this.applicationIdentifier)},applicationIdentifier:s.d({type:String}),downloadURL:s.d({type:String}),fileExtension:s.d({type:String}),fileType:s.d({type:String}),iconURL:s.d({type:String}),thumbnailIconURL:s.d({type:String}),isFolderSharing:s.d({type:Boolean,defaultValue:!1}),isPublicShare:s.d({type:Boolean,defaultValue:!1}),ownerName:s.d({type:String}),shareeAcceptanceStatus:s.d({type:y}),shortGuid:s.d({type:String}),title:s.d({type:String}),ckShareRecord:s.d({type:Object}),outOfNetworkParticipantList:s.d({type:Array,defaultValue:c.c(Array)}),dsid:s.d({type:String}),_extractCloudKitResponse:function(t,n){if(n)this.applicationIdentifier=n;else{var i=l.a(t.__ckRecordInfo,"containerIdentifier"),r=l.a(t.__ckRecordInfo,"rootRecord.fields.extension");this.applicationIdentifier=this._getApplicationIdentifier(i,r)}var a=l.a(t.__ckRecordInfo,"share.fields");if(a){var o=a["cloudkit.title"];o&&(this.title=o.value)}var s=l.a(t.__ckRecordInfo,"ownerIdentity.nameComponents");if(s){var c=s.givenName+" "+s.familyName;c&&(this.ownerName=c)}var u=l.a(t.__ckRecordInfo,"rootRecord.fields.extension"),p=void 0;if(u&&(p=this.fileExtension=u.value)){var f=d.a.sharedInstance.fetchIcon(p,128,e.devicePixelRatio,[h.a.WEB,h.a.IOS]);f&&(this.iconURL=f.iconURL),C.includes(p)&&(this.thumbnailIconURL=this._getThumbnailUrl())}var m=l.a(t.__ckRecordInfo,"rootRecord.recordName");m&&m.includes("directory")&&(this.isFolderSharing=!0);var g=this.title+"."+p,b=l.a(t.__ckRecordInfo,"rootRecord.fields.fileContent.value.downloadURL");b&&(this.downloadURL=b.replace("${f}",g));var v=l.a(t.__ckRecordInfo,"share.publicPermission");v&&"NONE"!==v&&(this.isPublicShare=!0);var _=l.a(t.recordInfo,"participantStatus");this.shareeAcceptanceStatus=_?y.getItemForValue(_):y.UNKNOWN;var w=l.a(t._ckRecordInfo,"potentialMatchList");if(w&&w.length>0)for(var S=0;S<w.length;S++){var A=I.create();A.id=w[S].participantId,w[S].contactInformation.emailAddress&&(A.emailAddress=w[S].contactInformation.emailAddress),w[S].contactInformation.phoneNumber&&(A.phoneNumber=w[S].contactInformation.phoneNumber),this.outOfNetworkParticipantList.push(A)}},_getFileType:function(e){return e?u.d("CloudOS."+e+".FileType"):""},_getApplicationIdentifier:function(e,t){if("com.apple.clouddocs"===e)switch(t){case"pages":return f.a.identifier;case"numbers":return m.a.identifier;case"key":return g.a.identifier;default:return b.a.identifier}else{if("com.apple.notes"===e)return p.a.identifier;if("com.apple.reminders"===e)return v.a.identifier}},_getThumbnailUrl:function(){var e=128*(window.devicePixelRatio||1);return Object(_.d)("iworkthumbnailws","iw/ws/thumbnail")+"?short_token="+this.shortGuid+"&width="+e+"&height="+e+"&dsid="+this.dsid},__superMap:{_$XB$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ShareRecord"}})}).call(this,n(31))},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s});var i=n(818),r=n(819),a=n(81),o=n(160),s=i.a.extend({staticMembers:{createFromResponse:function(e){e||r.b("CloudKitResponse: init: no response specified");var t=s.create();return e.hasErrors?(t._responseStatus=o.a.CLOUD_KIT_ERROR,t._responseError=e.errors[0]):(t._responseStatus=o.a.OK,(t._ckRecordInfo=e.results[0])||r.b("CloudKitResponse: init: Invalid response object, no error or record info found")),t},createFromError:function(e){var t=s.create();return t._responseStatus=o.a.CLOUD_KIT_EXCEPTION,t._responseError=e,t},__QUALIFIED_CLASS_NAME__:"CloudKitResponse"},status:a.d({type:o.a,readOnly:!0,get:function(){return this._responseStatus}}),isOK:a.d({type:Boolean,readOnly:!0,get:function(){return this._responseStatus===o.a.OK}}),errorCode:a.d({readOnly:!0,get:function(){var e=void 0;return this.status===o.a.CLOUD_KIT_ERROR&&(e=this._responseError.ckErrorCode),e}}),error:a.d({readOnly:!0,get:function(){return this._responseError}}),recordInfo:a.d({readOnly:!0,get:function(){return this._ckRecordInfo}}),isRecoverableCKError:a.d({type:Boolean,readOnly:!0,get:function(){var t=this.errorCode,n=!1;if(t){var i=e.CloudKit.CKError;switch(t){case i.SERVICE_UNAVAILABLE:case i.NETWORK_ERROR:case i.TRY_AGAIN_LATER:case i.THROTTLED:n=!0}}return n}}),_responseError:a.d(),_ckRecordInfo:a.d(),_responseStatus:a.d({type:o.a,defaultValue:function(){return o.a.NONE}})})}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(819),r=n(100),a=n(892),o=n(869),s=n(861);function c(e,t,n){var c=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1e3;if(!t)throw new i.a("performCSSAnimation: missing animationClassToAdd");var l=e.classList;return l.add(t),n&&l.remove(n),function(e,t){if(!e)throw new i.a("waitForCSSAnimation: missing element");if(!t)throw new i.a("waitForCSSAnimation: missing maxDuration");var n=r.a.create(),c=void 0,l=function t(i){a.a(e,"animationend",t),a.a(e,"animationcancel",t),clearTimeout(c),n.resolve()};return o.a(e,"animationend",l),o.a(e,"animationcancel",l),c=s.a(function(){l()},t),n}(e,c)}},function(e,t,n){"use strict";var i=n(818),r=n(80),a=n(1060),o=n(1046),s=n(1092),c=n(1078),l=n(95).b("AuthenticationState",{NOT_AUTHENTICATED:0,PARTIALLY_AUTHENTICATED_HSA:1,AUTHENTICATED:2,PARTIALLY_AUTHENTICATED_MANAGED_APPLE_ID:3}),u=n(305),d=n(306),h=n(414),p=n(307),f=n(308),m=n(309),g=n(415),b=n(310),v=n(416),_=n(311),y=n(304),C=n(11),I=n(29),w=n(36),S=n(113),A=n(182),O=n(67),E=n(23),T=n(588),D=n(134);n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"a",function(){return L});var L=i.a.extend({staticMembers:{getCloudOSActions:function(){var e=[],t=[u.a,d.a,h.a,p.a,f.a,m.a,g.a,b.a,v.a,_.a,y.a],n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var o=r;e=e.concat(Array.from(Object(a.a)(o)))}return e},getAccountPreferences:function(e){var t=e.accountPreferences,n={};if(t){var i=t.preferencesData.entries(),r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o,c=s[0],l=s[1];n[c]=l}}return n},getAppPreferences:function(e,t){for(var n=t.getPreferences(e),i={},r=0,a=e.length;r<a;r++){var o=e[r],s={},c=n.get(o);if(c){var l=c.entries(),u=Array.isArray(l),d=0;for(l=u?l:l[Symbol.iterator]();;){var h;if(u){if(d>=l.length)break;h=l[d++]}else{if((d=l.next()).done)break;h=d.value}var p=h,f=p[0],m=p[1];s[f]=m}}i[o]=s}return i},getLocales:function(e){var t=new Set(e);return T.a.filter(function(e){return t.has(e.locale)})},getFlattenedQuotaData:function(e){var t=e.quotaStatus,n=e.storageUsageInfo,i=e.storageUsageByMedia,r=e.familyStorageUsageInfo;return{overQuota:t.overQuota,haveMaxQuotaTier:t.haveMaxQuotaTier,"almost-full":t.almostFull,paidQuota:t.paidQuota,compStorageInBytes:n.compStorageInBytes,usedStorageInBytes:n.usedStorageInBytes,totalStorageInBytes:n.totalStorageInBytes,commerceStorageInBytes:n.commerceStorageInBytes,storageUsageByMedia:i.map(function(e){return e.serialize()}),familyStorageUsageInfo:r?r.serialize():void 0}},getCloudOSState:function(e){var t=o.a.sharedInstance,n=C.a.hostName,i=C.a.clientId,a=C.a.configuration.rawConfiguration,u=!!a&&a.isCarryUser,d=a?a.dsInfo.statusCode:void 0,h=s.a.sharedInstance,p={horizontal:h.sizeClassHorizontal.value,vertical:h.sizeClassVertical.value},f=h.visualViewport,m=c.a.sharedInstance.current,g=m.domain,b=m.subdomain,v=m.dataUserDomain,_="www."+g,y=b===c.a.subDomains.BETA,T=b===c.a.subDomains.CARRY,L=b===c.a.subDomains.FUTURE,N=O.a.sharedInstance.regionFormattingRules,M=O.a.sharedInstance.regionFormatBaseUrl,P=O.a.sharedInstance.regionFormatRulesVersion,x=C.a.supportedLocales,R=C.a.childApplicationSupportedLocales,j=this.getLocales(x),F=this.getLocales(R),V=e?e.configuration.identifier:null,U=e?e.configuration.displayName:null,k=S.a.sharedInstance,B=w.a.sharedInstance.configurations.toArray().map(function(e){return e.applicationInfo.authBagId}),z=this.getAppPreferences(B,k),W=this.getAccountPreferences(k),H=null,$=null;if(k.accountPreferences){var G=k.accountPreferences.getStartupInfoForApp(e.path);G&&(H=G.url,$=G.serialize())}var K=E.a.sharedInstance.cloudOSUser.details,Q=function(e,t){return 0===e?l.NOT_AUTHENTICATED:e<t?l.PARTIALLY_AUTHENTICATED_HSA:l.AUTHENTICATED}(K.completedAuthenticationStep,K.totalAuthenticationSteps).value,q=A.a.sharedInstance.storageQuota,Y=q?this.getFlattenedQuotaData(q):void 0,X=D.a.sharedInstance.meCard,J=C.a.configuration.environment,Z=I.a.sharedInstance.getChildApplicationController(e).currentHistoryState.applicationRelativePath||null;return{accountMenu:{items:[{title:r.d("CloudOS.AccountMenu.Settings.Title"),target:"CloudOS",action:"showAccountSettings",disableWhenCurrentApp:"settings"},{title:r.d("CloudOS.Authentication.SignOutButton.Title"),target:"CloudOS",action:"performLogout"}],width:200},accountPreferences:W,additionalClassNamesForBody:v,appPreferences:z,appsInfo:null,authBag:a,availableLocales:j,clientId:i,currentlyActiveApplication:V,defaultAssetHostname:_,displayName:U,environment:J,hostname:n,isBeta:y,isCarry:T,isCarryUser:u,isFuture:L,isCloudOS2:!0,primaryInteractionMode:C.a.primaryInteractionMode,isOnSupportedMobile:null,localesSupportedByAllApps:F,meCard:X?X.serialize():null,mininumWindowSize:{width:320,height:240},pushToken:null,quotaData:Y,sizeClass:p,visualViewport:f,regionFormattingRules:N,regionFormattingRulesBaseUrl:M,regionFormattingRulesVersion:P,requestedStartupUrl:H,requestedStartupInfo:$,route:Z,secureChannelInfoData:null,statSessionId:t.identifier,userAuthenticationState:Q,userStatusCode:d,versions:null}},getCloudOSStateWithQuota:function(e){return{quotaData:this.getFlattenedQuotaData(e)}},__QUALIFIED_CLASS_NAME__:"LegacyCloudOSStateUtils"}})},function(e,t,n){"use strict";var i=n(818),r=n(100),a=n(837),o=n(81),s=n(1110),c=n(830),l={mixinDependencies:[n(1050).a],name:"AuthenticationServiceProtocol",version:"0.0.1",authenticate:c.a.define(),unauthenticate:c.a.define()},u=n(23),d=n(1074);n(1),n(0),n(2),n(4),n(3),n.d(t,"b",function(){return h}),n.d(t,"a",function(){return p}),n.d(t,"c",function(){return f});var h="com.apple.icloud.cloudos.authenticationService",p="Authentication Service",f=i.a.extend({mixinDependencies:[s.a,l,d.a],staticMembers:{notifyApplicationsAuthenticationStateHasChanged:function(e,t){var n=m(e);if(n)for(var i=0,r=n.length;i<r;i++)n[i].updateAuthenticationState(t)},notifyApplicationsAuthenticationDidComplete:function(e,t){var n=m(e);if(n)for(var i=0,r=n.length;i<r;i++)n[i].updateAuthenticationDidComplete(t)},notifyApplicationsAuthenticationDidCancel:function(e){var t=m(e);if(t)for(var n=0,i=t.length;n<i;n++)t[n].updateAuthenticationDidCancel()},__QUALIFIED_CLASS_NAME__:"AuthenticationService"},updateAuthenticationState:function(e){var t=this.processReference.remoteProxy;!this._isBackwardsCompatibleMode&&t&&t.authenticationStepDidComplete(e.serialize())},updateAuthenticationDidComplete:function(e){var t=e.serialize();if(this._isBackwardsCompatibleMode)this._backwardsCompatibilityAuthenticationPromise.resolve(t);else{var n=this.processReference.remoteProxy;n&&n.authenticationDidComplete(t)}},updateAuthenticationDidCancel:function(){if(this._isBackwardsCompatibleMode)this._backwardsCompatibilityAuthenticationPromise.resolve();else{var e=this.processReference.remoteProxy;e&&e.authenticationDidCancel()}},serviceWasRegistered:function(){this.processReference.createListenerOnlyMessagingChannel(l,this)},authenticate:function(){var e=this._backwardsCompatibilityAuthenticationPromise=r.a.create();return u.a.sharedInstance.authenticateUser(),e},unauthenticate:function(){u.a.sharedInstance.unauthenticateUser()},authenticateUser:function(){u.a.sharedInstance.authenticateUser()},unauthenticateUser:function(){u.a.sharedInstance.unauthenticateUser()},reauthenticateUser:function(e){var t=this;u.a.sharedInstance.reauthenticateUser(e).then(function(e){e.isOK?t.processReference.remoteProxy.retrieveSessionDidComplete():e.isCanceled&&t.processReference.remoteProxy.retrieveSessionDidCancel()})},retrieveSession:function(e,t,n){var i=this;a.a(t)||(t=1/0),u.a.sharedInstance.retrieveSession(e,t,n).then(function(e){e.isOK?i.processReference.remoteProxy.retrieveSessionDidComplete(e.data):e.isCanceled&&i.processReference.remoteProxy.retrieveSessionDidCancel()})},_isBackwardsCompatibleMode:o.d({type:Boolean,readOnly:!0,get:function(){return void 0!==this._backwardsCompatibilityAuthenticationPromise}}),_backwardsCompatibilityAuthenticationPromise:o.d({type:r.a})});function m(e){return e.serviceInstancesByIdentifier(h)}},function(e,t,n){"use strict";var i=n(98),r=n(100),a=n(81),o=n(878),s=n(859),c=n(933),l=n(1088),u=n(1080),d=n(1159),h=n(133),p=n(80),f=n(67),m=n(11),g=n(315);n(0),n(4),n(3),n(33),n.d(t,"a",function(){return b});var b=h.a.extend({iconSize:i.b({type:Number}),init:function(e){this.__s._$Wz$init.call(this),this.iconSize=e||60},prepareIcon:function(){var e=this;this._iconDrawingCompletionPromise=r.a.create();var t=function(){return e._setupCanvas()},n=function(){return e._failedToLoadFont()};return this._loadFont(this._monthDayFontFamily,function(){e._loadFont(e._weekDayFontFamily,t,n)},n),this._iconDrawingCompletionPromise},_iconDrawingCompletionPromise:a.d({type:r.a}),_iconCanvas:a.d(),_canvasContext:a.d({get:function(){return this._iconCanvas.getContext("2d")}}),_iconSizeWithDPR:a.d({type:Number,get:function(){var e=o.a.sharedInstance.devicePixelRatio;return this.iconSize*Math.floor(e)}}),_redrawtimer:a.d({type:s.a,strong:!0}),_useStaticImage:i.b({type:Boolean,defaultValue:!1}),_iconBackgroundUrl:a.d({readOnly:!0,type:String,get:function(){return n(954)}}),_distanceFromTopToDrawWeekday:a.d({readOnly:!0,type:Number,get:function(){var e=o.a.sharedInstance.devicePixelRatio;return.3*this.iconSize*Math.floor(e)}}),_weekDayFontFamily:a.d({type:String,defaultValue:"SFText Calendar Day Of Week"}),_weekDayFontWeight:a.d({type:String,defaultValue:"500"}),_weekDayTextColor:a.d({type:String,defaultValue:"#FF3B30"}),_weekDayMaxFontSize:a.d({readOnly:!0,get:function(){var e=o.a.sharedInstance.devicePixelRatio;return Math.floor(11*this.iconSize/60)*Math.floor(e)}}),_monthDayFontFamily:a.d({type:String,defaultValue:"SFDisplay Calendar Day Of Month"}),_monthDayFontWeight:a.d({type:String,defaultValue:"200"}),_monthDayTextColor:a.d({type:String,defaultValue:"#030303"}),_monthDayMaxFontSize:a.d({readOnly:!0,get:function(){var e=o.a.sharedInstance.devicePixelRatio;return Math.floor(36*this.iconSize/60)*Math.floor(e)}}),_desiredIconTextWidth:a.d({get:function(){var e=o.a.sharedInstance.devicePixelRatio;return this._iconSizeWithDPR-.0833*this.iconSize*Math.floor(e)*2}}),_distanceFromTopToDrawMonthday:a.d({readOnly:!0,get:function(){var e=o.a.sharedInstance.devicePixelRatio;return.817*this.iconSize*Math.floor(e)}}),_previousPaintedValues:a.d({defaultValue:{}}),_setupCanvas:function(){var e=this;this._iconCanvas||(this._iconCanvas=document.createElement("canvas"));var t=this._iconCanvas;t.style.width=this.iconSize+"px",t.style.height=this.iconSize+"px",t.width=t.height=this._iconSizeWithDPR,this._drawIcon(),f.a.sharedInstance.listen("localeOrRegionFormatChanged",function(){return e._drawIcon()})},_showStaticIcon:function(){var e;this.iconSrc=(e=m.a.locale,o.a.sharedInstance.devicePixelRatio>1?v.get(e)["2x"]:v.get(e)["1x"]),this._iconDrawingCompletionPromise.resolve(this.finalImageLoadPromise)},_drawIcon:function(){var e,t=this,n=(e=(new Date).getDay(),p.d("CalendarIcon."+["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"][e])),i=(new Date).getDate();n===this._previousPaintedValues.weekDay&&i===this._previousPaintedValues.monthDay||(this._canvasContext.clearRect(0,0,this.iconSize,this.iconSize),this._drawBaseIcon().then(function(e){e===l.a.SUCCESS?t._drawWeekday(n).then(function(e){e===l.a.SUCCESS?t._drawMonthday(i).then(function(e){e===l.a.SUCCESS?(t.iconSrc=t._iconCanvas.toDataURL(),t._iconDrawingCompletionPromise.resolve(t.finalImageLoadPromise),t._previousPaintedValues={weekDay:n,monthDay:i},t._redrawIconOnDateChange()):t._showStaticIcon()}):t._showStaticIcon()}):t._showStaticIcon()}))},_drawBaseIcon:function(){var e=this._iconSizeWithDPR,t=this._canvasContext,n=this._iconBackgroundUrl,i=r.a.create(),a=new Image;return Object(g.a)(a,n).then(function(n){n===l.a.SUCCESS?(t.drawImage(a,0,0,e,e),i.resolve(l.a.SUCCESS)):i.resolve(l.a.ERROR)}),i},_drawWeekday:function(e){return this._drawCanvasElement(e,this._weekDayFontFamily,this._weekDayFontWeight,this._weekDayTextColor,this._weekDayMaxFontSize,this._desiredIconTextWidth,this._distanceFromTopToDrawWeekday)},_drawMonthday:function(e){return this._drawCanvasElement(e,this._monthDayFontFamily,this._monthDayFontWeight,this._monthDayTextColor,this._monthDayMaxFontSize,this._desiredIconTextWidth,this._distanceFromTopToDrawMonthday)},_drawCanvasElement:function(e,t,n,i,a,s,c){var h=o.a.sharedInstance.devicePixelRatio,p=this._canvasContext,f=this._iconSizeWithDPR,m=r.a.create();p.font=n+" "+a+"px "+t;for(var g=p.measureText(e).width,b=a;g>=s&&b>0;)b-=1,p.font=n+" "+b+"px "+t,g=p.measureText(e).width;if(b<5*h){var v=u.a.create("CalendarIconUnableToLoad",{error:"Calendar icon "+e+" string was too long."}).time();d.b.sharedInstance.recordStat(v),m.resolve(l.a.ERROR)}else p.textAlign="center",p.fillStyle=i,p.fillText(e,f/2,c),m.resolve(l.a.SUCCESS);return m},_loadFont:function(e,t,n){var i=u.a.create("fontDetection",{fontName:e}).time();c.a(e,{timeout:500,success:function(){t(),i.success()},fail:function(){n(),i.failure()},complete:function(){return d.b.sharedInstance.recordStat(i)}})},_failedToLoadFont:function(){this._showStaticIcon()},_redrawIconOnDateChange:function(){var e=1*new Date,t=6e4*(new Date).getTimezoneOffset(),n=864e5*Math.ceil((e-t)/864e5)-(e-t);this._redrawTimer&&this._redrawTimer.stop(),(this._redrawTimer=s.a.create({delay:n+1,target:this,action:"_drawIcon"})).start()},__superMap:{_$Wz$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CalendarIconView"}}),v=new Map([["ar-sa",{"1x":n(955),"2x":n(956)}],["ca-es",{"1x":n(957),"2x":n(958)}],["cs-cz",{"1x":n(959),"2x":n(960)}],["da-dk",{"1x":n(961),"2x":n(962)}],["de-de",{"1x":n(963),"2x":n(964)}],["el-gr",{"1x":n(965),"2x":n(966)}],["en-au",{"1x":n(967),"2x":n(968)}],["en-ca",{"1x":n(969),"2x":n(970)}],["en-gb",{"1x":n(971),"2x":n(972)}],["en-nz",{"1x":n(973),"2x":n(974)}],["en-us",{"1x":n(975),"2x":n(976)}],["es-es",{"1x":n(977),"2x":n(978)}],["es-mx",{"1x":n(979),"2x":n(980)}],["fi-fi",{"1x":n(981),"2x":n(982)}],["fr-ca",{"1x":n(983),"2x":n(984)}],["fr-fr",{"1x":n(985),"2x":n(986)}],["hi-in",{"1x":n(987),"2x":n(988)}],["hr-hr",{"1x":n(989),"2x":n(990)}],["hu-hu",{"1x":n(991),"2x":n(992)}],["id-id",{"1x":n(993),"2x":n(994)}],["it-it",{"1x":n(995),"2x":n(996)}],["iw-il",{"1x":n(997),"2x":n(998)}],["ja-jp",{"1x":n(999),"2x":n(1e3)}],["ko-kr",{"1x":n(1001),"2x":n(1002)}],["ms-my",{"1x":n(1003),"2x":n(1004)}],["nl-nl",{"1x":n(1005),"2x":n(1006)}],["no-no",{"1x":n(1007),"2x":n(1008)}],["pl-pl",{"1x":n(1009),"2x":n(1010)}],["pt-br",{"1x":n(1011),"2x":n(1012)}],["pt-pt",{"1x":n(1013),"2x":n(1014)}],["ro-ro",{"1x":n(1015),"2x":n(1016)}],["ru-ru",{"1x":n(1017),"2x":n(1018)}],["sk-sk",{"1x":n(1019),"2x":n(1020)}],["sv-se",{"1x":n(1021),"2x":n(1022)}],["th-th",{"1x":n(1023),"2x":n(1024)}],["tr-tr",{"1x":n(1025),"2x":n(1026)}],["uk-ua",{"1x":n(1027),"2x":n(1028)}],["vi-vi",{"1x":n(1029),"2x":n(1030)}],["zh-cn",{"1x":n(1031),"2x":n(1032)}],["zh-hk",{"1x":n(1033),"2x":n(1034)}],["zh-tw",{"1x":n(1035),"2x":n(1036)}]])},function(e,t,n){var i=n(114),r=n(32),a=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:i.version,mode:n(149)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){var i=n(116);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==i(e)?e.split(""):Object(e)}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";var i=n(30);e.exports=function(){var e=i(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var i=n(30),r=n(63),a=n(45)("species");e.exports=function(e,t){var n,o=i(e).constructor;return void 0===o||void 0==(n=i(o)[a])?t:r(n)}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var i=n(98),r=n(78),a=n(846),o=n(819),s=n(871),c=i.a.extend({type:s.a,init:function(e){var t=arguments;return"string"==typeof e?this.__s._$cl$init.call(this,{viewOutlet:e}):this.__s._$cl$init.apply(this,t)},initializeMember:function(e,t){var n=arguments,i=this.__s._$hM$initializeMember.apply(this,n),a=this,o="_"+t+"DidChange",s="_"+t,c="_"+t+"_view";return this._internalValueKey=s,this._internalViewKey=c,e.registerMetadata(o,Object(r.h)(t,t+".view",function(e,t){a.childViewControllerDidChange(this,e,t)})),i},childViewControllerDidChange:function(e,t,n){var i=e[this._internalValueKey],r=e[this._internalViewKey];e[this._internalValueKey]=t,e[this._internalViewKey]=n,i===t&&r===n||this.transition.call(e,i,r,t,n,this)},inheritFrom:function(e){var t=arguments;this.__s._$zz$inheritFrom.apply(this,t),this.viewOutlet||(this.viewOutlet=e.viewOutlet)},transition:function(e,t,n,i,r){e&&e.retain(),n&&n.retain();var s=r.viewOutlet;if(s||Object(o.b)("ChildViewController expects a `viewOutlet` to write to"),n&&(n._destinationViewOutlet=s),e!==n){e&&e.willMoveToParentViewController(null),n&&n.willMoveToParentViewController(this);var c=a.a.begin();e!==n&&this._isViewLoaded&&c.set(this.view,s,i),e&&this.removeChildViewController(e,c),n&&this.addChildViewController(n,c),c.end(),e&&e.didMoveToParentViewController(null),n&&n.didMoveToParentViewController(this)}else t!==i&&this._isViewLoaded&&(this.view[s]=i);e&&e.release(),n&&n.release()},__superMap:{_$cl$init:"init",_$hM$initializeMember:"initializeMember",_$zz$inheritFrom:"inheritFrom"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildViewControllerProperty"}}),l=function(e){return c.define.apply(c,arguments)}},function(e,t,n){"use strict";n.d(t,"b",function(){return d}),n.d(t,"a",function(){return p});var i=n(81),r=n(86),a=n(388),o=n(102),s=o.b.Began,c=o.b.Changed,l=o.b.Ended,u=o.b.Failed,d=100;function h(e){var t=e.x,n=e.y;return Math.sqrt(t*t+n*n)}var p=o.a.extend({_correctedStartingLocation:null,translation:Object(i.d)({get:function(){var e=this.location,t=this._correctedStartingLocation;return e&&t?{x:e.x-t.x,y:e.y-t.y}:{x:NaN,y:NaN}},set:function(e){var t=this.location,n=this._correctedStartingLocation;t&&n&&(n.x=t.x-e.x,n.y=t.y-e.y)}}),velocity:Object(i.d)({readOnly:!0,get:function(){var e={x:0,y:0},t=function(t){var n=t.length-1;if(0===n)return"continue";var i=t.reduce(function(e,i,r){if(r===n)return e;var a=t[r+1],o=i.timestamp-a.timestamp,s=Math.min(o,d-e.elapsedTime),c=i.x-a.x,l=i.y-a.y,u=s/o;return e.x+=c*u,e.y+=l*u,e.elapsedTime+=s,e},{x:0,y:0,elapsedTime:0}),r=i.x,a=i.y,o=i.elapsedTime,s={x:r/o,y:a/o};h(s)>h(e)&&(e=s)},n=this._trackedPointerLocations.values(),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}t(a)}return e}}),location:Object(i.d)({get:function(){var e=0,t=0,n=this._trackedPointerLocations,i=n.values(),r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o[0];e+=s.x,t+=s.y}var c=n.size;return{x:e/=c,y:t/=c}}}),stateGenerator:a.a,_trackedPointerLocations:Object(r.c)(Map),_updatePointerLocation:function(e){var t=e.pointerId,n=e.clientX,i=e.clientY,r=this._trackedPointerLocations,a=performance.now(),o=r.get(t);if(o){var s=o[0];a===s.timestamp?(s.x=n,s.y=i):o.unshift({x:n,y:i,timestamp:a})}else o=[],r.set(t,o),o.unshift({x:n,y:i,timestamp:a});for(var c=a-d,l=o.length-1;l>=0;l--)if(o[l].timestamp>=c){o.splice(l+2);break}},pointerDown:function(e){if(0===this._trackedPointerLocations.size){this._updatePointerLocation(e);var t=this.location;this._correctedStartingLocation=t,this.state=s}else{var n=this.translation;this._updatePointerLocation(e),this.translation=n,this.state=c}},pointerMove:function(e){this._updatePointerLocation(e),this.state=c},pointerUp:function(e){this._updatePointerLocation(e);var t=this._trackedPointerLocations;if(1===t.size)this.state=l;else{var n=this.translation;t.delete(e.pointerId),this.translation=n,this.state=c}},pointerCancel:function(e){this.state=u},reset:function(){this.__s._$2ha$reset.call(this),this._trackedPointerLocations.clear(),this._correctedStartingLocation=null},__superMap:{_$2ha$reset:"reset"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PanGestureRecognizer"}})},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return d});var i=n(156),r=n(102),a=n(388),o=n(873),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c={mixinDependencies:[o.a],gestureRecognizerShouldActivateButton:function(e,t){var n=e.view.element,i=t.target;return n===i||n.contains(i)}},l=r.b.Began,u=r.b.Changed,d=i.b.extend({stateGenerator:a.a,delegate:s({},o.a,c),willGestureSucceed:!1,shouldAllowMovementOutsideTarget:!1,pointerDown:function(e){var t=arguments;this.willGestureSucceed=this._willGestureSucceed(e),this.__s._$hi$pointerDown.apply(this,t),this.state=l},pointerMove:function(e){var t=arguments;this.willGestureSucceed=this._willGestureSucceed(e),this.__s._$lJ$pointerMove.apply(this,t);var n=this.state;n!==l&&n!==u||(this.state=u)},pointerUp:function(e){var t=arguments;this.willGestureSucceed=this._willGestureSucceed(e),this.__s._$tC$pointerUp.apply(this,t)},_willGestureSucceed:function(e){return this.delegate.gestureRecognizerShouldActivateButton(this,e)},shouldFailGesture:function(e){var t=arguments;return this.shouldAllowMovementOutsideTarget&&1===this.numberOfTapsRequired?"pointerUp"===e.cwType&&!this._willGestureSucceed(e):this.__s._$_C$shouldFailGesture.apply(this,t)},reset:function(){this.willGestureSucceed=!1,this.__s._$10T$reset.call(this)},didEnterPool:function(){var e=arguments;this.shouldAllowMovementOutsideTarget=!1,this.__s._$126$didEnterPool.apply(this,e)},__superMap:{_$hi$pointerDown:"pointerDown",_$lJ$pointerMove:"pointerMove",_$tC$pointerUp:"pointerUp",_$_C$shouldFailGesture:"shouldFailGesture",_$10T$reset:"reset",_$126$didEnterPool:"didEnterPool"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ButtonTapGestureRecognizer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return y}),n.d(t,"b",function(){return C});var i=n(104),r=n(86),a=n(818),o=n(102),s=n(873),c=n(224),l=n(156),u=n(98),d=n(878),h=n(552),p=n(554),f=n(555),m=n(942),g=n(61),b=n(551),v=n(553),_=o.b.Ended,y={itemViewDidMove:function(e,t){var n=arguments;this.__s._$Hv$itemViewDidMove.apply(this,n);var i=this.owner.isCellSelected(t);if(e.isSelected=i,i&&e.parent.isFocused){var r=this.owner.selectionController,a=r.extendedTo,o=r.pivot,s=a instanceof Object?a:o;t.handle===s&&e.focus()}},itemViewDidExit:function(e,t){var n=arguments;this.__s._$RU$itemViewDidExit.apply(this,n),e.isInFocusedBranch&&(e.blur(),e.parent.focus())},viewForViewClass:function(e){var t=arguments,n=this.__s._$UI$viewForViewClass.apply(this,t),i=e.hasMixin(s.a)?n:this.owner,r=n.singleTapGestureRecognizer=c.a.create({event:"selectView",delegate:i});n.addGestureRecognizer(r);var a=n.extendGestureRecognizer=c.a.create({modifiers:[l.a.Shift],event:"extendSelectView",delegate:i});n.addGestureRecognizer(a);var o=n.toggleGestureRecognizer=c.a.create({modifiers:[d.a.sharedInstance.isWindows?l.a.Ctrl:l.a.Cmd],event:"toggleSelectView",delegate:i});return n.addGestureRecognizer(o),n},__superMap:{_$Hv$itemViewDidMove:"itemViewDidMove",_$RU$itemViewDidExit:"itemViewDidExit",_$UI$viewForViewClass:"viewForViewClass"}},C={mixinDependencies:[b.a,s.a,c.b,h.a,v.a],viewClass:Object(i.b)({isFocusable:!0,init:function(){var e=arguments;this.__s._$12p$init.apply(this,e);var t=this.clearSelectionTapGestureRecognizer=l.b.create({event:"clearSelection",delegate:this});this.addGestureRecognizer(t)},__superMap:{_$12p$init:"init"}}),selectView:function(e){var t=e.state,n=e.view;if(t===_){var i=this.presenter.cellForView(n);i&&"item"===i.cellType&&this.sendEvent("userSelectionRequest",{view:n,operation:g.a.SET})}},extendSelectView:function(e){var t=e.state,n=e.view;if(t===_){var i=this.presenter.cellForView(n);i&&"item"===i.cellType&&this.sendEvent("userSelectionRequest",{view:n,operation:g.a.EXTEND})}},toggleSelectView:function(e){var t=e.state,n=e.view;if(t===_){var i=this.presenter.cellForView(n);i&&"item"===i.cellType&&this.sendEvent("userSelectionRequest",{view:n,operation:g.a.TOGGLE})}},gestureRecognizerShouldReceive:function(e,t){var n=arguments;if(e.instanceOf(c.a)){var i=e.view;return"item"===this.presenter.cellForView(i).cellType}return this.__s._$1aq$gestureRecognizerShouldReceive.apply(this,n)},userSelectionRequest:function(e){if(e){var t=e.view,n=e.operation,i=this.presenter.cellForView(t);this.selectCell(i,n)}},itemViewClass:Object(i.b)(m.a),presenter:Object(i.b)(y),selectionController:Object(u.b)({defaultValue:Object(r.c)(p.a),downstreamBindings:{collection:"(owner).collection",isMultipleSelectionEnabled:"(owner).isMultipleSelectionEnabled",isEmptySelectionEnabled:"(owner).isEmptySelectionEnabled"}}),selectionDelegate:Object(r.c)(a.a.extend(f.a)),selectItem:function(e,t){if(this.isSelectionEnabled){var n=this.collection.indexOf(e);this.selectItemAtIndex(n,t)}},selectItemAtIndex:function(e,t){if(this.isSelectionEnabled){var n=this.collection.startHandle.at(e);this.userPerformedSelectionOperation(n,t)}},__superMap:{_$1aq$gestureRecognizerShouldReceive:"gestureRecognizerShouldReceive"}}},function(e,t,n){"use strict";n.r(t),function(e){n(1),n(0),n(5),n(2),n(16),n(7),n(15),n(4),n(3),n(6),n(33),n(13),n(58),n(71),n(138),n(60),n(152),n(217),n(191),n.d(t,"SpringboardViewController",function(){return b});var i=n(871),r=n(86),a=n(222),o=n(100),s=n(879),c=n(861),l=n(82),u=n(1098),d=n(606),h=n(1133),p=n(1134),f=n(1119),m=n(131),g=n(1120),b=i.a.extend({mixinDependencies:[u.a,m.a],viewClass:f.a,transitioningDelegate:r.c(p.a),appSwitcherViewController:a.b({viewOutlet:"appSwitcherView",defaultValue:r.c(d.a,{attachesOwnChildViews:!1,itemViewClass:g.a}),downstreamBindings:{size:"(owner).view.size"}}),profileSummaryViewController:a.b({viewOutlet:"profileSummaryView",defaultValue:r.c(h.a)}),cloudOSUserDidUpdate:function(e){this.profileSummaryViewController.cloudOSUser=e},prepareForDisplay:function(){var e=[];return e.push(this.appSwitcherViewController.prepareForDisplay()),e.push(this.profileSummaryViewController.prepareForDisplay()),o.a.all(e)},BLUR_DURATION:650,blurredFilterStyle:"blur(35px)",unblurredFilterStyle:s.a.sharedInstance.isChrome?"":"blur(0px)",availableContentAreaDidChange:function(){var e;(e=this.view).availableContentAreaDidChange.apply(e,arguments)},animateToForeground:function(){var e=this;this.view.style.clear("display"),this.view.disableLayoutAnimations(),this.view.displayElements(),this.transitionCoordinator.animateAlongsideTransition(function(t){0===t&&(e._acquireAndFadeOutMockSVElementIfExistent(),e._transitionBlur(-1))})},animationToForegroundDidEnd:function(){this.view.enableLayoutAnimations()},animateToBackground:function(){var e=this;this.transitionCoordinator.animateAlongsideTransition(function(t){0===t&&e._transitionBlur(1)})},animationToBackgroundDidEnd:function(){this.view.style.set("display","none")},_transitionBlur:function(e){var t=e>0?this.blurredFilterStyle:this.unblurredFilterStyle,n=e>0?this.unblurredFilterStyle:this.blurredFilterStyle,i=this.view.element.style,r=this.view.style;i.transition="none",i.filter=n,r.get("filter"),i.transition="filter "+this.BLUR_DURATION+"ms ease-"+(e<0?"out":"in-out"),i.filter=t,clearTimeout(this._lastBlurCleanupTimeout),this._lastBlurCleanupTimeout=c.a(function(){i.transition="",e<0&&(i.filter="")},this.BLUR_DURATION)},_acquireAndFadeOutMockSVElementIfExistent:function(){var t=e.bootstrapMockSpringboardViewElement;if(e.bootstrapMockSpringboardViewElement=void 0,t&&(t.parentNode&&t.parentNode.removeChild(t),!s.a.sharedInstance.isEdge)){this.view.element.appendChild(t),this.blurredFilterStyle=t.style.filter;var n=t.style;n.filter="",n.background="white",n.top="0px",n.zIndex=10,n.opacity=1,l.c(t).get("opacity"),n.transition="opacity "+this.BLUR_DURATION+"ms",n.opacity=0,c.a(function(){return t.parentNode&&t.parentNode.removeChild(t)},this.BLUR_DURATION)}},staticMembers:{__QUALIFIED_CLASS_NAME__:"SpringboardViewController"}})}.call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e,t,n){return Array.prototype.slice.call(e,0|t,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(180),r=n(830),a=n(856),o=n(85),s={mixinDependencies:[i.a],value:Object(o.c)(a.a),remove:Object(o.c)(r.a),add:Object(o.c)(r.a)}},function(e,t,n){"use strict";function i(e){var t=e._exceptionHandling_wrappedFunction;return t?!0===t?e:t:null}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(78),a=n(98),o=n(819),s=n(823),c=n(376),l=i.a.extend(r.b,{staticMembers:{setAsMirror:function(e,t){e.didChange=function(){t.setMultipleValues({bytesTotal:e.get("bytesTotal"),bytesTransferred:e.get("bytesTransferred"),isDeterminate:e.get("isDeterminate")})}},__QUALIFIED_CLASS_NAME__:"NetworkProgress"},init:function(){var e=arguments;this.__s._$P9$init.apply(this,e),this._children=[],this._childListeners={},this.set("childPropertiesToObserve",["bytesTransferred","bytesTotal","isDeterminate"])},isComposite:Object(a.b)({defaultValue:!1}),addChild:function(e){e.instanceOf(l)||Object(o.b)("Must provide a Progress instance.");for(var t=this,n=Object(s.b)(e),i=t._childListeners,r=this.childPropertiesToObserve,a=function(e){t.childDidChange()},c=0,u=r.length;c<u;c++){var d=r[c],h=i[n]||[],p=e.observe(d,a);h.push(p),i[n]=h}this._children.push(e),this.set("isComposite",!0),this.childDidChange()},removeChild:function(e){var t=this._children;e.instanceOf(l)||Object(o.b)("Must provide a Progress instance.");var n=this._childListeners[Object(s.b)(e)];n&&n.forEach(function(e){e.disconnect()});var i=t.indexOf(e);-1!==i&&t.splice(i,1),0===t.length&&(this.set("isComposite",!1),this.setMultipleValues({bytesTotal:0,bytesTransferred:0,isDeterminate:!1})),this.childDidChange()},removeChildren:function(){for(var e;e=this._children.pop();)this.removeChild(e)},childDidChange:Object(r.i)(),childPropertiesToObserve:null,bytesTransferred:Object(a.b)({defaultValue:0}),bytesTotal:Object(a.b)({defaultValue:0}),isDeterminate:Object(a.b)({defaultValue:!1}),setMultipleValues:function(e){var t=this.beginBatchSet();for(var n in e)e.hasOwnProperty(n)&&t.set(n,e[n]);t.end()},bitRateString:Object(a.b)({readOnly:!0,dependencies:["bytesPerSecond"],get:Object.assign(function(){return(Object(c.a)(this.bytesPerSecond)+"ps").replace("bytes","B")},{__CW__getter:function(e,t,n,i){return(Object(c.a)(i.internalGet(this,t[0+n]))+"ps").replace("bytes","B")}})}),bytesPerSecond:Object(a.b)({readOnly:!0,dependencies:["bytesTransferred","percentComplete"],get:Object.assign(function(){var e=this.get("_startTime"),t=Date.now();void 0===e&&(this.set("_startTime",t),e=t);var n=(t-e)/1e3;return 0===n?0:this.bytesTransferred/n},{__CW__getter:function(e,t,n,i){var r=this.get("_startTime"),a=Date.now();void 0===r&&(this.set("_startTime",a),r=a);var o=(a-r)/1e3;return 0===o?0:i.internalGet(this,t[0+n])/o}})}),percentComplete:Object(a.b)({readOnly:!0,dependencies:["bytesTotal","bytesTransferred","isDeterminate"],get:Object.assign(function(){var e=this.bytesTransferred,t=this.bytesTotal;return t&&0!==t?e/t:0},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[1+n]),a=i.internalGet(this,t[0+n]);return a&&0!==a?r/a:0}})}),toString:function(){return("[Progress Instance #"+Object(s.b)(this)+"] "+100*this.get("percentComplete")+"% ("+this.get("bytesTransferred")+" of "+this.get("bytesTotal")+") "+(this.get("isDeterminate")?"":"???")).trim()},didChange:Object(r.i)(),_startTime:null,_valuesDidChange:Object(r.h)("bytesTransferred","bytesTotal","isDeterminate",function(){this.didChange(arguments)}),_children:null,_childListeners:null,_calculateCompositeChildValues:Object(r.h)("childDidChange",function(){if(this.get("isComposite")){for(var e=this.get("childPropertiesToObserve"),t=this._children,n={},i=0,r=e.length;i<r;i++){var a=e[i];n[a]||(n[a]=0);for(var o=0,s=t.length;o<s;o++){var c=t[o];n[a]+=c.get(a)}}this.setMultipleValues(n),t.length||this.set("isComposite",!1)}}),__superMap:{_$P9$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(81),a=n(181),o=n(819),s=n(876),c=Object(a.a)([s.a.SHIFT,s.a.CTRL,s.a.OPTION,s.a.CMD]),l=i.a.extend({init:function(e){var t=arguments;"string"==typeof e?(this.__s._$FC$init.call(this),this._initFromString(e)):this.__s._$FC$init.apply(this,t)},getKeyCode:function(e){var t=e.trim().toUpperCase();return s.a[t]||t.charCodeAt(0)},add:function(e){this.addKey(e)},addKey:function(e){c[e]?this._addModifier(e):this._addSequencedKey(e)},delete:function(e){this.removeKey(e)},removeKey:function(e){c[e]?this._removeModifier(e):this._removeSequencedKey(e)},clear:function(){this.modifiers&&(this.modifiers.length=0),this.keys&&(this.keys.length=0)},toString:function(){var e="";return this.modifiers&&(e+=this.modifiers.sort().join("+")+":"),this.keys&&(e+=this.keys.join(",")),e},contains:function(e){return c[e]?!!this.modifiers&&this.modifiers.includes(e):!!this.keys&&this.keys.includes(e)},has:function(e){return this.contains(e)},length:Object(r.d)({readOnly:!0,get:function(){return(this.keys?this.keys.length:0)+(this.modifiers?this.modifiers.length:0)}}),_initFromString:function(e){var t,n,i,r;if(/\+/.test(e))for(n=0,i=(t=e.split("+")).length;n<i;n++){var a=this.getKeyCode(t[n]);c[a]?this._addModifier(a):(r&&Object(o.b)("Invalid key sequence: "+e+". Key sequences do not support pressing two (non-modifier) keys at the same time"),r=!0,this._addSequencedKey(a))}else for(n=0,i=(t=e.split(/\s/)).length;n<i;n++)this._addSequencedKey(this.getKeyCode(t[n]))},_addModifier:function(e){(this.modifiers||(this.modifiers=[])).push(e)},_addSequencedKey:function(e){(this.keys||(this.keys=[])).push(e)},_removeModifier:function(e){this.modifiers&&(this.modifiers=this.modifiers.filter(function(t){return t!==e}))},_removeSequencedKey:function(e){this.keys&&(this.keys=this.keys.filter(function(t){return t!==e}))},__superMap:{_$FC$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"KeySequence"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n(0);var i=n(78),r=n(98),a=n(838),o=n(284),s=n(81),c=n(881),l=n(82),u={mixinDependencies:[i.b],staticMembers:{className:Object(s.d)({get:function(e){if(Object(a.a)(e)&&this.hasOwnProperty("_className"))return e;if(!this.superclass.kindOf(u))return!1;if(!this.isNamed)return!1;var t=Object(o.a)(this.name.replace(/\$[0-9]+$/,"")).replace(/\./g,"-");return this._className=t}}),shouldInheritClassNames:!0,_classNamesFromJSClassHierarchyCache:null,_getClassNamesFromJSClassHierarchy:function(){if(this.hasOwnProperty("_classNamesFromJSClassHierarchyCache")&&this._classNamesFromJSClassHierarchyCache)return this._classNamesFromJSClassHierarchyCache;var e;if(this.kindOf(u)){if(!1!==this.className&&""!==this.className&&(e=[this.className]),this.shouldInheritClassNames){var t=this._getClassNamesFromJSClassHierarchy.call(this.superclass);e=e?e.concat(t):t}}else e=[];return this._classNamesFromJSClassHierarchyCache=e}},document:document,element:Object(r.b)(),style:Object(r.b)({readOnly:!0,dependencies:["element"],get:Object.assign(function(){return Object(l.c)(this.element)},{__CW__getter:function(e,t,n,i){return Object(l.c)(i.internalGet(this,t[0+n]))}})}),rect:Object(s.d)({readOnly:!0,get:function(){var e=this.element;return Object(c.a)(e)}}),origin:Object(s.d)({readOnly:!0,get:function(){var e=this.rect;return e?{x:e.left,y:e.top}:null}}),additionalClassNames:Object(r.b)({readOnly:!0}),_suppressApplicationOfClassNamesToElement:!0,_applyClassNamesToElement:Object(i.h)("element","additionalClassNames",function(e,t){if(e&&!this._suppressApplicationOfClassNamesToElement){var n=this.element.classList;t&&n.add.apply(n,t);var i=this.constructor._getClassNamesFromJSClassHierarchy();i.length&&n.add.apply(n,i)}}),init:function(){var e=arguments;this.__s._$1_C$init.apply(this,e),this._suppressApplicationOfClassNamesToElement=!1,this._applyClassNamesToElement()},__superMap:{_$1_C$init:"init"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(818),r=n(847),a=i.a.extend(r.a,{generate:function(e,t,n){for(var i in n=n||this.createEventHandler,t){var r=t[i];e[r]=n(i,r)}return e},createEventHandler:function(e,t){return function(n){try{n.cwType=e}catch(n){throw new Error("error handling event of type "+e+" registered to "+t)}this.dispatchEvent(n)}},staticMembers:{__QUALIFIED_CLASS_NAME__:"HandlerGenerator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({MOUSE:"MOUSE",TOUCH:"TOUCH"})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(818),r=n(367),a=i.a.extend(r.a,{staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseValidator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(818),r=n(81),a=n(80),o=i.a.extend({containerIdentifier:r.d({type:String}),partition:r.d({type:String}),recoverableErrorTitleLocKey:r.d({type:String}),localizedRecoverableErrorTitle:r.d({readOnly:!0,get:function(){return a.d(this.recoverableErrorTitleLocKey)}}),recoverableErrorSubtitleLocKey:r.d({type:String}),localizedRecoverableErrorSubtitle:r.d({readOnly:!0,get:function(){return a.d(this.recoverableErrorSubtitleLocKey)}}),unrecoverableErrorTitleLocKey:r.d({type:String}),localizedUnrecoverableErrorTitle:r.d({readOnly:!0,get:function(){return a.d(this.unrecoverableErrorTitleLocKey)}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudKitApplicationInfo"}})},function(e,t,n){"use strict";(function(e){n(3),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"c",function(){return p}),n.d(t,"b",function(){return f});var i=n(833),r=n(905),a=n(863),o=n(819),s=n(11),c=void 0,l=new Map(Object.entries({"nb-no":"no-no","nn-no":"no-no",nb:"no-no",nn:"no-no",he:"iw-il","he-il":"iw-il",pt:"pt-pt","vi-vn":"vi-vi","es-419":"es-mx","es-xl":"es-mx",nl:"nl-nl"}));function u(){var e=new Map,t=s.a.supportedLocales,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r.split("-"),o=a[0],l=a[1];e.has(o)||e.set(o,new Set),e.get(o).add(l)}c=e}function d(e){return i.a(e)&&!r.a(e)||a.b.error("normalizeLocale: A non-empty string is required"),e.replace("_","-").toLowerCase()}function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e;t&&t.navigator||o.b("A valid browser instance is required");var n=t.navigator.languages,i=new Set;if(Array.isArray(n)&&!r.a(n)){var a=n,s=Array.isArray(a),h=0;for(a=s?a:a[Symbol.iterator]();;){var p;if(s){if(h>=a.length)break;p=a[h++]}else{if((h=a.next()).done)break;p=h.value}var f=d(p);l.has(f)&&(f=l.get(f));var m=f.split("-"),g=m[0],b=m[1];c||u();var v=c.get(g);v&&!v.has(b)&&(f=g+"-"+v.values().next().value),i.add(f)}}return i}function p(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e,n=s.a.supportedLocales,i=Array.from(h(t)),r=0,a=i.length;r<a;r++){var o=i[r];if(n.indexOf(o)>-1)return o}return"en-us"}function f(e){return e.substr(0,2).toLowerCase()+"_"+e.substr(3,5).toUpperCase()}}).call(this,n(31))},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return d});var i=n(81),r=n(1045),a=n(1093),o=n(1078),s=n(27),c=n(49),l=n(53),u=s.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(l.a)("guide/keynote-icloud")}]}})}).create({authBagId:"keynote",path:"keynote",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.REGULAR},{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.COMPACT}],supportedSubDomains:[o.a.subDomains.WWW],isPCSRequired:!0,allowsiCloudLiteAccounts:!0,additionalSupportedLocales:["ar-sa","iw-il"],applicationIconUrl1x:n(916),applicationIconUrl2x:n(917),radarComponentId:984069,shouldRedirectForDocument:!0,helpUsesAppleSupportSite:!0}),d=c.a.create({identifier:"keynote",displayNameLocKey:"Keynote.DisplayName",titleNameLocKey:"Keynote.TitleName",generation:u})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return d});var i=n(81),r=n(1045),a=n(1093),o=n(1078),s=n(27),c=n(49),l=n(53),u=s.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(l.a)("guide/numbers-icloud")}]}})}).create({authBagId:"numbers",path:"numbers",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.REGULAR},{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.COMPACT}],supportedSubDomains:[o.a.subDomains.WWW],isPCSRequired:!0,allowsiCloudLiteAccounts:!0,additionalSupportedLocales:["ar-sa","iw-il"],applicationIconUrl1x:n(920),applicationIconUrl2x:n(921),radarComponentId:984069,shouldRedirectForDocument:!0,helpUsesAppleSupportSite:!0}),d=c.a.create({identifier:"numbers",displayNameLocKey:"Numbers.DisplayName",titleNameLocKey:"Numbers.TitleName",generation:u})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return d});var i=n(81),r=n(1045),a=n(1093),o=n(1078),s=n(27),c=n(49),l=n(53),u=s.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(l.a)("guide/pages-icloud")}]}})}).create({authBagId:"pages",path:"pages",generation:1,usesLegacyCloudOSProtocol:!0,supportedDevices:[{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.REGULAR},{primaryInteractionMode:r.a.MOUSE,sizeClass:a.a.COMPACT}],supportedSubDomains:[o.a.subDomains.WWW],isPCSRequired:!0,allowsiCloudLiteAccounts:!0,additionalSupportedLocales:["ar-sa","iw-il"],applicationIconUrl1x:n(922),applicationIconUrl2x:n(923),radarComponentId:984069,shouldRedirectForDocument:!0,helpUsesAppleSupportSite:!0}),d=c.a.create({identifier:"pages",displayNameLocKey:"Pages.DisplayName",titleNameLocKey:"Pages.TitleName",generation:u})},function(e,t,n){"use strict";(function(e){n(3),n.d(t,"b",function(){return g}),n.d(t,"a",function(){return b});var i=n(95),r=n(818),a=n(81),o=n(100),s=n(819),c=n(86),l=n(861),u=n(869),d=n(1080),h=n(1159),p=n(1097),f=n(51),m=n(1096),g=i.b("CloudKitJSStatus",{LOADED:"loaded",LOADED_BUT_BROKEN:"broken",FAILED_TO_LOAD:"failed"}),b=r.a.extend({defaultUrl:"https://cdn.apple-cloudkit.com/ck/2/cloudkit.js",environment:a.d({type:String,defaultValue:"production"}),load:function(t,n){return this._loadPromise?this._loadPromise:e.CloudKit?this._loadPromise=o.a.resolve({status:g.LOADED,currentRetryCount:0}):(this._ckjsLoadStat=d.a.create("ckjsLoad").time(),t&&(this._maxRetries=t),n&&(this._maxDelay=t),(this.url=this._getUrlFromScriptElement()||this.defaultUrl)||s.b("CloudKit.js script tag not found. Please add to webpack.config.js as an externalScript, or set defaultUrl"),this._loadPromise=o.a.create(),this._loadCloudKitJS(),this._loadPromise)},instanceForContainer:function(t,n){var i=this._cloudkitInstances||(this._cloudkitInstances={}),r=this.environment,a=t+"."+n+"."+r;if(i[a])return i[a];var o={containers:[{containerIdentifier:t,environment:r,privateDatabasePartition:n,publicDatabasePartition:n,sharedDatabasePartition:n}],services:{Promise:m.a,fetch:f.a}},s=e.CloudKit.configure(o);return i[a]=p.a.create(s,t,n)},_recordStat:function(e){h.b.sharedInstance.recordStat(e)},_ckjsLoadStat:a.d({type:d.a}),_maxRetries:a.d({type:Number,defaultValue:6}),_currentRetryCount:a.d({type:Number,defaultValue:0}),_maxDelay:a.d({type:Number,defaultValue:8e3}),_loadPromise:a.d({type:o.a}),_cloudkitInstances:c.c({}),_loadHandler:function(){var t=this._currentRetryCount,n=this._loadPromise;e.CloudKit?this._cloudKitLoadDidFinish():n.resolve({status:g.LOADED_BUT_BROKEN,currentRetryCount:t})},_errorHandler:function(){this._cloudKitLoadDidFinish()},_loadCloudKitJS:function(){this._removeScriptElement(this.scriptElement),delete this.scriptElement,this._addScriptElement()},_cloudKitLoadDidFinish:function(){var t=this._loadPromise,n=this._maxRetries;this._ckjsLoadStat.addAdditionalProperties({retryCount:this._currentRetryCount}),e.CloudKit?(this._recordStat(this._ckjsLoadStat.success()),t.resolve({status:g.LOADED,currentRetryCount:this._currentRetryCount})):this._currentRetryCount+1>n?(this._recordStat(this._ckjsLoadStat.failure()),t.resolve({status:g.FAILED_TO_LOAD,currentRetryCount:this._currentRetryCount})):(this._retryWithDelay(),this._currentRetryCount++)},_retryWithDelay:function(){var e=this,t=Math.min(this._maxDelay,1e3*Math.pow(2,this._currentRetryCount));l.a(function(){e._loadCloudKitJS()},t)},_getUrlFromScriptElement:function(){var e=this._findCKJSScriptElement();return e&&e.src},_findCKJSScriptElement:function(){for(var e=document.scripts,t=0,n=e.length;t<n;t++){var i=e[t];if(i.src&&i.src.endsWith("cloudkit.js"))return i}return null},_addScriptElement:function(){var e=this,t=this.scriptElement=document.createElement("script");return u.a(t,"error",function(){return e._errorHandler()}),u.a(t,"load",function(){return e._loadHandler()}),document.head.appendChild(t),t.src=this.url,t},_removeScriptElement:function(e){var t=e&&e.parentNode;t&&t.removeChild(e)},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudKitJS"}})}).call(this,n(31))},function(e,t,n){"use strict";n(6),n.d(t,"a",function(){return s});var i=n(818),r=n(821),a=n(1100),o=n(1101),s=i.a.extend({mixinDependencies:[a.a],animateTransition:function(e){var t=e.toViewController,n=e.fromViewController;Object(o.d)(t.view),n&&Object(o.a)(n.view),e.completeTransition(!0)},animationEnded:r.a,staticMembers:{__QUALIFIED_CLASS_NAME__:"DefaultAnimationController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(81),a=n(86),o=n(100),s=n(904),c=i.a.extend({animateAlongsideTransition:function(e,t){this._animationBlocks.push(e),t&&this._completionBlocks.push(t)},animateTo:function(e,t,n){return this._animate(0,e,t,n)},animateFrom:function(e,t,n,i){return this._animate(e,t,n,i)},completeTransition:function(e){for(var t=this._completionBlocks,n=0,i=t.length;n<i;n++)(0,t[n])(e)},updateAnimation:function(e,t){for(var n=this._animationBlocks,i=0,r=n.length;i<r;i++)(0,n[i])(e,t)},_animationBlocks:r.d({type:Array,defaultValue:a.c([])}),_completionBlocks:r.d({type:Array,defaultValue:a.c([])}),_animationPromise:r.d({type:o.a}),_animate:function(e,t,n,i){var r=this,a=o.a.create(),c=void 0,l=function o(l){c||(c=l);var u=l-c,d=e+(t-e)*Math.min(u/n,1);r.updateAnimation(d,i),u<n?s.a(o):a.resolve()},u=this._animationPromise||o.a.resolve();return this._animationPromise=u.then(function(){return n?(s.a(l),a):(r.updateAnimation(0,i),r.updateAnimation(1,i),a.resolve(),a)})},staticMembers:{__QUALIFIED_CLASS_NAME__:"ViewControllerTransitionCoordinator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(98),r=n(78),a={mixinDependencies:[n(601).a],desiredFontSize:i.b(0),layoutMode:i.b("layoutBox"),symbolMetadata:i.b(),otherSymbolProps:i.b(),_symbolMetadataObserver:r.h({inputs:["desiredFontSize","layoutMode","otherSymbolProps","symbolMetadata"],callback:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments[3];if(i&&t){var r=i.svgPath,a=i[t],o=a.viewBox,s=a.height,c=a.width,l=a.translateX,u=a.translateY,d=a.baseline,h=a.capline,p="matrix(1 0 0 1 "+l+" "+u+")";if(e>0){var f=s*(e/(d-h)),m=c*(f/s);n.style="width: "+m+"px; height: "+f+"px; "+(n.style||"")}n.className="",n.className+="layoutBox"===t?" layout-box":" glyph-box";var g=document.createElement("svg");for(var b in g.setAttribute("viewBox",o),g.setAttribute("version","1.1"),g.setAttribute("xmlns","http://www.w3.org/2000/svg"),n)g.setAttribute(b,n[b]);var v=document.createElement("g");v.setAttribute("transform",p);var _=document.createElement("path");_.setAttribute("d",r),v.appendChild(_),g.appendChild(v),this.icon=g.outerHTML}else this.icon=""}})}},function(e,t,n){"use strict";var i=n(818),r=n(78),a=n(98),o=n(87),s=n(81),c=n(828),l=n(819),u=n(833),d=n(905),h=n(863),p=n(838),f=n(850),m=n(100),g=n(86),b=n(80),v=n(104),_=n(94),y=n(830),C={mixinDependencies:[_.a],remoteInstanceWillBeginLaunching:y.a.define(),remoteInstanceWillFinishLaunching:y.a.define(),remoteInstanceDidFinishLaunching:y.a.define(),remoteInstanceDidTerminate:y.a.define()},I=n(1058),w=n(1067),S=n(1064),A=n(1055),O=n(1080),E=n(1159),T=n(241),D=n(302),L=n(587),N=n(11),M=n(26),P=n(322),x=n(871),R=n(931),j=n(866),F=n(1060),V=n(1051),U=n(1052),k=n(1068),B=n(1065),z=n(877),W=n(930),H=(n(0),W.a.extend({isVisible:a.b({readOnly:!0,dependencies:["remoteInstanceIsVisible"],get:Object.assign(function(){return!this.remoteInstanceIsVisible},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])}})}),remoteInstanceIsVisible:a.b({type:Boolean}),staticMembers:{__QUALIFIED_CLASS_NAME__:"RemoteUIApplicationSpinnerView"}})),$=(n(0),z.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"iframe",name:"iframe",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"remoteInstanceIsVisible",truevalue:"",falsevalue:"view-hidden",attributes:{}}],attributes:{"data-name":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"remoteInstanceName",attributes:{},attribute:"data-name"},"data-title":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"remoteInstanceTitle",attributes:{},attribute:"data-title"},id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"frameId",attributes:{},attribute:"id"},src:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"src",attributes:{},attribute:"src"}}},__QUALIFIED_CLASS_NAME__:"RemoteUIApplicationIFrameView"},frameId:a.b({dependencies:["processId","remoteInstanceName"],readOnly:!0,type:String,get:function(){var e=this.processId,t=this.remoteInstanceName;return d.a(t)?e:t}}),src:a.b({type:String}),processId:a.b({type:String}),remoteInstanceName:a.b({type:String}),remoteInstanceTitle:a.b({type:String}),remoteInstanceIsVisible:a.b({type:Boolean})})),G=(n(7),n(0),z.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"},{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"iframeView"}]},__QUALIFIED_CLASS_NAME__:"RemoteUIApplicationView"},remoteInstanceIsVisible:a.b({type:Boolean,defaultValue:!1}),enableSpinnerView:a.b({type:Boolean}),iframeView:a.b({strong:!0,type:$,downstreamBindings:{remoteInstanceIsVisible:"(owner).remoteInstanceIsVisible"}}),spinnerView:a.b({dependencies:["enableSpinnerView"],strong:!0,readOnly:!0,type:H,get:Object.assign(function(){if(this.enableSpinnerView)return H.create()},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n]))return H.create()}}),downstreamBindings:{remoteInstanceIsVisible:"(owner).remoteInstanceIsVisible"}})})),K=n(821),Q=n(832),q=n(906),Y=n(891),X=n(852),J=n(1072),Z=n(1164),ee=n(1057),te=n(1071),ne=n(1056),ie=(n(1),n(0),n(2),{mixinDependencies:[J.a,Z.a,ee.a],remoteInstanceState:a.b({readOnly:!0,binding:o.c("_remoteInstanceState")}),remoteInstanceIsReadyToTerminate:a.b({readOnly:!0,type:Boolean,binding:o.c("_remoteInstanceIsReadyToTerminate")}),remoteInstanceLoadTimeout:s.d({type:Number,defaultValue:3e4}),delegate:s.d({type:C}),messagingResponseErrorTerminationMethod:s.d({readOnly:!0,type:Function,defaultValue:function(){return this.remoteInstanceDidFatalError}}),remoteInstanceWillConnect:K.a,remoteInstanceWillDisconnect:K.a,childProcessReferenceClass:s.d({type:te.a.constructor,defaultValue:te.a}),loadRemoteInstance:function(e){Object(I.b)(this.remoteInstanceState,I.a.NONE);var t=this.remoteInstanceLoadTimeout,n=this._scheduledTimeoutWasInvokedMethod;this.delegate.remoteInstanceWillBeginLaunching(this),this._createChildProcessReference(e),this.invokeLater(n,t,"REMOTE_INSTANCE_LOAD_TIMEOUT_IDENTIFIER")},runRemoteInstance:function(e){Object(I.b)(this.remoteInstanceState,I.a.LOADED);var t=this._childProcessReference,n=this._hostInfo,i=this._sessionInfo;t.run(i,n,e)},terminateRemoteInstance:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];Object(I.b)(this.remoteInstanceState,I.a.LOADING,I.a.LOADED,I.a.RUNNING,I.a.TERMINATED);var n=this._channel;return this.cancelInvokeLaterMethods(),this._terminateChildProcessReference(t).then(function(){n&&!n.isDisconnected&&n.disconnect(),e._channel=null})},reloadRemoteInstance:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this._reloadPromise||m.a.resolve();return this._reloadPromise=n.then(function(){return e.terminateRemoteInstance(t)}).then(function(){return e.loadRemoteInstance()})},remoteInstanceDidFatalError:function(e,t){return Object(I.b)(this.remoteInstanceState,I.a.LOADING,I.a.LOADED,I.a.RUNNING),u.a(e)||l.b("remoteInstanceDidFatalError requires a reason as an argument"),t&&!Q.a(t)&&l.b("remoteInstanceDidFatalError optional info argument should be a hash"),this._childProcessReference.terminateWithReasonAndInfo(e,t&&t.calleeStack?t:Object(ne.a)(t,2))},createMessagingChannel:function(e,t,n){var i=this._childProcessReference;return i&&i.channel||l.b("Unable to connect to child. Can not create MessagingChannel"),i.createMessagingChannel(e,t,n),i.remoteProxy},childProcessReferenceWillFinishLaunching:function(e,t){this.delegate.remoteInstanceWillFinishLaunching(this,t)},childProcessReferenceDidFinishLaunching:function(e,t){this.cancelInvokeLater("REMOTE_INSTANCE_LOAD_TIMEOUT_IDENTIFIER"),this.delegate.remoteInstanceDidFinishLaunching(this,t)},childProcessReferenceDidTerminate:function(e,t,n){this._cancelAllScheduledTimeoutMethods(),this.delegate.remoteInstanceDidTerminate(this,t,n)},childProcessReferenceWantsReload:function(e){this.reloadRemoteInstance()},childProcessReferenceWillUnload:function(e,t){},childProcessReferenceReportNonFatalError:function(e,t,n){},childProcessReferenceRecordException:function(e,t){},childProcessReferenceIsReadyToTerminateDidChange:function(e,t){this._remoteInstanceIsReadyToTerminate=t},childProcessReferenceStateDidChange:function(e,t){this._remoteInstanceState=t},_channel:s.d({type:q.a}),_childProcessReference:s.d({type:te.a}),_childProcessReferences:s.d({readOnly:!0,type:Set,get:function(){return Y.a.application.childProcessReferences}}),_parentProcessId:s.d({readOnly:!0,type:String,get:function(){return Y.a.application.processId}}),_sessionInfo:s.d({readOnly:!0,type:Object,get:function(){return Y.a.application.sessionInfo}}),_hostInfo:s.d({readOnly:!0,type:Object,get:function(){return Y.a.application.hostInfo}}),_reloadPromise:s.d({type:m.a}),_remoteInstanceState:a.b({type:I.a,defaultValue:I.a.NONE}),_remoteInstanceIsReadyToTerminate:a.b({type:Boolean}),_remoteInstanceTimeoutMethodIdentifers:["REMOTE_INSTANCE_LOAD_TIMEOUT_IDENTIFIER"],_scheduledTimeoutWasInvokedMethod:s.d({readOnly:!0,type:Function,defaultValue:function(){var e=this;return function(t){return e._scheduledTimeoutWasInvoked(t)}}}),_scheduledTimeoutWasInvoked:function(e){"REMOTE_INSTANCE_LOAD_TIMEOUT_IDENTIFIER"===e?this._terminateDueToTimeoutError("Remote instance failed to complete loading before timeout was triggered."):l.b("_scheduledTimeoutWasInvoked called with unknown methodToInvokeIdentifier "+e)},_terminateDueToTimeoutError:function(e){this.remoteInstanceDidFatalError(A.a.TIMEOUT,{errorMessage:e,terminatedProcessState:this.remoteInstanceState.value})},_pendingTimeoutMethodsAreScheduled:function(){var e=this._remoteInstanceTimeoutMethodIdentifers,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var r=i;if(this.isInvokeLaterScheduled(r))return!0}return!1},_cancelAllScheduledTimeoutMethods:function(){var e=this._remoteInstanceTimeoutMethodIdentifers,t=Array.isArray(e),n=0;for(e=t?e:e[Symbol.iterator]();;){var i;if(t){if(n>=e.length)break;i=e[n++]}else{if((n=e.next()).done)break;i=n.value}var r=i;this.isInvokeLaterScheduled(r)&&this.cancelInvokeLater(r)}},_createChildProcessReference:function(e){var t=this._channel,n=this._childProcessReferences,i=this._parentProcessId;Object(F.b)(t,q.a)||l.b("An instance implementing the CW.ChannelProtocol is required");var r=this._childProcessReference=this.childProcessReferenceClass.create({delegate:this,processInfo:{parentProcessId:i,processId:X.a(),processName:e},channel:t});return this.remoteInstanceWillConnect(),r.connect(),n.add(r),r},_terminateChildProcessReference:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=void 0,i=this._childProcessReference,r=this._childProcessReferences;return t||!1!==i.isReadyToTerminate||l.b("Aborting termination of the ChildProcessReference. It's isReadyToTerminate flag is false"),r.delete(i),i.isConnected?(this.remoteInstanceWillDisconnect(),n=i.disconnect()):n=m.a.resolve(),n.then(function(){i.isTerminated||i.terminate(),e._childProcessReference=null,e._remoteInstanceState=I.a.NONE})}}),re=(n(1),n(0),n(2),n(7),x.a.extend({mixinDependencies:[ie,k.a],viewClass:G,url:s.d({type:String}),remoteInstanceName:s.d({type:String}),remoteInstanceTitle:s.d({type:String}),remoteInstanceIsReadyToBeDisplayedTimeout:s.d({type:Number,defaultValue:2e4}),enableSpinnerViewForRemoteInstance:s.d({type:Boolean,defaultValue:!0}),remoteUIState:a.b({readOnly:!0,binding:o.c("_remoteUIState")}),didAttach:function(){var e=arguments;this.loadRemoteInstance(),this.__s._$2mx$didAttach.apply(this,e)},didDetach:function(){var e=this,t=arguments;this.retain(),this.terminateRemoteInstance(!0).finally(function(){return e.release()}),this.__s._$2vW$didDetach.apply(this,t)},remoteInstanceWillConnect:function(){this.createMessagingChannel(k.a,this,B.a)},loadRemoteInstance:function(){var e=this.url,t=this.view,n=this.remoteInstanceName,i=this.remoteInstanceTitle,r=this.enableSpinnerViewForRemoteInstance,a=this.delegate;u.a(e)||l.b("An url is required"),Object(F.b)(a,C)||l.b("A delegate implementing RemoteInstanceDelegateProtocol is required");var o=$.create({remoteInstanceName:n,remoteInstanceTitle:i,src:e});t.iframeView=o,t.enableSpinnerView=r,this._channel=R.a.create({remoteOrigin:j.a.create(e).origin,iframe:o.iframe}),this.__s._$46P$loadRemoteInstance.call(this,n),o.processId=this._childProcessReference.processId},terminateRemoteInstance:function(){arguments.length>0&&void 0!==arguments[0]&&arguments[0];var e=arguments;return this._willEnterForegroundPromise&&(this._willEnterForegroundPromise.resolve(V.a.create({status:U.a.DISCONNECTED})),this._willEnterForegroundPromise=void 0),this._inProgressUIStateTransitionsOperation&&(this._inProgressUIStateTransitionsOperation.cancel(),this._inProgressUIStateTransitionsOperation=void 0),this._pendingUIStateTransitionsOperation&&(this._pendingUIStateTransitionsOperation.cancel(),this._pendingUIStateTransitionsOperation=void 0),this.view.iframeView=void 0,this._remoteUIState=w.a.NONE,this.__s._$4yb$terminateRemoteInstance.apply(this,e)},transitionRemoteInstanceToActiveForeground:function(){Object(I.b)(this.remoteInstanceState,I.a.RUNNING);var e=ae.create({targetUIStateWhenFinished:w.a.ACTIVE_FOREGROUND,operationPromise:m.a.create()});return this._performUIStateTransitionsOperation(e),e.operationPromise},transitionRemoteInstanceToInactiveForeground:function(){Object(I.b)(this.remoteInstanceState,I.a.RUNNING);var e=ae.create({targetUIStateWhenFinished:w.a.INACTIVE_FOREGROUND,operationPromise:m.a.create()});return this._performUIStateTransitionsOperation(e),e.operationPromise},transitionRemoteInstanceToBackground:function(){Object(I.b)(this.remoteInstanceState,I.a.RUNNING);var e=ae.create({targetUIStateWhenFinished:w.a.BACKGROUND,operationPromise:m.a.create()});return this._performUIStateTransitionsOperation(e),e.operationPromise},isReadyToBeDisplayed:function(){Object(I.b)(this.remoteInstanceState,I.a.RUNNING);var e=this._willEnterForegroundPromise;c.a(e,m.a)||l.b("isReadyToBeDisplayed missing willEnterForegroundPromise instance"),this._willEnterForegroundPromise=void 0,this._cancelAllScheduledTimeoutMethods(),e.resolve(V.a.create({status:U.a.OK}))},childProcessReferenceDidFinishLaunching:function(e,t){this.delegate.remoteInstanceDidFinishLaunching(this,t)},_remoteUIState:a.b({type:w.a,defaultValue:w.a.NONE}),_remoteInstanceTimeoutMethodIdentifers:v.b(["IS_READY_TO_BE_DISPLAYED_TIMEOUT_IDENTIFIER"]),_willEnterForegroundPromise:s.d({type:m.a}),_inProgressUIStateTransitionsOperation:s.d({type:ae}),_pendingUIStateTransitionsOperation:s.d({type:ae}),_performUIStateTransitionsOperation:function(e){var t=this;Object(I.b)(this.remoteInstanceState,I.a.RUNNING),c.a(e,ae)||l.b("_performUIStateTransitionsOperation requires an instance of UIStateTransitionsOperation");var n=this.remoteUIState,i=e.targetUIStateWhenFinished,r=e.operationPromise;if(this._inProgressUIStateTransitionsOperation)this._pendingUIStateTransitionsOperation&&this._pendingUIStateTransitionsOperation.cancel(),this._pendingUIStateTransitionsOperation=e;else if(Object(w.c)(n,i))h.b.warn("_performUIStateTransitionsOperation: remote instance is already in target UIState "+i),r.resolve(V.a.create({status:U.a.OK}));else{this._inProgressUIStateTransitionsOperation=e;var a=this._getUIStateTransitionsFor(i);this._performUIStateTransitions(a,r).then(function(e){var n=t._pendingUIStateTransitionsOperation;t._inProgressUIStateTransitionsOperation=void 0,t._pendingUIStateTransitionsOperation=void 0,e.isOK&&n&&t.invokeLater(function(){return t._performUIStateTransitionsOperation(n)})})}},_performUIStateTransitions:function(e,t){var n=this;Object(I.b)(this.remoteInstanceState,I.a.RUNNING),c.a(t,m.a)||l.b("_performUIStateTransitions: an argument containing a promise instance is required");var i=m.a.resolve(V.a.create({status:U.a.OK})),r=function(e){i=i.then(function(t){return t.isOK?n._performUIStateTransition(e):t})},a=e,o=Array.isArray(a),s=0;for(a=o?a:a[Symbol.iterator]();;){var u;if(o){if(s>=a.length)break;u=a[s++]}else{if((s=a.next()).done)break;u=s.value}r(u)}return i.then(function(e){return t.resolve(e),e})},_performUIStateTransition:function(e){var t=this,n=this._childProcessReference,i=e.remoteMethodName,r=e.targetUIState,a=e.setUIStateBeforeMethodCall;return m.a.resolve().then(function(){return t._animateViewToTargetRemoteUIState(r)}).then(function(){return function(){a&&(t._remoteUIState=r);var o=n.remoteProxy[i];if(e===se){var s=t.remoteInstanceIsReadyToBeDisplayedTimeout,c=t._scheduledTimeoutWasInvokedMethod;return t.invokeLater(c,s,"IS_READY_TO_BE_DISPLAYED_TIMEOUT_IDENTIFIER"),o().then(function(e){return e.isOK?t._willEnterForegroundPromise=m.a.create():e})}return e===ce?o().then(function(e){return t._pendingTimeoutMethodsAreScheduled()&&e.isOK&&t._cancelAllScheduledTimeoutMethods(),e}):o()}()}).then(function(e){return e.isOK&&!a&&(t._remoteUIState=r),e})},_getUIStateTransitionsFor:function(e){var t=this.remoteUIState,n=new Array;return Object(w.c)(e,w.a.BACKGROUND)?(Object(w.c)(t,w.a.ACTIVE_FOREGROUND)&&n.push(ue),n.push(ce)):Object(w.c)(e,w.a.INACTIVE_FOREGROUND)?Object(w.c)(t,w.a.NONE,w.a.BACKGROUND)?n.push(se):Object(w.c)(t,w.a.ACTIVE_FOREGROUND)&&n.push(ue):Object(w.c)(e,w.a.ACTIVE_FOREGROUND)?(Object(w.c)(t,w.a.NONE,w.a.BACKGROUND)&&n.push(se),n.push(le)):l.b("Invalid => no support for transitioning to "+e),n},_scheduledTimeoutWasInvoked:function(e){var t=arguments;"IS_READY_TO_BE_DISPLAYED_TIMEOUT_IDENTIFIER"===e?this._terminateDueToTimeoutError("Remote instance failed to send the isReadyToBeDisplayed message before timeout was triggered."):this.__s._$C9y$_scheduledTimeoutWasInvoked.apply(this,t)},_animateViewToTargetRemoteUIState:function(e){},_remoteInstanceStateObserver:r.g("remoteInstanceState",function(){this._childProcessReference,this.remoteInstanceState,this.remoteInstanceName}),_remoteUIStateObserver:r.g("remoteUIState",function(){var e=this.view,t=this.remoteUIState;this._childProcessReference,this.remoteInstanceName,e.remoteInstanceIsVisible?Object(w.c)(t,w.a.NONE,w.a.BACKGROUND)&&(e.remoteInstanceIsVisible=!1):Object(w.c)(t,w.a.INACTIVE_FOREGROUND,w.a.ACTIVE_FOREGROUND)&&(e.remoteInstanceIsVisible=!0)}),__superMap:{_$2mx$didAttach:"didAttach",_$2vW$didDetach:"didDetach",_$46P$loadRemoteInstance:"loadRemoteInstance",_$4yb$terminateRemoteInstance:"terminateRemoteInstance",_$C9y$_scheduledTimeoutWasInvoked:"_scheduledTimeoutWasInvoked"},staticMembers:{__QUALIFIED_CLASS_NAME__:"RemoteUIApplicationViewController"}})),ae=i.a.extend({targetUIStateWhenFinished:s.d({type:w.a}),operationPromise:s.d({type:m.a}),cancel:function(){var e=this.operationPromise;c.a(e,m.a)||l.b("UIStateTransitionsOperation missing operationPromise instance"),e.resolve(V.a.create({status:U.a.CANCELED}))},staticMembers:{__QUALIFIED_CLASS_NAME__:"UIStateTransitionsOperation"}}),oe=i.a.extend({remoteMethodName:s.d({type:String}),targetUIState:s.d({type:w.a}),setUIStateBeforeMethodCall:s.d({type:Boolean,defaultValue:!1}),staticMembers:{__QUALIFIED_CLASS_NAME__:"UIStateTransition"}}),se=oe.create({remoteMethodName:"willEnterForeground",targetUIState:w.a.INACTIVE_FOREGROUND}),ce=oe.create({remoteMethodName:"didEnterBackground",targetUIState:w.a.BACKGROUND,setUIStateBeforeMethodCall:!0}),le=oe.create({remoteMethodName:"didBecomeActive",targetUIState:w.a.ACTIVE_FOREGROUND,setUIStateBeforeMethodCall:!0}),ue=oe.create({remoteMethodName:"willResignActive",targetUIState:w.a.INACTIVE_FOREGROUND}),de=n(1098),he=n(1099),pe=n(825),fe=n(1100),me=n(1101),ge=n(38),be=n(303),ve=(n(6),n(13),i.a.extend({mixinDependencies:[fe.a],animateTransition:function(e){var t=pe.a(e,"fromViewController.view"),n=pe.a(e,"toViewController.view");e.transitionCoordinator.animateTo(1,be.a,e),this._fadeViews(n,t).then(function(){e.completeTransition(!0)})},animationEnded:K.a,_fadeViews:function(e,t){return Object(me.d)(e),Object(me.b)(e),Object(ge.e)(e).then(function(){Object(me.c)(e),Object(ge.h)(e),t&&Object(me.a)(t)})},staticMembers:{__QUALIFIED_CLASS_NAME__:"FadeAnimationController"}})),_e=n(413),ye=n(1102),Ce=(n(0),n(6),n(13),ye.a.extend({init:function(e,t,n){var i=arguments;this.__s._$FZ$init.apply(this,i),c.a(e,Ae)||l.b("[ChildApplicationPresentationController] Expected child application controller")},presentationTransitionWillBegin:function(){var e=this.presentedViewController;return Object(I.c)(e.remoteInstanceState,I.a.RUNNING)?e.transitionRemoteInstanceToInactiveForeground().then(function(){e.isPresentedViewController=!0}):(h.b.warn("[ChildApplicationPresentationController] Expected to present running application"),m.a.resolve())},presentationTransitionDidEnd:function(e){var t=void 0,n=this.presentedViewController;return Object(I.c)(n.remoteInstanceState,I.a.RUNNING)?t=e?n.transitionRemoteInstanceToActiveForeground():n.transitionRemoteInstanceToBackground().then(function(){n.isPresentedViewController=!1}):(h.b.warn("[ChildApplicationPresentationController] Expected to present running application"),t=m.a.resolve()),t},dismissalTransitionWillBegin:function(){var e=this.presentedViewController;return Object(I.c)(e.remoteInstanceState,I.a.RUNNING)?e.transitionRemoteInstanceToInactiveForeground():(h.b.warn("[ChildApplicationPresentationController] Expected to dismiss running application"),m.a.resolve())},dismissalTransitionDidEnd:function(e){var t=void 0,n=this.presentedViewController;return Object(I.c)(n.remoteInstanceState,I.a.RUNNING)?t=e?n.transitionRemoteInstanceToBackground().then(function(){n.isPresentedViewController=!1}):n.transitionRemoteInstanceToActiveForeground():(h.b.warn("[ChildApplicationPresentationController] Expected to dismiss running application"),t=m.a.resolve()),t},__superMap:{_$FZ$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildApplicationPresentationController"}})),Ie=(n(0),n(6),n(13),he.a.extend({animationControllerForPresentedViewController:function(e,t,n){return c.a(t,Ae)?ve.create():_e.a.create()},presentationControllerForPresentedViewController:function(e,t,n){var i=n.view;return Ce.create(e,t,i)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildApplicationTransitioningDelegate"}})),we=n(130),Se=n(412),Ae=(n(1),n(0),n(2),n(7),n(6),n(13),re.extend({mixinDependencies:[de.a,Se.a],controller:s.d(),isPresentedViewController:s.d({type:Boolean,defaultValue:!1}),remoteInstanceLoadTimeout:s.d({type:Number,defaultValue:12e4}),presentationStyle:s.d({defaultValue:we.a.FULLSCREEN}),transitioningDelegate:g.c(Ie),init:function(e,t){e||l.b("[ChildApplicationRemoteViewController] Requires app controller"),u.a(t)||l.b("Invalid application passed"),this.__s._$jF$init.call(this);var n=e.applicationInfo,i=n.applicationName,r=n.configuration.displayName;this.controller=e,this.delegate=e,this.remoteInstanceName=i,this.remoteInstanceTitle=r,this.url=t},remoteInstanceWillConnect:function(){var e=arguments;this._childProcessReference.applicationInfo=this.controller.applicationInfo,this.__s._$zH$remoteInstanceWillConnect.apply(this,e)},sendNotificationToRemoteInstance:function(e){return this._childProcessReference.remoteProxy.didReceiveRemoteNotification(e)},__superMap:{_$jF$init:"init",_$zH$remoteInstanceWillConnect:"remoteInstanceWillConnect"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildApplicationRemoteViewController"}})),Oe=n(49),Ee=n(27),Te=n(204),De=n(869),Le=n(834),Ne=n(892),Me=n(603),Pe=n(134),xe=n(589),Re=(n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),Ae.extend({childProcessReferenceClass:Me.a,loadRemoteInstance:function(){var e=arguments,t=this.__s._$IO$loadRemoteInstance.apply(this,e);return De.a(this.view.iframeView.iframe,"load",Le.a(this.iframeDidLoad,this)),t},terminateRemoteInstance:function(){var e=arguments;return Ne.a(this.view.iframeView.iframe,"load",Le.a(this.iframeDidLoad,this)),this.__s._$Oq$terminateRemoteInstance.apply(this,e)},iframeDidLoad:function(e){this._childProcessReference.launchLegacyApp()},remoteInstanceWillConnect:function(){var e=this._childProcessReference;e.applicationInfo=this.controller.applicationInfo,e.messagingFromUIChildDelegate=this},sendNotificationToRemoteInstance:function(e){return this._childProcessReference.remoteProxy.didReceiveNotification(e)},didFetchStartup:function(e,t){this._childProcessReference.remoteProxy.didFetchStartup(e,t)},childProcessReferenceDidFinishLaunching:function(e,t){var n=arguments;this.__s._$11_$childProcessReferenceDidFinishLaunching.apply(this,n);var i=this.controller.shareRecord,r=Pe.a.sharedInstance.meCard;if(r&&r.photo){var a=r.photo,o=Object(xe.a)(a);e.remoteProxy.receiveMeCard(o)}i&&e.remoteProxy.didResolveCKShortGUID(i.shortGuid,i.ckShareRecord)},__superMap:{_$IO$loadRemoteInstance:"loadRemoteInstance",_$Oq$terminateRemoteInstance:"terminateRemoteInstance",_$11_$childProcessReferenceDidFinishLaunching:"childProcessReferenceDidFinishLaunching"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyChildApplicationRemoteViewController"}})),je=n(23),Fe=n(426),Ve=i.a.extend({all:function(){var e=[],t=[],n=this._promises.entries(),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a,s=o[0],c=o[1];e.push(s),t.push(c)}return m.a.all(t).then(function(t){for(var n=new Map,i=0,r=t.length;i<r;i++){var a=e[i],o=t[i];n.set(a,o)}return n})},clear:function(){this._promises.clear()},register:function(e,t){e||l.b("[PromiseMap] Requires key for operation"),c.a(t,m.a)||l.b("[PromiseMap] Requires operation promise"),this._promises.set(e,t)},_promises:s.d({type:Map,defaultValue:g.c(Map)}),staticMembers:{__QUALIFIED_CLASS_NAME__:"PromiseMap"}}),Ue=n(1085),ke=n(113),Be=n(51),ze=i.a.extend({payload:s.d({type:Object}),status:s.d({type:Number}),staticMembers:{__QUALIFIED_CLASS_NAME__:"StartupResponse"}}),We=(n(3),i.a.extend({mixinDependencies:[Ue.a],preferencesController:s.d({type:ke.a,defaultValue:function(){return ke.a.sharedInstance}}),canFetchStartupForApplicationInfo:function(e){var t=this.preferencesController.accountPreferences;return!!t&&!!t.getStartupInfoForApp(e.path)},fetchStartupForApplicationInfo:function(e){var t=this.preferencesController.accountPreferences.getStartupInfoForApp(e.path),n={method:t.method,body:JSON.stringify(t.requestPayload)};return Object(Be.a)(t.url,n).then(function(e){return e.json().then(function(t){return ze.create({payload:t,status:e.status})})})},staticMembers:{__QUALIFIED_CLASS_NAME__:"StartupController"}}));n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"a",function(){return He});var He=i.a.extend({mixinDependencies:[r.b,C],applicationConfiguration:a.b({readOnly:!0,type:Oe.a,binding:o.c("_applicationConfiguration")}),applicationInfo:a.b({readOnly:!0,type:Ee.a,binding:o.c("_applicationConfiguration.applicationInfo")}),applicationContext:a.b({readOnly:!0,type:Te.a,binding:o.c("_applicationContext")}),applicationIsReadyToTerminate:s.d({type:Boolean,readOnly:!0,get:function(){var e=this.remoteApplicationViewController;return!e||e.remoteInstanceIsReadyToTerminate}}),currentHistoryState:s.d({type:Object}),currentTitleName:a.b({dependencies:["_currentTitleName","applicationConfiguration.titleName"],writeDependencies:["_currentTitleName"],type:String,get:Object.assign(function(){return this._currentTitleName||this.getPath("applicationConfiguration.titleName")},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])||i.internalGetPath(this,t[1+n])}}),set:Object.assign(function(e){this._currentTitleName=e},{__CW__setter:function(e,t,n,i,r){n[0+i]=e}}),writeDependencySetPathMap:["false"]}),_currentTitleName:a.b({type:String}),applicationSlowLoadingTimeout:s.d({type:Number,defaultValue:15e3}),badgeCount:a.b({type:Number}),delegate:s.d({type:L.a}),remoteApplicationViewController:a.b({strong:!0,type:Ae}),isLoading:a.b({dependencies:["remoteApplicationViewController.remoteInstanceState"],readOnly:!0,type:Boolean,get:Object.assign(function(){var e=this.getPath("remoteApplicationViewController.remoteInstanceState");return Object(I.c)(e,I.a.LOADING,I.a.LOADED)},{__CW__getter:function(e,t,n,i){var r=i.internalGetPath(this,t[0+n]);return Object(I.c)(r,I.a.LOADING,I.a.LOADED)}})}),isLoadingForPresentation:a.b({dependencies:["isLoading","applicationContext"],readOnly:!0,type:Boolean,get:Object.assign(function(){return this.isLoading&&this.getPath("applicationContext.targetUIStateWhenLaunched")===w.a.ACTIVE_FOREGROUND},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])&&this.getPath("applicationContext.targetUIStateWhenLaunched")===w.a.ACTIVE_FOREGROUND}})}),isActiveForeground:a.b({dependencies:["applicationContext"],readOnly:!0,type:Boolean,get:function(){return this.getPath("applicationContext.targetUIStateWhenLaunched")===w.a.ACTIVE_FOREGROUND}}),isActive:s.d({type:Boolean,readOnly:!0,get:function(){var e=this.remoteApplicationViewController;return!!e&&e.isPresentedViewController}}),init:function(e,t){this.__s._$2HR$init.call(this),this._applicationConfiguration=e,this.delegate=t,this.initializeBrowserHistoryState(e)},initializeBrowserHistoryState:function(e){var t=e.identifier,n=e&&e.applicationInfo&&e.applicationInfo.authBagId;if(n){var i=N.a.history.state;if(i&&i.applicationAuthBagId===n)this.currentHistoryState=i,this.currentTitleName=i.applicationTitleName;else{this.currentHistoryState={applicationAuthBagId:n};var r=M.a.sharedInstance,a=r.applicationIdentifier,o=r.relativePath,s=r.shortGuid;a===t&&o?this.currentHistoryState.applicationRelativePath=o:a===t&&s&&(this.currentHistoryState.applicationRelativePath="#"+s)}}else this.currentHistoryState=void 0},launchRemoteApplicationWithContext:function(e){var t=this.applicationInfo;if(c.a(e,Te.a)||l.b("The application context parameter must be an instance of ChildApplicationContext"),u.a(e.launchUrl)&&!d.a(e.launchUrl)||l.b("The applicationContext.launchUrl must be a non-empty string"),!this.remoteApplicationViewController||this.remoteApplicationViewController.url!==e.launchUrl){this.clearForReuse();var n=function(e){return(e.usesLegacyCloudOSProtocol?Re:Ae).extend({_remoteInstanceTimeoutMethodIdentifers:v.b(["IS_APPLICATION_LOADING_SLOWLY_TIMEOUT_IDENTIFIER"])})}(t);this.remoteApplicationViewController=n.create(this,e.launchUrl)}return this._applicationContext=e,this.remoteApplicationViewController},reloadRemoteApplication:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];u.a(e)||l.b("Invalid url passed");var n=!1;if(this.remoteApplicationViewController){var i=this.remoteApplicationViewController.remoteInstanceIsReadyToTerminate;(t||i)&&(this.remoteApplicationViewController.url=e,this.remoteApplicationViewController.reloadRemoteInstance(t),this.applicationContext.launchUrl=e,n=!0)}return n},clearForReuse:function(){h.b.debug("ChildApplicationController.clearForReuse("+this.applicationConfiguration.identifier+")");var e=this.remoteApplicationViewController;e&&e.isAttached&&e.parent&&e.parent.removeViewController(e),this.remoteApplicationViewController=void 0,this._applicationContext=void 0,this._dependentOperationsForLaunchPromise=void 0,this._pendingStartupResponse=void 0,this.currentHistoryState||this.currentHistoryState||(this._currentTitleName=void 0)},handlePushNotification:function(e){var t=e.badgeCount;p.a(t)&&(this.badgeCount=t),this.sendNotification(e.serialize())},sendNotification:function(e){var t=this.getPath("remoteApplicationViewController.remoteInstanceState");Object(I.c)(t,I.a.RUNNING)?this._sendNotification(e):this._pendingNotifications.push(e)},remoteInstanceWillBeginLaunching:function(e){var t=this,n=this.applicationInfo,i=this.applicationContext,r=this.applicationSlowLoadingTimeout,a=this.delegate;a&&e.invokeLater(function(){return a.childApplicationIsLoadingSlowly(t)},r,"IS_APPLICATION_LOADING_SLOWLY_TIMEOUT_IDENTIFIER"),i.launchStat=O.a.create("childLoad",{childName:n.applicationName}).time(),this._performDependentOperationsForLaunch(),this._performNonBlockingOperationsWhileLaunching()},remoteInstanceWillFinishLaunching:function(e,t){var n=this.applicationContext;this._dependentOperationsForLaunchPromise.then(function(i){if(Object(I.c)(e.remoteInstanceState,I.a.LOADED)){var r=i.get("RESOLVE_SHORT_GUID"),a=r&&r.isOK?r.recordInfo:void 0;a&&(n.launchItem=a,t.launchReason=S.a.ITEMS_OPENED,t.itemsToOpen=[{type:"CLOUDKIT_RECORD_INFO",item:a}]),e.runRemoteInstance(t)}})},remoteInstanceDidFinishLaunching:function(e,t){var n=this.applicationContext.launchStat;E.b.sharedInstance.recordStat(n.success()),this.delegate.childApplicationDidFinishLaunching(this),this._sendPendingNotifications(),this._sendPendingStartupResponse()},remoteInstanceDidTerminate:function(e,t,n){switch(h.b.error("remoteInstanceDidTerminate:\nREASON: "+t+"\nINFO: "+(n?f.a(n):"")),t){case A.a.TIMEOUT:var i=this.applicationContext.launchStat,r=n.terminatedProcessState,a=r?r.value:"UNKNOWN";E.b.sharedInstance.recordStat(i.failure({reason:t,processState:a}))}this.delegate.childApplicationDidTerminate(this,t,n)},_applicationConfiguration:a.b({type:Oe.a}),_applicationContext:a.b({type:Te.a}),_dependentOperationsForLaunchPromise:s.d({type:m.a}),_pendingNotifications:s.d({type:Array,defaultValue:g.c(Array)}),_pendingStartupResponse:s.d({type:ze}),_performNonBlockingOperationsWhileLaunching:function(){this._fetchStartup()},_fetchStartup:function(){var e=this,t=We.sharedInstance;t.canFetchStartupForApplicationInfo(this.applicationInfo)&&t.fetchStartupForApplicationInfo(this.applicationInfo).then(function(t){e._sendStartupResponseIfPossible(t)},function(t){e._sendStartupResponseIfPossible(null)})},_sendStartupResponseIfPossible:function(e){var t=this.remoteApplicationViewController;this._pendingStartupResponse=e,t&&Object(I.c)(t.remoteInstanceState,I.a.RUNNING)&&this._sendPendingStartupResponse()},_sendPendingStartupResponse:function(){var e=this.remoteApplicationViewController;e||l.b("The internal _sendPendingStartupResponse should only be called when there is a running remote instance");var t=this._pendingStartupResponse;if(p.a(t)){this._pendingStartupResponse=null;var n=t.payload||null;e.didFetchStartup(n,t.status)}},_performDependentOperationsForLaunch:function(){var e=Ve.create();e.register("REGISTER_FOR_CLOUDKIT_SUBSCRIPTION",this._registerForCloudKitSubscriptionIfNeeded()),e.register("PRELOAD_CORE_TYPES",this._preloadCoreTypesIfNeeded()),e.register("RESOLVE_SHORT_GUID",this._resolveShortGuidIfNeeded()),this._dependentOperationsForLaunchPromise=e.all()},_registerForCloudKitSubscriptionIfNeeded:function(){var e=this.applicationInfo.cloudKitInfo;if(e){var t=e.containerIdentifier;t&&Fe.a.sharedInstance.registerCloudKitSubscription(t)}return m.a.resolve()},_preloadCoreTypesIfNeeded:function(){var e=this.applicationInfo.shouldPreloadCoreTypes,t=je.a.getPath("sharedInstance.cloudOSUser.details");return e&&t&&t.brMigrated?P.a.sharedInstance.setupThirdPartyAppIcons():m.a.resolve()},_resolveShortGuidIfNeeded:function(){var e=this.applicationContext,t=this.applicationInfo,n=this.remoteApplicationViewController,i=this.applicationInfo.cloudKitInfo,r=T.a.create();if(!e.launchItem&&Object(D.c)(t)){var a=e.shortGuid,o=e.shareRecord,s=a||o&&o.shortGuid;if(s){var c=i.containerIdentifier,l=i.partition;return Object(D.b)(r,s,c,l).then(function(e){if(e&&!Object(I.c)(n.remoteInstanceState,I.a.TERMINATED)&&!e.isOK){var t=void 0,r=void 0;e.isRecoverableCKError?(t=b.d(i.recoverableErrorTitleLocKey),r=b.d(i.recoverableErrorSubtitleLocKey)):t=b.d(i.unrecoverableErrorTitleLocKey),n.remoteInstanceDidFatalError(A.a.LAUNCH_DEPENDENCY_UNAVAILABLE,{title:t,subtitle:r,errorMessage:"Could not resolve the short guid"})}return e})}}return m.a.resolve()},_sendNotification:function(e){var t=this.remoteApplicationViewController;t||l.b("The internal _sendNotification should only be called when there is a running remote instance"),t.sendNotificationToRemoteInstance(e)},_sendPendingNotifications:function(){var e=this._pendingNotifications;if(e){var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;this._sendNotification(a)}e.splice(0,e.length)}},__superMap:{_$2HR$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildApplicationController"}})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(898),o=n(104),s=n(81),c=n(828),l=n(819),u=n(100),d=n(877),h=(n(265),n(0),n(5),d.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"img",name:"image",classes:["error-icon-view"],attributes:{src:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"imgSrc",attributes:{},attribute:"src"}}},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"errorTitle",attributes:{}}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"errorTitleClass",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"errorSubtitle",attributes:{escape:"false"}}],classes:["error-description-view"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"errorDescription",attributes:{}}],classes:["error-description-view"]}],classes:["error-content-container-view"]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"errorButtonView"}],classes:["error-buttons-view"]}],classes:["error-button-container-view"]}],classes:["error-container-view"]}]},__QUALIFIED_CLASS_NAME__:"ErrorView"},imgSrc:r.b({type:String}),errorTitleClass:r.b({type:String}),errorTitle:r.b({type:String}),errorSubtitle:r.b({type:String}),errorDescription:r.b({type:String}),errorButtonView:r.b({type:a.a})})),p=n(599),f=n(1156),m=n(582),g=n(27),b=n(315);n(0),n(5),n(265),n(4),n(3),n.d(t,"a",function(){return v});var v=i.a.extend({viewClass:h,view:r.b({type:h,downstreamBindings:{imgSrc:"(owner).imgSrc",errorTitleClass:"(owner).errorTitleClass",errorTitle:"(owner).errorTitle",errorSubtitle:"(owner).errorSubtitle",errorDescription:"(owner).errorDescription",errorButtonView:"(owner).errorButtonView"}}),imgSrc:r.b({type:String,defaultValue:p.a}),errorTitleClass:r.b({type:String,defaultValue:"error-title-view"}),errorTitle:Object(f.b)(),errorSubtitle:Object(f.b)(),errorDescription:Object(f.b)(),buttonTitle:Object(f.b)("CloudOS.Sharing.Unavailable.OkButton.Title"),errorButtonView:r.b({readOnly:!0,get:function(){return a.a.create({action:"_okButtonDidClick",target:this,additionalClassNames:o.b(["badge-button-one"])})},downstreamBindings:{title:"(owner).buttonTitle"}}),delegate:s.d({type:m.a}),init:function(e,t,n,i){if(this.__s._$1AN$init.call(this),e){c.a(e,g.a)||l.b("ErrorViewController - Invalid applicationInfo specified."),this._applicationInfo=e,this.errorTitleClass="error-title-app-view";var r=e.iconUrlForCurrentDPR;r&&(this.imgSrc=r)}t||l.b("ErrorViewController - No title specified."),this.errorTitle=t,this.errorSubtitle=n,this.errorDescription=i},_imageLoadPromise:s.d({type:u.a}),loadImage:function(){var e=this;return this._imageLoadPromise?this._imageLoadPromise:(this._imageLoadPromise=Object(b.a)(this.view.image,this.imgSrc,void 0,5e3),this._imageLoadPromise.then(function(t){return e._imageLoadPromise=void 0,t}))},_applicationInfo:s.d({type:g.a}),_okButtonDidClick:function(){this.delegate.dismissErrorButtonWasClicked(this,this._applicationInfo)},__superMap:{_$1AN$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ErrorViewController"}})},function(e,t,n){"use strict";var i=n(818),r=n(847),a=n(81),o=n(836),s=n(819),c=n(100),l=n(86),u=n(861),d=n(1079),h=n(1088),p=n(1090),f=n(159),m=n(128),g=n(11),b=n(113),v=n(575),_=n(145),y=n(866),C=n(99),I=n(51),w=n(422),S=n(610);function A(e,t,n,i){var r={lang:i,usertz:n},a=t.guid,o=t.pGuid,s=""+e+y.a.formatQuery(r);return Object(I.a)(s,{method:C.a.POST,body:{guid:a,pGuid:o}})}function O(e,t,n,i,r,a){return function(e,t,n,i,r){e||s.b("[AlarmsURLConnection] Cannot fetch triggers without url"),t&&n||s.b("[AlarmsURLConnection] Cannot fetch triggers without date range",{startDate:t,endDate:n}),i&&r||s.b("[AlarmsURLConnection] Cannot fetch triggers without time zone and locale",{timeZone:i,locale:r});var a={startDate:Object(w.b)(t),endDate:Object(w.b)(n),lang:r,usertz:i},o=""+e+y.a.formatQuery(a);return Object(I.a)(o)}(e,t,n,i,r).then(function(e){return e.ok?e.json().then(function(e){var t=[],n=e.AlarmTrigger;if(n)for(var i=0,r=n.length;i<r;i++){var o=n[i],s=S.a.deserialize(o);s.applicationIdentifier=a,t.push(s)}return p.a.create({status:h.a.SUCCESS,data:t})}):p.a.create({status:h.a.ERROR,data:e})})}n(3),n(4),n(3),n.d(t,"a",function(){return E});var E=i.a.extend({mixinDependencies:[r.a],delegate:a.d({type:v.a}),scheduleAlarms:function(e){var t=this;o.a(e)||s.b("[AlarmsController] Requires app identifiers to schedule alarms");var n=[],i=f.a.identifier;if(e.indexOf(i)>-1){this._unscheduleCalendarAlarms();var r=this._fetchCalendarAlarmsPromise=this._fetchCalendarAlarms();n.push(r)}var a=m.a.identifier;if(e.indexOf(a)>-1){this._unscheduleRemindersAlarms();var l=this._fetchRemindersAlarmsPromise=this._fetchRemindersAlarms();n.push(l)}return c.a.all(n).then(function(e){for(var n=!0,i=[],r=0,a=e.length;r<a;r++){var o=e[r];o.isOK?i=i.concat(o.data):n=!1}return t._scheduleAlarms(i),n?h.a.SUCCESS:h.a.ERROR})},acknowledgeAlarm:function(e){var t=this,n=e.applicationIdentifier;switch(n){case f.a.identifier:return this._acknowledgeCalendarAlarm(e);case m.a.identifier:return this._acknowledgeRemindersAlarm(e).then(function(){return t.scheduleAlarms([m.a.identifier])});default:s.b("[AlarmsController] Cannot acknowledge alarm for unknown app",{applicationIdentifier:n})}},snoozeAlarm:function(e){var t=e.applicationIdentifier;switch(t){case f.a.identifier:return this._snoozeCalendarAlarm(e);case m.a.identifier:return this._snoozeRemindersAlarm(e);default:s.b("[AlarmsController] Cannot snooze alarm for unknown app",{applicationIdentifier:t})}},_locale:a.d({readOnly:!0,get:function(){return g.a.locale}}),_now:a.d({readOnly:!0,get:function(){return new Date}}),_fetchCalendarAlarmsPromise:a.d({type:c.a}),_fetchRemindersAlarmsPromise:a.d({type:c.a}),_firedAlarms:a.d({type:Array,defaultValue:l.c(Array)}),_scheduledAlarms:a.d({type:Map,defaultValue:l.c(Map)}),_timeZone:a.d({readOnly:!0,get:function(){return b.a.sharedInstance.accountPreferences.timeZone}}),_alarmDidFire:function(e){var t=this.delegate;t&&t.alarmWasTriggered(e),this._scheduledAlarms.delete(e),this._firedAlarms.push(e)},_fetchCalendarAlarms:function(){var e=f.a.identifier,t=Object(d.d)(e,"ca/alarmtriggers/"),n=this._now,i=this._now;i.setHours(n.getHours()+24);var r=this._locale;return O(t,n,i,this._timeZone,r,e)},_fetchRemindersAlarms:function(){var e=m.a.identifier,t=Object(d.d)(e,"rd/alarmtriggers/"),n=this._now,i=this._now;i.setHours(n.getHours()+24);var r=this._locale;return O(t,n,i,this._timeZone,r,e)},_acknowledgeCalendarAlarm:function(e){var t=f.a.identifier,n=Object(d.d)(t,"ca/acknowledgealarm/"),i=this._locale;return A(n,e,this._timeZone,i)},_acknowledgeRemindersAlarm:function(e){var t=m.a.identifier,n=Object(d.d)(t,"rd/acknowledgealarm/"),i=this._locale;return A(n,e,this._timeZone,i)},_snoozeCalendarAlarm:function(e){var t=f.a.identifier,n=Object(d.d)(t,"ca/snoozealarm/"),i=this._locale;return A(n,e,this._timeZone,i)},_snoozeRemindersAlarm:function(e){var t=m.a.identifier,n=Object(d.d)(t,"rd/snoozealarm/"),i=this._locale;return A(n,e,this._timeZone,i)},_scheduleAlarms:function(e){for(var t=this,n=this._now,i=this._firedAlarms,r=this._scheduledAlarms,a=function(a,o){for(var s=e[a],c=!1,l=0;l<i.length;l++)if(Object(_.b)(s,i[l])){c=!0;break}if(c)return"continue";var u=s.triggerDate,d=s.localEndDate,h=s.startDate,p=d||h;if(!p||p.date.getTime()+3e4<n)return"continue";var f=u.date.getTime()-n;if(f>0&&f<=-1>>>1){var m=t._scheduleTimeout(function(){t._alarmDidFire(s)},f);r.set(s,m)}},o=0,s=e.length;o<s;o++)a(o)},_scheduleTimeout:function(e,t){return u.a(e,t)},_unscheduleCalendarAlarms:function(){var e=this._fetchCalendarAlarmsPromise;if(e){var t=p.a.create({status:h.a.CANCELED});e.resolve(t)}var n=f.a.identifier;this._unscheduleTriggers(n)},_unscheduleRemindersAlarms:function(){var e=this._fetchRemindersAlarmsPromise;if(e){var t=p.a.create({status:h.a.CANCELED});e.resolve(t)}var n=m.a.identifier;this._unscheduleTriggers(n)},_unscheduleTriggers:function(e){var t=this._scheduledAlarms,n=t.entries(),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a,s=o[0],c=o[1];s.applicationIdentifier===e&&(this._unscheduleTimeout(c),t.delete(s))}},_unscheduleTimeout:function(e){clearTimeout(e)},staticMembers:{__QUALIFIED_CLASS_NAME__:"AlarmsController"}})},function(e,t,n){"use strict";var i=n(877),r=n(98),a=n(86),o=n(104),s=n(1156),c=n(129),l=n(29),u=n(898),d=n(930),h=n(78),p=(n(1),n(0),n(5),n(2),n(7),n(4),n(3),n(6),n(13),u.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"spinner"}],classes:["spinner-holder"]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isShowingSpinner",truevalue:"showing-spinner",attributes:{}}]}},__QUALIFIED_CLASS_NAME__:"AccountSettingsButtonView"},spinner:r.b({readOnly:!0,dependencies:["isShowingSpinner"],get:Object.assign(function(){return this.isShowingSpinner?this._spinner:void 0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?this._spinner:void 0}})}),_spinner:a.c(d.a,{size:14}),_applicationController:l.a.sharedInstance.getChildApplicationController(c.a.applicationInfo),isShowingSpinner:r.b(!1),_loadingObserver:h.h({inputs:["_applicationController.isLoading"],callback:function(e){this.isDisabled=e,this.isShowingSpinner=e}})}));n(60),n(1),n(0),n(5),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"a",function(){return f});var f=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"linkView"}]},__QUALIFIED_CLASS_NAME__:"AccountSettingsLinkView"},linkView:r.b({type:p,defaultValue:a.c(p,{additionalClassNames:o.b(["link-button"]),action:"didSelectSettingsLink"}),downstreamBindings:{title:"(owner).settingsLinkText"}}),settingsLinkText:Object(s.b)("CloudOS.Springboard.SettingsLink.Title"),didSelectSettingsLink:function(){var e=c.a.identifier;l.a.sharedInstance.switchToApplication(e)}})},function(e,t,n){var i=n(75),r=n(50),a=n(165);e.exports=function(e){return function(t,n,o){var s,c=i(t),l=r(c.length),u=a(o,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var i=n(116);e.exports=Array.isArray||function(e){return"Array"==i(e)}},function(e,t,n){var i=n(117),r=n(122);e.exports=function(e){return function(t,n){var a,o,s=String(r(t)),c=i(n),l=s.length;return c<0||c>=l?e?"":void 0:(a=s.charCodeAt(c))<55296||a>56319||c+1===l||(o=s.charCodeAt(c+1))<56320||o>57343?e?s.charAt(c):a:e?s.slice(c,c+2):o-56320+(a-55296<<10)+65536}}},function(e,t,n){var i=n(37),r=n(116),a=n(45)("match");e.exports=function(e){var t;return i(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},function(e,t,n){var i=n(45)("iterator"),r=!1;try{var a=[7][i]();a.return=function(){r=!0},Array.from(a,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!r)return!1;var n=!1;try{var a=[7],o=a[i]();o.next=function(){return{done:n=!0}},a[i]=function(){return o},e(a)}catch(e){}return n}},function(e,t,n){"use strict";var i=n(188),r=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var a=n.call(e,t);if("object"!=typeof a)throw new TypeError("RegExp exec method returned something other than an Object or null");return a}if("RegExp"!==i(e))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(e,t)}},function(e,t,n){"use strict";n(451);var i=n(69),r=n(68),a=n(34),o=n(122),s=n(45),c=n(348),l=s("species"),u=!a(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),d=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var h=s(e),p=!a(function(){var t={};return t[h]=function(){return 7},7!=""[e](t)}),f=p?!a(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[l]=function(){return n}),n[h](""),!t}):void 0;if(!p||!f||"replace"===e&&!u||"split"===e&&!d){var m=/./[h],g=n(o,h,""[e],function(e,t,n,i,r){return t.exec===c?p&&!r?{done:!0,value:m.call(t,n,i)}:{done:!0,value:e.call(n,t,i)}:{done:!1}}),b=g[0],v=g[1];i(String.prototype,e,b),r(RegExp.prototype,h,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t,n){var i=n(32).navigator;e.exports=i&&i.userAgent||""},function(e,t,n){"use strict";var i=n(32),r=n(9),a=n(69),o=n(171),s=n(150),c=n(170),l=n(169),u=n(37),d=n(34),h=n(254),p=n(187),f=n(334);e.exports=function(e,t,n,m,g,b){var v=i[e],_=v,y=g?"set":"add",C=_&&_.prototype,I={},w=function(e){var t=C[e];a(C,e,"delete"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(b&&!u(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return b&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof _&&(b||C.forEach&&!d(function(){(new _).entries().next()}))){var S=new _,A=S[y](b?{}:-0,1)!=S,O=d(function(){S.has(1)}),E=h(function(e){new _(e)}),T=!b&&d(function(){for(var e=new _,t=5;t--;)e[y](t,t);return!e.has(-0)});E||((_=t(function(t,n){l(t,_,e);var i=f(new v,t,_);return void 0!=n&&c(n,g,i[y],i),i})).prototype=C,C.constructor=_),(O||T)&&(w("delete"),w("has"),g&&w("get")),(T||A)&&w(y),b&&C.clear&&delete C.clear}else _=m.getConstructor(t,e,g,y),o(_.prototype,n),s.NEED=!0;return p(_,e),I[e]=_,r(r.G+r.W+r.F*(_!=v),I),b||m.setStrong(_,e,g),_}},function(e,t,n){for(var i,r=n(32),a=n(68),o=n(163),s=o("typed_array"),c=o("view"),l=!(!r.ArrayBuffer||!r.DataView),u=l,d=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");d<9;)(i=r[h[d++]])?(a(i.prototype,s,!0),a(i.prototype,c,!0)):u=!1;e.exports={ABV:l,CONSTR:u,TYPED:s,VIEW:c}},function(e,t,n){"use strict";e.exports=n(149)||!n(34)(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete n(32)[e]})},function(e,t,n){"use strict";var i=n(9);e.exports=function(e){i(i.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})}},function(e,t,n){"use strict";var i=n(9),r=n(63),a=n(115),o=n(170);e.exports=function(e){i(i.S,e,{from:function(e){var t,n,i,s,c=arguments[1];return r(this),(t=void 0!==c)&&r(c),void 0==e?new this:(n=[],t?(i=0,s=a(c,arguments[2],2),o(e,!1,function(e){n.push(s(e,i++))})):o(e,!1,n.push,n),new this(n))}})}},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__34.png"},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"c",function(){return I}),n.d(t,"b",function(){return w}),n.d(t,"a",function(){return A});var i=n(819),r=n(833),a=n(178),o=n(832),s=n(828),c=n(834),l=n(837),u=n(838),d=n(821),h=n(95),p=n(96),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function g(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function b(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var v,_=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];b(this,e);var r=t.length;if(!Array.isArray(t)||r<=1)throw new i.a("Must provide 2 or more types to a union/intersection type",{providedTypes:t});for(var a=0;a<r;a++){var o=t[a];if(!n){if(void 0===o)throw new i.a("Cannot create intersection with undefined",{providedTypes:t,index:a});if(null===o)throw new i.a("Cannot create intersection with null",{providedTypes:t,index:a})}if("any"===o)throw new i.a("Cannot create union/intersection with any",{providedTypes:t,index:a})}this.providedTypes=t}return e.prototype.toString=function(){return this.types||this._processTypes(),this.types.map(function(e){return e.toString()}).join(", ")},e.prototype._processTypes=function(){for(var e=this.providedTypes,t=[],n=[],r=0,a=e.length;r<a;r++){var o=e[r];if(null!=o){var s=O(o);n.push(s);var c=S(s);if(!c)throw new i.a("Cannot get validator for unrecognized type: "+s,{providedTypes:e,types:n,validators:t,index:r});t.push(c)}}this.validators=t,this.types=n},e}(),y=function(e){function t(n){return b(this,t),m(this,e.call(this,n,!0))}return g(t,e),t.prototype.validate=function(e){return this.validators||this._processTypes(),this.validators.some(function(t){return t(e)})},t.prototype.toString=function(){return"union of "+e.prototype.toString.call(this)},t}(_),C=function(e){function t(n){return b(this,t),m(this,e.call(this,n,!1))}return g(t,e),t.prototype.validate=function(e){return this.validators||this._processTypes(),this.validators.every(function(t){return t(e)})},t.prototype.toString=function(){return"intersection of "+e.prototype.toString.call(this)},t}(_);function I(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new y(t)}function w(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return new C(t)}function S(e){var t,n,i=void 0;if("integer"===e)i=T;else if("number"===e)i=E;else if("string"===e)i=r.a;else if("boolean"===e)i=a.a;else if("hash"===e)i=o.a;else if(Object(s.a)(e,_))i=Object(c.a)(e.validate,e);else if(Object(s.a)(e,h.a))n=e,i=function(e){return Object(s.a)(e,p.a)&&n.items.some(function(t){return t.contains(e)})};else if(e.isClass)i=function(e){return function(t){var n;return t.isObject&&((n=t.constructor)===e||n.subclassOf(e))}}(e);else if("function"===(t=void 0===e?"undefined":f(e))||v(e))i=function(e){return function(t){return t instanceof e}}(e);else{if("object"!==t)return;i=function(e){return function(t){return t.hasMixin&&t.hasMixin(e)}}(e)}return function(e){return function(t){return!Object(u.a)(t)||e.call(this,t)}}(i)}function A(e){var t=e.type;if(null!==t&&"any"!==t){var n=O(t,e);n!==t&&(e.type=n);var r=S(n);if(!r)throw new i.a('Cannot create property "%{key}" with unknown type `%{type}`.',{property:e,key:e.key,type:n});"integer"!==n&&"number"!==n&&"string"!==n&&"boolean"!==n||(e.typeIsPrimitive=!0),e._validateType=r}}function O(e,t){switch(void 0===e&&Object(i.b)('Error defining property "%{key}". You must specify a type.',{property:t,key:t.key}),e){case Number:e="number";break;case String:e="string";break;case Boolean:e="boolean";break;case"object":e=Object;break;case"function":e=Function}return e}function E(e){return Object(l.a)(e)&&!Number.isNaN(e)}function T(e){return(0|e)===e||Number.isInteger(e)}v="function"!=typeof XMLHttpRequest?function(e){return e.prototype&&e.prototype.constructor}:d.a},function(e,t,n){"use strict";n.d(t,"b",function(){return y}),n.d(t,"c",function(){return C}),n.d(t,"a",function(){return w});var i=n(878),r=n(98),a=n(89),o=n(107),s=n(44),c=n(819),l=n(282),u=n(95),d=n(104),h=n(81),p=n(86),f=n(79),m=n(392),g=n(395),b=n(939),v=n(937),_=n(92),y=Object(u.b)("Justification",function(e){e("Left"),e("Right"),e("Center"),e("Full")}),C=Object(u.b)("Justification",function(e){e("leftToRight"),e("rightToLeft")}),I={columnWidth:Object(r.b)(100),columnSpacing:Object(r.b)(0),direction:Object(r.b)(C.leftToRight),justification:Object(r.b)(y.Left),verticalAlignment:Object(r.b)(s.b.Middle),sectionLeftPadding:Object(r.b)(0),sectionRightPadding:Object(r.b)(0)},w=b.a.extend(g.a,{staticMembers:{LayoutMetricsClass:Object(d.b)(I),__QUALIFIED_CLASS_NAME__:"FlowLayoutDelegate"},cellClass:Object(d.b)({cleanup:function(){this.__s._$15U$cleanup.call(this),this.sectionX=NaN,this.sectionY=NaN,this.isLaidOutInSection=!1,this.row=null},sectionX:NaN,sectionY:NaN,isLaidOutInSection:!1,row:Object(h.d)({strong:!0}),rowBottom:Object(h.d)({get:function(){var e=this.row,t=this.sectionY-e.y;return this.bottom-t+(e.height-this.height)}}),rowTop:Object(h.d)({get:function(){var e=this.row,t=this.sectionY-e.y;return this.y-t}}),invalidate:function(){this.isLaidOutInSection=!1;var e=this.row;if(e){var t=e.cells;if(t.splice(t.indexOf(this),1),t.length>0){var n=t[0];n.isLaidOutInSection=!1,n.isLaidOut=!1}var i=e.sectionCell;i&&i.childrenWereInvalidated(),this.row=null}this.__s._$1gZ$invalidate.call(this)},__superMap:{_$15U$cleanup:"cleanup",_$1gZ$invalidate:"invalidate"}}),handleSizeChangedBy:function(e,t,n,i,r,a){if(0!==e){var o=this.topMostItem(n,a).retain(this,"handleSizeChangedBy: firstCell"),s=n.viewportWidth;this._cellMapForCellType("section").forEach(function(e){e.invalidateAllCells(),e.invalidate()},this),this._cellMapForCellType("header").forEach(function(e){e.width=s},this),this._cellMapForCellType("footer").forEach(function(e){e.width=s},this),this._cellMapForCellType("item").forEach(function(e){e.invalidate()},this),this.recoverLayoutFromCell(n,o),o.release(this,"handleSizeChangedBy: firstCell")}},handleLayoutMetricsChanged:function(e,t,n,i,r,a){var o=t.layoutMetrics;if(e.contains("columnWidth")||e.contains("rowHeight")){var s=this.topMostItem(t,r).retain(this,"handleLayoutMetricsChanged: firstCell");this._cellMapForCellType("section").forEach(function(e){e.invalidateAllCells()},this),this._cellMapForCellType("header").forEach(function(e){e.invalidate()}),this._cellMapForCellType("footer").forEach(function(e){e.invalidate()}),this.recoverLayoutFromCell(t,s),s.release(this,"handleLayoutMetricsChanged: firstCell")}else e.contains("verticalAlignment")||e.contains("justification")||e.contains("rowSpacing")||e.contains("columnSpacing")?this.handleSizeChangedBy(1,0,t,n,i,r):e.contains("hideableTopHeight")?o.shouldStartHidden&&this.isAtEnd===_.c.Top&&o.initialPosition===_.c.Top&&(this.invalidateOtherCells(r),this.setUpFirstCell(t,n,!0)):e.contains("hideableBottomHeight")&&o.shouldStartHidden&&this.isAtEnd===_.c.Bottom&&o.initialPosition===_.c.Bottom&&(this.invalidateOtherCells(r),this.setUpLastCell(t,n,!0))},handleItemsChanges:function(e,t,n,i,r,o){var s=e.length;if(s>100)this.handleEverythingChanged(t,n,i,r,o);else{for(var c=0;c<s;c++){var l=e[c];if(l.operation===a.b.INSERT){var u=n.startHandle.at(l.index),d=u.sectionHandle,h=u.previous;if(h.isValid&&!h.sectionHandle!==d||(h=u.next),h.isValid&&h.sectionHandle===d){var p=this.cellForHandleIfPresent(h);if(p){var f=p.row;if(f){var m=f.cells;if(m.length>0){var g=m[0];g.isLaidOutInSection=!1,g.isLaidOut=!1}}}}}}if(this._cellMapForCellType("section").forEach(function(e){e.checkForRemovedCells(this,t)},this),!this.topMostLaidOutItem(t,r)){var b=r.find(function(e){return"item"===e.cellType&&!e.handle.wasRemoved});b&&this.recoverLayoutFromCell(t,b)}}},handleInvalidItems:function(e,t,n,i,r,a){var o=e,s=Array.isArray(o),c=0;for(o=s?o:o[Symbol.iterator]();;){var l;if(s){if(c>=o.length)break;l=o[c++]}else{if((c=o.next()).done)break;l=c.value}var u=l,d=this.cellForHandle(u),h=this.cellForHandle(u.sectionHandle,"section").retain(this,"reusePreviousVisibleCells: invalidating cells");h.invalidateCell(d),h.release(this,"reusePreviousVisibleCells: invalidating cells")}this._cellMapForCellType("section").forEach(function(e){e.checkForInvalidCells(this,t)},this);var p=this.topMostLaidOutItem(t,r);p||(p=this.topMostItem(t,r),this.recoverLayoutFromCell(t,p))},handleInvalidSections:function(e,t,n,i,r,a){e.forEach(function(e){this.cellForHandle(e,"section").invalidate()},this),this.recoverLayout(t,i,r)},sectionCellClass:v.a.extend({_cachedCells:Object(p.c)(Set),cacheCell:function(e){var t=this._cachedCells;t.has(e)||(t.add(e),e.retain(this,"section layout cache"))},invalidateCell:function(e){var t=this._cachedCells;t.has(e)||Object(c.b)("CW.UI.Collections.FlowLayoutDelegate#sectionCellClass#invalidateCell: Cannot invalidate non-cached cell",{cell:e}),e.invalidate(),t.delete(e),e.release(this,"section layout cache")},invalidateAllCells:function(){var e=this._cachedCells;e.forEach(function(e){e.invalidate(),e.release(this,"section layout cache")},this),e.clear(),this.invalidate()},lastLaidOutCell:Object(h.d)({strong:!0}),invalidate:function(){var e=arguments,t=this._cachedCells;t.forEach(function(e){e.isLaidOutInSection=!1,e.isLaidOut=!1,t.delete(e),e.autorelease(this,"section layout cache")},this),this.fakeRows.clear(),this.childrenWereInvalidated(),this.__s._$4_s$invalidate.apply(this,e)},childrenWereInvalidated:function(){this.isLaidOut=!1,this.lastLaidOutCell=null,this.height=-1,this.width=-1},checkForRemovedCells:function(e,t){var n,i=this._cachedCells,r=this.handle;i.forEach(function(t){var i=t.handle;if("item"===t.cellType)if(i.wasRemoved){var a=i.next;if(a.isValid&&a.sectionHandle===r){var o=e.cellForHandle(a).retain(this,"checking for removed cells");o.isLaidOutInSection=!1,o.isLaidOut=!1,o.release(this,"checking for removed cells")}var s=t.row;if(s)for(var c=s.cells,l=0,u=c.length;l<u;l++)c[l].isLaidOutInSection=!1;this.invalidateCell(t)}else(!n||t.handle.position>n.handle.position)&&(n=t)},this),this.lastLaidOutCell=n,this.checkForInvalidCells(e,t)},checkForInvalidCells:function(e,t){var n=this.handle;if(!e.shouldEstimateSectionLayout(t,n.value)){var i=this.lastLaidOutCell;if(i){for(var r=n.firstItem,a=i.handle,o=!1;;){var s=e.cellForHandle(r).retain(this,"checking for invalid cells");if(o?(s.isLaidOutInSection=!1,s.isLaidOut=!1):s.isLaidOutInSection?i=s:o=!0,s.release(this,"checking for invalid cells"),r===a)break;r=r.next}this.lastLaidOutCell=i,this.isLaidOut=!1}}},fakeRows:Object(p.c)(Map),fakeSize:Object(h.d)({strong:!0,get:function(e){return e||o.a.create()}}),layOutItem:function(e,t,n,r){if(n&&n.isLaidOutInSection)return n;var a=this.handle,o=t.layoutMetrics,s=a.firstItem;-1===s.position&&Object(c.b)("FlowLayout: attempting to lay out invalid section");var u=n&&n.handle.retain(this,"layOutItem: current handle"),d=this.fakeRows,h=t.viewportBounds,p=e.maxWidthForSection(t,o,h,a);if(!((p+=1/(2*i.a.sharedInstance.devicePixelRatio)-Number.EPSILON)<0)){this.width=p;var m=o.rowSpacing;if(e.shouldEstimateSectionLayout(t,a.value)){var g=o.columnWidth,b=o.columnSpacing,v=o.rowHeight,_=e.estimateRowHeight(t,o,a),y=_+m,C=Math.floor((p+b)/(g+b)),I=void 0,w=void 0;n?(I=u.position-s.position,w=Math.floor(I/C)):(I=(w=Math.floor(r/y))*C+s.position,u=t.collection.startHandle.at(I).retain(this,"layOutItem: current handle"),n=e.cellForHandle(u));var S=w*y;n.sectionY=S;var A=I%C;n.sectionX=A*g+A*b,n.isLaidOutInSection=!0;var O=d.get(w);O||((O=this.createRowCell(e,t,S)).index=w,d.set(w,O)),n.row=O,-1===O.cells.indexOf(n)&&(O.cells.push(n),O.width=this.width,O.height=_);var E=this.fakeSize;return E.width=g,E.height=v,n.size=E,this.cacheCell(n),this.isLaidOut||(this.height=e.estimateSectionHeight(t,o,a,p),this.isLaidOut=!0),u.release(this,"layOutItem: current handle"),n}d.size>0&&(this.invalidateAllCells(),this.width=p);var T=0,D=void 0,L=0-o.columnSpacing;if(n)for(;;){var N=e.cellForHandle(u).retain(this,"layOutItem: finding start of layout pass");if(N.isLaidOut){T=(D=N.row).y;for(var M=D.cells,P=0,x=M.length;P<x;P++){var R=M[P];if(L+=e.sizeForCell(t,R).width+o.columnSpacing,R.handle.next===u){M.length=P+1;break}}D.width=L,N.release(this,"layOutItem: finding start of layout pass");break}if(u===s){D=this.createRowCell(e,t,T),N.release(this,"layOutItem: finding start of layout pass");break}var j=u.previous.retain(this,"layOutItem: current handle");u.release(this,"layOutItem: current handle"),u=j,N.release(this,"layOutItem: finding start of layout pass")}else{var F=this.lastLaidOutCell;if(F){if(F.sectionY>=r){var V=t.collection.handleProvider,U=Object(l.a)(s.position,F.handle.position,function(t){return e.cellForHandle(V.at(t))},function(e){return r<e.row.y?-1:r>e.row.bottom+m?1:0});if(-1===U)return;return e.cellForHandle(V.at(U))}u=F.handle.retain(this,"layOutItem: current handle"),T=(D=F.row).y}else u=a.firstItem.retain(this,"layOutItem: current handle"),D=this.createRowCell(e,t,T)}for(var k=!1,B=void 0,z=a.lastItem;!k;){for(;;){var W=e.cellForHandle(u);if(this.cacheCell(W),!e.addCellToRow(t,this,D,W))break;if(W.row=D,W.isLaidOutInSection=!0,B=W,u===z)return T+=e.layOutRow(t,this,D).height,this.height=T,this.isLaidOut=!0,this.lastLaidOutCell=B,u.release(this,"layOutItem: current handle"),W;var H=u.next.retain(this,"layOutItem: current handle");if(u.release(this,"layOutItem: current handle"),(u=H).sectionHandle!==a)return T+=e.layOutRow(t,this,D).height,this.height=T,this.isLaidOut=!0,this.lastLaidOutCell=B,u.release(this,"layOutItem: current handle"),W;W===n&&(k=!0)}T+=e.layOutRow(t,this,D).height+o.rowSpacing,r&&D.bottom+m>=r&&(n=D.cells[0],k=!0),D=this.createRowCell(e,t,T)}return u.release(this,"layOutItem: current handle"),this.lastLaidOutCell=B,n}Object(f.e)(u,this,"layOutItem: current handle")},createRowCell:function(e,t,n){var i=e.rowCellClass.create();return i.cellType="row",i.y=n,i.sectionCell=this,i.width=0-t.layoutMetrics.columnSpacing,this.cacheCell(i),i},__superMap:{_$4_s$invalidate:"invalidate"}}),rowCellClass:m.a.extend({cells:Object(p.c)(Array),sectionCell:Object(h.d)({weak:!0}),invalidate:function(){var e=this.sectionCell,t=this.index;void 0!==t&&e&&e.fakeRows.delete(t),this.index=void 0,this.cells.length=0,this.sectionCell=null,this.__s._$B5z$invalidate.call(this)},__superMap:{_$B5z$invalidate:"invalidate"}}),layOutItemInSection:function(e,t,n){n.isLaidOutInSection||this.cellForHandle(t,"section").layOutItem(this,e,n)},addCellToRow:function(e,t,n,i){var r=this.sizeForCell(e,i),a=n.width+r.width+e.layoutMetrics.columnSpacing;return!(a>t.width||(n.width=a,n.cells.push(i),0))},shouldEstimateSectionLayout:function(e,t){return!1},estimateSectionHeight:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:n.firstItem,a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:n.lastItem,o=t.columnWidth,s=t.columnSpacing,c=t.rowSpacing,l=Math.floor((i+s)/(o+s)),u=a.position-r.position+1,d=Math.ceil(u/l);return d*this.estimateRowHeight(e,t,n)+(d-1)*c},maxWidthForSection:function(e,t,n,i){return Math.max(0,n.width-t.sectionLeftPadding-t.sectionRightPadding)},estimateRowHeight:function(e,t,n){return t.rowHeight},cellClassKeysByCellType:Object(d.b)({section:"sectionCellClass"}),_cachedSectionCells:Object(p.c)(Array),_previousCachedSectionCells:Object(p.c)(Array),completeVisibleCells:function(e,t,n,i){var r=arguments,a=this._previousCachedSectionCells,o=this._cachedSectionCells;this.__s._$CUv$completeVisibleCells.apply(this,r);var s=this.topMostItem(e,n);if(s){var l=this.getSectionHandle(s),u=l.previous;u.isValid&&(l=u);var d=this.getSectionHandle(this.bottomMostItem(e,n)),h=d.next;h.isValid&&(d=h);for(var p=0,f=t&&t.sections.length||1e3,m=l;;){++p>f&&Object(c.b)("Infinite loop detected in `FlowLayoutDelegate#completeVisibleCells`.",{firstSectionHandle:m,lastSectionHandle:d});var g=this.cellForHandle(l,"section");if(o.push(g),g.retain(this,"flow layout section cache"),l===d)break;l=l.next}a.forEach(S,this),a.length=0,this._cachedSectionCells=a,this._previousCachedSectionCells=o}},layOutRow:function(e,t,n){var i=e.layoutMetrics,r=t.width,a=i.columnSpacing,o=i.verticalAlignment,l=i.justification;return l===y.Left?this.leftJustify(e,n,a,r):l===y.Right?this.rightJustify(e,n,a,r):l===y.Center?this.centerJustify(e,n,a,r):l===y.Full?this.fullJustify(e,n,a,r):Object(c.b)("ListLayoutDelegate: Invalid justification %{justification}",{justification:l}),o===s.b.Top?this.topAlign(e,n):o===s.b.Middle?this.centerAlign(e,n):o===s.b.Bottom?this.bottomAlign(e,n):Object(c.b)("ListLayoutDelegate: Invalid verticalAlignment %{verticalAlignment}",{verticalAlignment:o}),n.isLaidOut=!0,n},cellIsVisible:function(e,t,n){if("item"!==n.cellType)return this.__s._$DoX$cellIsVisible.call(this,e,t,n);var i=n.rowTop;return i<t.bottom&&i+n.row.height+e.layoutMetrics.rowSpacing>t.y},topAlign:function(e,t){for(var n=t.y,i=0,r=t.cells,a=0,o=r.length;a<o;a++){var s=r[a];s.sectionY=n;var c=this.sizeForCell(e,s).height;c>i&&(i=c)}t.height=i},centerAlign:function(e,t){for(var n=t.y,i=0,r=t.cells,a=r.length,o=0;o<a;o++){var s=r[o],c=this.sizeForCell(e,s).height;c>i&&(i=c)}for(var l=0;l<a;l++){var u=r[l],d=this.sizeForCell(e,u).height;u.sectionY=n+(i-d)/2}t.height=i},leftJustify:function(e,t,n,i){for(var r=t.cells,a=r.length-1,o=0,s=0,c=r.length;s<c;s++){var l=e.layoutMetrics.direction===C.leftToRight?r[s]:r[a-s];l.sectionX=o,o+=this.sizeForCell(e,l).width+n}t.x=0,t.width=o-n},centerJustify:function(e,t,n,i){for(var r=t.cells,a=r.length,o=0,s=0;s<a;s++){var c=r[s];o+=this.sizeForCell(e,c).width}var l=(i-o-n*(a-1))/2;t.x=l;for(var u=0;u<a;u++){var d=r[u];d.sectionX=l,l+=this.sizeForCell(e,d).width+n}t.width=l-n},fullJustify:function(e,t,n,i){for(var r=t.cells,a=r.length,o=0,s=0;s<a;s++){var c=r[s];o+=this.sizeForCell(e,c).width}n=(i-o)/(a-1);for(var l=0,u=0;u<a;u++){var d=r[u];d.sectionX=l,l+=this.sizeForCell(e,d).width+n}t.x=0,t.width=i},rightJustify:function(e,t,n,i){for(var r=t.cells,a=r.length-1,o=i,s=r.length-1;s>=0;s--){var c=e.layoutMetrics.direction===C.leftToRight?r[s]:r[a-s],l=this.sizeForCell(e,c).width;c.sectionX=o-l,o-=l+n}t.x=o+n,t.width=i-t.x},setUpCellAtDistance:function(e,t,n,i,r){var a=this.getSectionHandle(n).retain(this,"setUpCellAtDistance: section iteration");n.wasLaidOut||this.layOutItemInSection(e,a,n);var o=r+n.sectionY,s=this.lazyEstimateSectionHeight(e,a),l=Math.sign(o),u=e.layoutMetrics,d=u.sectionSpacing+u.sectionTopPadding+u.sectionBottomPadding;for(u.hasHeaders&&(d+=u.headerHeight+u.sectionHeaderPadding),u.hasFooters&&(d+=u.footerHeight+u.sectionFooterPadding);;){if(o>=0&&o<s){var h=this.cellForHandle(a,"section").retain(this,"setUpCellAtDistance: current searched section"),p=h.layOutItem(this,e,null,o);return p||Object(c.b)("unable to find cell at offset %{offset}",{offset:o}),this.layOutCellInDirection(e,p,1,p.sectionY-o,1,p.sectionX+e.layoutMetrics.sectionLeftPadding),Math.abs(p.y)<.05*r&&(p.y=p.y%u.rowHeight),h.autorelease(this,"setUpCellAtDistance: current searched section"),p}l>0&&(o-=s);var f=a.atDistance(l).retain(this,"setUpCellAtDistance: section iteration");if(a.release(this,"setUpCellAtDistance: section iteration"),!(a=f).isValid){a.release(this,"setUpCellAtDistance: section iteration");break}s=this.lazyEstimateSectionHeight(e,a),s+=d,l<0&&(o+=s)}return l>0?this.setUpLastCell(e,t):this.setUpFirstCell(e,t)},handleNoPreviouslyValidCells:function(e,t,n,i,r){var a=this.isAtEnd;if(a===_.c.Top)return this.setUpFirstCell(e,t);if(a===_.c.Bottom)return this.setUpLastCell(e,t);if(this.bottomMostItem(e,i).handle.position>=t.length)return this.isAtEnd=_.c.Bottom,this.setUpLastCell(e,t);var o=this.topMostItem(e,i),s=o.handle.position,c=t.startHandle.at(s),l=this.cellForHandle(c);return this.recoverLayoutFromCell(e,l,o),l},recoverLayoutFromCell:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=t.handle;i.wasRemoved||i.isValid&&(this.layOutItemInSection(e,i.sectionHandle,t),t.isLaidOutInSection&&this.layOutCellInDirection(e,t,1,n.y,1,t.sectionX+e.layoutMetrics.sectionLeftPadding))},handleEverythingChanged:function(e,t,n,i,r){var a=arguments;this._cellMapForCellType("section").forEach(function(e){e.invalidateAllCells()},this),this.__s._$HB_$handleEverythingChanged.apply(this,a)},positionAdjacentCell:function(e,t,n,i,r){var a,o=t.cellType,s=n.cellType,l=e.layoutMetrics;if("item"===o&&"item"===s&&t.handle.sectionHandle===n.handle.sectionHandle)return this.layOutItemInSection(e,n.handle.sectionHandle,n),this.layOutCellInDirection(e,n,1,t.y+(n.sectionY-t.sectionY),1,n.sectionX+l.sectionLeftPadding);var u,d=i>0;if("header"===o||"footer"===o?a=d?t.bottom:t.y:"item"===o?a=d?t.rowBottom:t.rowTop:Object(c.b)("FlowLayout#positionAdjacentCell: unable to position based on cell of type %{cellType}",{cell:t,cellType:o}),a+=i*r,"header"===s||"footer"===s)u=0;else if("item"===s){this.layOutItemInSection(e,n.handle.sectionHandle,n),u=n.sectionX+l.sectionLeftPadding;var h=n.row,p=n.sectionY-h.y;a+=d?p:-(h.height-this.sizeForCell(e,n).height-p)}else Object(c.b)("FlowLayout#positionAdjacentCell: unable to position cell of type %{cellType}",{cell:n,cellType:s});return this.layOutCellInDirection(e,n,i,a,1,u)},topForCell:function(e,t){var n=this.getSectionHandle(t);this.layOutItemInSection(e,n,t);var i=t.sectionY;i+=this.estimatedHeightForCells(e,n.firstItem.position);var r=e.layoutMetrics;return i+this.sectionSpaceAboveCell(e,t)+r.topPadding+r.topInset-r.hideableTopHeight},lazyEstimateSectionHeight:function(e,t){var n=e.layoutMetrics;t.retain(this,"lazyEstimateSectionHeight: sectionHandle");var i=this.cellForHandle(t,"section").retain(this,"lazyEstimateSectionHeight: sectionCell");if(i.isLaidOut){var r=i.height;return i.release(this,"lazyEstimateSectionHeight: sectionCell"),t.release(this,"lazyEstimateSectionHeight: sectionHandle"),r}var a=i.lastLaidOutCell,o=0,s=void 0;a&&a.row?(o=a.row.bottom,o+=n.rowSpacing,s=a.handle.next):s=i.firstItem,i.release(this,"lazyEstimateSectionHeight: sectionCell");var c=this.maxWidthForSection(e,n,e.viewportBounds,t),l=this.estimateSectionHeight(e,n,t,c,s);return t.release(this,"lazyEstimateSectionHeight: sectionHandle"),o+l},spaceBelowCell:function(e,t){var n=this.getSectionHandle(t);this.layOutItemInSection(e,n,t);var i=this.cellForHandle(n,"section").retain(this,"spaceBelowCell"),r=t.size?t.size.height:t.height,a=this.lazyEstimateSectionHeight(e,n)-(t.sectionY+r);i.release(this,"spaceBelowCell");var o=n.lastItem;a+=this.estimatedHeightForCells(e,o.maximumPosition-o.position);var s=e.layoutMetrics;return a+this.sectionSpaceBelowCell(e,t)+s.bottomPadding-s.hideableBottomHeight},estimatedHeightForCells:function(e,t){if(0===t)return 0;var n=e.layoutMetrics,i=n.columnWidth,r=n.columnSpacing,a=n.rowSpacing,o=n.rowHeight,s=(e.viewportWidth+r)/(i+r),c=Math.ceil(t/s);return c*o+(c-1)*a},leftForCell:function(e,t){var n=arguments;return"item"===t.cellType?(this.layOutItemInSection(e,t.handle.sectionHandle,t),t.sectionX+e.layoutMetrics.sectionLeftPadding):this.__s._$Jh7$leftForCell.apply(this,n)},sizeForItem:function(e,t){var n=e.layoutMetrics;return o.a.create({height:n.rowHeight,width:n.columnWidth})},minimumTopOffsetForCell:function(e,t){var n=e.layoutMetrics,i=t.handle,r=t.row,a=i.sectionHandle,o=0;return i.hasPrevious||(o+=n.topPadding+n.topInset-n.hideableTopHeight),this.layOutItemInSection(e,a,t),o+=t.sectionY-r.y,this.shouldSectionHaveHeader(e,a)?((n.hasFloatingHeaders||0===r.index)&&(o+=n.headerHeight+this.verticalSpacingForCellTypes(e,"header","item")),o):o},minimumBottomOffsetForCell:function(e,t){var n=e.layoutMetrics,i=t.handle,r=t.row,a=i.sectionHandle,o=0;if(i.hasNext||(o+=n.bottomPadding-n.hideableBottomHeight),this.layOutItemInSection(e,a,t),o+=r.bottom-(t.sectionY+this.sizeForCell(e,t).height),!this.shouldSectionHaveFooter(e,a))return o;var s=r.cells;return s[s.length-1].handle===a.lastItem&&(o+=n.footerHeight+this.verticalSpacingForCellTypes(e,"item","footer")),o},__superMap:{_$CUv$completeVisibleCells:"completeVisibleCells",_$DoX$cellIsVisible:"cellIsVisible",_$HB_$handleEverythingChanged:"handleEverythingChanged",_$Jh7$leftForCell:"leftForCell"}});function S(e){e.release(this,"flow layout section cache")}},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i=n(79),r=n(488),a=n(844),o=r.a.extend({debugType:"Strong",init:function(){var e=arguments;this.__s._$DJ$init.apply(this,e),this._referenceDescriptorComputedCache="Observable strong ref for `"+this.key+"` (downstream cached value)"},_referenceDescriptorComputedCache:void 0,_manageForCalculateValueForNode:function(e,t,n){Object(i.f)(n,e,this._referenceDescriptorComputedCache)},previousValueWasReplaced:function(e,t,n){Object(i.e)(n,e,this._referenceDescriptorComputedCache)},nodeWillFree:function(e,t){Object(i.e)(a.a.getDataForNode(t),e,this._referenceDescriptorComputedCache)},__superMap:{_$DJ$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownstreamStrongNodeManager"}}),s=o.extend({debugType:"Strong Computed",init:function(){var e=arguments;this.__s._$gV$init.apply(this,e),this._referenceDescriptorComputedCache="Observable strong ref for `"+this.key+"` (downstream cached computed value)"},__superMap:{_$gV$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownstreamStrongComputedNodeManager"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var i=n(98),r=n(78),a=n(877),o=n(861),s=n(876),c=250,l=a.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"VIEWOUTLET",tagname:"view",name:"contentView"}],classes:["cw-modal-dialog-background",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isOpen",truevalue:"is-open",falsevalue:"is-closing",attributes:{}}]}},className:"cw-ui-modal-dialog",__QUALIFIED_CLASS_NAME__:"ModalDialog"},contentView:Object(i.b)(),isFocusable:!0,tabIndex:-1,dismissOnEscape:Object(i.b)(!0),animationDuration:c,isOpen:Object(i.b)(),animateOpen:function(e){this.isOpen=!0,e&&Object(o.a)(e,this.animationDuration)},animateClosed:function(e){var t=this;this.isOpen=!1,Object(o.a)(function(){t.sendEvent("modalDialogDidDismiss"),"function"==typeof e&&e()},this.animationDuration)},_isAttachedDidChange:Object(r.h)("isAttached",function(e){e&&this.animateOpen()}),pointerUp:function(e){this.contentView.element.contains(e.targetView.element)?this.sendEvent("modalContentWasClicked",this):this.sendEvent("modalBackgroundWasClicked",this)},keyDown:function(e){if(!this.dismissOnEscape||e.keyCode!==s.a.ESC)return!1;this.animateClosed()},hide:function(){this.sendEvent("dismissModalDialog")}})},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i=n(818),r=n(98),a=n(87),o={mixinDependencies:[n(105).a],isInFocusableLayer:Object(r.b)(Object(a.c)("isFocusableLayer")),isInFocusedLayer:Object(r.b)(Object(a.c)("isFocusedLayer")),isInFocusedBranch:Object(r.b)({readOnly:!0,dependencies:["isInFocusedLayer"],get:Object.assign(function(){return this.isInFocusedLayer},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])}})}),isFocusableLayer:Object(r.b)({readOnly:!1,defaultValue:!1}),wantsFocus:Object(r.b)(Object(a.c)("parent.wantsFocus")),isFocusedLayer:Object(r.b)({readOnly:!0,dependencies:["isFocusableLayer","wantsFocus"],get:Object.assign(function(){return this.isFocusableLayer&&this.wantsFocus},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])&&i.internalGet(this,t[1+n])}})}),focusResponder:Object(r.b)({dependencies:["focusedChild","focusedChild.focusResponder","isFocusableLayer"],readOnly:!0,get:Object.assign(function(){return this.isFocusableLayer?this.focusedChild&&this.focusedChild.focusResponder||(this.isFocusable?this:null):null},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[2+n])?i.internalGet(this,t[0+n])&&i.internalGetPath(this,t[1+n])||(this.isFocusable?this:null):null}})}),_previousFocusableLayerState:!1},s=i.a.extend(o,{staticMembers:{__QUALIFIED_CLASS_NAME__:"FocusLayer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u}),n.d(t,"b",function(){return d});var i=n(95),r=n(81),a=n(100),o=n(861),s=n(869),c=n(892),l=n(399),u=Object(i.b)("IFrameDownloadCompletionStatus",function(e){e("FAILED"),e("SURVIVED")}),d=l.a.extend({init:function(){var e=arguments;this._availableIFramePool=[],this._materializedIFrames=[],this.__s._$bd$init.apply(this,e),this.maxConcurrentActions=this.maximumConcurrentIFrames},maximumConcurrentIFrames:Object(r.d)({defaultValue:10,set:function(e){return this.maxConcurrentActions=e,e}}),msToWaitForDownloadToStart:5e3,downloadFromURL:function(e){return this.enqueue(e)},downloadFromURLs:function(e){var t=e.map(this.downloadFromURL,this);return a.a.all(t)},cleanup:function(){this._materializedIFrames.forEach(function(e){e.parentElement.removeChild(e)})},_availableIFramePool:Object(r.d)({type:Array,readOnly:!0}),_materializedIFrames:Object(r.d)({type:Array,readOnly:!0}),_materializeIFrameForPool:function(){var e=document.createElement("iframe");return e.style.display="none",document.body.appendChild(e),this._materializedIFrames.push(e),e},_acquireIFrame:function(){var e=this._availableIFramePool;return 0===e.length?this._materializeIFrameForPool():e.pop()},_returnToIFramePool:function(e){this._availableIFramePool.push(e)},processAction:function(e){var t=this._acquireIFrame();return function(e,t,n){var i=a.a.create();Object(o.a)(function(){return i.resolve(u.SURVIVED)},n);var r=a.a.create(),l=function(){return r.resolve(u.FAILED)};return Object(s.a)(e,"load",l),e.id=t,e.src=t,a.a.race([i,r]).finally(function(){Object(c.a)(e,"load",l)})}(t,e,this.msToWaitForDownloadToStart).finally(this._returnToIFramePool.bind(this,t))},__superMap:{_$bd$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"IFrameDownloader"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(493),r=n(851),a=n(850);function o(e){return e?{message:e.message,type:e.type,stack:Object(i.a)(e),lineNumber:Object(r.a)(e),context:Object(a.a)(e.context)}:null}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(828),r=n(85),a=n(94).b.extend({metadataType:null,validate:function(e,t){if(!e.hasMixin||!e.hasMixin(r.b))return!1;var n=e.getMetadata(t);return Object(i.a)(n,this.metadataType)},staticMembers:{__QUALIFIED_CLASS_NAME__:"RequiredMetadata"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(228),a=n(498),o=n(81),s=n(824),c=i.a.extend(a.a,r.a,s.a,{initFromPool:function(e,t){this.__s._$Eg$initFromPool.call(this),this.set("source",e),this.set("position",t||0)},didEnterPool:function(){this.set("source",null),this.set("position",NaN),this.__s._$IR$didEnterPool.call(this)},source:Object(o.d)(),value:Object(o.d)({get:function(){return this.source.decode(this.encodedValue,this.position)},set:function(e){return this.encodedValue=this.source.encode(e,this.position),e}}),encodedValue:Object(o.d)({get:function(){return this.source.encodedObjectAt(this.position)},set:function(e){return this.source.encodedSetIndex(this.position,e),e}}),isValid:Object(o.d)({readOnly:!0,get:function(){var e=this.get("position");return e>=0&&e<this.get("length")}}),length:Object(o.d)({readOnly:!0,get:function(){return this.getPath("source.length")}}),clone:function(){return this.constructor.create(this.get("source"),this.get("position"))},remove:function(){return!!this.isValid&&(this.get("source").removeAt(this.get("position")),!0)},add:function(e){var t=this.get("source"),n=t.get("length"),i=this.get("position")+1;t.insertAt(i,e);var r=t.get("length")!==n;return r&&this.set("position",Math.min(i,n)),r},__superMap:{_$Eg$initFromPool:"initFromPool",_$IR$didEnterPool:"didEnterPool"},staticMembers:{__QUALIFIED_CLASS_NAME__:"OrderedListIterator"}})},function(e,t,n){"use strict";function i(e,t,n,i){if(t<e)return-1;for(var r=arguments.length,a=Array(r>4?r-4:0),o=4;o<r;o++)a[o-4]=arguments[o];for(var s=new Array(2).concat(a),c=void 0;e<t;){c=e+(t-e>>1),s[0]=n(c),s[1]=c;var l=i.apply(void 0,s);if(0===l)return c;l<0?t=c-1:e=c+1}return e===t&&e!==c&&(s[0]=n(e),s[1]=e,0===i.apply(void 0,s))?e:-1}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n(818),r=n(847),a=n(81),o=n(86),s=n(78),c=n(98),l=n(861),u=n(231),d=n(876),h=i.a.extend(r.a,s.b,{timeToKeepKeySequence:1e3,activeKeySequence:Object(a.d)({readOnly:!0,get:function(){return this._keySequence||(this._keySequence=u.a.create())}}),activeKeys:Object(c.b)({readOnly:!0,defaultValue:function(){return u.a.create()}}),_activeKeyLocations:Object(o.c)(Object),keyDown:function(e){this._timer&&(clearTimeout(this._timer),delete this._timer);var t=this.activeKeySequence,n=e.which;t.addKey(n);var i=this._activeKeyLocations,r=this.activeKeys.contains(n),a=1<<e.location;i[n]|=a,r||(this.activeKeys.addKey(n),this.propertyChanged("activeKeys")),this.syncMetaKeyStateFromEvent(e)},keyUp:function(e){var t=this._keySequence;if(t){this._timer&&clearTimeout(this._timer),this._timer=Object(l.a)(function(){t.clear()},this.timeToKeepKeySequence);var n=e.which,i=this._activeKeyLocations,r=~(1<<e.location);(i[n]&=r)||(this.activeKeys.removeKey(n),this.propertyChanged("activeKeys"))}},syncMetaKeyStateFromEvent:function(e){var t=d.a.SHIFT,n=d.a.CMD,i=d.a.OPTION,r=d.a.CTRL,a=this.activeKeys,o=this.activeKeySequence,s=e.shiftKey,c=e.metaKey,l=e.altKey,u=e.ctrlKey,h=1<<e.location;!1===s&&(a.has(t)||o.has(t))&&this.keyUp({which:t,location:h}),!1===c&&(a.has(n)||o.has(n))&&this.keyUp({which:n,location:h}),!1===l&&(a.has(i)||o.has(i))&&this.keyUp({which:i,location:h}),!1===u&&(a.has(r)||o.has(r))&&this.keyUp({which:r,location:h})},staticMembers:{__QUALIFIED_CLASS_NAME__:"KeyManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(823);function r(e,t,n){if(!e)return f;t||null===t||!1===t||(t=a);var o=t||n?Object(i.b)(t)+p+e+p+!!n:e,b=m[o];if(b)return b;if(Array.isArray(t))return m[o]=function(e,t,n){var a=function(e){var t=Object(i.b)(e),n=g[t];if(n)return n;var r=e.map(function(e){return"i"===e[0]&&l(e[1])?"I"+e.substring(1):null}).filter(Boolean);return e=e.concat(r),g[t]=new RegExp(e.join("|"),"g")}(t),o=e.match(a);if(!o||!o.length)return r(e,null,n);for(var s=e.split(a),c=r(s[0]),d=0,p=o.length;d<p;d++){var f=o[d];n||(f=f.toLowerCase());var m=s[d+1];m&&(m=r(m,null,n)),c+=(c&&h)+f,m&&(c+=(u(m[0])?h:"")+m)}return c}(e,t,n);var v=e.length,_="",y=void 0,C=void 0,I=void 0,w=void 0,S=void 0;for(y=0;y<v;y++)C=e[y-1],w=(I=e[y]).toLowerCase(),S=e[y+1],C&&d(I)&&d(C)&&(!l(C)&&l(I)||s(C)&&u(I)||S&&l(C)&&l(I)&&c(S))?_+=h+w:_+=w;return m[o]=_}var a=["iOS","iPhone","iPad","iPod","WebKit"];function o(e,t){var n=e.charCodeAt(0),i=t.charCodeAt(0),r={};return function(e){var t=r[e];if(void 0!==t)return t;var a=e.charCodeAt(0);return r[e]=a>=n&&a<=i}}var s=o("0","9"),c=o("a","z"),l=o("A","Z"),u=function(e){return c(e)||l(e)},d=function(e){return u(e)||s(e)},h="-",p="#",f="",m={},g={}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(504).a.extend({_iterator:null,clone:function(){return this.constructor.create(this._map,this)},staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseMapIterator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(95),r=Object(i.b)("ArrayChangeOperation",function(e){e("INSERT"),e("REMOVE")})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(280),r=n(78),a=i.a.extend({metadataType:r.f,staticMembers:{__QUALIFIED_CLASS_NAME__:"RequiredSignal"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819),r=n(110).a.extend({action:function(e){e.rootElement||Object(i.b)("Must provide a `rootElement`")},staticMembers:{__QUALIFIED_CLASS_NAME__:"RootElementInitializer"}})},function(e,t,n){"use strict";n(1),n.d(t,"a",function(){return l});var i=n(90),r=n(562),a=n(819),o=n(229),s=n(110),c=n(288),l=s.a.extend({dependencies:[c.a],action:function(e){if(!e.rootElement)return Object(a.b)("Application has no rootElement defined");var t=e.rootElement;t===window.document.body&&(t=window.document);var n=t.addEventListener,s=t.removeEventListener,c=e.rootResponder=i.a.create({application:e,element:t,events:r.a});return t.addEventListener=function(e,i,r){var a=Object(o.a)(i);return a?n.call(t,e,a,r):c.prependEventListenerToElement(t,e,i,r)},t.removeEventListener=function(e,n,i){var r=Object(o.a)(n);return r&&(n=r),s.call(t,e,n,i)},e},staticMembers:{__QUALIFIED_CLASS_NAME__:"RootResponderInitializer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(291),r=Math.log(.998),a=function(e){function t(){return function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.calculatePositionAtTime=function(e){return this.initialVelocity*(Math.pow(.998,e)-1)/r},t.prototype.calculateVelocityAtTime=function(e){return this.initialVelocity*Math.pow(.998,e)},t.prototype.calculateTimeAtPosition=function(e){if(0===e)return[0];var t=this.initialVelocity;return[Math.log(e*r/t+1)/r]},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.initialTimestamp,i=void 0===n?0:n,r=t.initialPosition,a=void 0===r?0:r,o=t.initialVelocity,s=void 0===o?0:o,c=t.direction,l=void 0===c?1:c;!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.initialTimestamp=i,this.initialPosition=a,this.initialVelocity=s,this.direction=l}return e.prototype.positionAtTime=function(e){return this.initialPosition+this.direction*this.calculatePositionAtTime(e-this.initialTimestamp)},e.prototype.positionDelta=function(e,t){return this.direction*(this.calculatePositionAtTime(t-this.initialTimestamp)-this.calculatePositionAtTime(e-this.initialTimestamp))},e.prototype.velocityAtTime=function(e){return this.direction*this.calculateVelocityAtTime(e-this.initialTimestamp)},e.prototype.timeAtPosition=function(e){var t=this;return this.calculateTimeAtPosition(this.direction*(e-this.initialPosition)).map(function(e){return t.initialTimestamp+e})},e}()},function(e,t,n){"use strict";n(12),n(0),n.d(t,"a",function(){return a});var i=n(98),r=n(177),a={mixinDependencies:[n(903).a],staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"VIEWOUTLET",tagname:"view",name:"verticalScrollIndicator"},{type:"VIEWOUTLET",tagname:"view",name:"horizontalScrollIndicator"}]}}},hasVerticalScrollIndicator:Object(i.b)(!0),hasHorizontalScrollIndicator:Object(i.b)(!0),horizontalScrollIndicatorClass:r.a,verticalScrollIndicatorClass:r.c,scrollIndicatorOptions:{},topInset:Object(i.b)(0),scrollIndicatorTopMargin:Object(i.b)(6),scrollIndicatorTotalTopMargin:Object(i.b)({dependencies:["topInset","scrollIndicatorTopMargin"],readOnly:!0,get:Object.assign(function(){return this.topInset+this.scrollIndicatorTopMargin},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])+i.internalGet(this,t[1+n])}})}),scrollIndicatorBottomMargin:Object(i.b)(6),scrollIndicatorLeftMargin:Object(i.b)(6),scrollIndicatorRightMargin:Object(i.b)(6),verticalScrollIndicator:Object(i.b)({readOnly:!0,strong:!0,dependencies:["hasVerticalScrollIndicator"],downstreamBindings:{otherScrollIndicator:"(owner).horizontalScrollIndicator",scrollMin:"(owner).scrollMinY",scrollSize:"(owner).height",totalSize:"(owner).scrollHeight",scrollPosition:"(owner).scrollY",beginMargin:"(owner).scrollIndicatorTotalTopMargin",endMargin:"(owner).scrollIndicatorBottomMargin"},get:Object.assign(function(){return this.hasVerticalScrollIndicator?this.verticalScrollIndicatorClass.create(this.scrollIndicatorOptions):null},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?this.verticalScrollIndicatorClass.create(this.scrollIndicatorOptions):null}})}),horizontalScrollIndicator:Object(i.b)({readOnly:!0,strong:!0,dependencies:["hasHorizontalScrollIndicator"],downstreamBindings:{otherScrollIndicator:"(owner).verticalScrollIndicator",scrollMin:"(owner).scrollMinX",scrollSize:"(owner).width",totalSize:"(owner).scrollWidth",scrollPosition:"(owner).scrollX",beginMargin:"(owner).scrollIndicatorLeftMargin",endMargin:"(owner).scrollIndicatorRightMargin"},get:Object.assign(function(){return this.hasHorizontalScrollIndicator?this.horizontalScrollIndicatorClass.create(this.scrollIndicatorOptions):null},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?this.horizontalScrollIndicatorClass.create(this.scrollIndicatorOptions):null}})})}},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n(818),r=n(864),a=n(830),o=n(78),s=n(98),c=n(838),l=n(906),u=n(539),d=i.a.extend(o.b,{channel:Object(s.b)({type:l.a}),messageFormatter:u.a.sharedInstance,serializer:r.a.sharedInstance,shouldHandleMessage:a.a.define(),handleMessage:a.a.define(),incomingMessageListener:Object(o.h)("channel.incomingMessage",function(e){if(e){var t=this.serializer.decode(e.context);Object(c.a)(t)&&this.shouldHandleMessage(t)&&this.handleMessage(t)}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"JsonRpcBase"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(853),r=n(391),a=i.a.extend(r.a,{staticMembers:{__QUALIFIED_CLASS_NAME__:"StrongArray"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return C});var i=n(95),r=n(818),a=n(81),o=n(906),s=n(822),c=n(100),l=n(819),u=n(831),d=n(86),h=n(179),p=n(1059),f=n(1061),m=n(1060),g=n(1050),b=n(1058),v=n(1057),_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y=i.b("MessagingChannelType",{LISTENER:"LISTENER",CONNECTION:"CONNECTION",BIDIRECTIONAL:"BIDIRECTIONAL"}),C=r.a.extend({mixinDependencies:[v.a],processId:a.d({type:String}),processState:a.d({readOnly:!0,type:b.a,get:function(){return this._processState}}),isConnected:a.d({readOnly:!0,type:Boolean,get:function(){return Object(b.c)(this.processState,b.a.LOADING,b.a.LOADED,b.a.RUNNING)}}),isTerminated:a.d({readOnly:!0,type:Boolean,get:function(){return Object(b.c)(this.processState,b.a.TERMINATED)}}),delegate:a.d(),channel:a.d({type:o.a}),localProtocol:a.d(),localProtocolTarget:a.d({type:r.a}),remoteProtocol:a.d(),remoteProxy:a.d({defaultValue:function(){var e=s.a(this);return r.a.extend({staticMembers:{__QUALIFIED_CLASS_NAME__:e+".remoteProxy"}}).create()}}),connectionTimeout:a.d({type:Number,defaultValue:1e4}),messagingChannelClass:a.d({type:p.a.constructor,defaultValue:p.a}),connect:function(){Object(b.b)(this.processState,b.a.NONE),this._processState=b.a.LOADING;var e=this.localProtocol,t=this.localProtocolTarget,n=this.remoteProtocol,i=this.connectionTimeout;this.createMessagingChannel(e,t,n,i)},disconnect:function(){var e=this;Object(b.b)(this.processState,b.a.LOADING,b.a.LOADED,b.a.RUNNING),this._processState=b.a.UNLOADING;var t=Array.from(this._messagingChannels);return this.cancelInvokeLaterMethods(),this._messagingChannels.clear(),(t.length?f.a.every(t.map(function(e){return e.stop()})):c.a.resolve()).then(function(){e._processState=b.a.UNLOADED})},terminate:function(){Object(b.b)(this.processState,b.a.UNLOADED),this._processState=b.a.TERMINATED;var e=this.remoteProxy,t=function(){l.b("The remote proxy is no longer connected.")};Object.keys(e).forEach(function(n){u.a(e[n])&&(e[n]=t)}),this.channel=null,this.remoteProxy=null,this._messagingChannels=null},createListenerOnlyMessagingChannel:function(e,t,n){this._createMessagingChannel({type:y.LISTENER,localProtocol:e,localProtocolTarget:t,timeoutMS:n})},createConnectionOnlyMessagingChannel:function(e,t){this._createMessagingChannel({type:y.CONNECTION,remoteProtocol:e,timeoutMS:t})},createMessagingChannel:function(e,t,n,i){this._createMessagingChannel({type:y.BIDIRECTIONAL,localProtocol:e,localProtocolTarget:t,remoteProtocol:n,timeoutMS:i})},_processState:a.d({type:b.a,defaultValue:b.a.NONE}),_messagingChannels:a.d({type:Set,defaultValue:d.c(Set)}),_createMessagingChannel:function(e){this._validateRequiredProperties(e);var t=y.BIDIRECTIONAL,n=y.LISTENER,i=y.CONNECTION,r=this.channel,a=this.remoteProxy,o=this._messagingChannels,s=this.messagingChannelClass.create(r);e.type!==t&&e.type!==n||s.setListener(e.localProtocol,e.localProtocolTarget),e.type!==t&&e.type!==i||s.setConnection(e.remoteProtocol,a);var c=e.timeoutMS;c&&(s.connectionTimeout=c),s.start(),o.add(s)},_validateRequiredProperties:function(e){var t=this.delegate,n=this.remoteProxy,i=this.channel,r=this.messagingChannelClass,a=y.BIDIRECTIONAL,s=y.LISTENER,c=y.CONNECTION;t||l.b("A delegate is required"),Object(m.b)(i,o.a)&&!i.isDisconnected||l.b("A connected CW.ChannelProtocol implementation is required"),"object"!==(void 0===n?"undefined":_(n))&&l.b("A remoteProxy Object is required"),r||l.b("A MessagingChannel Class is required."),e.type!==a&&e.type!==s||(Object(m.b)(e.localProtocol,g.a)||l.b("A valid localProtocol is required"),h.a(e.localProtocolTarget)||l.b("A localProtocolTarget is required")),e.type!==a&&e.type!==c||Object(m.b)(e.remoteProtocol,g.a)||l.b("A valid remoteProtocol is required")},staticMembers:{__QUALIFIED_CLASS_NAME__:"ProcessReference"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(81),a=n(1053),o=n(1050),s=n(1060),c=i.a.extend({protocolName:r.d({type:String}),protocolMethodNames:r.d({type:Set}),protocolTarget:r.d({type:Object}),init:function(e,t){if(this.__s._$ai$init.call(this),!e)throw new a.a("ProtocolMetadata: no messagingProtocol specified");if(!t)throw new a.a("ProtocolMetadata: no protocol target specified");if(!Object(s.b)(e,o.a))throw new a.a("ProtocolMetadata: The messagingProtocol class does not implement MessagingProtocol");if(!(this.protocolName=e.name))throw new a.a("ProtocolMetadata: no protocol name");var n=this.protocolMethodNames=Object(s.a)(e);if(!n||0===n.count)throw new a.a("ProtocolMetadata: Invalid list of protocol methods");this.protocolTarget=t},__superMap:{_$ai$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ProtocolMetadata"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingFromChildProtocol",version:.1,isReadyToReceiveMessages:i.a.define(),didFinishLaunching:i.a.define(),isReadyToTerminateDidChange:i.a.define(),didEnd:i.a.define(),reportNonFatalError:i.a.define(),recordException:i.a.define(),willUnload:i.a.define(),wantsReload:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],applicationWillFinishLaunching:r.a.define(),applicationDidFinishLaunching:r.a.define()}},function(e,t,n){"use strict";function i(e){for(var t=[],n=e.split("/"),i=0,r=n.length;i<r;i++){var a=n[i];a&&""!==a&&t.push(a)}return t}n.d(t,"a",function(){return i})},function(e,t){e.exports={UpdateAction:{UPDATE_IGNORE:0,UPDATE_PROMPT:1,UPDATE_FORCE:2,UPDATE_DELAYED_FORCE:3}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(95).b("CoreTypesPlatform",{WEB:"web",IOS:"ios",MAC:"mac"})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"c",function(){return s}),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var i=n(828),r=n(819),a=n(27),o=n(241);function s(e){i.a(e,a.a)||r.b("Incorrect param must be of type ChildApplicationInfo");var t=e.cloudKitInfo;return t&&t.partition&&t.containerIdentifier}function c(e,t,n,i){return e.load().then(function(a){if(a.status===o.b.LOADED)return e.instanceForContainer(n,i).resolveShortGUID(t);r.b("Could not load CloudKit.js")})}function l(e,t,n,i){return e.load().then(function(a){if(a.status===o.b.LOADED)return e.instanceForContainer(n,i).acceptShortGUID(t);r.b("Could not load CloudKit.js")})}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=450},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"MessagingFromLegacyCloudOSApplicationProtocol",version:"1.0",applicationIsReady:r.a.define(),appWillUnload:r.a.define(),exit:r.a.define(),handleApplicationCrash:r.a.define(),isReadyToTerminateDidChange:r.a.define(),relayKeyboardShortcut:r.a.define(),relayMouseMove:r.a.define(),reload:r.a.define(),reloadWhenCanTerminate:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyAppUrlServiceProtocol",version:"0.1",fetchAppUrl:r.a.define()},o={mixinDependencies:[i.a],name:"LegacyAppUrlServiceResponseProtocol",version:"0.1",didFetchAppUrl:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyCloudKitResolutionServiceProtocol",version:"0.1",resolveCKShortGUID:r.a.define()},o={mixinDependencies:[i.a],name:"LegacyCloudKitResolutionServiceResponseProtocol",version:"0.1",ckShortGUIDDidChange:r.a.define(),willResolveCKShortGUID:r.a.define(),didFailToResolveCKShortGUID:r.a.define(),didResolveCKShortGUID:r.a.define(),didResolveCKShortGUIDWithoutAcceptance:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyMeCardServiceProtocol",version:"0.1",meCardUpdated:r.a.define(),requestMeCard:r.a.define(),deleteMeCardPhoto:r.a.define(),storeMeCardPhoto:r.a.define()},o={mixinDependencies:[i.a],name:"LegacyMeCardServiceResponseProtocol",version:"0.1",receiveMeCard:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyPreferencesServiceProtocol",version:"0.1",refreshAppPreferences:r.a.define(),setAccountPreference:r.a.define(),setAppPreferences:r.a.define()},o={mixinDependencies:[i.a],name:"LegacyPreferencesServiceResponseProtocol",version:"0.1",accountPreferencesDidChange:r.a.define(),appPreferencesDidChange:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyQuotaServiceProtocol",version:"0.1",refreshQuotaData:r.a.define()},o={mixinDependencies:[i.a],name:"LegacyQuotaServiceResponseProtocol",version:"0.1",quotaDataDidChange:r.a.define(),quotaDataFailedToLoad:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyStartupInfoServiceProtocol",version:"0.1",setStartupInfo:r.a.define(),setStartupUrl:r.a.define(),startupDataIsLoaded:r.a.define()},o={mixinDependencies:[i.a],name:"LegacyStartupInfoServiceResponseProtocol",version:"0.1",didFetchStartup:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyCloudOSApplicationServiceProtocol",version:"1.0",completeAuthentication:r.a.define(),logoutFromAllBrowsers:r.a.define(),performLogout:r.a.define(),performSecondaryAuth:r.a.define(),replaceCurrentApp:r.a.define(),revalidateUser:r.a.define(),sendLocalNotification:r.a.define(),setAppBanner:r.a.define(),setBadgeCount:r.a.define(),setRoute:r.a.define(),setTitle:r.a.define(),showAccountSettings:r.a.define(),showAppSwitcher:r.a.define(),showAccountMenu:r.a.define(),showLocalNotification:r.a.define(),showSpringBoard:r.a.define(),switchToApplication:r.a.define()},o={mixinDependencies:[i.a],name:"LegacyCloudOSApplicationServiceResponseProtocol",version:"1.0",adjustLayout:r.a.define(),didReceiveNotification:r.a.define(),userDidRevalidate:r.a.define(),secondaryAuthDidSucceed:r.a.define(),secondaryAuthDidFail:r.a.define()}},function(e,t,n){"use strict";n(0),n(5),n.d(t,"a",function(){return s});var i=n(898),r=n(104),a=n(866),o=(n(126),n(953)),s=i.a.extend({additionalClassNames:r.b(["apple-icon-view"]),action:"navigateToExternalURL",context:a.a.create("https://www.apple.com"),staticMembers:{template:{type:"ELEMENT",tagname:"span",name:"iconElement"},__QUALIFIED_CLASS_NAME__:"AppleIconView"},init:function(){var e=arguments;this.__s._$A5$init.apply(this,e),this.iconElement.innerHTML=o},__superMap:{_$A5$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingFromCreateAccountViewProtocol",version:.1,receivePingRequest:i.a.define(),ready:i.a.define(),getConfig:i.a.define(),completed:i.a.define(),createAlert:i.a.define(),updateAlert:i.a.define(),hideAlert:i.a.define(),isAlertVisible:i.a.define(),exit:i.a.define(),passwordChanged:i.a.define(),resize:i.a.define()}},function(e,t,n){"use strict";t.a={name:"chevron.right",svgPath:"M 20.6543 9.57031 C 22.9004 9.57031 24.707 8.78906 26.2695 7.22656 L 63.0371 -28.6133 C 65.0879 -30.7129 66.0645 -32.7637 66.1133 -35.3516 C 66.1133 -37.8906 65.1367 -40.0391 63.0371 -42.0898 L 26.2695 -77.9785 C 24.707 -79.4922 22.8516 -80.2734 20.6543 -80.2734 C 16.1133 -80.2734 12.4512 -76.6602 12.4512 -72.168 C 12.4512 -69.9219 13.3789 -67.8711 15.0879 -66.1621 L 46.9238 -35.3027 L 15.0879 -4.54102 C 13.3789 -2.83203 12.4512 -0.78125 12.4512 1.46484 C 12.4512 5.9082 16.1133 9.57031 20.6543 9.57031 Z",layoutBox:{viewBox:"0 0 212.646728515625 159.98291015625",width:212.646728515625,height:159.98291015625,translateX:67.04118652343732,translateY:115.221435546875,baseline:115.221435546875,capline:44.761474609375},glyphBox:{viewBox:"0 0 53.662109375 90.0869140625",width:53.662109375,height:90.0869140625,translateX:-12.451123046875182,translateY:80.2734375,baseline:80.2734375,capline:9.8134765625}}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return l});var i=n(819),r=n(100),a=n(892),o=n(869),s=n(861),c=n(1088);function l(t,n,l){var u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:3e4;t||i.b("loadImage: missing image"),n||l||i.b("loadImage: missing src or srcset to load");var d=void 0,h=r.a.create(),p=function(e){a.a(t,"load",f),a.a(t,"error",m),h.resolve(e)},f=function(){d&&e.clearTimeout(d),p(c.a.SUCCESS)},m=function(){d&&e.clearTimeout(d),p(c.a.ERROR)};return o.a(t,"load",f),o.a(t,"error",m),u&&(d=s.a(function(){return p(c.a.CANCELLED)},u)),n&&(t.src=n),l&&(t.srcset=l),h}}).call(this,n(31))},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return a});var i=n(877),r=n(98),a=(n(176),i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"contentTitle",attributes:{}}],classes:["content-title"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"contentDescription",attributes:{}}],classes:["content-desc"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"additonalContentDescription",attributes:{}}],classes:["content-desc"]}]},__QUALIFIED_CLASS_NAME__:"EmailOrMessageSentView"},contentTitle:r.b({type:String}),contentDescription:r.b({type:String}),additonalContentDescription:r.b({type:String})}))},function(e,t,n){"use strict";n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"c",function(){return h});var i=n(818),r=n(81),a=n(819),o=n(908),s=n(1074),c=n(29),l=n(423),u="com.apple.icloud.cloudos.legacyPollingService",d="Legacy Polling Service",h=i.a.extend({mixinDependencies:[l.a,s.a],staticMembers:{activePollingInterval:r.d({type:Number,defaultValue:30}),inactivePollingInterval:r.d({type:Number,defaultValue:600}),startPolling:function(e){var t=this;(this._refreshActiveIntervalID||this._refreshInactiveIntervalID)&&a.b("[LegacyPollingService] Already polling"),this._refreshActiveIntervalID=this._setInterval(function(){t._refreshActiveApplications(e)},1e3*this.activePollingInterval),this._refreshInactiveIntervalID=this._setInterval(function(){t._refreshInactiveApplications(e)},1e3*this.inactivePollingInterval)},stopPolling:function(){clearTimeout(this._refreshActiveIntervalID),clearTimeout(this._refreshInactiveIntervalID),this._refreshActiveIntervalID=void 0,this._refreshInactiveIntervalID=void 0},_refreshActiveApplications:function(e){var t=e.serviceInstancesByIdentifier(u),n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;a.attachedApplicationIsActive()&&a.notifyApplicationToRefresh()}},_refreshInactiveApplications:function(e){var t=e.serviceInstancesByIdentifier(u),n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;a.attachedApplicationIsActive()||a.notifyApplicationToRefresh()}},_setInterval:function(e,t){return o.a(e,t)},_refreshActiveIntervalID:r.d({type:Number}),_refreshInactiveIntervalID:r.d({type:Number}),__QUALIFIED_CLASS_NAME__:"LegacyPollingService"},attachedApplicationIsActive:function(){var e=this.processReference.applicationInfo;return this._childApplicationsController.getChildApplicationController(e).isActive},notifyApplicationToRefresh:function(){this.processReference.remoteProxy.applicationShouldRefresh()},_childApplicationsController:r.d({type:c.a,defaultValue:c.a.sharedInstance})})},function(e,t,n){"use strict";n(1),n(0),n(5),n(2),n(7),n(10),n(4),n(3),n(6),n(13),n(62),n.d(t,"b",function(){return b}),n.d(t,"a",function(){return v}),n.d(t,"c",function(){return _});var i=n(818),r=n(863),a=n(875),o=n(891),s=n(106),c=n(81),l=n(1074),u=n(311),d=n(23),h=n(29),p=n(323),f=n(132),m=n(185),g=n(405),b="com.apple.icloud.cloudos.legacyCloudOSApplicationService",v="Legacy CloudOS Application Service",_=i.a.extend({mixinDependencies:[u.a,l.a,g.a],staticMembers:{notifySizeClassDidChange:function(e,t,n){var i=e.serviceInstancesByIdentifier(b),r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}o.notifySizeClassDidChange(t,n)}},__QUALIFIED_CLASS_NAME__:"LegacyCloudOSApplicationService"},notifySizeClassDidChange:function(e,t){this.processReference.remoteProxy.adjustLayout({sizeClass:{horizontal:e.value,vertical:t.value}})},completeAuthentication:function(e,t){d.a.sharedInstance.continueAuthentication()},logoutFromAllBrowsers:function(e){return d.a.sharedInstance.unauthenticateUserFromAllBrowsers()},performLogout:function(e){return d.a.sharedInstance.unauthenticateUser()},performSecondaryAuth:function(e,t){var n=this;d.a.sharedInstance.performSecondaryAuth(t).then(function(e){e.isOK?(n.processReference.remoteProxy.secondaryAuthDidSucceed(),n._secondaryLoginAttemptsCount=0):(n.processReference.remoteProxy.secondaryAuthDidFail(),n._secondaryLoginAttemptsCount++,n._secondaryLoginAttemptsCount>=3&&(r.b.info("[LegacyCloudOSApplicationService] More than three invalid secondary auth attempts"),d.a.sharedInstance.unauthenticateUser(!0)))})},replaceCurrentApp:function(e,t){h.a.sharedInstance.switchToApplication(t)},revalidateUser:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=r.b).info.apply(e,["Unhandled legacy cloudos message received: revalidateUser"].concat(n))},sendLocalNotification:function(e,t,n,i,r){i||(i=this.processReference.applicationInfo.configuration);var s=t.alertTitle,c=t.alertDescription,l=t.actionPayload,u=t.badgeCount,d=t.soundPath,h=t.isDismissable,f=t.omitWhenActive,m=s||c||u||d?{aps:{alertTitle:s,alert:c},badge:u,sound:d}:void 0,g=p.a.deserialize(m);g.applicationIdentifier=i,g.payload={icloud:a.a(n,l)},o.a.application.didReceivePushNotification(g,h,f)},setAppBanner:function(e,t){var n=this._appBannerId;if(n&&(f.a.sharedInstance.removeBanner(n),this._appBannerId=void 0,this._appBannerLinkHref=void 0),t){var i=t.title,r=t.description,a=t.optionalLink,o=a?a.text:void 0,s=a?a.url:void 0,c=this.processReference.applicationInfo.applicationName;this._appBannerId=f.a.sharedInstance.setCurrentBannerForApp(c,i,r,o,this,m.a.BUTTON),this._appBannerLinkHref=s}},setBadgeCount:function(e,t){var n=this.processReference.applicationInfo;h.a.sharedInstance.getChildApplicationController(n).badgeCount=t},setRoute:function(e,t){var n=this.processReference.applicationInfo;h.a.sharedInstance.replaceHistoryState(n,{},void 0,t)},setTitle:function(e,t){var n=this.processReference.applicationInfo;h.a.sharedInstance.setTitle(n,t)},showAccountSettings:function(e){h.a.sharedInstance.switchToApplication("settings")},showAppSwitcher:function(e,t){var n=t.height,i=t.width,r=t.left,a=t.top,c=s.a.create({height:n,width:i,x:r,y:a-7});o.a.application.rootViewController.showAppSwitcher(c)},showAccountMenu:function(e,t){var n=t.x,i=t.y,r=t.width,a=t.height,c=s.a.create({x:n,y:i,width:r,height:a}),l=this.processReference.applicationInfo.helpButtonConfigs;o.a.application.rootViewController.showAccountMenu(c,l)},showLocalNotification:function(){r.b.warn("showLocalNotification has been deprecated. Use sendLocalNotification() instead.");for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];this.sendLocalNotification.apply(this,t)},showSpringBoard:function(e){o.a.application.showAppSwitcher()},switchToApplication:function(e,t,n){h.a.sharedInstance.switchToApplication(t)},bannerActionDidClick:function(e){var t=this._appBannerLinkHref;t&&window.open(t,"_blank")},_appBannerId:c.d({type:String}),_appBannerLinkHref:c.d({type:String}),_secondaryLoginAttemptsCount:c.d({type:Number,defaultValue:0})})},function(e,t,n){"use strict";n(1),n(0),n(2),n(4),n(3),n.d(t,"b",function(){return d}),n.d(t,"a",function(){return h}),n.d(t,"c",function(){return p});var i=n(818),r=n(81),a=n(1074),o=n(1118),s=n(1161),c=n(23),l=n(134),u=n(320),d="com.apple.icloud.cloudos.meCardService",h="MeCard Service",p=i.a.extend({mixinDependencies:[o.a,a.a],staticMembers:{sendMeCard:function(e,t){var n=e.serviceInstancesByIdentifier(d),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}a.sendMeCard(t)}u.c.sendReceiveMeCard(e,t)},__QUALIFIED_CLASS_NAME__:"MeCardService"},sendMeCard:function(e){this.processReference.remoteProxy.didFetchMeCard(e.serialize())},fetchMeCard:function(){var e=this._meCardController,t=e.meCard;t?this.processReference.remoteProxy.didFetchMeCard(t.serialize()):e.refreshMeCard()},deleteMeCardPhoto:function(){var e=this;this._meCardController.deleteMeCardPhoto().then(function(t){t.isOK?e.processReference.remoteProxy.didDeleteMeCardPhoto():e.processReference.remoteProxy.failedToDeleteMeCardPhoto()})},storeMeCardPhoto:function(e){var t=this,n=this._authenticationController,i=this._meCardController,r=s.a.deserialize(e);i.saveMeCardPhotoForUser(r,n.cloudOSUser).then(function(e){if(e.isOK){var n=e.meCard;t.processReference.remoteProxy.didStoreMeCardPhoto(n.photo.serialize())}else t.processReference.remoteProxy.failedToStoreMeCardPhoto()})},_authenticationController:r.d({type:c.a,defaultValue:c.a.sharedInstance}),_meCardController:r.d({type:l.a,defaultValue:l.a.sharedInstance})})},function(e,t,n){"use strict";n(1),n(0),n(2),n(4),n(3),n.d(t,"b",function(){return u}),n.d(t,"a",function(){return d}),n.d(t,"c",function(){return h});var i=n(818),r=n(307),a=n(1161),o=n(134),s=n(1074),c=n(589),l=n(23),u="com.apple.icloud.cloudos.legacyMeCardService",d="Legacy MeCard Service",h=i.a.extend({mixinDependencies:[r.a,s.a],staticMembers:{sendReceiveMeCard:function(e,t){var n=e.serviceInstancesByIdentifier(u),i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}a.sendReceiveMeCard(t)}},__QUALIFIED_CLASS_NAME__:"LegacyMeCardService"},sendReceiveMeCard:function(e){if(e){var t=e.photo;if(t){var n=Object(c.a)(t);this.processReference.remoteProxy.receiveMeCard(n)}}},meCardUpdated:function(e){o.a.sharedInstance.refreshMeCard()},requestMeCard:function(e){var t=o.a.sharedInstance,n=t.meCard;n?this.sendReceiveMeCard(n):t.refreshMeCard()},deleteMeCardPhoto:function(e){o.a.sharedInstance.deleteMeCardPhoto()},storeMeCardPhoto:function(e,t){if(t){var n=a.a.deserialize(t);if(n){var i=l.a.sharedInstance.cloudOSUser;o.a.sharedInstance.saveMeCardPhotoForUser(n,i)}}}})},function(e,t,n){"use strict";var i=n(818),r=n(81),a=n(1085),o=n(26),s=n(583),c=n(871),l=n(98),u=n(86),d=n(80),h=n(819),p=n(905),f=n(861),m=n(102),g=n(867),b=n(863),v=n(1094),_=n(1098),y=n(52),C=n(610),I=n(245),w=n(36),S=n(29),A=(n(175),n(877)),O=n(898),E=n(930),T=n(133),D=n(210),L=n(421),N=(n(0),n(5),n(4),n(3),n(33),n(72),A.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"iconView"}],classes:["notification-icon",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isApplicationLoading",truevalue:"cw-hidden",falsevalue:"",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"}],classes:["notification-spinner-icon",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isApplicationLoading",truevalue:"loading",falsevalue:"cw-hidden",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{}}],classes:["title"]},{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"description",attributes:{}}],classes:["description"]}],classes:["notification-info"]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"closeButton"}],classes:["notification-close",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isAlarmNotification",truevalue:"cw-hidden",falsevalue:"",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"snoozeAlarm"},{type:"VIEWOUTLET",tagname:"view",name:"dismissAlarm"}],classes:["alarm-actions",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isAlarmNotification",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]}],classes:["notification-view-inner"]}],classes:["notification-view"]},__QUALIFIED_CLASS_NAME__:"NotificationView"},notification:l.b({type:y.a}),notificationType:l.b({readOnly:!0,type:y.b,dependencies:["notification"],get:function(){return this.getPath("notification.notificationType")}}),applicationIdentifier:l.b({type:String}),iconUrl:l.b({type:String}),title:l.b({type:String}),description:l.b({type:String}),iconView:l.b({dependencies:["applicationIdentifier","iconUrl"],readOnly:!0,type:A.a,get:Object.assign(function(){var e=void 0;return"calendar"===this.applicationIdentifier?(e=D.a.create(28)).prepareIcon():e=T.a.create({iconSrc:this.iconUrl}),e},{__CW__getter:function(e,t,n,i){var r=void 0;return"calendar"===i.internalGet(this,t[0+n])?(r=D.a.create(28)).prepareIcon():r=T.a.create({iconSrc:i.internalGet(this,t[1+n])}),r}})}),closeButton:l.b({dependencies:["notification","notificationType"],readOnly:!0,type:O.a,get:Object.assign(function(){var e=this.getPath("notification.isDismissable");if(this.notificationType===y.b.PUSH&&e)return L.a.create({action:"_closeDidClick"})},{__CW__getter:function(e,t,n,i){var r=this.getPath("notification.isDismissable");if(i.internalGet(this,t[1+n])===y.b.PUSH&&r)return L.a.create({action:"_closeDidClick"})}})}),dismissAlarm:l.b({dependencies:["notificationType"],readOnly:!0,type:O.a,get:Object.assign(function(){if(this.notificationType===y.b.ALARM)return O.a.create({title:d.d("Notification.Alarm.Dismiss.Title"),action:"_dismissDidClick"})},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n])===y.b.ALARM)return O.a.create({title:d.d("Notification.Alarm.Dismiss.Title"),action:"_dismissDidClick"})}})}),snoozeAlarm:l.b({dependencies:["notificationType"],readOnly:!0,type:O.a,get:Object.assign(function(){if(this.notificationType===y.b.ALARM)return O.a.create({title:d.d("Notification.Alarm.Snooze.Title"),action:"_snoozeDidClick"})},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n])===y.b.ALARM)return O.a.create({title:d.d("Notification.Alarm.Snooze.Title"),action:"_snoozeDidClick"})}})}),isAlarmNotification:l.b({dependencies:["notificationType"],readOnly:!0,type:Boolean,get:Object.assign(function(){return this.notificationType===y.b.ALARM},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])===y.b.ALARM}})}),isApplicationLoading:l.b({type:Boolean}),spinnerView:l.b({readOnly:!0,type:E.a,defaultValue:u.c(E.a,{size:28,color:"black"}),downstreamBindings:{isVisible:"(owner).isApplicationLoading"}})})),M=n(94),P=n(830),x={mixinDependencies:[M.a],notificationDidClick:P.a.define(),notificationCloseDidClick:P.a.define(),alarmDismissDidClick:P.a.define(),alarmSnoozeDidClick:P.a.define()},R=n(1099),j=n(95),F=n(825),V=n(821),U=n(1100),k=n(1101),B=n(207),z=(n(141),"slide-in");n(6),n(141);var W=j.b("SlideAnimationControllerDirection",{IN:"IN",OUT:"OUT"}),H=i.a.extend({mixinDependencies:[U.a],direction:r.d({type:W,defaultValue:W.IN}),animateTransition:function(e){var t=F.a(e,"fromViewController.view"),n=F.a(e,"toViewController.view");(this.direction===W.IN?this._slideInView(n):this._slideOutView(t)).then(function(){e.completeTransition(!0)})},animationEnded:V.a,_slideInView:function(e){return Object(k.d)(e),(t=e,Object(B.a)(t.element,z,"slide-out")).then(function(){return(t=e.element.classList).remove(z),void t.remove("slide-out");var t});var t},_slideOutView:function(e){return(t=e,Object(B.a)(t.element,"slide-out",z)).then(function(){Object(k.a)(e)});var t},staticMembers:{__QUALIFIED_CLASS_NAME__:"SlideAnimationController"}}),$=(n(6),n(141),R.a.extend({animationControllerForPresentedViewController:function(e,t,n){return H.create({direction:W.IN})},animationControllerForDismissedViewController:function(e){return H.create({direction:W.OUT})},staticMembers:{__QUALIFIED_CLASS_NAME__:"SlideTransitioningDelegate"}})),G=n(860),K=n(828),Q=n(224),q=(n(223),{mixinDependencies:[G.a],init:function(){var e=arguments;this.__s._$8s$init.apply(this,e),K.a(this,m.a)||h.b("[TargetActionGestureSupport] Expected to be mixed into CW.GestureRecognizer")},gestureWasRecognized:function(){var e=arguments;this.target&&this.action?this.callAction():this.__s._$JI$gestureWasRecognized.apply(this,e)},__superMap:{_$8s$init:"init",_$JI$gestureWasRecognized:"gestureWasRecognized"}}),Y=Q.a.extend(q,{staticMembers:{__QUALIFIED_CLASS_NAME__:"TargetActionButtonTapGestureRecognizer"}}),X=n(323),J=(n(1),n(0),n(5),n(2),n(4),n(7),n(3),n(6),n(13),n(175),n(33),n(72),n(141),c.a.extend({mixinDependencies:[_.a],viewClass:N,view:l.b({type:N,downstreamBindings:{notification:"(owner).notification",applicationIdentifier:"(owner).applicationIdentifier",iconUrl:"(owner).iconUrl",title:"(owner).title",description:"(owner).description",isApplicationLoading:"(owner).isApplicationLoading"}}),transitioningDelegate:u.c($),delegate:r.d({type:x}),applicationIdentifier:l.b({type:String}),iconUrl:l.b({type:String}),title:l.b({type:String}),description:l.b({type:String}),notification:l.b({type:y.a}),notificationType:l.b({readOnly:!0,type:y.b,dependencies:["notification"],get:function(){return this.getPath("notification.notificationType")}}),pushNotification:l.b({readOnly:!0,type:X.a,dependencies:["notificationType","notification"],get:Object.assign(function(){if(this.notificationType===y.b.PUSH)return this.notification.notificationObject},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n])===y.b.PUSH)return i.internalGet(this,t[1+n]).notificationObject}})}),alarmTrigger:l.b({readOnly:!0,type:C.a,dependencies:["notificationType","notification"],get:Object.assign(function(){if(this.notificationType===y.b.ALARM)return this.notification.notificationObject},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n])===y.b.ALARM)return i.internalGet(this,t[1+n]).notificationObject}})}),applicationController:l.b({type:I.a,readOnly:!0,dependencies:["applicationIdentifier"],get:function(){var e=this.applicationIdentifier;if(e){var t=w.a.sharedInstance.getApplicationInfo(e);return S.a.sharedInstance.getChildApplicationController(t)}}}),isApplicationLoading:l.b({type:Boolean,readOnly:!0,dependencies:["applicationController.isLoadingForPresentation","applicationController.applicationContext.launchSource"],get:Object.assign(function(){return this.getPath("applicationController.isLoadingForPresentation")&&this.getPath("applicationController.applicationContext.launchSource")===this},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])&&i.internalGetPath(this,t[1+n])===this}})}),init:function(e){this.__s._$1NT$init.call(this),this.notification=e;var t,n,i=e.notificationType,r=e.applicationInfo,a=e.notificationObject,o=void 0,s=void 0;switch(t=r.configuration.identifier,n=r.iconUrlForCurrentDPR,i){case y.b.PUSH:if(o=a.notification.title||r.configuration.displayName,!(s=a.notification.description)){var c="Notification.PlaceholderDescription."+t;d.a.sharedInstance.hasValue(c)&&(s=d.d(c))}break;case y.b.ALARM:o=function(e){var t=e.title,n=void 0,i=e.localStartDate;if(t&&(t=g.b(t)).length>100&&(t=t.substr(0,100)+"…"),!i)return t;var r=new Date,a=r.getDate(),o=r.getMonth()+1,s=r.getFullYear(),c=new Date(s,o-1,a,0,0,0,0),l=c.getTime();c.setHours(c.getHours()+24);var u=c.getTime();c.setHours(c.getHours()+24);var h=c.getTime(),p=i.date,f=p.getTime(),m=v.a,_=m.getDateTimeFormatter(m.SHORT_TIME).format(p);if(f>=l&&f<u)n=d.d("Notification.Alarm.Today.Message",{eventTitle:t,time:_});else if(f>=u&&f<h)n=d.d("Notification.Alarm.Tomorrow.Message",{eventTitle:t,time:_});else if(f>=h){var y=m.getDateTimeFormatter(m.SHORT_DATE).format(p);n=d.d("Notification.Alarm.Future.Message",{eventTitle:t,date:y,time:_})}else b.b.warn("This alarm with guid ["+e.guid+"] is for a past alarm and it should not have been returned in the fetch call."),n=t;return n}(a),s=a.location;break;default:h.b("[NotificationController] Unknown notificationType")}p.a(o)&&h.b("NotificationViewController: init: title cannot be empty"),this.applicationIdentifier=t,this.title=o,this.description=s,this.iconUrl=n},didAttach:function(){var e=this;this.__s._$1nD$didAttach.call(this),this._setUpGestureRecognizers(),this.notificationType!==y.b.ALARM&&(this._closeTimer=f.a(function(){e._closeDidClick()},8e3))},cancelAutoDismissTimer:function(){var e=this._closeTimer;e&&(clearTimeout(e),this._closeTimer=void 0)},notificationDidClick:function(){this.delegate.notificationDidClick(this,this.applicationIdentifier)},_closeDidClick:function(){this.delegate.notificationCloseDidClick(this)},_dismissDidClick:function(){this.delegate.alarmDismissDidClick(this,this.alarmTrigger)},_snoozeDidClick:function(){this.delegate.alarmSnoozeDidClick(this,this.alarmTrigger)},_setUpGestureRecognizers:function(){var e=this._foregroundViewTapGestureRecognizer=Y.create({target:this,action:"_tapGestureWasRecognized"});this.view.addGestureRecognizer(e)},_removeGestureRecognizers:function(){var e=this._foregroundViewTapGestureRecognizer;e.view.removeGestureRecognizer(e),this._foregroundViewTapGestureRecognizer=null},_tapGestureWasRecognized:function(e){e.state===m.b.Ended&&e===this._foregroundViewTapGestureRecognizer&&(this._removeGestureRecognizers(),this.notificationDidClick())},__superMap:{_$1NT$init:"init",_$1nD$didAttach:"didAttach"},staticMembers:{__QUALIFIED_CLASS_NAME__:"NotificationViewController"}}));n(1),n(0),n(5),n(2),n(7),n(4),n(3),n(6),n(13),n(141),n(175),n(33),n(72),n.d(t,"a",function(){return Z});var Z=i.a.extend({mixinDependencies:[a.a,x],delegate:r.d({type:s.a}),enqueue:function(e){var t=this._notificationQueue;t.push(e),1===t.length&&this._displayNotification()},notificationDidClick:function(e,t){e.cancelAutoDismissTimer(),this.delegate.notificationDidClick(this,e,t)},notificationCloseDidClick:function(e){this._removeNotification(e)},alarmDismissDidClick:function(e,t){this._removeNotification(e),this.delegate.alarmDismissDidClick(this,e,t)},alarmSnoozeDidClick:function(e,t){this._removeNotification(e),this.delegate.alarmSnoozeDidClick(this,e,t)},removeNotificationForChildApplication:function(e){var t=this._currentNotificationViewController;t&&t.applicationIdentifier===e&&this._removeNotification(t)},_notificationQueue:r.d({type:Array,defaultValue:function(){return new Array}}),_currentNotificationViewController:r.d({type:J,strong:!0}),_displayNotification:function(){var e,t=o.a.sharedInstance.applicationIdentifier;if(e=t?this._notificationQueue.find(function(e){return e.applicationIdentifier!==t||!1===e.omitWhenActive}):this._notificationQueue[0]){var n=J.create(e);n.delegate=this,this._currentNotificationViewController=n,this._showNotification(n)}},_showNotification:function(e){this.delegate.showNotification(this,e)},_removeNotification:function(e){var t=this,n=e.notification;e.cancelAutoDismissTimer(),this.delegate.removeNotification(this,e).then(function(){t._currentNotificationViewController=void 0,t._dequeue(n)})},_dequeue:function(e){var t=this._notificationQueue,n=t.indexOf(e);t.splice(n,1),t.length>0&&this._displayNotification()},staticMembers:{__QUALIFIED_CLASS_NAME__:"NotificationController"}})},function(e,t,n){"use strict";var i=n(818),r=n(86),a=n(81),o=n(819),s=n(838),c=i.a.extend({uniformTypeIdentifier:null,iconPlatforms:r.c([]),supportedExtensions:r.c([]),parentNodes:r.c([]),isAppleType:!1,importedDeclarations:r.c({}),importedDeclarationCount:a.d({type:Number,readOnly:!0,get:function(){return Object.keys(this.importedDeclarations).length}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"UTINode"}}),l=i.a.extend({staticMembers:{sortByKey:function(e,t){return e.sort(function(e,n){var i=e[t],r=n[t];return i<r?-1:i>r?1:0})},__QUALIFIED_CLASS_NAME__:"ClaimRecord"},zoneName:null,applicationName:null,claimProcessed:!1,creationDate:null,supportedExtensions:null,supportedTypes:null,icons:null,iconMap:a.d({type:Object,readOnly:!0,get:function(){var e={},t=this.icons;this.constructor.sortByKey(t,"size");for(var n=0;n<t.length;n++){var i=t[n];e[i.type]||(e[i.type]={sizes:[],urls:[]}),e[i.type].sizes.push(i.size),e[i.type].urls.push(i.url)}return e}})}),u={"com.adobe.pdf":{supportedExtensions:["pdf"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["ios","mac"]},"com.adobe.edn":{supportedExtensions:["edn"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.adobe.etd":{supportedExtensions:["etd"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.adobe.xfdf":{supportedExtensions:["xfdf"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"com.adobe.fdf":{supportedExtensions:["fdf"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.adobe.postscript":{supportedExtensions:["ps"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"com.adobe.encapsulated-postscript":{supportedExtensions:["eps"],parentUTIs:["com.adobe.postscript"],iconPlatforms:["mac"]},"com.compuserve.gif":{supportedExtensions:["gif"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.microsoft.bmp":{supportedExtensions:["bmp"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.microsoft.ico":{supportedExtensions:["ico"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.adobe.raw-image":{supportedExtensions:["dng"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.canon.crw-raw-image":{supportedExtensions:["crw"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.canon.cr2-raw-image":{supportedExtensions:["cr2"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.canon.tif-raw-image":{parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.epson.raw-image":{supportedExtensions:["erf"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.fuji.raw-image":{supportedExtensions:["raf"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.hasselblad.fff-raw-image":{supportedExtensions:["fff"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.hasselblad.3fr-raw-image":{supportedExtensions:["3fr"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.kodak.raw-image":{supportedExtensions:["dcr"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.konicaminolta.raw-image":{supportedExtensions:["mrw"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.leafamerica.raw-image":{supportedExtensions:["mos"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.leica.pwl-raw-image":{supportedExtensions:["pwl"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.nikon.raw-image":{supportedExtensions:["nef"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.nikon.nrw-raw-image":{supportedExtensions:["nrw"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.olympus.raw-image":{supportedExtensions:["orf"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.panasonic.raw-image":{supportedExtensions:["raw"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.panasonic.rw2-raw-image":{supportedExtensions:["rw2"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.leica.raw-image":{supportedExtensions:["raw"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.leica.rwl-raw-image":{supportedExtensions:["rwl"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.pentax.raw-image":{supportedExtensions:["pef"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.sony.raw-image":{supportedExtensions:["srf"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.sony.arw-raw-image":{supportedExtensions:["arw"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.sony.sr2-raw-image":{supportedExtensions:["sr2"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"com.olympus.sr-raw-image":{supportedExtensions:["orf"],parentUTIs:["com.olympus.raw-image"],iconPlatforms:["mac"]},"com.olympus.or-raw-image":{supportedExtensions:["orf"],parentUTIs:["com.olympus.raw-image"],iconPlatforms:["mac"]},"com.samsung.raw-image":{supportedExtensions:["srw"],parentUTIs:["public.camera-raw-image"],iconPlatforms:["mac"]},"org.openoffice.text":{supportedExtensions:["sxw","sdw"],parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"org.openoffice.text-template":{supportedExtensions:["stw"],parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.text":{supportedExtensions:["odt"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.text-template":{supportedExtensions:["ott"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.openoffice.graphics":{supportedExtensions:["sxd","sda"],parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"org.openoffice.graphics-template":{supportedExtensions:["std"],parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.graphics":{supportedExtensions:["odg"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.graphics-template":{supportedExtensions:["otg"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.openoffice.presentation":{supportedExtensions:["sxi","sdd","sdp"],parentUTIs:["public.data","public.content","public.presentation"],iconPlatforms:["mac"]},"org.openoffice.presentation-template":{supportedExtensions:["sti"],parentUTIs:["public.data","public.content","public.presentation"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.presentation":{supportedExtensions:["odp"],parentUTIs:["org.oasis-open.opendocument","public.composite-content","public.presentation"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.presentation-template":{supportedExtensions:["otp"],parentUTIs:["org.oasis-open.opendocument","public.composite-content","public.presentation"],iconPlatforms:["mac"]},"org.openoffice.spreadsheet":{supportedExtensions:["sxc","sdc"],parentUTIs:["public.data","public.spreadsheet"],iconPlatforms:["mac"]},"org.openoffice.spreadsheet-template":{supportedExtensions:["stc"],parentUTIs:["public.data","public.spreadsheet"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.spreadsheet":{supportedExtensions:["ods"],parentUTIs:["org.oasis-open.opendocument","public.composite-content","public.spreadsheet"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.spreadsheet-template":{supportedExtensions:["ots"],parentUTIs:["org.oasis-open.opendocument","public.composite-content","public.spreadsheet"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.chart":{supportedExtensions:["odc"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.chart-template":{supportedExtensions:["otc"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.image":{supportedExtensions:["odi"],parentUTIs:["org.oasis-open.opendocument","public.image"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.image-template":{supportedExtensions:["oti"],parentUTIs:["org.oasis-open.opendocument","public.image"],iconPlatforms:["mac"]},"org.openoffice.formula":{supportedExtensions:["sxm","smf"],parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.formula":{supportedExtensions:["odf"],parentUTIs:["org.oasis-open.opendocument","public.content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.formula-template":{supportedExtensions:["otf"],parentUTIs:["org.oasis-open.opendocument","public.content"],iconPlatforms:["mac"]},"org.openoffice.text-master":{supportedExtensions:["sxg"],parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.text-master":{supportedExtensions:["odm"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.text-web":{supportedExtensions:["oth"],parentUTIs:["org.oasis-open.opendocument","public.composite-content"],iconPlatforms:["mac"]},"org.oasis-open.opendocument.database":{supportedExtensions:["odb"],parentUTIs:["public.data","public.content","public.database"],iconPlatforms:["mac"]},"com.microsoft.word.wordml":{supportedExtensions:["xml"],parentUTIs:["public.xml","public.composite-content"],iconPlatforms:["mac"]},"org.openxmlformats.wordprocessingml.document":{supportedExtensions:["docx"],parentUTIs:["org.openxmlformats.openxml","public.composite-content"],iconPlatforms:["mac","web"]},"org.openxmlformats.wordprocessingml.document.macroenabled":{supportedExtensions:["docm"],parentUTIs:["org.openxmlformats.openxml","public.composite-content","public.executable"],iconPlatforms:["mac"]},"org.openxmlformats.wordprocessingml.template":{supportedExtensions:["dotx"],parentUTIs:["org.openxmlformats.openxml","public.composite-content"],iconPlatforms:["mac"]},"org.openxmlformats.wordprocessingml.template.macroenabled":{supportedExtensions:["dotm"],parentUTIs:["org.openxmlformats.openxml","public.composite-content","public.executable"],iconPlatforms:["mac"]},"org.openxmlformats.spreadsheetml.sheet":{supportedExtensions:["xlsx"],parentUTIs:["org.openxmlformats.openxml","public.composite-content","public.spreadsheet"],iconPlatforms:["mac","web"]},"org.openxmlformats.spreadsheetml.sheet.macroenabled":{supportedExtensions:["xlsm"],parentUTIs:["org.openxmlformats.openxml","public.composite-content","public.spreadsheet","public.executable"],iconPlatforms:["mac"]},"com.microsoft.excel.sheet.binary.macroenabled":{supportedExtensions:["xlsb"],parentUTIs:["public.zip-archive","public.composite-content","public.spreadsheet","public.executable"],iconPlatforms:["mac"]},"org.openxmlformats.spreadsheetml.template":{supportedExtensions:["xltx"],parentUTIs:["org.openxmlformats.openxml","public.composite-content","public.spreadsheet"],iconPlatforms:["mac"]},"org.openxmlformats.spreadsheetml.template.macroenabled":{supportedExtensions:["xltm"],parentUTIs:["org.openxmlformats.openxml","public.composite-content","public.spreadsheet","public.executable"],iconPlatforms:["mac"]},"org.openxmlformats.presentationml.presentation":{supportedExtensions:["pptx"],parentUTIs:["org.openxmlformats.openxml","public.presentation"],iconPlatforms:["mac","web"]},"org.openxmlformats.presentationml.presentation.macroenabled":{supportedExtensions:["pptm"],parentUTIs:["org.openxmlformats.openxml","public.presentation","public.executable"],iconPlatforms:["mac"]},"org.openxmlformats.presentationml.slideshow":{supportedExtensions:["ppsx"],parentUTIs:["org.openxmlformats.openxml","public.presentation"],iconPlatforms:["mac"]},"org.openxmlformats.presentationml.slideshow.macroenabled":{supportedExtensions:["ppsm"],parentUTIs:["org.openxmlformats.openxml","public.presentation","public.executable"],iconPlatforms:["mac"]},"org.openxmlformats.presentationml.template":{supportedExtensions:["potx"],parentUTIs:["org.openxmlformats.openxml","public.presentation"],iconPlatforms:["mac"]},"org.openxmlformats.presentationml.template.macroenabled":{supportedExtensions:["potm"],parentUTIs:["org.openxmlformats.openxml","public.presentation","public.executable"],iconPlatforms:["mac"]},"com.microsoft.word.doc":{supportedExtensions:["doc"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["web","ios","mac"]},"com.microsoft.word.dot":{supportedExtensions:["dot"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"com.microsoft.excel.xls":{supportedExtensions:["xls"],parentUTIs:["public.data","public.composite-content","public.spreadsheet"],iconPlatforms:["web","ios","mac"]},"com.microsoft.excel.xlt":{supportedExtensions:["xlt"],parentUTIs:["public.data","public.spreadsheet"],iconPlatforms:["mac"]},"com.microsoft.excel.xlw":{supportedExtensions:["xlw"],parentUTIs:["public.data","public.spreadsheet"],iconPlatforms:["mac"]},"com.microsoft.excel.xla":{supportedExtensions:["xla"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.microsoft.powerpoint.ppt":{supportedExtensions:["ppt"],parentUTIs:["public.data","public.presentation"],iconPlatforms:["web","ios","mac"]},"com.microsoft.powerpoint.pot":{supportedExtensions:["pot"],parentUTIs:["public.data","public.presentation"],iconPlatforms:["mac"]},"com.microsoft.powerpoint.pps":{supportedExtensions:["pps"],parentUTIs:["public.data","public.presentation"],iconPlatforms:["mac"]},"com.apple.keynote.key":{parentUTIs:["com.apple.package","public.presentation"],iconPlatforms:["mac"]},"com.apple.keynote.kth":{parentUTIs:["com.apple.package","public.presentation"],iconPlatforms:["mac"]},"com.apple.iWork.Keynote.key":{supportedExtensions:["key"],parentUTIs:["com.apple.package","public.presentation","com.apple.keynote.key"],iconPlatforms:["mac","web"]},"com.apple.iWork.Keynote.key-tef":{supportedExtensions:["key-tef"],parentUTIs:["com.apple.package","public.presentation","com.apple.keynote.key"],iconPlatforms:["mac"]},"com.apple.iWork.Keynote.sffkey":{supportedExtensions:["key"],parentUTIs:["public.zip-archive","public.presentation"],iconPlatforms:["mac"]},"com.apple.iWork.Keynote.kth":{supportedExtensions:["kth"],parentUTIs:["com.apple.package","public.presentation","com.apple.keynote.kth"],iconPlatforms:["mac"]},"com.apple.iWork.Keynote.sffkth":{supportedExtensions:["kth"],parentUTIs:["public.zip-archive","public.presentation"],iconPlatforms:["mac"]},"com.apple.iWork.Pages.pages":{supportedExtensions:["pages"],parentUTIs:["com.apple.package","public.composite-content"],iconPlatforms:["mac","web"]},"com.apple.iWork.Pages.pages-tef":{supportedExtensions:["pages-tef"],parentUTIs:["com.apple.package","public.composite-content"],iconPlatforms:["mac"]},"com.apple.iWork.Pages.sffpages":{supportedExtensions:["pages"],parentUTIs:["public.zip-archive","public.composite-content"],iconPlatforms:["mac"]},"com.apple.iWork.Pages.template":{supportedExtensions:["template"],parentUTIs:["com.apple.package","public.composite-content"],iconPlatforms:["mac"]},"com.apple.iWork.Pages.sfftemplate":{supportedExtensions:["template"],parentUTIs:["public.zip-archive","public.composite-content"],iconPlatforms:["mac"]},"com.apple.iWork.Numbers.numbers":{supportedExtensions:["numbers"],parentUTIs:["com.apple.package","public.composite-content","public.spreadsheet"],iconPlatforms:["mac","web"]},"com.apple.iWork.Numbers.numbers-tef":{supportedExtensions:["numbers-tef"],parentUTIs:["com.apple.package","public.composite-content","public.spreadsheet"],iconPlatforms:["mac"]},"com.apple.iWork.Numbers.sffnumbers":{supportedExtensions:["numbers"],parentUTIs:["public.zip-archive","public.composite-content","public.spreadsheet"],iconPlatforms:["mac"]},"com.apple.iWork.Numbers.template":{supportedExtensions:["nmbtemplate"],parentUTIs:["com.apple.package","public.composite-content","public.spreadsheet"],iconPlatforms:["mac"]},"com.apple.iWork.Numbers.sfftemplate":{supportedExtensions:["nmbtemplate"],parentUTIs:["public.zip-archive","public.composite-content","public.spreadsheet"],iconPlatforms:["mac"]},"com.apple.garageband.project":{supportedExtensions:["band","gbProj"],parentUTIs:["com.apple.package","public.audiovisual-content"],iconPlatforms:["mac"]},"com.adobe.photoshop-image":{supportedExtensions:["psd"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.adobe.illustrator.ai-image":{supportedExtensions:["ai"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.truevision.tga-image":{supportedExtensions:["tga"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.sgi.sgi-image":{supportedExtensions:["sgi"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.ilm.openexr-image":{supportedExtensions:["exr"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.kodak.flashpix-image":{supportedExtensions:["fpx"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.j2.jfx-fax":{supportedExtensions:["jfx"],parentUTIs:["public.fax"],iconPlatforms:["mac"]},"com.j2.efx-fax":{supportedExtensions:["efx"],parentUTIs:["public.fax"],iconPlatforms:["mac"]},"com.digidesign.sd2-audio":{supportedExtensions:["sd2"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.microsoft.waveform-audio":{supportedExtensions:["wav","wave","bwf"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.microsoft.advanced-systems-format":{supportedExtensions:["asf"],parentUTIs:["public.audiovisual-content"],iconPlatforms:["mac"]},"com.microsoft.windows-media-wm":{supportedExtensions:["wm"],parentUTIs:["public.movie","com.microsoft.advanced-systems-format"],iconPlatforms:["mac"]},"com.microsoft.windows-media-wmv":{supportedExtensions:["wmv"],parentUTIs:["public.movie","com.microsoft.advanced-systems-format"],iconPlatforms:["mac"]},"com.microsoft.windows-media-wmp":{supportedExtensions:["wmp"],parentUTIs:["public.movie","com.microsoft.advanced-systems-format"],iconPlatforms:["mac"]},"com.microsoft.windows-media-wma":{supportedExtensions:["wma"],parentUTIs:["public.audio","com.microsoft.advanced-systems-format"],iconPlatforms:["mac"]},"com.microsoft.advanced-stream-redirector":{supportedExtensions:["asx"],parentUTIs:["public.audiovisual-content","public.xml"],iconPlatforms:["mac"]},"com.microsoft.windows-media-wmx":{supportedExtensions:["wmx"],parentUTIs:["public.movie","com.microsoft.advanced-stream-redirector"],iconPlatforms:["mac"]},"com.microsoft.windows-media-wvx":{supportedExtensions:["wvx"],parentUTIs:["public.movie","com.microsoft.advanced-stream-redirector"],iconPlatforms:["mac"]},"com.microsoft.windows-media-wax":{supportedExtensions:["wax"],parentUTIs:["public.audio","com.microsoft.advanced-stream-redirector"],iconPlatforms:["mac"]},"com.real.realmedia":{supportedExtensions:["rm"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"com.real.realmedia-vbr":{supportedExtensions:["rmvb"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"com.real.realaudio":{supportedExtensions:["ram","ra"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.real.smil":{supportedExtensions:["smil","smi","sml"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"com.soundblaster.soundfont":{supportedExtensions:["sf2"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.avid.open-media-framework":{supportedExtensions:["omf"],parentUTIs:["public.audiovisual-content"],iconPlatforms:["mac"]},"com.allume.stuffit-archive":{parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"com.stuffit.archive.sitx":{supportedExtensions:["sitx"],parentUTIs:["com.allume.stuffit-archive"],iconPlatforms:["mac"]},"com.stuffit.archive.sidx":{supportedExtensions:["sidx"],parentUTIs:["com.allume.stuffit-archive"],iconPlatforms:["mac"]},"com.stuffit.archive.sit":{supportedExtensions:["sit","sea"],parentUTIs:["com.allume.stuffit-archive"],iconPlatforms:["mac"]},"com.adobe.flash.video":{supportedExtensions:["flv","f4v","f4p","f4a","f4b"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"org.khronos.collada.digital-asset-exchange":{supportedExtensions:["dae"],parentUTIs:["public.xml","public.audiovisual-content","public.3d-content"],iconPlatforms:["mac"]},"com.apple.iMovieLibrary":{supportedExtensions:["imovielibrary"],parentUTIs:["com.apple.package"],iconPlatforms:["mac"]},"com.apple.iMovieTheater":{supportedExtensions:["theater"],parentUTIs:["com.apple.package"],iconPlatforms:["mac"]},"public.item":{iconPlatforms:["mac","web"]},"public.data":{parentUTIs:["public.item"],iconPlatforms:["mac"]},"public.directory":{parentUTIs:["public.item"],iconPlatforms:["mac"]},"public.content":{iconPlatforms:["mac"]},"public.composite-content":{parentUTIs:["public.content"],iconPlatforms:["mac"]},"public.executable":{iconPlatforms:["mac"]},"public.unix-executable":{parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"com.apple.application":{parentUTIs:["public.executable"],iconPlatforms:["mac"]},"public.archive":{iconPlatforms:["mac"]},"public.bookmark":{iconPlatforms:["mac"]},"public.database":{iconPlatforms:["mac"]},"public.presentation":{parentUTIs:["public.composite-content"],iconPlatforms:["mac"]},"public.spreadsheet":{parentUTIs:["public.content"],iconPlatforms:["mac"]},"com.apple.iCloud":{parentUTIs:["public.item"],iconPlatforms:["mac"]},"public.3d-content":{parentUTIs:["public.content"],iconPlatforms:["mac"]},"public.alembic":{supportedExtensions:["abc"],parentUTIs:["public.3d-content","public.data"],iconPlatforms:["mac"]},"public.message":{iconPlatforms:["mac"]},"public.email-message":{parentUTIs:["public.message"],iconPlatforms:["mac"]},"public.to-do-item":{iconPlatforms:["mac"]},"public.calendar-event":{iconPlatforms:["mac"]},"com.apple.ical.vcs":{supportedExtensions:["vcs","vcal"],parentUTIs:["public.text","public.item","public.calendar-event"],iconPlatforms:["mac"]},"com.apple.ical.ics":{supportedExtensions:["ics"],parentUTIs:["public.text","public.item","public.calendar-event"],iconPlatforms:["web","ios","mac"]},"public.contact":{iconPlatforms:["mac"]},"public.vcard":{supportedExtensions:["vcf","vcard"],parentUTIs:["public.text","public.contact"],iconPlatforms:["web","ios","mac"]},"public.text":{parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"public.plain-text":{supportedExtensions:["txt","text"],parentUTIs:["public.text"],iconPlatforms:["web","ios","mac"]},"public.utf8-plain-text":{parentUTIs:["public.plain-text"],iconPlatforms:["mac"]},"public.utf16-external-plain-text":{parentUTIs:["public.plain-text"],iconPlatforms:["mac"]},"public.utf16-plain-text":{parentUTIs:["public.plain-text"],iconPlatforms:["mac"]},"com.apple.traditional-mac-plain-text":{parentUTIs:["public.plain-text"],iconPlatforms:["mac"]},"public.case-insensitive-text":{parentUTIs:["public.text"],iconPlatforms:["mac"]},"com.apple.shutdownStall":{supportedExtensions:["shutdownStall"],parentUTIs:["public.utf8-plain-text","public.log"],iconPlatforms:["mac"]},"com.apple.gpuRestart":{supportedExtensions:["gpuRestart"],parentUTIs:["public.utf8-plain-text","public.log"],iconPlatforms:["mac"]},"com.apple.crashreport":{supportedExtensions:["crash"],parentUTIs:["public.utf8-plain-text","public.log"],iconPlatforms:["mac"]},"com.apple.hangreport":{supportedExtensions:["hang"],parentUTIs:["public.utf8-plain-text","public.log"],iconPlatforms:["mac"]},"com.apple.spinreport":{supportedExtensions:["spin"],parentUTIs:["public.utf8-plain-text","public.log"],iconPlatforms:["mac"]},"com.apple.panicreport":{supportedExtensions:["panic"],parentUTIs:["public.utf8-plain-text","public.log"],iconPlatforms:["mac"]},"public.filename-extension":{parentUTIs:["public.case-insensitive-text"],iconPlatforms:["mac"]},"public.mime-type":{parentUTIs:["public.case-insensitive-text"],iconPlatforms:["mac"]},"com.apple.ostype":{parentUTIs:["public.text"],iconPlatforms:["mac"]},"com.apple.nspboard-type":{parentUTIs:["public.text"],iconPlatforms:["mac"]},"com.apple.device-model-code":{parentUTIs:["public.text"],iconPlatforms:["mac"]},"com.apple.pasteboard.promised-file-url":{iconPlatforms:["mac"]},"com.apple.pasteboard.promised-file-content-type":{iconPlatforms:["mac"]},"com.apple.cocoa.pasteboard.color":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.cocoa.pasteboard.sound":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.cocoa.pasteboard.character-formatting":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.cocoa.pasteboard.paragraph-formatting":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.cocoa.pasteboard.multiple-text-selection":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.cocoa.pasteboard.find-panel-search-options":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.resolvable":{iconPlatforms:["mac"]},"public.symlink":{parentUTIs:["public.item","com.apple.resolvable"],iconPlatforms:["mac"]},"com.apple.mount-point":{parentUTIs:["public.item","com.apple.resolvable"],iconPlatforms:["mac"]},"com.apple.bookmark":{parentUTIs:["public.data","com.apple.resolvable"],iconPlatforms:["mac"]},"com.apple.alias-file":{parentUTIs:["public.data","com.apple.resolvable"],iconPlatforms:["mac"]},"com.apple.alias-record":{parentUTIs:["public.data","com.apple.resolvable"],iconPlatforms:["mac"]},"com.apple.icloud-file-fault":{supportedExtensions:["icloud"],parentUTIs:["public.data","com.apple.resolvable"],iconPlatforms:["mac"]},"com.apple.finder.clipping":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.finder.textclipping":{supportedExtensions:["textclipping"],parentUTIs:["com.apple.finder.clipping"],iconPlatforms:["mac"]},"com.apple.finder.pictclipping":{supportedExtensions:["pictclipping"],parentUTIs:["com.apple.finder.clipping","public.image"],iconPlatforms:["mac"]},"com.apple.finder.burn-folder":{supportedExtensions:["fpbf"],parentUTIs:["public.folder"],iconPlatforms:["mac"]},"com.apple.iconset":{supportedExtensions:["iconset"],parentUTIs:["public.folder"],iconPlatforms:["mac"]},"com.apple.finder.smart-folder":{supportedExtensions:["savedSearch"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"public.object-code":{supportedExtensions:["o"],parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"com.apple.mach-o-binary":{parentUTIs:["public.unix-executable"],iconPlatforms:["mac"]},"com.apple.mach-o-object":{parentUTIs:["com.apple.mach-o-binary"],iconPlatforms:["mac"]},"com.apple.mach-o-executable":{parentUTIs:["com.apple.mach-o-binary"],iconPlatforms:["mac"]},"com.apple.x11-mach-o-executable":{parentUTIs:["com.apple.mach-o-binary"],iconPlatforms:["mac"]},"com.apple.mach-o-core":{parentUTIs:["com.apple.mach-o-binary"],iconPlatforms:["mac"]},"com.apple.mach-o-dylib":{supportedExtensions:["dylib"],parentUTIs:["com.apple.mach-o-binary"],iconPlatforms:["mac"]},"com.apple.mach-o-bundle":{parentUTIs:["com.apple.mach-o-binary"],iconPlatforms:["mac"]},"com.apple.pef-binary":{parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"public.elf-binary":{parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"com.microsoft.windows-executable":{supportedExtensions:["exe"],parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"com.microsoft.windows-dynamic-link-library":{supportedExtensions:["dll"],parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"com.sun.java-class":{supportedExtensions:["class"],parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"com.sun.java-archive":{supportedExtensions:["jar"],parentUTIs:["public.zip-archive","public.executable"],iconPlatforms:["mac"]},"com.sun.web-application-archive":{supportedExtensions:["war"],parentUTIs:["com.sun.java-archive"],iconPlatforms:["mac"]},"com.apple.quartz-composer-composition":{supportedExtensions:["qtz"],parentUTIs:["public.data","public.executable"],iconPlatforms:["mac"]},"com.apple.bom-archive":{parentUTIs:["public.archive"],iconPlatforms:["mac"]},"public.disk-image":{parentUTIs:["public.archive"],iconPlatforms:["mac"]},"org.gnu.gnu-tar-archive":{supportedExtensions:["gtar"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"public.tar-archive":{supportedExtensions:["tar"],parentUTIs:["org.gnu.gnu-tar-archive"],iconPlatforms:["mac"]},"org.gnu.gnu-zip-archive":{supportedExtensions:["gz","gzip"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"org.gnu.gnu-zip-tar-archive":{supportedExtensions:["tgz"],parentUTIs:["org.gnu.gnu-zip-archive"],iconPlatforms:["mac"]},"public.bzip2-archive":{supportedExtensions:["bz2","bz"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"public.tar-bzip2-archive":{supportedExtensions:["tbz2","tbz"],parentUTIs:["public.bzip2-archive"],iconPlatforms:["mac"]},"com.apple.binhex-archive":{supportedExtensions:["hqx"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"com.apple.macbinary-archive":{supportedExtensions:["bin"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"com.apple.applesingle-archive":{supportedExtensions:["as"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"public.uuencoded-archive":{supportedExtensions:["uu"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"public.z-archive":{supportedExtensions:["z"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"com.apple.bom-compressed-cpio":{supportedExtensions:["cpgz"],parentUTIs:["public.data","com.apple.bom-archive"],iconPlatforms:["mac"]},"public.cpio-archive":{supportedExtensions:["cpio","pax"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"com.pkware.zip-archive":{parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"public.zip-archive":{supportedExtensions:["zip"],parentUTIs:["com.pkware.zip-archive"],iconPlatforms:["ios","mac"]},"com.apple.xar-archive":{supportedExtensions:["xar"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"com.apple.xip-archive":{supportedExtensions:["xip"],parentUTIs:["com.apple.xar-archive"],iconPlatforms:["mac"]},"com.apple.installer-package-archive":{supportedExtensions:["pkg","mpkg"],parentUTIs:["public.data","public.archive"],iconPlatforms:["mac"]},"public.url":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"public.file-url":{parentUTIs:["public.url"],iconPlatforms:["mac"]},"public.url-name":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.internet-location":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.web-internet-location":{supportedExtensions:["webloc"],parentUTIs:["com.apple.internet-location"],iconPlatforms:["mac"]},"com.apple.mail-internet-location":{supportedExtensions:["mailloc"],parentUTIs:["com.apple.internet-location"],iconPlatforms:["mac"]},"com.apple.afp-internet-location":{supportedExtensions:["afploc"],parentUTIs:["com.apple.internet-location"],iconPlatforms:["mac"]},"com.apple.file-internet-location":{supportedExtensions:["fileloc"],parentUTIs:["com.apple.internet-location"],iconPlatforms:["mac"]},"com.apple.ftp-internet-location":{supportedExtensions:["ftploc"],parentUTIs:["com.apple.internet-location"],iconPlatforms:["mac"]},"com.apple.news-internet-location":{supportedExtensions:["newsloc"],parentUTIs:["com.apple.internet-location"],iconPlatforms:["mac"]},"com.apple.generic-internet-location":{supportedExtensions:["inetloc"],parentUTIs:["com.apple.internet-location"],iconPlatforms:["mac"]},"com.microsoft.internet-shortcut":{supportedExtensions:["url"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.itunes.store-url":{supportedExtensions:["itms"],parentUTIs:["public.url"],iconPlatforms:["mac"]},"public.delimited-values-text":{parentUTIs:["public.text"],iconPlatforms:["mac"]},"public.comma-separated-values-text":{supportedExtensions:["csv"],parentUTIs:["public.delimited-values-text"],iconPlatforms:["web","ios","mac"]},"public.tab-separated-values-text":{supportedExtensions:["tsv"],parentUTIs:["public.delimited-values-text"],iconPlatforms:["mac"]},"public.utf8-tab-separated-values-text":{parentUTIs:["public.tab-separated-values-text","public.utf8-plain-text"],iconPlatforms:["mac"]},"public.rtf":{supportedExtensions:["rtf"],parentUTIs:["public.text"],iconPlatforms:["web","ios","mac"]},"public.html":{supportedExtensions:["html","htm","shtml","shtm"],parentUTIs:["public.text"],iconPlatforms:["ios","mac"]},"public.xml":{supportedExtensions:["xml"],parentUTIs:["public.text"],iconPlatforms:["mac"]},"public.xhtml":{supportedExtensions:["xhtml","xhtm","xht"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"public.rss":{supportedExtensions:["rss"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"public.xfd":{supportedExtensions:["xfd"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"public.patch-file":{supportedExtensions:["patch","diff"],parentUTIs:["public.plain-text"],iconPlatforms:["mac"]},"public.json":{supportedExtensions:["json"],parentUTIs:["public.text"],iconPlatforms:["mac"]},"com.apple.property-list":{supportedExtensions:["plist"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.xml-property-list":{supportedExtensions:["plist"],parentUTIs:["public.xml","com.apple.property-list"],iconPlatforms:["mac"]},"com.apple.binary-property-list":{supportedExtensions:["plist"],parentUTIs:["com.apple.property-list"],iconPlatforms:["mac"]},"com.apple.ascii-property-list":{supportedExtensions:["plist"],parentUTIs:["public.text","com.apple.property-list"],iconPlatforms:["mac"]},"public.source-code":{parentUTIs:["public.plain-text"],iconPlatforms:["mac"]},"public.source-code.preprocessed":{parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.c-source":{supportedExtensions:["c"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.c-source.preprocessed":{supportedExtensions:["i"],parentUTIs:["public.c-source","public.source-code.preprocessed"],iconPlatforms:["mac"]},"public.objective-c-source":{supportedExtensions:["m"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.objective-c-source.preprocessed":{supportedExtensions:["mi"],parentUTIs:["public.objective-c-source","public.source-code.preprocessed"],iconPlatforms:["mac"]},"public.c-plus-plus-source":{supportedExtensions:["cp","cpp","c++","cc","cxx"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.c-plus-plus-source.preprocessed":{supportedExtensions:["ii"],parentUTIs:["public.c-plus-plus-source","public.source-code.preprocessed"],iconPlatforms:["mac"]},"public.objective-c-plus-plus-source":{supportedExtensions:["mm"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.objective-c-plus-plus-source.preprocessed":{supportedExtensions:["mii"],parentUTIs:["public.objective-c-plus-plus-source","public.source-code.preprocessed"],iconPlatforms:["mac"]},"public.c-header":{supportedExtensions:["h"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.precompiled-c-header":{supportedExtensions:["pch"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.c-plus-plus-header":{supportedExtensions:["hh","hp","hpp","hxx","h++"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.c-plus-plus-inline-header":{supportedExtensions:["inl"],parentUTIs:["public.c-plus-plus-header"],iconPlatforms:["mac"]},"public.precompiled-c-plus-plus-header":{supportedExtensions:["pch++"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"com.sun.java-source":{supportedExtensions:["java","jav"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.script":{parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.assembly-source":{supportedExtensions:["s"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"com.apple.rez-source":{supportedExtensions:["r"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.lex-source":{supportedExtensions:["l","lm","lmm","lpp","lxx"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.yacc-source":{supportedExtensions:["y","ym","ymm","ypp","yxx"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.mig-source":{supportedExtensions:["defs","mig"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"com.apple.symbol-export":{supportedExtensions:["exp"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.fortran-source":{supportedExtensions:["f","for"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.fortran-77-source":{supportedExtensions:["f77"],parentUTIs:["public.fortran-source"],iconPlatforms:["mac"]},"public.fortran-90-source":{supportedExtensions:["f90"],parentUTIs:["public.fortran-source"],iconPlatforms:["mac"]},"public.fortran-95-source":{supportedExtensions:["f95"],parentUTIs:["public.fortran-source"],iconPlatforms:["mac"]},"public.pascal-source":{supportedExtensions:["pas"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.ada-source":{supportedExtensions:["ada","adb","ads"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"public.dylan-source":{supportedExtensions:["dlyan","lid"],parentUTIs:["public.source-code"],iconPlatforms:["mac"]},"com.netscape.javascript-source":{supportedExtensions:["js","jscript","javascript"],parentUTIs:["public.script","public.executable"],iconPlatforms:["mac"]},"public.shell-script":{supportedExtensions:["sh"],parentUTIs:["public.script"],iconPlatforms:["mac"]},"public.bash-script":{supportedExtensions:["bash"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.csh-script":{supportedExtensions:["csh"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.ksh-script":{supportedExtensions:["ksh"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.tcsh-script":{supportedExtensions:["tcsh"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.zsh-script":{supportedExtensions:["zsh"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.perl-script":{supportedExtensions:["pl","pm"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.python-script":{supportedExtensions:["py"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.ruby-script":{supportedExtensions:["rb","rbw"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"public.php-script":{supportedExtensions:["php","php3","php4","ph3","ph4","phtml"],parentUTIs:["public.shell-script"],iconPlatforms:["mac"]},"com.sun.java-web-start":{supportedExtensions:["jnlp"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"public.image":{parentUTIs:["public.data","public.content"],iconPlatforms:["web","ios","mac"]},"public.fax":{parentUTIs:["public.image","public.message"],iconPlatforms:["mac"]},"public.camera-raw-image":{parentUTIs:["public.image"],iconPlatforms:["mac"]},"public.jpeg":{supportedExtensions:["jpeg","jpg","jpe"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"public.jpeg-2000":{supportedExtensions:["jp2","jpf","jpx","j2k","j2c"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"public.tiff":{supportedExtensions:["tiff","tif"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.apple.pict":{supportedExtensions:["pict","pct","pic"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.apple.macpaint-image":{supportedExtensions:["pntg"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"public.png":{supportedExtensions:["png"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"public.svg-image":{supportedExtensions:["svg","svgz"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.apple.quicktime-image":{supportedExtensions:["qtif","qti"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"com.apple.icns":{supportedExtensions:["icns"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"public.xbitmap-image":{supportedExtensions:["xbm"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"public.mpo-image":{supportedExtensions:["mpo"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"ca.mcgill.mni.bic.mnc":{supportedExtensions:["mnc","minc"],parentUTIs:["public.image"],iconPlatforms:["mac"]},"org.nema.dicom":{supportedExtensions:["dcm"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"gov.nih.nifti-1":{supportedExtensions:["nii"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"public.audiovisual-content":{parentUTIs:["public.data","public.content"],iconPlatforms:["mac"]},"public.movie":{parentUTIs:["public.audiovisual-content"],iconPlatforms:["web","ios","mac"]},"public.video":{parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.audio":{parentUTIs:["public.audiovisual-content"],iconPlatforms:["web","ios","mac"]},"com.apple.quicktime-movie":{supportedExtensions:["mov","qt"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.mpeg":{supportedExtensions:["mpg","mpeg","mpe","m75","m15"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.mpeg-2-video":{supportedExtensions:["m2v"],parentUTIs:["public.video"],iconPlatforms:["mac"]},"public.mpeg-4":{supportedExtensions:["mp4","mpg4"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"com.apple.m4v-video":{supportedExtensions:["m4v"],parentUTIs:["public.mpeg-4"],iconPlatforms:["mac"]},"com.apple.protected-mpeg-4-video":{parentUTIs:["com.apple.m4v-video"],iconPlatforms:["mac"]},"public.dv-movie":{supportedExtensions:["dv","dif"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.avi":{supportedExtensions:["avi","vfw"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.3gpp":{supportedExtensions:["3gp","3gpp","sdv"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.3gpp2":{supportedExtensions:["3g2","3gp2"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.flc-animation":{supportedExtensions:["flc","fli","cel"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.mpeg-2-transport-stream":{supportedExtensions:["ts"],parentUTIs:["public.movie"],iconPlatforms:["mac"]},"public.audiovisual-content-collection":{iconPlatforms:["mac"]},"public.avchd-collection":{supportedExtensions:["avchd"],parentUTIs:["com.apple.package","public.audiovisual-content-collection"],iconPlatforms:["mac"]},"com.apple.audio-unit-preset":{supportedExtensions:["aupreset"],parentUTIs:["com.apple.xml-property-list"],iconPlatforms:["mac"]},"public.mp2":{supportedExtensions:["mp2"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.mp3":{supportedExtensions:["mp3","mpga"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.playlist":{iconPlatforms:["mac"]},"public.m3u-playlist":{supportedExtensions:["m3u","m3u8"],parentUTIs:["public.plain-text","public.playlist"],iconPlatforms:["mac"]},"public.pls-playlist":{supportedExtensions:["pls"],parentUTIs:["public.text","public.playlist"],iconPlatforms:["mac"]},"public.mpeg-4-audio":{supportedExtensions:["mp4","mpg4"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.apple.m4a-audio":{supportedExtensions:["m4a"],parentUTIs:["public.mpeg-4-audio"],iconPlatforms:["mac"]},"com.apple.mpeg-4-ringtone":{supportedExtensions:["m4r"],parentUTIs:["public.mpeg-4-audio"],iconPlatforms:["mac"]},"com.apple.protected-mpeg-4-audio":{supportedExtensions:["m4p","m4b"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.ulaw-audio":{supportedExtensions:["ul","ulw","ulaw"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.au-audio":{supportedExtensions:["au","snd"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.aifc-audio":{supportedExtensions:["aifc","aiff","aif","cdda"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.aiff-audio":{supportedExtensions:["aiff","aif"],parentUTIs:["public.aifc-audio"],iconPlatforms:["mac"]},"public.midi-audio":{supportedExtensions:["midi","mid","smf","kar"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.downloadable-sound":{supportedExtensions:["dls"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.apple.coreaudio-format":{supportedExtensions:["caf"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.ac3-audio":{supportedExtensions:["ac3"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"org.3gpp.adaptive-multi-rate-audio":{supportedExtensions:["amr"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"public.aac-audio":{supportedExtensions:["aac","adts"],parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.audible.aa-audio":{parentUTIs:["public.audio"],iconPlatforms:["mac"]},"com.apple.itunes.audible":{supportedExtensions:["aa","aax"],parentUTIs:["com.audible.aa-audio"],iconPlatforms:["mac"]},"public.font":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"public.truetype-font":{parentUTIs:["public.font"],iconPlatforms:["mac"]},"com.adobe.postscript-font":{parentUTIs:["public.font"],iconPlatforms:["mac"]},"com.apple.truetype-datafork-suitcase-font":{supportedExtensions:["dfont"],parentUTIs:["public.truetype-font"],iconPlatforms:["mac"]},"public.opentype-font":{supportedExtensions:["otf"],parentUTIs:["public.font"],iconPlatforms:["mac"]},"public.opentype-collection-font":{supportedExtensions:["otc"],parentUTIs:["public.opentype-font"],iconPlatforms:["mac"]},"public.truetype-ttf-font":{supportedExtensions:["ttf"],parentUTIs:["public.truetype-font"],iconPlatforms:["mac"]},"public.truetype-collection-font":{supportedExtensions:["ttc"],parentUTIs:["public.truetype-font"],iconPlatforms:["mac"]},"com.apple.font-suitcase":{supportedExtensions:["suit"],parentUTIs:["public.font"],iconPlatforms:["mac"]},"com.adobe.postscript-lwfn-font":{parentUTIs:["com.adobe.postscript-font"],iconPlatforms:["mac"]},"com.adobe.postscript-pfb-font":{supportedExtensions:["pfb"],parentUTIs:["com.adobe.postscript-font"],iconPlatforms:["mac"]},"com.adobe.postscript-pfa-font":{supportedExtensions:["pfa"],parentUTIs:["com.adobe.postscript-font"],iconPlatforms:["mac"]},"com.apple.applescript.text":{supportedExtensions:["applescript"],parentUTIs:["public.script"],iconPlatforms:["mac"]},"com.apple.applescript.script":{supportedExtensions:["scpt"],parentUTIs:["public.data","public.script"],iconPlatforms:["mac"]},"com.apple.applescript.script-bundle":{supportedExtensions:["scptd"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"public.folder":{parentUTIs:["public.directory"],iconPlatforms:["mac","web"]},"com.apple.drop-folder":{parentUTIs:["public.folder"],iconPlatforms:["mac"]},"com.apple.applications-folder":{parentUTIs:["public.folder"],iconPlatforms:["mac"]},"com.apple.server-applications-folder":{parentUTIs:["public.folder"],iconPlatforms:["mac"]},"com.apple.library-folder":{parentUTIs:["public.folder"],iconPlatforms:["mac"]},"com.apple.servers-folder":{parentUTIs:["public.folder"],iconPlatforms:["mac"]},"public.volume":{parentUTIs:["public.folder"],iconPlatforms:["mac"]},"public.file-sharepoint":{iconPlatforms:["mac"]},"com.apple.network-neighborhood":{iconPlatforms:["mac"]},"com.apple.dot-mac":{iconPlatforms:["mac"]},"com.apple.package":{parentUTIs:["public.directory"],iconPlatforms:["mac"]},"com.apple.bundle":{parentUTIs:["public.directory"],iconPlatforms:["mac"]},"com.apple.generic-bundle":{supportedExtensions:["bundle"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.systempreference.prefpane":{supportedExtensions:["prefPane"],parentUTIs:["com.apple.package","com.apple.bundle"],iconPlatforms:["mac"]},"com.apple.systempreference.screen-saver":{supportedExtensions:["saver"],parentUTIs:["com.apple.package","com.apple.bundle"],iconPlatforms:["mac"]},"com.apple.systempreference.screen-slide-saver":{supportedExtensions:["slideSaver"],parentUTIs:["com.apple.package","com.apple.bundle"],iconPlatforms:["mac"]},"com.apple.menu-extra":{supportedExtensions:["menu"],parentUTIs:["com.apple.package","com.apple.bundle"],iconPlatforms:["mac"]},"com.apple.localizable-name-bundle":{parentUTIs:["com.apple.bundle"],iconPlatforms:["mac"]},"com.apple.framework":{supportedExtensions:["framework"],parentUTIs:["com.apple.bundle"],iconPlatforms:["mac"]},"com.apple.application-bundle":{supportedExtensions:["app"],parentUTIs:["com.apple.application","com.apple.localizable-name-bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.application-file":{supportedExtensions:["app"],parentUTIs:["com.apple.application","public.data"],iconPlatforms:["mac"]},"com.apple.deprecated-application-file":{parentUTIs:["com.apple.application-file"],iconPlatforms:["mac"]},"com.apple.flat-rtfd":{parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"com.apple.installer-package":{supportedExtensions:["pkg"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.installer-distribution-package":{supportedExtensions:["dist","distz"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.installer-meta-package":{supportedExtensions:["mpkg"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.rtfd":{supportedExtensions:["rtfd"],parentUTIs:["com.apple.package","public.composite-content"],iconPlatforms:["mac"]},"com.apple.plugin":{supportedExtensions:["plugin"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.xpc-service":{supportedExtensions:["xpc"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.application-and-system-extension":{supportedExtensions:["appex"],parentUTIs:["com.apple.xpc-service"],iconPlatforms:["mac"]},"com.apple.pluginkit":{supportedExtensions:["pluginkit"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.webkit-plugin":{supportedExtensions:["webplugin"],parentUTIs:["com.apple.plugin"],iconPlatforms:["mac"]},"com.apple.metadata-importer":{supportedExtensions:["mdimporter"],parentUTIs:["com.apple.plugin"],iconPlatforms:["mac"]},"com.apple.quicklook-generator":{supportedExtensions:["qlgenerator"],parentUTIs:["com.apple.plugin"],iconPlatforms:["mac"]},"com.apple.dashboard-widget":{supportedExtensions:["wdgt"],parentUTIs:["com.apple.localizable-name-bundle","com.apple.package"],iconPlatforms:["mac"]},"public.dvd-video-disc":{parentUTIs:["com.apple.package"],iconPlatforms:["mac"]},"public.bd-video-disc":{parentUTIs:["com.apple.package"],iconPlatforms:["mac"]},"org.openxmlformats.openxml":{parentUTIs:["public.zip-archive"],iconPlatforms:["mac"]},"org.oasis-open.opendocument":{parentUTIs:["public.zip-archive"],iconPlatforms:["mac"]},"com.rsa.pkcs-12":{supportedExtensions:["p12","pfx"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"public.x509-certificate":{supportedExtensions:["cer","der","crt","pem"],parentUTIs:["public.data"],iconPlatforms:["web","ios","mac"]},"com.apple.webarchive":{supportedExtensions:["webarchive"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"org.idpf.epub-container":{supportedExtensions:["epub"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"com.apple.localized-pdf-bundle":{supportedExtensions:["lpdf"],parentUTIs:["com.apple.localizable-name-bundle","com.apple.package","public.composite-content"],iconPlatforms:["mac"]},"org.aafassociation.advanced-authoring-format":{supportedExtensions:["aaf"],parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"com.apple.txn.text-multimedia-data":{parentUTIs:["public.data","public.composite-content"],iconPlatforms:["mac"]},"com.apple.colorsync-profile":{supportedExtensions:["icc","icm","pf"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.ink.inktext":{parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.mobileconfig":{supportedExtensions:["mobileconfig","mobile"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"com.apple.provisionprofile":{supportedExtensions:["provisionprofile"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"com.apple.configprofile":{supportedExtensions:["configprofile"],parentUTIs:["public.xml"],iconPlatforms:["mac"]},"com.apple.user":{iconPlatforms:["mac"]},"com.apple.user-group":{iconPlatforms:["mac"]},"com.apple.user-unknown":{iconPlatforms:["mac"]},"com.apple.airdrop":{iconPlatforms:["mac"]},"com.apple.bonjour":{iconPlatforms:["mac"]},"com.apple.notifications":{iconPlatforms:["mac"]},"com.apple.SetupAssistant.internet-signup":{supportedExtensions:["inss"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"com.apple.mobileprovision":{supportedExtensions:["mobileprovision"],parentUTIs:["public.data"],iconPlatforms:["web","ios","mac"]},"com.apple.pkpass":{supportedExtensions:["pkpass"],parentUTIs:["com.apple.bundle","com.apple.package"],iconPlatforms:["mac"]},"com.apple.pkpass-data":{supportedExtensions:["pkpass"],parentUTIs:["public.data"],iconPlatforms:["mac"]},"public.device":{iconPlatforms:["mac"]},"public.display":{iconPlatforms:["mac"]},"public.computer":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"public.generic-pc":{parentUTIs:["public.computer"],iconPlatforms:["mac"]},"com.apple.mac":{parentUTIs:["public.computer"],iconPlatforms:["mac"]},"com.apple.mac.laptop":{parentUTIs:["com.apple.mac"],iconPlatforms:["mac"]},"com.apple.mac.tower":{parentUTIs:["com.apple.mac"],iconPlatforms:["mac"]},"com.apple.powerbook":{parentUTIs:["com.apple.mac.laptop"],iconPlatforms:["mac"]},"com.apple.powerbook-g4-titanium":{parentUTIs:["com.apple.powerbook"],iconPlatforms:["mac"]},"com.apple.powerbook-g4-12":{parentUTIs:["com.apple.powerbook"],iconPlatforms:["mac"]},"com.apple.powerbook-g4-15":{parentUTIs:["com.apple.powerbook"],iconPlatforms:["mac"]},"com.apple.powerbook-g4-17":{parentUTIs:["com.apple.powerbook"],iconPlatforms:["mac"]},"com.apple.ibook-g4":{parentUTIs:["com.apple.mac.laptop"],iconPlatforms:["mac"]},"com.apple.powermac":{parentUTIs:["com.apple.mac.tower"],iconPlatforms:["mac"]},"com.apple.powermac-g4-quicksilver":{parentUTIs:["com.apple.powermac"],iconPlatforms:["mac"]},"com.apple.powermac-g4-mirrored-drive-doors":{parentUTIs:["com.apple.powermac"],iconPlatforms:["mac"]},"com.apple.powermac-g5":{parentUTIs:["com.apple.powermac"],iconPlatforms:["mac"]},"com.apple.xserve":{parentUTIs:["com.apple.mac"],iconPlatforms:["mac"]},"com.apple.xserve-g4":{parentUTIs:["com.apple.xserve"],iconPlatforms:["mac"]},"com.apple.xserve-g5":{parentUTIs:["com.apple.xserve"],iconPlatforms:["mac"]},"com.apple.xserve-xeon":{parentUTIs:["com.apple.xserve"],iconPlatforms:["mac"]},"com.apple.macmini":{parentUTIs:["com.apple.mac"],iconPlatforms:["mac"]},"com.apple.macmini-g4":{parentUTIs:["com.apple.macmini"],iconPlatforms:["mac"]},"com.apple.macmini-core-duo":{parentUTIs:["com.apple.macmini"],iconPlatforms:["mac"]},"com.apple.macmini-unibody":{parentUTIs:["com.apple.macmini"],iconPlatforms:["mac"]},"com.apple.macmini-unibody-no-optical":{parentUTIs:["com.apple.macmini"],iconPlatforms:["mac"]},"com.apple.emac":{parentUTIs:["com.apple.mac"],iconPlatforms:["mac"]},"com.apple.imac":{parentUTIs:["com.apple.mac"],iconPlatforms:["mac"]},"com.apple.imac-g4-15":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-g4-17":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-g4-20":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-g5":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-g5-isight":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-core-duo":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-core-2-duo":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-iSight-24":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-aluminum-20":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-aluminum-24":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-unibody-21":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-unibody":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-unibody-21-no-optical":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-unibody-27-no-optical":{parentUTIs:["com.apple.imac"],iconPlatforms:["mac"]},"com.apple.imac-15-1":{parentUTIs:["com.apple.imac-unibody-27-no-optical"],iconPlatforms:["mac"]},"com.apple.macbook":{parentUTIs:["com.apple.mac.laptop"],iconPlatforms:["mac"]},"com.apple.macbook-white":{parentUTIs:["com.apple.macbook"],iconPlatforms:["mac"]},"com.apple.macbook-black":{parentUTIs:["com.apple.macbook"],iconPlatforms:["mac"]},"com.apple.macbook-unibody":{parentUTIs:["com.apple.macbook"],iconPlatforms:["mac"]},"com.apple.macbook-unibody-plastic":{parentUTIs:["com.apple.macbook"],iconPlatforms:["mac"]},"com.apple.macbookpro-13-unibody":{parentUTIs:["com.apple.macbookpro"],iconPlatforms:["mac"]},"com.apple.macbookpro-13-retina-display":{parentUTIs:["com.apple.macbookpro"],iconPlatforms:["mac"]},"com.apple.macbookpro":{parentUTIs:["com.apple.mac.laptop"],iconPlatforms:["mac"]},"com.apple.macbookpro-15":{parentUTIs:["com.apple.macbookpro"],iconPlatforms:["mac"]},"com.apple.macbookpro-15-unibody":{parentUTIs:["com.apple.macbookpro"],iconPlatforms:["mac"]},"com.apple.macbookpro-15-retina-display":{parentUTIs:["com.apple.macbookpro"],iconPlatforms:["mac"]},"com.apple.macbookpro-17-unibody":{parentUTIs:["com.apple.macbookpro"],iconPlatforms:["mac"]},"com.apple.macbookpro-17":{parentUTIs:["com.apple.macbookpro"],iconPlatforms:["mac"]},"com.apple.macbookair":{parentUTIs:["com.apple.mac.laptop"],iconPlatforms:["mac"]},"com.apple.macbookair-11-unibody":{parentUTIs:["com.apple.macbookair"],iconPlatforms:["mac"]},"com.apple.macbookair-13-unibody":{parentUTIs:["com.apple.macbookair"],iconPlatforms:["mac"]},"com.apple.macpro":{parentUTIs:["com.apple.mac.tower"],iconPlatforms:["mac"]},"com.apple.macpro-cylinder":{parentUTIs:["com.apple.macpro"],iconPlatforms:["mac"]},"com.apple.apple-tv":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.iphone":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.iphone-3g":{parentUTIs:["com.apple.iphone"],iconPlatforms:["mac"]},"com.apple.iphone-3gs":{parentUTIs:["com.apple.iphone"],iconPlatforms:["mac"]},"com.apple.iphone-4":{parentUTIs:["com.apple.iphone"],iconPlatforms:["mac"]},"com.apple.ipod":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.ipod-touch":{parentUTIs:["com.apple.ipod"],iconPlatforms:["mac"]},"com.apple.ipod-touch-2":{parentUTIs:["com.apple.ipod"],iconPlatforms:["mac"]},"com.apple.ipod-touch-3":{parentUTIs:["com.apple.ipod"],iconPlatforms:["mac"]},"com.apple.ipod-touch-4":{parentUTIs:["com.apple.ipod"],iconPlatforms:["mac"]},"com.apple.ipad":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.watch":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.airport-express":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.airport":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.time-capsule":{parentUTIs:["public.device"],iconPlatforms:["mac"]},"com.apple.airport-extreme-tower":{parentUTIs:["com.apple.airport"],iconPlatforms:["mac"]},"com.apple.airport-time-capsule-tower":{parentUTIs:["com.apple.time-capsule"],iconPlatforms:["mac"]},"com.apple.cinema-display":{parentUTIs:["public.display"],iconPlatforms:["mac"]},"com.apple.led-cinema-display-24":{parentUTIs:["public.display"],iconPlatforms:["mac"]},"com.apple.led-cinema-display-27":{parentUTIs:["public.display"],iconPlatforms:["mac"]},"public.storage":{iconPlatforms:["mac"]},"com.apple.storage-external":{parentUTIs:["public.storage"],iconPlatforms:["mac"]},"com.apple.storage-internal":{parentUTIs:["public.storage"],iconPlatforms:["mac"]},"com.apple.storage-removable":{parentUTIs:["public.storage"],iconPlatforms:["mac"]},"public.optical-storage-media":{parentUTIs:["public.storage"],iconPlatforms:["mac"]},"public.cd-based-media":{parentUTIs:["public.optical-storage-media"],iconPlatforms:["mac"]},"public.cd-media":{parentUTIs:["public.cd-based-media"],iconPlatforms:["mac"]},"public.cd-r-media":{parentUTIs:["public.cd-based-media"],iconPlatforms:["mac"]},"public.cd-rw-media":{parentUTIs:["public.cd-based-media"],iconPlatforms:["mac"]},"public.dvd-based-media":{parentUTIs:["public.optical-storage-media"],iconPlatforms:["mac"]},"public.dvd-media":{parentUTIs:["public.dvd-based-media"],iconPlatforms:["mac"]},"public.dvd-r-media":{parentUTIs:["public.dvd-based-media"],iconPlatforms:["mac"]},"public.dvd-rw-media":{parentUTIs:["public.dvd-based-media"],iconPlatforms:["mac"]},"public.dvd-ram-media":{parentUTIs:["public.dvd-based-media"],iconPlatforms:["mac"]},"public.dvd-plus-r-media":{parentUTIs:["public.dvd-based-media"],iconPlatforms:["mac"]},"public.dvd-plus-rw-media":{parentUTIs:["public.dvd-based-media"],iconPlatforms:["mac"]},"public.hd-dvd-based-media":{parentUTIs:["public.optical-storage-media"],iconPlatforms:["mac"]},"public.hd-dvd-media":{parentUTIs:["public.hd-dvd-based-media"],iconPlatforms:["mac"]},"public.hd-dvd-r-media":{parentUTIs:["public.hd-dvd-based-media"],iconPlatforms:["mac"]},"public.hd-dvd-rw-media":{parentUTIs:["public.hd-dvd-based-media"],iconPlatforms:["mac"]},"public.hd-dvd-ram-media":{parentUTIs:["public.hd-dvd-based-media"],iconPlatforms:["mac"]},"public.app-category":{iconPlatforms:["mac"]},"public.app-category.business":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.developer-tools":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.education":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.entertainment":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.finance":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.games":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.action-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.adventure-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.arcade-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.board-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.card-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.casino-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.dice-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.educational-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.family-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.kids-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.music-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.puzzle-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.racing-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.role-playing-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.simulation-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.sports-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.strategy-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.trivia-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.word-games":{parentUTIs:["public.app-category.games"],iconPlatforms:["mac"]},"public.app-category.graphics-design":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.healthcare-fitness":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.lifestyle":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.medical":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.music":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.news":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.photography":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.productivity":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.reference":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.social-networking":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.sports":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.travel":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.utilities":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.video":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"public.app-category.weather":{parentUTIs:["public.app-category"],iconPlatforms:["mac"]},"com.apple.structured-text":{parentUTIs:["public.plain-text"],iconPlatforms:["mac"]},"com.apple.structured-text.date":{parentUTIs:["com.apple.structured-text"],iconPlatforms:["mac"]},"com.apple.structured-text.address":{parentUTIs:["com.apple.structured-text"],iconPlatforms:["mac"]},"com.apple.structured-text.telephone-number":{parentUTIs:["com.apple.structured-text"],iconPlatforms:["mac"]},"com.apple.structured-text.transit-information":{parentUTIs:["com.apple.structured-text"],iconPlatforms:["mac"]},"com.apple.active-webpage":{iconPlatforms:["mac"]},"com.apple.mail.email":{iconPlatforms:["mac"]},"com.apple.disk-image-udif":{iconPlatforms:["mac"]}},d=["public.folder","public.directory"],h=i.a.extend({bindingTable:r.c({}),claimArray:r.c([]),init:function(){var e=arguments;this.__s._$AX$init.apply(this,e),this._buildUTITree(u),this._linkParentNodes(u)},createClaim:function(e){this.claimArray.push(e)},processClaims:function(){this._removeFirstPartyClaims(),this._removeRestrictedUTIClaims();for(var e=this.claimArray,t=l.sortByKey(e,"creationDate"),n=0;n<t.length;n++){for(var i=t[n].supportedTypes,r=0;r<i.length;r++){var a=i[r],o=this.bindingTable[a];if(o){var s=o.importedDeclarations;s[a]||(s[a]=t[n],o.importedDeclarations=s,this.bindingTable[a]=o)}else{var u=c.create({uniformTypeIdentifier:a,parentNodes:[this.bindingTable["public.item"]],importedDeclarations:{"*":t[n]}});this.bindingTable[a]=u}}for(var d=[],h=t[n].supportedExtensions,p=0;p<h.length;p++){var f=h[p],m=this.bindingTable[f];if(m){var g=m.importedDeclarations;g[f]||(g[f]=t[n],m.importedDeclarations=g,this.bindingTable[f]=m)}else d.push(f)}if(d.length>0){var b="__PROXY__."+t[n].zoneName,v=c.create({uniformTypeIdentifier:b,parentNodes:[this.bindingTable["public.item"]],supportedExtensions:d,importedDeclarations:{"*":t[n]}});this.bindingTable[b]=v;for(var _=0;_<d.length;_++){var y=d[_];this.bindingTable[y]=v}}t[n].claimProcessed=!0}},_buildUTITree:function(e){for(var t in this.bindingTable={},e){var n=c.create({uniformTypeIdentifier:t}),i=t.startsWith("com.apple.");n.isAppleType=i;var r=e[t];n.iconPlatforms=r.iconPlatforms;var a=r.supportedExtensions;a&&(n.supportedExtensions=a),this._addEntryToBindingTable(n)}},_addEntryToBindingTable:function(e){var t=e.uniformTypeIdentifier;this.bindingTable[t]=e;var n=e.supportedExtensions;if(n)for(var i=0;i<n.length;i++){var r=n[i];this.bindingTable[r]||(this.bindingTable[r]=e)}},_linkParentNodes:function(e){for(var t in e){var n=this.bindingTable[t],i=e[t].parentUTIs;if(i){var r=this._getNodesForUTIs(i);n.parentNodes=r,this.bindingTable[t]=n}}},_getNodesForUTIs:function(e){for(var t=[],n=0;n<e.length;n++){var i=e[n];t.push(this.bindingTable[i])}return t},_removeFirstPartyClaims:function(){for(var e=this.claimArray,t=0;t<e.length;t++){for(var n=e[t],i=n.supportedTypes,r=0;r<i.length;r++){var a=i[r],o=this.bindingTable[a];if(o&&o.isAppleType){var s=i.indexOf(a);i.splice(s,1)}}n.supportedTypes=i;for(var c=n.supportedExtensions,l=0;l<c.length;l++){var u=c[l],d=this.bindingTable[u];if(d&&d.isAppleType){var h=c.indexOf(u);c.splice(h,1)}}n.supportedExtensions=c,e[t]=n}},_removeRestrictedUTIClaims:function(){for(var e=this.claimArray,t=0;t<e.length;t++){for(var n=e[t],i=n.supportedTypes,r=0;r<i.length;r++){var a=i[r];if(-1!==d.indexOf(a)){var o=i.indexOf(a);i.splice(o,1)}}n.supportedTypes=i,e[t]=n}},__superMap:{_$AX$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"UTIRegistry"}}),p=n(1078),f=n(909),m=n(1079),g=n(51),b=n(1088),v=i.a.extend({mixinDependencies:[b.b],staticMembers:{fromSuccessResponse:function(e){return e||o.b("[AppLibrariesResponse] No json body specified"),v.create({status:b.a.SUCCESS,items:e.items})},errorResponse:function(){return v.create({status:b.a.ERROR})},__QUALIFIED_CLASS_NAME__:"AppLibrariesResponse"},items:a.d({type:Array})}),_=(n(3),"drivews"),y=n(1085),C=n(1080),I=n(1159),w=n(1162);n(3),n.d(t,"a",function(){return E});var S=[32,128,256],A=["web","ios","mac"],O={IOS:"ios",OSX:"mac"},E=i.a.extend({mixinDependencies:[y.a],staticMembers:{createSharedInstance:function(){return E.create(p.a.sharedInstance)},__QUALIFIED_CLASS_NAME__:"CoreTypesController"},_utiRegistry:r.c(h),iconUrlPrefix:a.d({type:String,readOnly:!0,get:function(){return"https://www."+this.domainManager.current.domain+"/coretypes/"}}),domainManager:a.d({type:p.a,readOnly:!0}),init:function(e){this.__s._$XZ$init.call(this),e||o.b("[CoreTypesController] No domain manager"),this._domainManager=e},setupThirdPartyAppIcons:function(){var e,t=this;return(e=Object(m.d)(_,"retrieveAppLibraries"),Object(g.a)(e).then(function(e){return e.status===f.a.OK?e.json().then(function(e){return v.fromSuccessResponse(e)}):v.errorResponse()})).then(function(e){var n=e.items;if(e.status===b.a.SUCCESS){for(var i=0;i<n.length;i++)if(n[i].icons&&!n[i].zone.startsWith("com.apple.")){var r=n[i],a=l.create({zoneName:r.zone,applicationName:r.name,creationDate:new Date(r.dateCreated||0),supportedExtensions:r.supportedExtensions||[],supportedTypes:r.supportedTypes||[],icons:r.icons||[]});t._utiRegistry.createClaim(a)}t._utiRegistry.processClaims()}else{var o=C.a.create("CoreTypes",{error:"Failed to get App Libraries from DriveWS"});I.b.sharedInstance.recordStat(o)}})},fetchIcon:function(e,t,n,i){e&&t&&n||o.b("fetchIcon: Missing required arguments."),i&&(i=i.map(function(e){return e.value})),i&&1===i.length&&(i=i[0]);var r=this._utiRegistry.bindingTable[e];r||(r=this._utiRegistry.bindingTable["public.item"]);var a=r.importedDeclarations,s=a[e],c=!!s,l=a["*"],u=!!l;if(Array.isArray(i)){var d=this._getClaimRecordForPlatformArray(r,i);if(d)return this._constructThirdPartyIconResponseWithPriority(d,t,n,i);var h=this._getNodeWithIconForPlatformArray(r,i);return this._constructIconResponseWithPriority(h,t,n,i)}if(c){if(this._getPlatformToDriveWsPlatformMap()[i]in s.iconMap||!i)return this._constructThirdPartyIconResponse(s,t,n,i);var p=this._getNodeWithIconForPlatform(r,i);return this._constructIconResponse(p,t,n,i)}if(u)return this._constructThirdPartyIconResponse(l,t,n,i);var f=this._getNodeWithIconForPlatform(r,i);return this._constructIconResponse(f,t,n,i)},getConformingTypes:function(e){s.a(e)||o.b("getConformingTypes: Missing required arguments.");var t=this._utiRegistry.bindingTable[e];if(!t)return[];for(var n=[];t.parentNodes[0];){var i=(t=t.parentNodes[0]).uniformTypeIdentifier;n.push(i)}return n},_getNodeWithIcon:function(e){return e.iconPlatforms.length>0||0===e.parentNodes.length?e:this._getNodeWithIcon(e.parentNodes[0])},_getNodeWithIconForPlatform:function(e,t){return t?-1!==e.iconPlatforms.indexOf(t)?e:0===e.parentNodes.length?this._utiRegistry.bindingTable["public.item"]:this._getNodeWithIconForPlatform(e.parentNodes[0],t):this._getNodeWithIcon(e)},_getNodeWithIconForPlatformArray:function(e,t){for(var n=t.length,i=0;i<n;i++){var r=t[i];if(-1!==e.iconPlatforms.indexOf(r))return e}return 0===e.parentNodes.length?this._utiRegistry.bindingTable["public.item"]:this._getNodeWithIconForPlatformArray(e.parentNodes[0],t)},_getValidIconSize:function(e,t){var n=t||S,i=n.length;if(-1!==n.indexOf(e))return e;if(e>n[i-1])return n[i-1];for(var r=n[0],a=0;a<n.length;a++)if(n[a]>e){r=n[a];break}return r},_getPreferredPlatform:function(e){for(var t=A,n=0;n<t.length;n++)for(var i=0;i<e.length;i++)if(t[n]===e[i])return e[i]},_constructIconResponse:function(e,t,n,i){var r=e.iconPlatforms,a=-1!==r.indexOf(i),o=this._getValidIconSize(t),s=n>2?2:n,c=e.uniformTypeIdentifier,l=void 0;if(a)l=i;else{if(i)return null;l=1===r.length?r[0]:this._getPreferredPlatform(r)}return{iconURL:""+this.iconUrlPrefix+l+"/"+c+"_"+o+"@"+s+"x.png",iconSize:Math.round(o*s/n),isAppIcon:!1,isDefaultIcon:"public.item"===e.uniformTypeIdentifier}},_constructIconResponseWithPriority:function(e,t,n,i){for(var r=i.length,a=0;a<r;a++){var o=i[a];if(-1!==e.iconPlatforms.indexOf(o))return this._constructIconResponse(e,t,n,o)}},_constructThirdPartyIconResponse:function(e,t,n,i){var r=i?i.toUpperCase():null;"MAC"===r&&(r="OSX");var a=e.iconMap,o=a[r],s=Object.keys(a),c=void 0;if(o)c=r;else{if(i)return null;c=1===s.length?s[0]:this._getPreferredPlatform(s,!0)}var l=(o=a[c]).sizes,u=t*n,d=this._getValidIconSize(u,l),h=l.indexOf(d),p=o.urls[h];return{iconURL:p+="&validateToken="+this._getValidateToken(),iconSize:Math.round(d/n),isAppIcon:!0,isDefaultIcon:!1}},_constructThirdPartyIconResponseWithPriority:function(e,t,n,i){for(var r=this._getIconPlatformsForClaimRecord(e),a=0;a<i.length;a++){var o=i[a];if(-1!==r.indexOf(o)){var s=o.toUpperCase();"MAC"===s&&(s="OSX");var c=e.iconMap[s],l=c.sizes,u=t*n,d=this._getValidIconSize(u,l),h=l.indexOf(d),p=c.urls[h];return{iconURL:p+="&validateToken="+this._getValidateToken(),iconSize:Math.round(d/n),isAppIcon:!0,isDefaultIcon:!1}}}},_getPlatformToDriveWsPlatformMap:function(){for(var e=O,t=Object.keys(e),n={},i=0;i<t.length;i++){var r=t[i];n[e[r]]=r}return n},_getClaimRecordForPlatformArray:function(e,t){for(var n=Object.keys(e.importedDeclarations),i=n.length,r=0;r<i;r++)for(var a=e.importedDeclarations[n[r]],o=this._getIconPlatformsForClaimRecord(a),s=0;s<t.length;s++){var c=t[s];if(-1!==o.indexOf(c))return a}},_getIconPlatformsForClaimRecord:function(e){var t=Object.keys(e.iconMap);return this._replaceValues(t,O)},_replaceValues:function(e,t){for(var n=0;n<e.length;n++){var i=e[n];e[n]=t[i]}return e},_getValidateToken:function(){var e=this._cookieManager;if(!e){var t=this.domainManager.current.domain;e=w.a.create(t),this._cookieManager=e}var n=e.readCookieValue("X-APPLE-WEBAUTH-VALIDATE");return n.substr(1,n.length-2)},__superMap:{_$XZ$init:"init"}})},function(e,t,n){"use strict";var i=n(818),r=n(81),a=n(1160),o=i.a.extend({mixinDependencies:[a.a],title:r.d({type:String,serialization:{propertyName:"alertTitle"}}),description:r.d({type:String,serialization:{propertyName:"alert"}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"NotificationItem"}}),s=i.a.extend({mixinDependencies:[a.a],containerIdentifier:r.d({type:String,serialization:{propertyName:"cid"}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"NotificationCKInfo"}});n.d(t,"a",function(){return c});var c=i.a.extend({mixinDependencies:[a.a],staticMembers:{deserialize:function(e){var t=arguments,n=this.__s._$Cu$deserialize.apply(this,t);return n.payload=e,n},__superMap:{_$Cu$deserialize:"deserialize"},__QUALIFIED_CLASS_NAME__:"PushNotification"},badgeCount:r.d({type:Number,serialization:{propertyName:"badge"}}),ckInfo:r.d({type:s,serialization:{propertyName:"ck"}}),notification:r.d({type:o,serialization:{propertyName:"aps"}}),sound:r.d({type:String}),topic:r.d({type:String,serialization:{propertyName:"apsTopic"}}),clientId:r.d({type:String,serialization:{propertyName:"sessionID"}}),applicationIdentifier:r.d({type:String,serialization:{ignore:!0}}),payload:r.d({type:Object,serialization:{ignore:!0}}),serialize:function(){return this.payload}})},function(e,t,n){"use strict";var i=function(e){function t(n,i){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var r=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,"Invalid state transition.  Expected state: "+n+", actual: "+i));return r.name="InvalidStateTransitionError",r}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error),r=n(1056),a=n(828),o=n(96),s=n(95);function c(e,t){var n=!1;return a.a(e,o.a)&&a.a(t,s.a)&&(n=e.group===t),n}function l(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];if(!e||!t||!Array.isArray(i))return!1;for(var a=[t].concat(i),o=0;o<a.length;o++)if(!c(a[o],e))return!1;return!!i.find(function(e){return e===t})}function u(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];if(!l.apply(void 0,[e,t].concat(a))){var s=new i(a,t),c=Object(r.c)(s,2,7);throw s.message=s.message+" => "+c.join(","),s}}n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(222),o=n(86),s=n(81),c=n(863),l=n(1106),u=n(23),d=n(326),h=n(877),p=n(898),f=n(104),m=n(80),g=(n(193),n(312)),b=(n(0),n(5),n(126),h.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"appleIconView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"appleLogoIsVisible",truevalue:"",falsevalue:"hide-apple-logo",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"cancelButton"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"cancelButtonIsVisible",truevalue:"",falsevalue:"hide-cancel-button",attributes:{}}]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"headerViewIsVisible",truevalue:"header-view",falsevalue:"hide-header-view",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"containerView"}],classes:["container-view"]},{type:"VIEWOUTLET",tagname:"view",name:"footerView"}]},__QUALIFIED_CLASS_NAME__:"LoginView"},headerViewIsVisible:r.b({type:Boolean,defaultValue:!0}),appleLogoIsVisible:r.b({type:Boolean,defaultValue:!0}),appleIconView:r.b({type:g.a,defaultValue:o.c(g.a)}),cancelButtonIsVisible:r.b({type:Boolean,defaultValue:!0}),cancelButton:r.b({type:p.a,defaultValue:o.c(p.a.extend({additionalClassNames:f.b(["cancel-button"]),action:"cancelUserAuthenticate",title:m.d("CloudOS.Button.Cancel.Title")}))})})),v=n(429);n(1),n(0),n(5),n(2),n(22),n(4),n(3),n(140),n(193),n(126),n(139),n.d(t,"a",function(){return _});var _=i.a.extend({mixinDependencies:[l.a],viewClass:b,view:r.b({type:b,downstreamBindings:{appleLogoIsVisible:"(owner).appleLogoIsVisible",cancelButtonIsVisible:"(owner).cancelButtonIsVisible",headerViewIsVisible:"(owner).headerViewIsVisible"}}),legalFooterViewController:a.b({type:v.a,defaultValue:o.c(v.a),viewOutlet:"footerView",downstreamBindings:{footerViewIsVisible:"(owner).footerViewIsVisible",isManagedAppleID:"(owner).isManagedAppleID",shouldShowCreateLink:"(owner).shouldShowCreateLink"}}),authenticationController:s.d({type:u.a}),appleIdUrl:s.d({type:String}),trustTokens:s.d({type:Array}),appleLogoIsVisible:r.b(!0),cancelButtonIsVisible:r.b(!0),footerViewIsVisible:r.b(!0),headerViewIsVisible:r.b(!0),isManagedAppleID:r.b(!1),shouldShowCreateLink:r.b(!1),pauseBetweenSteps:s.d({type:Boolean,get:function(){return this._cloudOSAppleIdViewController.pauseBetweenSteps},set:function(e){this._cloudOSAppleIdViewController.pauseBetweenSteps=e}}),continueAuthentication:function(){this._cloudOSAppleIdViewController.continueAuthentication()},init:function(e,t,n,i,r,a,o,s){if(this.__s._$1G0$init.call(this),!e)throw new Error("[LoginViewController] No authentication controller specified");if(!t)throw new Error("[LoginViewController] No authentication UI URL specified");this.authenticationController=e,this.appleIdUrl=t,this._cloudOSAppleIdViewController=d.a.create(e,t,n,i,r,a,o,s),this._cloudOSAppleIdViewController.delegate=this},cancelUserAuthenticate:function(){this.authenticationController.cancelUserAuthenticate()},appleIdWillStart:function(e){c.b.debug("[LoginViewController] appleIdWillStart")},appleIdStepDidComplete:function(e,t,n,i,r,a,o){c.b.debug("[LoginViewController] ["+t+"] ["+n.value+"] appleIdStepDidComplete: step "+a+" of "+o)},appleIdModeWillChange:function(e,t){c.b.debug("[LoginViewController] appleIdModeWillChange: will change to mode ["+t.value+"]")},appleIdModeDidChange:function(e,t){c.b.debug("[LoginViewController] appleIdModeDidChange: has changed to mode ["+t.value+"]")},appleIdRepairDidStart:function(e){c.b.debug("[LoginViewController] appleIdRepairDidStart")},appleIdDidFinish:function(e,t,n,i,r,a,o){c.b.debug("[LoginViewController] ["+t+"] ["+(n?n.value:"")+"] ["+r+"] appleIdDidFinish: session ["+i+"]")},appleIdDidCancel:function(e){c.b.debug("[LoginViewController] appleIdDidCancel")},appleIdDidFail:function(e,t,n,i,r){c.b.debug("[LoginViewController] ["+t+"] ["+n+"] ["+i+"] appleIdDidFail: "+r)},appleIdError:function(e,t,n){c.b.debug("[LoginViewController] appleIdError")},_cloudOSAppleIdViewController:a.b({strong:!0,type:d.a,viewOutlet:"containerView",downstreamBindings:{spinnerColor:"(owner)._spinnerColor"}}),_spinnerColor:r.b("#000000"),__superMap:{_$1G0$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LoginViewController"}})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(837),o=n(81),s=n(222),c=n(863),l=n(80),u=n(1106),d=n(1107),h=n(11),p=n(877),f=n(930),m=n(86),g=(n(140),n(0),p.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"   "},{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"       "},{type:"VIEWOUTLET",tagname:"view",name:"appleIdView"},{type:"TEXT",data:"   "}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isSpinnerViewVisible",truevalue:"view-hidden",falsevalue:"view-visible",attributes:{}}]},{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"}]},__QUALIFIED_CLASS_NAME__:"CloudOSAppleIdView"},isSpinnerViewVisible:r.b({type:Boolean}),spinnerColor:r.b({type:String,didChange:function(e){e&&(this.spinnerView.color=e)}}),spinnerView:r.b({strong:!0,readOnly:!0,type:f.a,defaultValue:m.c(f.a),downstreamBindings:{isVisible:"(owner).isSpinnerViewVisible"}})})),b=n(23),v=n(237),_=n(599);n(1),n(0),n(2),n(22),n(4),n(3),n(140),n.d(t,"a",function(){return y});var y=i.a.extend({mixinDependencies:[u.a],viewClass:g,view:r.b({type:g,downstreamBindings:{isSpinnerViewVisible:"(owner).isSpinnerViewVisible",spinnerColor:"(owner).spinnerColor"}}),init:function(e,t,n,i,r,o,s,c){this.__s._$bY$init.call(this),this.authenticationController=e;var u=d.d.create(t,void 0);!function(e,t){e.locale=Object(v.b)(h.a.locale),e.signInLabel=l.d("CloudOS.Authentication.SignIn.AppleIdView.Title"),e.trustTokens=t,e.appleIdRememberMeCheckBoxTitle=d.a.KEEP_ME_SIGNED_IN,e.uiTheme=d.c.DARK,e.defaultAccountNameAutoFillDomain="icloud.com",e.isiForgotLinkVisible=!0,e.isCreateLinkVisible=!1,e.isRememberMeLinkVisible=!0,e.logoImageSource=_.a,e.logoImageWidth=100}(u,n),this._appleIdViewController=u,this._appleIdViewController.delegate=this,c?this.appName=c:i&&(this.logoImageSource=i),r&&(this.accountName=r,this.isRememberMeLinkVisible=!1,this.forceCRAuth=!0,this.skipTrustBrowserStep=!0),a.a(o)&&(this._retrieveSessionAtStep=o),s&&(this.signInLabel=s)},authenticationController:o.d({type:b.a}),uiTheme:o.d({type:d.c,get:function(){return this._appleIdViewController.uiTheme},set:function(e){this._appleIdViewController.uiTheme=e}}),pauseBetweenSteps:o.d({type:Boolean,get:function(){return this._appleIdViewController.pauseBetweenSteps},set:function(e){this._appleIdViewController.pauseBetweenSteps=e}}),continueAuthentication:function(){this.isSpinnerViewVisible=!1,this._appleIdViewController.continueAuthentication()},_appleIdViewController:s.b({type:d.d,viewOutlet:"appleIdView",downstreamBindings:{frameClassName:"(owner).frameClassName"}}),frameClassName:r.b({type:String,defaultValue:"apple-id-frame-view"}),isSpinnerViewVisible:r.b({type:Boolean,dependencies:["isSpinnerViewVisibleOverride"],writeDependencies:[],get:Object.assign(function(e){return this.isSpinnerViewVisibleOverride||e},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])||e}})}),isSpinnerViewVisibleOverride:r.b({type:Boolean}),spinnerColor:r.b({type:String}),delegate:o.d({type:u.a}),displayTitle:r.b({type:String}),accountName:o.d({type:String,get:function(){return this._appleIdViewController.accountName},set:function(e){this._appleIdViewController.accountName=e}}),isRememberMeLinkVisible:o.d({type:Boolean,get:function(){return this._appleIdViewController.isRememberMeLinkVisible},set:function(e){this._appleIdViewController.isRememberMeLinkVisible=e}}),forceCRAuth:o.d({type:Boolean,get:function(){return this._appleIdViewController.forceCRAuth},set:function(e){this._appleIdViewController.forceCRAuth=e}}),skipTrustBrowserStep:o.d({type:Boolean,get:function(){return this._appleIdViewController.skipTrustBrowserStep},set:function(e){this._appleIdViewController.skipTrustBrowserStep=e}}),signInLabel:o.d({type:String,get:function(){return this._appleIdViewController.signInLabel},set:function(e){this._appleIdViewController.signInLabel=e}}),appName:o.d({type:String,get:function(){return this._appleIdViewController.appName},set:function(e){this._appleIdViewController.appName=e}}),logoImageSource:o.d({type:String,get:function(){return this._appleIdViewController.logoImageSource},set:function(e){this._appleIdViewController.logoImageSource=e}}),appleIdWillStart:function(e){c.b.debug("[CloudOSAppleIdViewController] appleIdWillStart"),Object(h.d)(),this.isSpinnerViewVisible=!1,this.delegate.appleIdWillStart(e)},appleIdStepDidComplete:function(e,t,n,i,r,a,o){if(c.b.debug("[CloudOSAppleIdViewController] ["+t+"] ["+n.value+"] appleIdStepDidComplete: step "+a+" of "+o),this.isSpinnerViewVisible=!0,this.delegate.appleIdStepDidComplete(e,t,n,i,r,a,o),!this._retrieveSessionAtStep)return this.authenticationController.processAuthenticationStep(t,n,i,r,a,o);this._retrieveSessionAtStep===a&&a<o?this.authenticationController.processSessionRetrieveFinish(t,n,i,r):this.authenticationController.continueAuthentication()},appleIdModeWillChange:function(e,t){c.b.debug("[CloudOSAppleIdViewController] appleIdModeWillChange: will change to mode ["+t.value+"]"),this.delegate.appleIdModeWillChange(e,t)},appleIdModeDidChange:function(e,t){c.b.debug("[CloudOSAppleIdViewController] appleIdModeDidChange: has changed to mode ["+t.value+"]"),this.delegate.appleIdModeDidChange(e,t)},appleIdRepairDidStart:function(e){c.b.debug("[CloudOSAppleIdViewController] appleIdRepairDidStart"),this.isSpinnerViewVisible=!1,this.frameClassName="repair-id-frame-view",this.delegate.appleIdRepairDidStart(e),this.authenticationController.processRepairDidStart()},appleIdDidFinish:function(e,t,n,i,r,a,o){c.b.debug("[CloudOSAppleIdViewController] ["+t+"] ["+(n?n.value:"")+"] ["+r+"] appleIdDidFinish: session ["+i+"]"),this.isSpinnerViewVisible=!0,this.delegate.appleIdDidFinish(e,t,n,i,r,a,o),this._retrieveSessionAtStep?this.authenticationController.processSessionRetrieveFinish(t,n,i,r):this.authenticationController.processAuthenticationFinish(t,n,i,r,a,o)},appleIdDidCancel:function(e){c.b.debug("[CloudOSAppleIdViewController] appleIdDidCancel"),this.delegate.appleIdDidCancel(e),this.authenticationController.cancelUserAuthenticate()},appleIdDidFail:function(e,t,n,i,r){c.b.debug("[CloudOSAppleIdViewController] ["+t+"] ["+n+"] ["+i+"] appleIdDidFail: "+r),this.delegate.appleIdDidFail(e)},appleIdError:function(e,t,n){c.b.debug("[CloudOSAppleIdViewController] appleIdError"),this.delegate.appleIdError(e),this.authenticationController.processAuthenticationError(t,n)},__superMap:{_$bY$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSAppleIdViewController"}})},function(e,t,n){var i=n(37),r=n(32).document,a=i(r)&&i(r.createElement);e.exports=function(e){return a?r.createElement(e):{}}},function(e,t,n){var i=n(32),r=n(114),a=n(149),o=n(433),s=n(55).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=a?{}:i.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:o.f(e)})}},function(e,t,n){var i=n(211)("keys"),r=n(163);e.exports=function(e){return i[e]||(i[e]=r(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var i=n(32).document;e.exports=i&&i.documentElement},function(e,t,n){var i=n(37),r=n(30),a=function(e,t){if(r(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,i){try{(i=n(115)(Function.call,n(76).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return a(e,n),t?e.__proto__=n:i(e,n),e}}({},!1):void 0),check:a}},function(e,t){e.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},function(e,t,n){var i=n(37),r=n(332).set;e.exports=function(e,t,n){var a,o=t.constructor;return o!==n&&"function"==typeof o&&(a=o.prototype)!==n.prototype&&i(a)&&r&&r(e,a),e}},function(e,t,n){"use strict";var i=n(117),r=n(122);e.exports=function(e){var t=String(r(this)),n="",a=i(e);if(a<0||a==1/0)throw RangeError("Count can't be negative");for(;a>0;(a>>>=1)&&(t+=t))1&a&&(n+=t);return n}},function(e,t){e.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1}},function(e,t){var n=Math.expm1;e.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){"use strict";var i=n(149),r=n(9),a=n(69),o=n(68),s=n(190),c=n(339),l=n(187),u=n(77),d=n(45)("iterator"),h=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,f,m,g,b){c(n,t,f);var v,_,y,C=function(e){if(!h&&e in A)return A[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},I=t+" Iterator",w="values"==m,S=!1,A=e.prototype,O=A[d]||A["@@iterator"]||m&&A[m],E=O||C(m),T=m?w?C("entries"):E:void 0,D="Array"==t&&A.entries||O;if(D&&(y=u(D.call(new e)))!==Object.prototype&&y.next&&(l(y,I,!0),i||"function"==typeof y[d]||o(y,d,p)),w&&O&&"values"!==O.name&&(S=!0,E=function(){return O.call(this)}),i&&!b||!h&&!S&&A[d]||o(A,d,E),s[t]=E,s[I]=p,m)if(v={values:w?E:C("values"),keys:g?E:C("keys"),entries:T},b)for(_ in v)_ in A||a(A,_,v[_]);else r(r.P+r.F*(h||S),t,v);return v}},function(e,t,n){"use strict";var i=n(166),r=n(162),a=n(187),o={};n(68)(o,n(45)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=i(o,{next:r(1,n)}),a(e,t+" Iterator")}},function(e,t,n){var i=n(253),r=n(122);e.exports=function(e,t,n){if(i(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(e))}},function(e,t,n){var i=n(45)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[i]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){var i=n(190),r=n(45)("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(i.Array===e||a[r]===e)}},function(e,t,n){"use strict";var i=n(55),r=n(162);e.exports=function(e,t,n){t in e?i.f(e,t,r(0,n)):e[t]=n}},function(e,t,n){var i=n(188),r=n(45)("iterator"),a=n(190);e.exports=n(114).getIteratorMethod=function(e){if(void 0!=e)return e[r]||e["@@iterator"]||a[i(e)]}},function(e,t,n){var i=n(705);e.exports=function(e,t){return new(i(e))(t)}},function(e,t,n){"use strict";var i=n(57),r=n(165),a=n(50);e.exports=function(e){for(var t=i(this),n=a(t.length),o=arguments.length,s=r(o>1?arguments[1]:void 0,n),c=o>2?arguments[2]:void 0,l=void 0===c?n:r(c,n);l>s;)t[s++]=e;return t}},function(e,t,n){"use strict";var i=n(151),r=n(450),a=n(190),o=n(75);e.exports=n(338)(Array,"Array",function(e,t){this._t=o(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),a.Arguments=a.Array,i("keys"),i("values"),i("entries")},function(e,t,n){"use strict";var i,r,a=n(214),o=RegExp.prototype.exec,s=String.prototype.replace,c=o,l=(i=/a/,r=/b*/g,o.call(i,"a"),o.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(e){var t,n,i,r,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",a.call(c))),l&&(t=c.lastIndex),i=o.call(c,e),l&&i&&(c.lastIndex=c.global?i.index+i[0].length:t),u&&i&&i.length>1&&s.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i}),e.exports=c},function(e,t,n){"use strict";var i=n(252)(!0);e.exports=function(e,t,n){return t+(n?i(e,t).length:1)}},function(e,t,n){var i,r,a,o=n(115),s=n(440),c=n(331),l=n(327),u=n(32),d=u.process,h=u.setImmediate,p=u.clearImmediate,f=u.MessageChannel,m=u.Dispatch,g=0,b={},v=function(){var e=+this;if(b.hasOwnProperty(e)){var t=b[e];delete b[e],t()}},_=function(e){v.call(e.data)};h&&p||(h=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return b[++g]=function(){s("function"==typeof e?e:Function(e),t)},i(g),g},p=function(e){delete b[e]},"process"==n(116)(d)?i=function(e){d.nextTick(o(v,e,1))}:m&&m.now?i=function(e){m.now(o(v,e,1))}:f?(a=(r=new f).port2,r.port1.onmessage=_,i=o(a.postMessage,a,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(e){u.postMessage(e+"","*")},u.addEventListener("message",_,!1)):i="onreadystatechange"in l("script")?function(e){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),v.call(e)}}:function(e){setTimeout(o(v,e,1),0)}),e.exports={set:h,clear:p}},function(e,t,n){var i=n(32),r=n(350).set,a=i.MutationObserver||i.WebKitMutationObserver,o=i.process,s=i.Promise,c="process"==n(116)(o);e.exports=function(){var e,t,n,l=function(){var i,r;for(c&&(i=o.domain)&&i.exit();e;){r=e.fn,e=e.next;try{r()}catch(i){throw e?n():t=void 0,i}}t=void 0,i&&i.enter()};if(c)n=function(){o.nextTick(l)};else if(!a||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){r.call(i,l)};else{var d=!0,h=document.createTextNode("");new a(l).observe(h,{characterData:!0}),n=function(){h.data=d=!d}}return function(i){var r={fn:i,next:void 0};t&&(t.next=r),e||(e=r,n()),t=r}}},function(e,t,n){"use strict";var i=n(63);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,i){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=i}),this.resolve=i(t),this.reject=i(n)}(e)}},function(e,t,n){"use strict";var i=n(32),r=n(54),a=n(149),o=n(259),s=n(68),c=n(171),l=n(34),u=n(169),d=n(117),h=n(50),p=n(460),f=n(167).f,m=n(55).f,g=n(346),b=n(187),v="prototype",_="Wrong index!",y=i.ArrayBuffer,C=i.DataView,I=i.Math,w=i.RangeError,S=i.Infinity,A=y,O=I.abs,E=I.pow,T=I.floor,D=I.log,L=I.LN2,N=r?"_b":"buffer",M=r?"_l":"byteLength",P=r?"_o":"byteOffset";function x(e,t,n){var i,r,a,o=new Array(n),s=8*n-t-1,c=(1<<s)-1,l=c>>1,u=23===t?E(2,-24)-E(2,-77):0,d=0,h=e<0||0===e&&1/e<0?1:0;for((e=O(e))!=e||e===S?(r=e!=e?1:0,i=c):(i=T(D(e)/L),e*(a=E(2,-i))<1&&(i--,a*=2),(e+=i+l>=1?u/a:u*E(2,1-l))*a>=2&&(i++,a/=2),i+l>=c?(r=0,i=c):i+l>=1?(r=(e*a-1)*E(2,t),i+=l):(r=e*E(2,l-1)*E(2,t),i=0));t>=8;o[d++]=255&r,r/=256,t-=8);for(i=i<<t|r,s+=t;s>0;o[d++]=255&i,i/=256,s-=8);return o[--d]|=128*h,o}function R(e,t,n){var i,r=8*n-t-1,a=(1<<r)-1,o=a>>1,s=r-7,c=n-1,l=e[c--],u=127&l;for(l>>=7;s>0;u=256*u+e[c],c--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=t;s>0;i=256*i+e[c],c--,s-=8);if(0===u)u=1-o;else{if(u===a)return i?NaN:l?-S:S;i+=E(2,t),u-=o}return(l?-1:1)*i*E(2,u-t)}function j(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function F(e){return[255&e]}function V(e){return[255&e,e>>8&255]}function U(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function k(e){return x(e,52,8)}function B(e){return x(e,23,4)}function z(e,t,n){m(e[v],t,{get:function(){return this[n]}})}function W(e,t,n,i){var r=p(+n);if(r+t>e[M])throw w(_);var a=e[N]._b,o=r+e[P],s=a.slice(o,o+t);return i?s:s.reverse()}function H(e,t,n,i,r,a){var o=p(+n);if(o+t>e[M])throw w(_);for(var s=e[N]._b,c=o+e[P],l=i(+r),u=0;u<t;u++)s[c+u]=l[a?u:t-u-1]}if(o.ABV){if(!l(function(){y(1)})||!l(function(){new y(-1)})||l(function(){return new y,new y(1.5),new y(NaN),"ArrayBuffer"!=y.name})){for(var $,G=(y=function(e){return u(this,y),new A(p(e))})[v]=A[v],K=f(A),Q=0;K.length>Q;)($=K[Q++])in y||s(y,$,A[$]);a||(G.constructor=y)}var q=new C(new y(2)),Y=C[v].setInt8;q.setInt8(0,2147483648),q.setInt8(1,2147483649),!q.getInt8(0)&&q.getInt8(1)||c(C[v],{setInt8:function(e,t){Y.call(this,e,t<<24>>24)},setUint8:function(e,t){Y.call(this,e,t<<24>>24)}},!0)}else y=function(e){u(this,y,"ArrayBuffer");var t=p(e);this._b=g.call(new Array(t),0),this[M]=t},C=function(e,t,n){u(this,C,"DataView"),u(e,y,"DataView");var i=e[M],r=d(t);if(r<0||r>i)throw w("Wrong offset!");if(r+(n=void 0===n?i-r:h(n))>i)throw w("Wrong length!");this[N]=e,this[P]=r,this[M]=n},r&&(z(y,"byteLength","_l"),z(C,"buffer","_b"),z(C,"byteLength","_l"),z(C,"byteOffset","_o")),c(C[v],{getInt8:function(e){return W(this,1,e)[0]<<24>>24},getUint8:function(e){return W(this,1,e)[0]},getInt16:function(e){var t=W(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=W(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return j(W(this,4,e,arguments[1]))},getUint32:function(e){return j(W(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return R(W(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return R(W(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){H(this,1,e,F,t)},setUint8:function(e,t){H(this,1,e,F,t)},setInt16:function(e,t){H(this,2,e,V,t,arguments[2])},setUint16:function(e,t){H(this,2,e,V,t,arguments[2])},setInt32:function(e,t){H(this,4,e,U,t,arguments[2])},setUint32:function(e,t){H(this,4,e,U,t,arguments[2])},setFloat32:function(e,t){H(this,4,e,B,t,arguments[2])},setFloat64:function(e,t){H(this,8,e,k,t,arguments[2])}});b(y,"ArrayBuffer"),b(C,"DataView"),s(C[v],o.VIEW,!0),t.ArrayBuffer=y,t.DataView=C},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var i=n(78),r=n(144),a=n(108),o=n(64),s=n(819),c=Symbol(),l={mixinDependencies:[i.b,a.a],staticMembers:{handler:r.a.create({nodeType:"DATAOUTLET",register:function(e,t){var n,i=Object(o.a)(t),r=t.attributes.escape;n="false"===r?function(e,t){t=i(t),e.innerHTML=null==t?"":t}:"dangerous"===r?function(e,t){var n=i(t);if(null!==n&&void 0!==n&&!0!==n[c])throw new s.a("All values passed to unescaped templates must be wrapped in hashes and flagged",{hash:n,rawValue:t,span:e});n&&null!=n.value?e.innerHTML=n.value:e.innerHTML=""}:function(e,t){t=i(t),e.data=null==t?"":t},Object(o.c)(e,t,n)},render:function(e,t,n){var i=n.attributes.escape;return"false"===i||"dangerous"===i?t.createElement("span"):t.createTextNode("​")}})}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],isExceptionHandlingEnabled:!1,isExceptionHandlingFatal:!0,exceptionHandler:r.a.define(),exceptionWasHandled:!1},o={mixinDependencies:[i.a],staticMembers:Object.assign({},a)};delete o.staticMembers.mixinDependencies},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"a",function(){return u});var i=n(895),r=n(103),a={touchstart:function(e){o(this,"pointerDown",e)},touchmove:function(e){o(this,"pointerMove",e)},touchend:function(e){o(this,"pointerUp",e),l(e.changedTouches)},touchcancel:function(e){o(this,"pointerCancel",e),l(e.changedTouches)}};function o(e,t,n){for(var i=n.changedTouches,r=i.length,a=0;a<r;a++)c(e,n,t,i[a])}var s={};function c(e,t,n,a,o){var l=a.identifier,u=e.getPointerCapture(l);u?o=u.element:o||function(e,t,n,i){var r=n.identifier,a=s[r];a!==i&&(a&&c(e,t,"pointerOut",n,a),i&&(a&&c(e,t,"pointerOver",n,i),s[r]=i))}(e,t,a,o=function(e){var t=e.clientX,n=e.clientY;return document.elementFromPoint(t,n)}(a));var d=r.a.create({cwType:n,pointerId:a.identifier,nativeEvent:t,pointerType:r.b.TOUCH,target:o});Object(i.a)(a,d,"screenX","screenY","clientX","clientY"),e.dispatchEvent(d)}function l(e){for(var t=e.length,n=0;n<t;n++){var i=e[n];delete s[i.identifier]}}function u(){for(var e in s)delete s[e]}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=n(818).a.extend({init:function(e){this.__s._$5l$init.call(this,e);var t=document.createElement("a");this.isDownloadAttributeSupported=void 0!==t.download},isDownloadAttributeSupported:null,__superMap:{_$5l$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LinkCapabilities"}}),r=i.create()},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(365),r=function(e,t){for(var n=0,r=t,a=void 0,o=void 0;r&&-1!==(o=e.indexOf(".",n));)a=e.substring(n,o),r=Object(i.a)(r,a),n=o+1;return r}},function(e,t,n){"use strict";function i(e,t){if(e)return e[t]}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e.substring(e.lastIndexOf(".")+1)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],message:"",validate:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(94),r=n(830),a=n(85),o={mixinDependencies:[i.a],get:Object(a.c)(r.a),set:Object(a.c)(r.a)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(819),r=n(84),a=n(824),o=r.a.extend(a.a,{staticMembers:{begin:function(e){var t=this.create();return t.retain(t,s),t._isReady=!0,t._rootObject=e,t._batchSetter=this._beginBatchSetter(),t},_beginBatchSetter:function(){return r.c.begin()},__QUALIFIED_CLASS_NAME__:"BatchSetterForNonObservableObject"},begin:function(){Object(i.b)("BatchSetterForObject Begin must be called on the class, reusing BatchSetterForObject objects is not allowed.")},_rootObject:null,set:function(e,t){return this._batchSetter.set(this._rootObject,e,t),this},setIfChanged:function(e,t){return this._batchSetter.setIfChanged(this._rootObject,e,t),this},end:function(){this._batchSetter.end(),this._batchSetter=null,this._rootObject=null,this.release(this,s)}}),s="BatchSetterForObject: self-reference for the duration"},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(819),r=n(844),a=n(97).b.extend({debugType:"ReadOnly",flushNode:function(e,t){var n=r.a.getStateDataForNode(t),a=r.a.getStateIDForNode(t);Object(i.b)("Cannot write to read-only property: "+this.key,{object:e,value:n,parentID:a})},staticMembers:{__QUALIFIED_CLASS_NAME__:"UpstreamReadOnlyNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(79),r=n(845).a.extend({debugType:"Weak",validateDescendantDownstreamNodeManager:function(e,t,n){e.reference===i.a&&this._throwValidationError(e,t,"Illegal binding (reference strength) from `%{key}` (to `%{parentKey}`): You cannot bind a weak and a strong property together.")},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownstreamWeakNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(850),r=[];r.toJSON=function(){if(this.length<=1)return this[0];for(var e=[],t=0,n=this.length;t<n;t++)e.push("*** Context "+(t+1)+": ***\n"+Object(i.a)(this[t]));return e.join("\n")}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(94),r=n(856),a=n(85),o={mixinDependencies:[i.a],createIterator:function(){return this.iteratorClass.create(this)},iteratorClass:Object(a.c)(r.a),serializer:null,encode:function(e,t){var n=this.serializer;return n&&n.encode&&(e=n.encode(e,t)),e},decode:function(e,t){var n=this.serializer;return n&&n.decode&&(e=n.decode(e,t)),e}};o[Symbol.iterator]=function(){return this.createIterator()}},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i,r=n(869),a=n(819),o=n(861),s=n(832),c=n(862),l=n(821),u=n(78),d=n(81),h=n(501),p=n(99),f=n(503),m=h.a.extend(u.b,{staticMembers:{_TransportClass:Object(d.d)({get:function(e){return e||XMLHttpRequest||g}}),supportsCORS:Object(d.d)({readOnly:!0,get:function(e){if("boolean"==typeof e)return e;try{e=!!("withCredentials"in new this._TransportClass)}catch(t){e=!1}return this._supportsCORS=e}}),__QUALIFIED_CLASS_NAME__:"XHR"},mimeType:null,prepare:function(e,t){var n=e.__transport,i=e.get("url").get("href"),a=!e._synchronous;n.open(e.get("method"),i,a),n.withCredentials=e.get("useCredentialsIfCrossOrigin"),n.addEventListener("readystatechange",b);var o=this.get("mimeType");return n.overrideMimeType&&o&&n.overrideMimeType(o),n.upload&&e.uploadProgress&&!t&&Object(r.a)(n.upload,"progress",v.bind(this,e,"uploadProgress")),e.progress&&!t&&Object(r.a)(n,"progress",v.bind(this,e,"progress")),function(e,t){if(!t||!Object(s.a)(t))return e;var n,i,r,a=Object.keys(t);for(i=0,r=a.length;i<r;i++)n=a[i],e.setRequestHeader(n,t[n])}(n,e.get("headers")),this.configureTimeout(e),n},abort:function(e){var t,n=arguments;e&&(t=e.__transport)||Object(a.b)("Attempted to abort an XHR request that was never sent",e),t.removeEventListener&&t.removeEventListener("readystatechange",b),this.__s._$1TR$abort.apply(this,n)},handleResponse:function(e,t){var n=arguments;this.clearTimeout(e),this.__s._$1WD$handleResponse.apply(this,n)},configureTimeout:function(e){var t=e.get("timeout");t&&(e._timer=Object(o.a)(this.handleTimeout.bind(this,e),t))},clearTimeout:function(e){function t(t){return e.apply(this,arguments)}return t.toString=function(){return e.toString()},t}(function(e){e&&e._timer&&(clearTimeout(e._timer),delete e._timer)}),computeStatuses:function(e){var t=e.status,n=Math.floor(t/100),r=Math.floor(t%100/10),a=t%10;return i||(i={}),i[t]?i[t]:i[t]=0===t?[t,p.b.FAILED,p.b.COMPLETED]:[t,n+"**",""+n+r+"*","*"+r+"*","*"+r+a,"**"+a,2===n?p.b.SUCCEEDED:p.b.FAILED,p.b.COMPLETED]},createResponse:function(e){return f.a.create(e?{status:e.status,encodedBody:e.responseText,headers:e.getAllResponseHeaders()}:null)},finalize:function(e){var t,n=arguments;e&&(t=e.__transport)||Object(a.b)("Error while finalizing an XHR request - no internal transport",e),t.removeEventListener&&t.removeEventListener("readystatechange",b),this.clearTimeout(e),this.__s._$2JJ$finalize.apply(this,n)},__superMap:{_$1TR$abort:"abort",_$1WD$handleResponse:"handleResponse",_$2JJ$finalize:"finalize"}});function g(){Object(a.b)("Your browser does not support sending requests")}var b=Object(c.a)(function(){var e=this._request,t=e.get("transport");4===this.readyState&&t.handleResponse(e,this)});function v(e,t,n){var i=e[t];if(i){var r=!i.__lastWriteTime;i.__lastWriteTime=i.__lastWriteTime||Date.now();var a=i.__lastWriteTime,o=Date.now()-a;r||o>80?(i.setMultipleValues({bytesTransferred:n.loaded,bytesTotal:n.total,isDeterminate:n.lengthComputable}),i.__lastWriteTime=Date.now()):r?Object(l.a)(1):Object(l.a)(2)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(864),r=n(81),a={serializer:Object(r.d)(function(){return i.a.get("sharedInstance")}),serializedProperties:null,serialize:function(){var e=this.get("serializedProperties"),t=this.get("serializer"),n={};if(e)for(var i=0,r=e.length;i<r;i++){var a=e[i];n[a]=this.get(a)}return t.encode(n)},deserialize:function(e){return e?this.get("serializer").decode(e):null}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819);function r(e,t){if(("number"!=typeof e||void 0!==t&&"number"!=typeof t)&&Object(i.b)("Must only provide numbers as params."),0===e)return"0 bytes";var n=void 0===t?2:t,r=Math.floor(Math.log(e)/Math.log(1024));return(e/Math.pow(1024,r)).toFixed(n)+" "+["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"][r]}},function(e,t,n){"use strict";function i(e,t,n){null===n||void 0===n?delete e[t]:e[t]=n}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(94),r=n(81),a=n(830),o=n(819),s=n(379),c={mixinDependencies:[i.a],nextResponder:Object(r.d)(),sendEvent:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return s.a.apply(void 0,[this,e].concat(n))},handleEvent:a.a.define(),canPerformAction:function(e,t){var n=this[e];return Boolean(n)},getPointerCapture:function(e){return"number"!=typeof e&&Object(o.b)("Pointer capture only possible on pointerIds which are numbers",{pointerId:e,responder:this}),l[e]},setPointerCapture:function(e){"number"!=typeof e&&Object(o.b)("Pointer capture only possible on pointerIds which are numbers",{pointerId:e,responder:this}),l[e]=this},releasePointerCapture:function(e){"number"!=typeof e&&Object(o.b)("Pointer capture only possible on pointerIds which are numbers",{pointerId:e,responder:this}),l[e]===this&&delete l[e]}},l={}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(819),r=n(201);function a(e,t){for(var n=arguments.length,a=Array(n>2?n-2:0),o=2;o<n;o++)a[o-2]=arguments[o];t||Object(i.b)("CW.Responder.sendEvent: Must receive an event.",{targetResponder:e,context:a});for(var s=e,c=!1,l=!1;s&&!s.isDisposed;){if(s.handleEvent&&!l){var u,d=(u=s).handleEvent.apply(u,[t].concat(a));if(d||void 0===d){c=!0;break}}var h=s.handleGestureRecognition;h&&h.call.apply(h,[s,t].concat(a))&&(l=!0),s=s.nextResponder}return l?(r.a.handleEvent.apply(r.a,[t].concat(a)),!0):c}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(104),r=n(874).a.extend({staticMembers:{nativePropertiesToCopy:Object(i.b)(["screenX","screenY","clientX","clientY","offsetY","offsetX","button","buttons","detail","target"]),eventPropertiesToCopy:Object(i.b)(["screenX","screenY","clientX","clientY","offsetY","offsetX","button","buttons","detail","target"]),__QUALIFIED_CLASS_NAME__:"CoreMouseEvent"},init:function(e){if(this.__s._$H4$init.call(this,e),e){var t=e.nativeEvent;if(t&&!this.target){var n=t.srcElement;n&&(this.target=n)}}},screenX:0,screenY:0,clientX:0,clientY:0,offsetX:0,offsetY:0,button:0,buttons:0,detail:0,target:null,targetView:null,__superMap:{_$H4$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(106),r=n(869),a=i.a.extend({init:function(){var e=this,t=arguments;this.width=window.innerWidth,this.height=window.innerHeight,this.__s._$8H$init.apply(this,t);var n=function(){return e.updateDimensions()};Object(r.a)(window,"resize",n),Object(r.a)(window.document,"DOMContentLoaded",n)},x:0,y:0,width:0,height:0,updateDimensions:function(){this.set("width",window.innerWidth),this.set("height",window.innerHeight)},__superMap:{_$8H$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"BrowserWindow"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(285),r=n(228),a=n(81),o=i.a.extend(r.a,{init:function(e,t){t||(t=e._map.entries()),this.__s._$A4$init.call(this,e,t)},add:function(e){var t=arguments,n=e[0],i=e[1],r=this.source;if(r.has(n))return!1;var a=this.__s._$DJ$add.apply(this,t);return r.set(n,i),a},remove:function(){if(this.isValid){var e=this.value;return this.source.delete(e[0]),this.moveToNext(),e}},value:Object(a.d)({readOnly:!1,set:function(e){var t=this.source,n=this._container.value;return t.delete(n[0]),this.add(e),e}}),__superMap:{_$A4$init:"init",_$DJ$add:"add"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MapEntryIterator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819);function r(e,t){if((r=t)&&"function"==typeof r.remove)t.remove(e);else if(Array.isArray(t)){var n=t.indexOf(e);n>=0&&t.splice(n,1)}else Object(i.b)("removeItemFromArray: argument array must be an Array or implement a remove method");var r}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(830),r=n(856),a=n(81),o={mixinDependencies:[n(887).a],at:function(e){return this._provider.at(e)},hasHandleAt:i.a.define(),position:r.a.define(),maximumPosition:r.a.define(),atDistance:function(e){return this.at(this.position+e)},hasHandleAtDistance:function(e){return this.hasHandleAt(this.position+e)},previous:Object(a.d)({get:function(){return this.atDistance(-1)}}),hasPrevious:Object(a.d)({get:function(){return this.hasHandleAtDistance(-1)}}),next:Object(a.d)({get:function(){return this.atDistance(1)}}),hasNext:Object(a.d)({get:function(){return this.hasHandleAtDistance(1)}}),start:Object(a.d)({readOnly:!0,get:function(){return this._provider.startHandle}}),end:Object(a.d)({readOnly:!0,get:function(){return this._provider.endHandle}}),isValid:Object(a.d)({readOnly:!0,get:function(){var e=this.position;return e>=0&&e<=this.maximumPosition}})}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={staticMembers:{init:function(){var e=arguments,t=this.prototype;t._removalHandlers=Object.create(t._removalHandlers),this.__s._$EG$init.apply(this,e)},_registerRemovalHandler:function(e,t){this.prototype._removalHandlers[e]=t},__superMap:{_$EG$init:"init"}},_removalHandlers:{},_removeChildView:function(e,t){return this._removalHandlers[e].removeChildView(this,e,t)},dispose:function(){var e=arguments;for(var t in this._removalHandlers)this._removalHandlers[t].disposeOutlet(this,t);this.__s._$au$dispose.apply(this,e)},__superMap:{_$au$dispose:"dispose"}}},function(e,t,n){"use strict";n(1),n(0),n(2),n(8),n.d(t,"a",function(){return d});var i=n(871),r=n(222),a=n(82),o=n(821),s=n(890),c=n(85),l=n(98),u=n(535),d=i.a.extend(s.a,{_appendedContentController:Object(c.c)(r.a,"contentView"),show:function(){var e=arguments;return this._appendedContentController=this.contentController,this.__s._$16d$show.apply(this,e)},hide:function(){var e=arguments;return this._appendedContentController=null,this.__s._$19K$hide.apply(this,e)},contentController:Object(l.b)({strong:!0}),viewClass:u.a,owningViewController:Object(l.b)(),wheel:function(e){e.stopPropagation()},willAttach:function(){var e=arguments,t=this.getPath("view.element");if(t){var n=Object(a.c)(t);return this._originalVisibility=n.get("visibility"),n.set("visibility","hidden"),this.__s._$1Uc$willAttach.apply(this,e)}},didAttach:function(){var e=arguments;this.willAppear();var t=this.getPath("view.element");if(t)return Object(a.c)(t,{visibility:this._originalVisibility}),this._originalVisibility=null,this.didAppear(),this.__s._$1c5$didAttach.apply(this,e)},willAppear:o.a,didAppear:o.a,_originalVisibility:null,__superMap:{_$16d$show:"show",_$19K$hide:"hide",_$1Uc$willAttach:"willAttach",_$1c5$didAttach:"didAttach"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PopupViewController"}})},function(e,t,n){"use strict";n(1),n.d(t,"a",function(){return s});var i=n(819),r=n(110),a=n(289),o=n(532),s=r.a.extend({dependencies:[a.a,o.a],action:function(e){var t=e.get("rootViewController");t||Object(i.b)("Must provide a `rootViewController`"),t.isClass&&(t=t.create(),e.set("rootViewController",t))},staticMembers:{__QUALIFIED_CLASS_NAME__:"RootViewControllerInitializer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n(102),r=regeneratorRuntime.mark(d),a=i.b.Possible,o=i.b.Began,s=i.b.Changed,c=i.b.Ended,l=i.b.Failed,u=i.b.Cancelled;function d(e){var t;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return void(n.next=2);case 2:if((t=n.sent)===a){n.next=5;break}throw new Error("ContinuousGestureRecognizer: state must be initialized to Possible.");case 5:return void(n.next=7);case 7:if((t=n.sent)!==l){n.next=12;break}return n.abrupt("return");case 12:if(t!==o){n.next=40;break}if(e.shouldBegin()){n.next=15;break}return n.abrupt("return",l);case 15:return void(n.next=18);case 18:if((t=n.sent)!==u){n.next=23;break}return n.abrupt("return");case 23:if(t!==l){n.next=27;break}return n.abrupt("return",u);case 27:if(t!==s){n.next=31;break}return n.abrupt("continue",15);case 31:if(t!==c){n.next=35;break}return n.abrupt("return");case 35:throw new Error("GestureRecognizer: invalid state "+t+" for ContinuousGestureRecognizer after Began or Changed. Must be either Changed, Cancelled, or Ended.");case 36:n.next=15;break;case 38:n.next=41;break;case 40:throw new Error("GestureRecognizer: invalid state "+t+" for ContinuousGestureRecognizer after Possible. Must be either Began or Failed.");case 41:case"end":return n.stop()}},r,this)}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(100),r=n(838),a=n(819),o=n(293).a.extend({callRemoteProcedure:function(e){var t,n=this.channel;c(n,e);for(var r=i.a.create(),o=arguments.length,l=Array(o>1?o-1:0),u=1;u<o;u++)l[u-1]=arguments[u];var d=(t=this.messageFormatter).generateCallMessageFor.apply(t,[e].concat(l));return function(e,t,n){s[t]&&s[t][1]===n&&Object(a.b)("A handler was already registered for response for message id",{messageId:t,handler:n}),s[t]=[e,n]}(r,d.id,this),n.send(this.serializer.encode(d)),r},sendNotification:function(e){var t,n=this.channel;c(n,e);for(var i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];var o=(t=this.messageFormatter).generateNotificationMessageFor.apply(t,[e].concat(r));n.send(this.serializer.encode(o))},shouldHandleMessage:function(e){return!!e&&Object(r.a)(e.jsonrpc)&&e.jsonrpc===this.messageFormatter.jsonRpcVersion&&(Object(r.a)(e.result)||Object(r.a)(e.error))},handleMessage:function(e){var t=function(e,t){var n=s[e];if(n&&n[1]===t)return s[e]=void 0,n[0]}(e.id,this);if(t){if(Object(r.a)(e.result))return function(e,t){t.resolve(e.result)}(e,t),t;if(Object(r.a)(e.error))return function(e,t){t.reject(e.error)}(e,t),t}},staticMembers:{__QUALIFIED_CLASS_NAME__:"JsonRpcCaller"}}),s={};function c(e,t){e&&!e.isDisconnected||Object(a.b)("Attempted to call `%{methodName}` without a connected channel.",{methodName:t,sender:this})}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n(818),r=n(78),a=n(98),o=n(880),s=n(819),c=n(869),l=n(892),u=n(906),d=n(541),h=i.a.extend(r.b,u.a,{autoconnect:!0,isDisconnected:Object(a.b)({readOnly:!0,get:function(){return this._isDisconnected}}),incomingMessage:Object(r.i)(),outgoingMessage:Object(r.i)(),outgoingWindow:o.a.define(),remoteOrigin:Object(a.b)({type:"string"}),_isDisconnected:!0,_messageHandler:null,connect:function(){this.isDisconnected&&(this.outgoingWindow&&this.outgoingWindow.postMessage||Object(s.b)("The `outgoingWindow` must be configured and support `postMessage()`"),Object(c.a)(window,"message",this._messageHandler),this._isDisconnected=!1,this.propertyChanged("isDisconnected"))},disconnect:function(){this.isDisconnected||(Object(l.a)(window,"message",this._messageHandler),this._isDisconnected=!0,this.propertyChanged("isDisconnected"))},init:function(){var e=arguments;this._messageHandler=function(e){var t=e.originalEvent,n=(t||e).origin,i=this.outgoingWindow,r=e.source,a=i===r;try{a||(a=i.actualOutgoingWindow===r)}catch(e){a=!1}a&&Object(d.a)(n,this.remoteOrigin)&&this.incomingMessage((t||e).data)}.bind(this),this.__s._$1At$init.apply(this,e)},send:function(e){this.isDisconnected&&Object(s.b)("Cannot send message because the channel has not been connected.",this);var t=this.remoteOrigin;t||Object(s.b)("Cannot send message without `remoteOrigin` specified.",this),this.outgoingWindow.postMessage(e,t),this.outgoingMessage(e)},outgoingWindowDidChange:Object(r.h)("outgoingWindow",function(e){e?this.autoconnect&&this.connect():this.disconnect()}),__superMap:{_$1At$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"WindowPostMessageChannel"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(79);function r(e,t){for(var n=e+t,r=e;r<n;r++)Object(i.f)(this.objectAt(r),this,"StrongArray: item retain")}function a(e,t){for(var n=e+t,r=e;r<n;r++)Object(i.d)(this.objectAt(r),this,"StrongArray: item retain")}var o={strong:!0,init:function(){var e=arguments;this.__s._$AM$init.apply(this,e),r.call(this,0,this.length)},itemsWereInserted:function(e,t){var n=arguments;r.call(this,e,t),this.__s._$D3$itemsWereInserted.apply(this,n)},itemsWillBeRemoved:function(e,t){var n=arguments;a.call(this,e,t),this.__s._$F4$itemsWillBeRemoved.apply(this,n)},dispose:function(){a.call(this,0,this.length),this.__s._$Gj$dispose.call(this)},__superMap:{_$AM$init:"init",_$D3$itemsWereInserted:"itemsWereInserted",_$F4$itemsWillBeRemoved:"itemsWillBeRemoved",_$Gj$dispose:"dispose"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(824),a=n(81),o=n(106),s=n(819),c=i.a.extend(r.a,o.b,{initFromPool:function(e){this._owner=e,this.__s._$7n$initFromPool.call(this)},cleanup:function(){var e=arguments;this.invalidate(),this.__s._$8t$cleanup.apply(this,e)},didEnterPool:function(){this._owner=null,this.wasLaidOut=!1,this.key=null,this._properties.value.readOnly||(this.value=null),this.x=-1,this.y=-1,this.width=-1,this.height=-1,this.scrollX=0,this.scrollY=0,this.__s._$HH$didEnterPool.call(this)},key:Object(a.d)(),value:Object(a.d)(),x:Object(a.d)(-1),y:Object(a.d)(-1),width:Object(a.d)(-1),height:Object(a.d)(-1),top:Object(a.d)({readOnly:!0,get:function(){return this.y}}),bottom:Object(a.d)({readOnly:!0,get:function(){return this.y+this.height}}),left:Object(a.d)({readOnly:!0,get:function(){return this.x}}),right:Object(a.d)({readOnly:!0,get:function(){return this.x+this.width}}),origin:Object(a.d)({readOnly:!0,get:function(){Object(s.b)("CW.Cell#origin not implemented")}}),cellType:"item",toString:function(){return this.__s._$kJ$toString.call(this)+"cellType: "+this.cellType+" x: "+this.x+" y: "+this.y+" width: "+this.width+" height: "+this.height},_owner:null,wasLaidOut:!1,isLaidOut:!1,isReusable:Object(a.d)({readOnly:!0,defaultValue:!0}),moveBy:function(e,t,n){this.x+=t,this.y+=n},invalidate:function(){this.size=null,this.isLaidOut=!1},size:Object(a.d)({strong:!0}),rect:Object(a.d)({get:function(){return this}}),copyTo:function(e){e.size=this.size,e.x=this.x,e.y=this.y,e.height=this.height,e.width=this.width},__superMap:{_$7n$initFromPool:"initFromPool",_$8t$cleanup:"cleanup",_$HH$didEnterPool:"didEnterPool",_$kJ$toString:"toString"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CollectionCell"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n(78),r=n(98),a=n(94),o=n(85),s=n(830),c=n(86),l=n(882),u=n(394),d=n(937),h={staticMembers:{LayoutMetricsClass:u.a},mixinDependencies:[a.a,i.b],setUpInitialCell:Object(o.c)(s.a),setUpFirstCell:Object(o.c)(s.a),setUpLastCell:Object(o.c)(s.a),getCellForItem:Object(o.c)(s.a),getHandleForItem:function(e,t,n){return t&&t.handleFor(n)},initializeVisibleCells:Object(o.c)(s.a),completeVisibleCells:Object(o.c)(s.a),finalizeVisibleCells:function(e,t,n,i){},setUpCellAtDistance:Object(o.c)(s.a),computeSpaceAroundViewport:Object(o.c)(s.a),reusePreviousVisibleCells:s.a.define(),cellClass:Object(r.b)(d.a),_cellTypesMap:Object(c.c)(Map),_cellMapForCellType:function(e){var t=this._cellTypesMap,n=t.get(e);return n||(n=l.a.create(),t.set(e,n)),n},cellForHandleIfPresent:function(e,t){return void 0===t&&(t="item"),this._cellMapForCellType(t).get(e)},cellForHandle:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"item",n=this._cellMapForCellType(t),i=n.get(e);return i||((i=this.createCellFor(e,t)).key=e,i.cellType=t,n.set(e,i)),i.registerWeakReference(this,this._cellWasDisposed,i),i.retain(this,"cellForHandle: initial retain + autorelease").autorelease(this,"cellForHandle: initial retain + autorelease")},cellClassKeysByCellType:{item:"cellClass"},createCellFor:function(e,t){return this[this.cellClassKeysByCellType[t]].create(this)},_cellWasDisposed:function(e){this._cellMapForCellType(e.cellType).removeKey(e.key)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(818),r=n(78),a=i.a.extend(r.b,{staticMembers:{__QUALIFIED_CLASS_NAME__:"CollectionLayoutMetrics"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n(878),r=n(98),a=n(78),o=n(107),s=n(384),c=n(887),l=n(104),u=n(81),d=n(819),h=n(393),p=n(937),f={headerHeight:Object(r.b)(30),footerHeight:Object(r.b)(30),hasFloatingHeaders:Object(r.b)(!0),hasHeaders:Object(r.b)(!0),hasFooters:Object(r.b)(!1),sectionSpacing:Object(r.b)(0),sectionTopPadding:Object(r.b)(0),sectionBottomPadding:Object(r.b)(0),sectionHeaderPadding:Object(r.b)(0),sectionFooterPadding:Object(r.b)(0)},m={staticMembers:{LayoutMetricsClass:Object(l.b)(f)},mixinDependencies:[h.a,a.b],cellClassKeysByCellType:Object(l.b)({header:"headerCellClass",footer:"footerCellClass"}),footerCellClass:p.a,layOutCellInDirection:function(e,t,n,i,r,a){var o=arguments;return"header"===t.cellType&&(t.isFloatingToTop=!1),this.__s._$sf$layOutCellInDirection.apply(this,o)},headerCellClass:p.a.extend({isFloatingToTop:!1,clipTop:0,invalidate:function(){this.isFloatingToTop=!1,this.clipTop=0,this.__s._$yc$invalidate.call(this)},isReusable:Object(u.d)({get:function(){return!this.isFloatingToTop}}),moveBy:function(e,t,n){if(!this.isFloatingToTop){var i=e.layoutMetrics,r=i.topInset,a=this.y;a+=n,i.hasFloatingHeaders&&a<r?(this.y=r,this.isFloatingToTop=!0):(this.y=a,this.isFloatingToTop=!1)}},__superMap:{_$yc$invalidate:"invalidate"}}),getSectionHandle:function(e){return"header"===e.cellType||"footer"===e.cellType?e.handle:e.handle.sectionHandle},sizeKeyByCellType:Object(l.b)({header:"sizeForHeader",footer:"sizeForFooter"}),sizeForHeader:function(e,t){return o.a.create(e.viewportWidth,e.layoutMetrics.headerHeight)},sizeForFooter:function(e,t){return o.a.create(e.viewportWidth,e.layoutMetrics.footerHeight)},reusePreviousVisibleCells:function(e,t,n,i,r){var a=arguments;r.sectionsChanges&&this.handleEverythingChanged(e,t,n,i,r);var o=r.invalidSections;return o&&this.handleInvalidSections(o,e,t,n,i,r),this.__s._$1r7$reusePreviousVisibleCells.apply(this,a)},handleInvalidSections:function(e,t,n,i,r,a){this._cellMapForCellType("item").forEach(function(t){var n=t.handle;e.contains(n.sectionHandle)&&t.invalidate()}),this._cellMapForCellType("header").forEach(function(t){var n=t.handle;e.contains(n)&&t.invalidate()}),this._cellMapForCellType("footer").forEach(function(t){var n=t.handle;e.contains(n)&&t.invalidate()}),this.recoverLayout(t,i,r)},recoverLayout:function(e,t,n){var i=this.topMostLaidOutItem(e,n);i||(i=this.topMostItem(e,n),this.recoverLayoutFromCell(e,i),i.isLaidOut)},completeVisibleCells:function(e,t,n,r){var a=arguments;this.__s._$2Og$completeVisibleCells.apply(this,a);var o=e.layoutMetrics;if(o.hasHeaders&&o.hasFloatingHeaders){var s=n.objectAt(0).retain(this,"SectionLayoutSupport#completeVisibleCells: firstCell"),c=s.handle,l=o.topInset,u=o.sectionSpacing;"header"===s.cellType?(s.y>l+u&&this._sectionsAbove(c)>0&&(c=c.previous),n.shift()):"item"===s.cellType&&(c=c.sectionHandle);for(var d=this.cellForHandle(c,"header").retain(this,"sectionLayoutSupport#completeVisibleCells: header"),h=l,p=this.sizeForCell(e,d).height+u,f=h+p,m=0,g=n.length;m<g;m++){var b=n.objectAt(m);if(b.y>f)break;if("header"===b.cellType){if(h=b.y-p,b.moveBy(e,0,0),b.isFloatingToTop)return void d.release(this,"sectionLayoutSupport#completeVisibleCells: header");break}}if(this.layOutCellInDirection(e,d,1,h),h<l){var v=l-h;d.clipTop=i.a.sharedInstance.floorToDevicePixelRatio(v)}d.isFloatingToTop=!0,n.unshift(d),d.release(this,"sectionLayoutSupport#completeVisibleCells: header"),s.release(this,"SectionLayoutSupport#completeVisibleCells: firstCell")}},positionNextCell:function(e,t,n){var i="header",r="footer";n<0&&(i="footer",r="header");var a,o=t.handle,s=t.cellType,c="item"===s?o.sectionHandle:o,l=0,u=n>0;do{if("item"===s)(o=o.atDistance(n)).isValid?o.sectionHandle!==c?(o=c,a=r):a="item":(o=c,a=r);else if(s===r){if(c=o=o.atDistance(n),!o.isValid)return null;a=i}else s===i&&(o=n<0?o.lastItem:o.firstItem,a="item");l+=u?this.verticalSpacingForCellTypes(e,s,a):this.verticalSpacingForCellTypes(e,a,s),s=a}while(!o.isValid||!("item"===s||"header"===s&&this.shouldSectionHaveHeader(e,o)||"footer"===s&&this.shouldSectionHaveFooter(e,o)));var d=this.cellForHandle(o,s).retain();return this.positionAdjacentCell(e,t,d,n,l).autorelease()},verticalSpacingForCellTypes:function(e,t,n){var i=e.layoutMetrics;return"item"===t&&"item"===n?i.rowSpacing:"header"===t&&"item"===n?(i.hasHeaders?i.sectionHeaderPadding:0)+i.sectionTopPadding:"item"===t&&"footer"===n?(i.hasFooters?i.sectionFooterPadding:0)+i.sectionBottomPadding:"footer"===t&&"header"===n?i.sectionSpacing:0},headersAboveSection:function(e,t){return e.layoutMetrics.hasHeaders?this._sectionsAbove(t):0},headersBelowSection:function(e,t){return e.layoutMetrics.hasHeaders?this._sectionsBelow(t):0},footersAboveSection:function(e,t){return e.layoutMetrics.hasFooters?this._sectionsAbove(t):0},footersBelowSection:function(e,t){return e.layoutMetrics.hasFooters?this._sectionsBelow(t):0},shouldSectionHaveHeader:function(e,t){return e.layoutMetrics.hasHeaders},shouldSectionHaveFooter:function(e,t){return e.layoutMetrics.hasFooters},_sectionsAbove:function(e){return this._setUpHandleAccessors(e),this._sectionsAbove(e)},_sectionsAboveArray:function(e){return e.position},_sectionsAboveList:function(e){for(var t=-1;e.isValid;)e=e.previous,t++;return Math.max(t,0)},_sectionsBelow:function(e){return this._setUpHandleAccessors(e),this._sectionsBelow(e)},_sectionsBelowArray:function(e){return e.maximumPosition-e.position},_sectionsBelowList:function(e){for(var t=-1;e.isValid;)e=e.next,t++;return Math.max(t,0)},_setUpHandleAccessors:function(e){return e.instanceOf(s.a)?(this._sectionsAbove=this._sectionsAboveArray,void(this._sectionsBelow=this._sectionsBelowArray)):e.instanceOf(c.a)?(this._sectionsAbove=this._sectionsAboveList,void(this._sectionsBelow=this._sectionsBelowList)):void Object(d.b)("SectionLayoutSupport: unable to use handle type. handle: "+e)},sectionSpaceAboveCell:function(e,t){var n=e.layoutMetrics,i=t.cellType,r=this.getSectionHandle(t),a=this._sectionsAbove(r)*(n.sectionSpacing+n.sectionTopPadding+n.sectionBottomPadding),o=this.headersAboveSection(e,r);return"header"!==i&&(a+=n.sectionTopPadding,this.shouldSectionHaveHeader(e,r)&&(o+=1)),(a+=o*(n.headerHeight+n.sectionHeaderPadding))+this.footersAboveSection(e,r)*(n.footerHeight+n.sectionFooterPadding)},topForCell:function(e,t){var n=arguments;return this.__s._$5rM$topForCell.apply(this,n)+this.sectionSpaceAboveCell(e,t)},sectionSpaceBelowCell:function(e,t){var n=e.layoutMetrics,i=t.cellType,r=this.getSectionHandle(t),a=this._sectionsBelow(r)*(n.sectionSpacing+n.sectionTopPadding+n.sectionBottomPadding);a+=this.headersBelowSection(e,r)*(n.headerHeight+n.sectionHeaderPadding);var o=this.footersBelowSection(e,r);return"footer"!==i&&(a+=n.sectionBottomPadding,this.shouldSectionHaveFooter(e,r)&&(o+=1)),a+o*(n.footerHeight+n.sectionFooterPadding)},spaceBelowCell:function(e,t){var n=arguments;return this.__s._$6DN$spaceBelowCell.apply(this,n)+this.sectionSpaceBelowCell(e,t)},minimumTopOffsetForCell:function(e,t){var n=this.__s._$6HI$minimumTopOffsetForCell.call(this,e,t),i=e.layoutMetrics;if(!i.hasHeaders)return n;var r=t.handle,a=r.sectionHandle;return r.hasPrevious&&(r===a.firstItem||i.hasFloatingHeaders)?n+i.headerHeight+this.verticalSpacingForCellTypes(e,"header","item"):n},minimumBottomOffsetForCell:function(e,t){var n=this.__s._$6WX$minimumBottomOffsetForCell.call(this,e,t),i=e.layoutMetrics;if(!i.hasFooters)return n;var r=t.handle,a=r.sectionHandle;return r.hasNext&&r===a.lastItem?n+i.footerHeight+this.verticalSpacingForCellTypes(e,"item","footer"):n},__superMap:{_$sf$layOutCellInDirection:"layOutCellInDirection",_$1r7$reusePreviousVisibleCells:"reusePreviousVisibleCells",_$2Og$completeVisibleCells:"completeVisibleCells",_$5rM$topForCell:"topForCell",_$6DN$spaceBelowCell:"spaceBelowCell",_$6HI$minimumTopOffsetForCell:"minimumTopOffsetForCell",_$6WX$minimumBottomOffsetForCell:"minimumBottomOffsetForCell"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(821),r={selectionControllerDidDeselectItem:i.a,selectionControllerDidSelectItem:i.a,selectionControllerShouldSelectItem:function(e,t){return!0}}},function(e,t,n){"use strict";n.d(t,"a",function(){return f});var i=n(274),r=n(818),a=n(94),o=n(85),s=n(856),c=n(830),l=n(78),u=n(98),d=n(936),h=n(61),p=n(119),f=r.a.extend(l.b,a.a,{collection:Object(u.b)(),delegate:Object(u.b)(),isEmptySelectionEnabled:Object(u.b)(!0),isMultipleSelectionEnabled:Object(u.b)(!0),isRangeSelectionAlwaysAdditive:Object(u.b)(!1),pivot:Object(u.b)({strong:!0,get:function(){return this._pivot},set:function(e){return this._pivot=e}}),extendedTo:Object(u.b)({strong:!0}),userPerformedSelectionOperation:function(e,t){this._userPerformedSelectionOperation(e,t),this.notifyPublicOfSelectionChange()},notifyPublicOfSelectionChange:function(){this.propertyChanged("selection"),this.selectionDidChange()},selectionDidChange:Object(l.i)(),_userPerformedSelectionOperation:function(e,t){var n=!1;switch(t){case h.a.TOGGLE:e&&(this.isItemAtHandleSelected(e)?this._userPerformedSelectionOperation(e,h.a.REMOVE):this._userPerformedSelectionOperation(e,h.a.ADD));break;case h.a.REMOVE:(this.isEmptySelectionEnabled||this.selection.length>1)&&e&&this.deselectItemAtHandle(e);break;case h.a.ADD:if(!this.isMultipleSelectionEnabled){this._userPerformedSelectionOperation(e,h.a.SET);break}e&&this.selectItemAtHandle(e)&&(this.pivot=e);break;case h.a.EXTEND:if(this.isMultipleSelectionEnabled){if(e instanceof Object){var i=this.pivot;i instanceof Object?(this._modifyCurrentRangeForSelectionExtensionOperation(e,i),n=!0):this._userPerformedSelectionOperation(e,h.a.ADD)}break}default:e&&e.retain("BaseSelectionController: holding on during clearSelection"),this.clearSelection(),e&&(this.selectItemAtHandle(e)&&(this.pivot=e),e.release("BaseSelectionController: holding on during clearSelection"))}this.extendedTo=n?e:void 0},_modifyCurrentRangeForSelectionExtensionOperation:function(e,t){var n=this.extendedTo,i=n&&n.position+e.position+t.position>=0,r=i?n.position-t.position:void 0,a=i?e.position-t.position:void 0;i&&Math.sign(r)===Math.sign(a)?Math.abs(r)>Math.abs(a)?this.isRangeSelectionAlwaysAdditive||this.deselectRange(n,e,!1):this.selectRange(n,e,!1):(n instanceof Object&&!this.isRangeSelectionAlwaysAdditive&&(t.retain(this,"BaseSelectionController#_userPerformedSelectionOperation: reselecting extended selection range"),this.deselectRange(t,n),this.pivot=t,t.release(this,"BaseSelectionController#_userPerformedSelectionOperation: reselecting extended selection range")),this.selectRange(t,e))},userPerformedSelectionOperationInDirection:function(e,t){var n=this.getSelectableHandleInDirection(this.pivot,e);n&&(this.userPerformedSelectionOperation(n,t),this.pivot=n)},selectAll:function(){var e=this.collection.startHandle;if(e.isValid){this.clearSelection();var t=this.getSelectableHandleInOffsetDirection(e,1);if(t instanceof Object){this._userPerformedSelectionOperation(t,h.a.SET);var n=e.end;n!==e&&(n.retain(this,"selectAll").autorelease(this,"selectAll"),this._userPerformedSelectionOperation(n,h.a.EXTEND)),this.notifyPublicOfSelectionChange()}}},selection:Object(o.c)(s.a),selectedItem:Object(u.b)({dependencies:["selection"],get:function(){var e=this.selection;if(1!==e.length)return null;var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}return r}},set:Object.assign(function(e){var t=void 0;null===e?t=null:(t=d.a.create()).add(e),this.selection=t},{__CW__setter:function(e,t,n,i,r){var a=void 0;null===e?a=null:(a=d.a.create()).add(e),n[0+i]=a}}),writeDependencySetPathMap:["false"]}),updateSelectionForCollectionChange:Object(o.c)(c.a),clearSelection:Object(o.c)(c.a),isItemAtHandleSelected:Object(o.c)(c.a),selectItemAtHandle:Object(o.c)(c.a),deselectItemAtHandle:Object(o.c)(c.a),selectRange:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this._modifyRange(e,t,this.selectItemAtHandle,n)},deselectRange:function(e,t){var n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];this._modifyRange(e,t,this.deselectItemAtHandle,n)},_modifyRange:function(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(e.isValid&&t.isValid){var r="BaseSelectionController#_modifyRange: iterating handle",a=Math.sign(t.position-e.position),o=t.retain(this,"BaseSelectionController#_modifyRange: end handle"),s=e.retain(this,r);if((s!==o||i)&&n.call(this,s),0!==a)for(;s!==o&&s.isValid;){var c=s.atDistance(a).retain(this,r);s.release(this,r),((s=c)!==o||i)&&n.call(this,s)}o.release(this,"BaseSelectionController#_modifyRange: end handle"),s.release(this,r)}},getHandleInDirection:function(e,t){var n=this._getHandleOffsetForDirection(e,t);if(0!==n)return this._getHandleAtOffsetFromHandle(e,n)},findHandleInOffsetDirection:function(e,t,n){var i="findHandleInOffsetDirection";if(0!==t){for(var r=e.retain(this,i);r.isValid;){var a=this._getHandleAtOffsetFromHandle(r,t);if(a instanceof Object&&a.retain(this,i),!0===n.call(this,r,a))return a instanceof Object&&a.release(this,i),r.autorelease(this,i);if(r.release(this,i),!(a instanceof Object))return;r=a.retain(this,i)}r.release(this,i)}},findHandleInDirection:function(e,t,n){var i=this._getHandleOffsetForDirection(e,t);return this.findHandleInOffsetDirection(e,i,n)},getLastHandleInDirection:function(e,t){return this.findHandleInDirection(e,t,function(e,t){return!(t instanceof Object&&t.isValid)})},getSelectableHandleInDirection:function(e,t){return this.findHandleInDirection(e,t,this.getIsItemAtHandleSelectable)},getSelectableHandleInOffsetDirection:function(e,t){return this.findHandleInOffsetDirection(e,t,this.getIsItemAtHandleSelectable)},getIsItemAtHandleSelectable:function(e){return this.delegate.selectionControllerShouldSelectItem(this,e)&&!this.isItemAtHandleSelected(e)},_getHandleOffsetForDirection:function(e,t){var n=0;switch(t){case p.a.LEFT:case p.a.UP:n=-1;break;case p.a.RIGHT:case p.a.DOWN:n=1}var r=this.owner.layoutMetrics,a=(r&&r.direction)===i.c.rightToLeft,o=t===p.a.LEFT||t===p.a.RIGHT;return a&&o&&(n*=-1),n},_getHandleAtOffsetFromHandle:function(e,t){return e.atDistance(t).retain(this,"getHandleInDirection").autorelease(this,"getHandleInDirection")},staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseSelectionController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(879),r=n(363),a=n(818),o=n(278),s=n(556),c=a.a.extend({_downloader:null,init:function(){var e=arguments;this.__s._$Fs$init.apply(this,e);var t=i.a.sharedInstance;r.b.isDownloadAttributeSupported&&(t.isChrome&&t.majorVersion<65||t.isEdge)?this._downloader=this.linkDownloaderClass.create():this._downloader=this.iframeDownloaderClass.create()},downloadFromURL:function(e){return this._downloader.downloadFromURL(e)},downloadFromURLs:function(e){return this._downloader.downloadFromURLs(e)},iframeDownloaderClass:o.b,linkDownloaderClass:s.a,__superMap:{_$Fs$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownloadManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n(818),r=n(94),a=n(830),o=n(81),s=n(100),c=n(86),l=n(819),u=n(822),d=n(821),h=n(861),p=n(859),f="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},m=i.a.extend(r.a,{staticMembers:{dequeuedErrorMessage:"Action dequeued from `%{processorClassName}` queue",canceledErrorMessage:"Action canceled from `%{processorClassName}` while active",__QUALIFIED_CLASS_NAME__:"BaseProcessor"},processAction:a.a.define(),maxConcurrentActions:Object(o.d)({defaultValue:5,set:function(e){var t=this._maxConcurrentActions;return void 0!==t&&e>t&&(this.needsProcessing=!0),e}}),enqueue:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];e=this.preprocessActionData?this.preprocessActionData.apply(this,n):n;var r=s.a.create();return this.enqueueActionData(e,this._queue),this._actionDataToPromiseMap.set(e,r),this._promiseToActionDataMap.set(r,e),this.needsProcessing=!0,r},preprocessActionData:null,enqueueActionData:function(e,t){t.push(e)},dequeue:function(e,t){var n=this._queue,i=this._promiseToActionDataMap.get(e);return-1!==n.indexOf(i)&&(t=void 0!==t?t:this.payloadForDequeue(i),e.reject(t),this._clearQueuedAction(i,e),!0)},cancel:function(e,t){if(this.dequeue(e,t))return!0;var n=this._promiseToActionDataMap.get(e);return this._active.indexOf(n)>-1&&(t=void 0!==t?t:this.payloadForCancel(n),e.reject(t),this._clearActiveAction(n,e),this.needsProcessing=!0,!0)},payloadForDequeue:function(e){return new l.a(this.constructor.dequeuedErrorMessage,{processorClassName:Object(u.a)(this),processor:this,action:e})},payloadForCancel:function(e){return new l.a(this.constructor.canceledErrorMessage,{processorClassName:Object(u.a)(this),processor:this,action:e})},clearQueue:function(e){for(var t=this._queue,n=this._actionDataToPromiseMap,i=this._promiseToActionDataMap,r=0,a=t.length;r<a;r++){var o=t[r];e=void 0!==e?e:this.payloadForDequeue(o);var s=n.get(o);s.reject(e),n.delete(o),i.delete(s)}t.length=0},abort:function(e){this.clearQueue(e);for(var t=this._active,n=this._actionDataToPromiseMap,i=this._promiseToActionDataMap,r=0,a=t.length;r<a;r++){var o=t[r];e=void 0!==e?e:this.payloadForCancel(o);var s=n.get(o);s.reject(e),n.delete(o),i.delete(s)}t.length=0},needsProcessing:Object(o.d)({defaultValue:!1,set:function(e){return e?this._processingTimer.start():this._processingTimer.stop(),e}}),process:function(e,t){this.willProcess(e,t);for(var n=this._shouldSpreadActionData,i=0;this.shouldContinueProcessing(e,i,t);){var r=e[i];if(this.shouldProcessAction(r,e,t)){e.splice(i,1),t.push(r);var a;a=n&&r?this.processAction.apply(this,r):this.processAction(r),this.completeAction(r,a),this.didProcessAction(r,e,t)}else i+=1}this.didProcess(e,t)},willProcess:d.a,shouldContinueProcessing:function(e,t,n){return e.length>t&&n.length<this.maxConcurrentActions},shouldProcessAction:function(e,t,n){return!0},completeAction:function(e,t){"object"===(void 0===t?"undefined":f(t))&&"function"==typeof t.then?t.then(this._resolveAction.bind(this,e),this._rejectAction.bind(this,e)):Object(h.a)(this._resolveAction.bind(this,e,t),0)},didProcessAction:d.a,didProcess:d.a,init:function(){var e=arguments;this.__s._$7_M$init.apply(this,e),null===this._shouldSpreadActionData&&(this._shouldSpreadActionData=!this.preprocessActionData)},_shouldSpreadActionData:null,_queue:Object(c.c)(Array),_active:Object(c.c)(Array),_promiseToActionDataMap:Object(c.c)(Map),_actionDataToPromiseMap:Object(c.c)(Map),_resolveAction:function(e,t){var n=this._actionDataToPromiseMap.get(e);this._clearActiveAction(e,n),this.needsProcessing=!0,n.resolve(t)},_rejectAction:function(e,t){var n=this._actionDataToPromiseMap.get(e);this._clearActiveAction(e,n),this.needsProcessing=!0,n.reject(t)},_clearQueuedAction:function(e,t){var n=this._queue,i=n.indexOf(e);n.splice(i,1),this._actionDataToPromiseMap.delete(e),this._promiseToActionDataMap.delete(t)},_clearActiveAction:function(e,t){var n=this._active,i=n.indexOf(e);n.splice(i,1),this._actionDataToPromiseMap.delete(e),this._promiseToActionDataMap.delete(t)},_processingTimer:Object(c.c)(p.a,{delay:0,timesToFire:1,action:"_reprocess"}),_reprocess:function(){this.process(this._queue,this._active),this.needsProcessing=!1},__superMap:{_$7_M$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(298).a],applicationDidBecomeActive:i.a.define(),applicationWillResignActive:i.a.define(),applicationDidEnterBackground:i.a.define(),applicationWillEnterForeground:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(818),r=n(86),a=n(836),o=n(819),s=n(828),c=n(1073),l=n(1074),u=i.a.extend({serviceRegistrations:r.c(Set),servicesForProcessReference:r.c(Map),registerServices:function(e){a.a(e)||o.b("ServiceManager: registerServices: Services is not an array");var t=e,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var l=r;s.a(l,c.a)||o.b("Specified object is not a ServiceRegistration"),this.serviceRegistrations.add(l)}},serviceInstancesByIdentifier:function(e){var t=[],n=this.servicesForProcessReference,i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a[1].filter(function(t){return t.registration.identifier===e}).map(function(e){return e.instance}),s=Array.isArray(o),c=0;for(o=s?o:o[Symbol.iterator]();;){var l;if(s){if(c>=o.length)break;l=o[c++]}else{if((c=o.next()).done)break;l=c.value}var u=l;t.push(u)}}return t},attachServicesToProcessReference:function(e){e||o.b("ServiceManager: attachServicesToProcessReference: No process reference specified");var t=this.serviceRegistrations,n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;if(this.shouldRegisterService(a,e)){var s=a.serviceInstanceClass.create(),c=a.identifier,l=a.listenerProtocol,u=a.connectionProtocol;l&&!u?e.createListenerOnlyMessagingChannel(l,s):l&&u?e.createMessagingChannel(l,s,u):o.b("ServiceManager: Invalid protocols for service identifier "+c),this._registerServiceInstance(s,a,e)}}},removeServicesForProcessReference:function(e){e||o.b("ServiceManager: removeServicesForProcessReference: No process reference specified"),this._unregisterAllServicesForProcessReference(e)},shouldRegisterService:function(e,t){return!0},_registerServiceInstance:function(e,t,n){this._registerServiceForProcessReference(e,t,n)},_registerServiceForProcessReference:function(e,t,n){e&&e.hasMixin(l.a)&&(e.processReference=n);var i=this.servicesForProcessReference.get(n);i||(i=[],this.servicesForProcessReference.set(n,i)),i.push({registration:t,instance:e}),e&&e.hasMixin(l.a)&&e.serviceWasRegistered()},_unregisterAllServicesForProcessReference:function(e){this.servicesForProcessReference.delete(e)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ServiceManager"}})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return s});var i=n(818),r=n(81),a=n(80),o=n(1042),s=i.a.extend({staticMembers:{protocol:r.d({readOnly:!0,type:String,defaultValue:function(){return e.location.protocol}}),hostName:r.d({readOnly:!0,type:String,defaultValue:function(){return e.location.hostname}}),protocolVersion:r.d({readOnly:!0,type:Number}),theme:r.d({readOnly:!0,type:String,defaultValue:"modern"}),primaryInteractionMode:r.d({readOnly:!0,type:String,defaultValue:o.a.sharedInstance.primaryInteractionMode}),platformType:r.d({readOnly:!0,type:String,defaultValue:o.a.sharedInstance.current}),deviceType:r.d({readOnly:!0,type:String,defaultValue:o.a.sharedInstance.deviceType}),buildNumber:r.d({readOnly:!0,type:String,defaultValue:function(){return e.__CW_BUILD_INFO.buildNumber}}),masteringNumber:r.d({readOnly:!0,type:String,defaultValue:function(){return e.__CW_BUILD_INFO.masteringNumber}}),locale:r.d({readOnly:!0,type:String,get:function(){return a.c()}}),secondaryLocale:r.d({type:String}),__QUALIFIED_CLASS_NAME__:"CoreOSEnvironment"}})}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],configurationWasUpdated:r.a.define()}},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i=n(818),r=n(78),a=n(98),o="v",s=i.a.extend(r.b,{vettingToken:a.b({type:String}),vettingStatus:a.b({type:String}),staticMembers:{__QUALIFIED_CLASS_NAME__:"VettingParameters"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],bannerActionDidClick:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(81),a=n(91),o=n(1160),s=n(1086),c=i.a.extend({mixinDependencies:[o.a],pushToken:r.d({type:String}),staticMembers:{__QUALIFIED_CLASS_NAME__:"AccountSessionValues"}}),l=s.a.extend({staticMembers:{storeForCurrentUser:function(){return this.create("accountPreferences","iCloud",a.b.sharedInstance,c)},__QUALIFIED_CLASS_NAME__:"AccountSessionStore"},value:r.d({type:c})})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(866),r=n(818),a=n(81),o=n(838),s=n(1160),c=n(145),l=["clientId","clientBuildNumber","clientMasteringNumber"],u=r.a.extend({mixinDependencies:[s.a,c.a],url:a.d({type:String,set:function(e){return function(e,t){var n=i.a.create(e),r=t,a=Array.isArray(r),o=0;for(r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var c=s;n.removeQueryParameter(c)}return n.href}(e,l)}}),method:a.d({type:String,defaultValue:"get"}),requestPayload:a.d({type:Object}),isEqual:function(e){return!!e&&e.url===this.url&&e.method===this.method&&this._requestPayloadsAreEqual(e)},_requestPayloadsAreEqual:function(e){return e.requestPayload===this.requestPayload||!o.a(e.requestPayload)&&!o.a(this.requestPayload)||JSON.stringify(e.requestPayload)===JSON.stringify(this.requestPayload)},staticMembers:{__QUALIFIED_CLASS_NAME__:"StartupInfo"}})},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return p});var i=n(81),r=n(1078),a=n(1093),o=n(1045),s=n(236),c=n(27),l=n(49),u=n(53),d=c.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(u.b)("mm6704cac5")}]}})}).create({authBagId:"notes",path:"notes",generation:1,usesLegacyCloudOSProtocol:!0,requiredServices:["mail"],supportedSubDomains:[r.a.subDomains.WWW,r.a.subDomains.CARRY],supportedDevices:[{primaryInteractionMode:o.a.MOUSE,sizeClass:a.a.REGULAR},{primaryInteractionMode:o.a.MOUSE,sizeClass:a.a.COMPACT}],pushTopic:"c5292888edbd54273cf7c82fe861b81f0d2b87ef",applicationIconUrl1x:n(475),applicationIconUrl2x:n(270),applicationIconUrl3x:n(270)}),h=c.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(u.b)("mm6704cac5")}]}})}).create({authBagId:"notes3",path:"notes3",generation:3,usesLegacyCloudOSProtocol:!0,requiredServices:["ckdatabasews"],supportedSubDomains:[r.a.subDomains.WWW,r.a.subDomains.CARRY],allowsiCloudLiteAccounts:!0,isPCSRequired:!0,shouldPreloadCoreTypes:!0,applicationIconUrl1x:n(475),applicationIconUrl2x:n(270),applicationIconUrl3x:n(270),shareAcceptanceInfo:{containerIdentifier:"com.apple.notes",partition:"https://ckdatabasews.icloud.com",titleFields:[{name:"TitleEncrypted",type:"EncryptedBytes"}]},cloudKitInfo:s.a.create({containerIdentifier:"com.apple.notes"})}),p=l.a.create({identifier:"notes",displayNameLocKey:"Notes.DisplayName",titleNameLocKey:"Notes.TitleName",generations:[d,h],defaultGenerationToPreload:h})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(1157);function r(e,t){return i.a.create().fetch(e,t)}},function(e,t,n){"use strict";n(3),n.d(t,"a",function(){return f});var i=n(818),r=n(819),a=n(866),o=n(1042),s=n(1085),c=n(1159),l=n(1046),u=n(1077),d=n(23),h=n(1084),p=n(11),f=i.a.extend({mixinDependencies:[s.a],init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:c.b.sharedInstance;this.__s._$Mb$init.call(this),e||r.b("URLRequestService: no telemetry client specified"),this.telemetryClient=e},recordStat:function(e,t,n,i,r){this._recordStat(!1,e,!1,t,n,i,r)},recordApplicationStat:function(e,t,n,i,r){this._recordStat(!0,e,!1,t,n,i,r)},recordLegacyApplicationStat:function(e,t,n,i,r){this._recordStat(!0,e,!0,t,n,i,r)},handleSpecialResponse:function(){d.a.sharedInstance.unauthenticateUser(!0)},_recordStat:function(e,t,n,i,r,o,s){var c=t.appName,l=t.masteringNumber,u=t.buildNumber,d=this.telemetryClient;if(i){var p=function(e,t,n,i,r,a){return a||(a={}),m(e,t,n,i,"requestInfo",function(e){e.time=(new Date).toString()+"        ("+Math.floor(new Date)+")";var t=(new Date).toString().match(/.*?\((.*?)\).*/);return t&&2===t.length&&(e.timezone=t[1]),e}(a))}(n,c,l,u,0,i);e?d.recordApplicationStat(c,l,u,"requestInfo",p):d.recordStatRaw("requestInfo",p)}if(function(e){var t=!1;if(void 0!==e&&null!==e){var n=Object(h.b)(e);t=n===h.a.SERVER_ERROR||n===h.a.NONE}return t}(r)){var f=a.a.create(o),b=function(e,t){var n=!1;if(e&&t&&t.length>0){var i=e.hostname;if(i){var r=i.split("-")[0];n=-1!==t.indexOf(r)}}return n}(f,g)?"serverErrorOrTimeout.carry":"serverErrorOrTimeout",v=f.hostname,_=m(n,c,l,u,b,{status:r,sanitizedUrl:function(e){return(e.hostname+e.pathname).replace(/[0-9]{3}/g,"…")}(f),serverHostname:v,responseBody:s});e?d.recordApplicationStat(c,l,u,b,_):d.recordStatRaw(b,_)}},__superMap:{_$Mb$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"HttpRequestReportingController"}});function m(e,t,n,i,r){var a,s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},c=p.a.hostName,d=p.a.locale,h=l.a.sharedInstance;if(e){var f=""+(a=r).charAt(0).toUpperCase()+a.slice(1);s.fullStatName=""+t+f}return Object(u.a)(t,n,i,h.identifier,c,d,o.a.sharedInstance.primaryInteractionMode,r,s)}var g=["p97","p98"]},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],animationControllerForPresentedViewController:r.a.define(),animationControllerForDismissedViewController:r.a.define(),interactionControllerForPresentation:r.a.define(),interactionControllerForDismissal:r.a.define(),presentationControllerForPresentedViewController:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(81),r=n(130),a={presentationStyle:i.d({type:r.a,defaultValue:r.a.CURRENT_CONTEXT})}},function(e,t,n){"use strict";n(6),n(13),n.d(t,"b",function(){return p}),n.d(t,"a",function(){return f});var i=n(95),r=n(818),a=n(81),o=n(825),s=n(821),c=n(100),l=n(1100),u=n(1101),d=n(38),h=n(303),p=i.b("FadeAnimationControllerDirection",{GROW:"GROW",SHRINK:"SHRINK"}),f=r.a.extend({mixinDependencies:[l.a],direction:a.d({type:p,defaultValue:p.GROW}),animateTransition:function(e){var t=o.a(e,"fromViewController.view"),n=o.a(e,"toViewController.view");e.transitionCoordinator.animateTo(1,h.a,e),(this.direction===p.GROW?this._growView(n,t):this._shrinkView(n,t)).then(function(){e.completeTransition(!0)})},animationEnded:s.a,_shrinkView:function(e,t){var n=[];Object(u.d)(e);var i=Object(d.e)(e).then(function(){Object(d.h)(t)});if(n.push(i),t){Object(u.b)(t);var r=Object(d.b)(t).then(function(){Object(u.a)(t),Object(u.c)(t),Object(d.g)(t)});n.push(r)}return c.a.all(n)},_growView:function(e,t){var n=[];Object(u.d)(e),Object(u.b)(e);var i=Object(d.a)(e).then(function(){Object(u.c)(e),Object(d.g)(e)});if(n.push(i),t){var r=Object(d.f)(t).then(function(){Object(d.h)(t),Object(u.a)(t)});n.push(r)}return c.a.all(n)},staticMembers:{__QUALIFIED_CLASS_NAME__:"FadeAndScaleAnimationController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyCoreTypesServiceProtocol",version:"0.1",fetchIcon:r.a.define(),getConformingTypes:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyRegionFormatterServiceProtocol",version:"0.1",loadRulesForRegions:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyTelemetryServiceProtocol",version:"0.1",beginStat:r.a.define(),didReceiveSpecialResponse:r.a.define(),endStat:r.a.define(),recordApplicationMessage:r.a.define(),recordStat:r.a.define(),requestSent:r.a.define(),requestReceived:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],presentModalContent:r.a.define(),dismissModalContent:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(866),r=n(81),a=n(852),o=n(819),s=i.a.extend({downloadTokenQueryParamKey:r.d({type:String}),downloadTokenQueryParamValue:r.d({type:String,defaultValue:function(){return a.a()}}),init:function(e,t,n){var i=arguments;this.__s._$LJ$init.apply(this,i),t||o.b("downloadTokenQueryParamKey not provided"),this.downloadTokenQueryParamKey=t,n&&(this.downloadTokenQueryParamValue=n),this.setQueryParameter(this.downloadTokenQueryParamKey,this.downloadTokenQueryParamValue)},__superMap:{_$LJ$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ValidatedDownloadUrl"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingFromAppleIdViewProtocol",version:.1,receivePingRequest:i.a.define(),ready:i.a.define(),config:i.a.define(),passwordAuthDone:i.a.define(),complete:i.a.define(),repairDidStart:i.a.define(),authDidCancel:i.a.define(),authFailedToLoad:i.a.define(),authWidgetWillChangeFlow:i.a.define(),authWidgetDidChangeFlow:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(81),a=n(863),o=n(86),s=n(1060),c=n(1053),l=i.a.extend({originalTarget:r.d(),outgoingAppleIdViewProxy:r.d({type:Object}),protocolMessages:r.d({readOnly:!0,type:String,get:function(){return this._protocolMessages}}),protocolMessageForIdentifier:function(e){for(var t=void 0,n=0,i=this._protocolMessages.length;n<i;n++){var r=this._protocolMessages[n];if(r.id===e){t=r;break}}return t},init:function(e,t,n){this.__s._$Ts$init.call(this);var i=this.protocolMethodNames=Object(s.a)(t);if(!i||0===i.count)throw new c.a("[MessagingFromAppleIdViewProxy]: Invalid list of protocol methods");this.outgoingAppleIdViewProxy=n,this._wrapProtocolTargetMethods(e,i)},_wrapProtocolTargetMethods:function(e,t){var n=this;if(!e)throw new c.a("[MessagingFromAppleIdViewProxy]: wrapProtocolTargetMethods - no original protocol target specified");if(!t)throw new c.a("[MessagingFromAppleIdViewProxy]: wrapProtocolTargetMethods - no protocol method names specified");var i=this,r=i,a=function(t){n._originalMethods[t]=e[t],e[t]=function(){for(var n=arguments.length,a=Array(n),o=0;o<n;o++)a[o]=arguments[o];var s=arguments[0];r._willProcessMessage.call(i,s,t);var c=i._originalMethods[t];c.call.apply(c,[e].concat(a)),r._didProcessMessage.call(i,s,t)}},o=t,s=Array.isArray(o),l=0;for(o=s?o:o[Symbol.iterator]();;){var u;if(s){if(l>=o.length)break;u=o[l++]}else{if((l=o.next()).done)break;u=l.value}a(u)}},_willProcessMessage:function(e,t){a.b.debug("[MessagingFromAppleIdViewProxy] ["+Date.now()+"] ["+e+"] ["+t+"] Received");var n={id:e,method:t,status:"PROCESSING"};this._protocolMessages.push(n)},_didProcessMessage:function(e,t){a.b.debug("[MessagingFromAppleIdViewProxy] ["+Date.now()+"] ["+e+"] ["+t+"] Acknowledged"),this.outgoingAppleIdViewProxy.acknowledge(e,!0);var n=this.protocolMessageForIdentifier(e);n&&(n.status="ACKNOWLEDGED")},_originalMethods:r.d({type:Object,defaultValue:o.c({})}),_protocolMessages:r.d({type:Array,defaultValue:o.c([])}),__superMap:{_$Ts$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MessagingFromAppleIdViewProxy"}})},function(e,t,n){"use strict";n(0),n(5),n.d(t,"a",function(){return a});var i=n(898),r=n(104),a=(n(72),i.a.extend({additionalClassNames:r.b(["close-icon-button-view"]),staticMembers:{__QUALIFIED_CLASS_NAME__:"CloseIconButtonView"}}))},function(e,t,n){"use strict";function i(e){var t=e[1],n=e[2]-1,i=e[3],r=e[4],a=e[5],o=new Date;return o.setYear(t),o.setMonth(n,i),o.setHours(r),o.setMinutes(a),o.setSeconds(0),o.setMilliseconds(0),o}function r(e){var t=e.getFullYear(),n=e.getMonth()+1,i=e.getDate();return i<10&&(i="0"+i),n<10&&(n="0"+n),t+"-"+n+"-"+i}n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r})},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(94),r=n(830),a={mixinDependencies:[i.a],name:"LegacyPollingServiceProtocol",version:"0.1"},o={mixinDependencies:[i.a],name:"LegacyQuotaServiceResponseProtocol",version:"0.1",applicationShouldRefresh:r.a.define()}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return c});var i=n(877),r=n(80),a=n(1042),o=n(1044),s=(n(191),n(1156)),c=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"learnMoreTitle",attributes:{}}]},__QUALIFIED_CLASS_NAME__:"LearnMoreDetailView"},value:Object(s.a)({dependencies:["learnMoreTitle"],type:String,readOnly:!0,get:Object.assign(function(){return""+this.learnMoreTitle},{__CW__getter:function(e,t,n,i){return""+i.internalGet(this,t[0+n])}})}),learnMoreTitle:Object(s.a)({type:String,readOnly:!0,get:function(){var e=void 0;return a.a.sharedInstance.deviceType===o.a.PHONE?e=r.d("CloudOS.Springboard.LearnMore.Phone.Text"):a.a.sharedInstance.deviceType===o.a.TABLET&&(e=r.d("CloudOS.Springboard.LearnMore.Tablet.Text")),e}})})},function(e,t,n){"use strict";(function(e){n(3),n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l}),n.d(t,"c",function(){return u});var i=n(818),r=n(833),a=n(414),o=n(322),s=n(301),c="com.apple.icloud.cloudos.legacyCoreTypesService",l="Legacy CoreTypes Service",u=i.a.extend({mixinDependencies:[a.a],fetchIcon:function(t,n,i,a,c){return a=a||e.devicePixelRatio,c&&r.a(c)?c=[s.a.getItemForValue(c)]:c&&Array.isArray(c)&&(c=c.map(function(e){return s.a.getItemForValue(e)})),o.a.sharedInstance.fetchIcon(n,i,a,c)},getConformingTypes:function(e,t){return o.a.sharedInstance.getConformingTypes(t)},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyCoreTypesService"}})}).call(this,n(31))},function(e,t,n){"use strict";var i=n(818),r=n(847),a=n(81),o=n(819),s=n(100),c=n(905),l=n(863),u=n(86),d=n(1088),h=n(581),p=n(861),f=n(909),m=n(51),g=n(323),b=n(95),v=n(94),_=n(830),y=Object(b.b)("APNSConnectionError",{REQUEST_TIMEOUT:"Request timed out",MULTIPLE_CONNECTIONS:"Re-parked multiple connections with the same push token",PUSH_TOKEN_EXPIRED:"Push token has expired",UNKNOWN_ERROR:"UNKNOWN_ERROR"}),C={mixinDependencies:[v.a],apnsConnectionDidTerminate:_.a.define(),apnsConnectionDidReceiveNotification:_.a.define()},I=(n(3),i.a.extend({delegate:a.d({type:C}),connect:function(e,t,n){e||o.b("[APNSConnection] Missing token"),t||o.b("[APNSConnection] Missing tokenTTL"),n||o.b("[APNSConnection] Missing pushServiceURL"),this._pushServiceURL=n,this._token=e,this._tokenTTL=t,this._isConnected?l.b.warn("[APNSConnection] Already connected"):this._parkConnection()},_isConnected:a.d({type:Boolean}),_pushServiceURL:a.d({type:String}),_retryAfter:a.d({type:Number,defaultValue:250}),_token:a.d({type:String}),_tokenTTL:a.d({type:Number}),_connectionDidTerminate:function(e){var t=this,n=this.delegate;if(n){var i=void 0;switch(e){case 0:case 408:i=y.REQUEST_TIMEOUT;break;case 403:i=y.PUSH_TOKEN_EXPIRED;break;case 409:i=y.MULTIPLE_CONNECTIONS;break;default:i=y.UNKNOWN_ERROR}if(i===y.REQUEST_TIMEOUT||i===y.MULTIPLE_CONNECTIONS){var r=this._retryAfter;p.a(function(){t._parkConnection()},r),this._retryAfter=Math.min(2*r,3e5)}else n.apnsConnectionDidTerminate(this,i)}},_didReceiveNotification:function(e){var t=this.delegate;if(t&&e){var n=g.a.deserialize(e);t.apnsConnectionDidReceiveNotification(this,n)}this._retryAfter=250},_fetchPushConnectionURL:function(e,t,n){var i=n+"?tok="+e+"&ttl="+t;return Object(m.b)(i,{timeout:1e3*t})},_parkConnection:function(){var e=this;this._isConnected=!0;var t=this._token,n=this._tokenTTL,i=this._pushServiceURL;this._fetchPushConnectionURL(t,n,i).then(function(t){var n=t.status;if(n===f.a.OK)return t.json().then(function(t){e._didReceiveNotification(t),e._parkConnection()});e._isConnected=!1,e._connectionDidTerminate(n)})},staticMembers:{__QUALIFIED_CLASS_NAME__:"APNSConnection"}})),w=n(99),S=n(1079),A=n(11);n(3);var O="ckdeviceservice",E=1,T="tokens/register";var D=i.a.extend({registerCloudKitSubscription:function(e,t,n){return this._token=e,this._containerIdentifier=t,this._apnsEnvironment=n,this._registerCloudKitSubscription(),this._registrationPromise=s.a.create()},_registrationPromise:a.d({type:s.a}),_retryAfter:a.d({type:Number,defaultValue:250}),_registerCloudKitSubscription:function(){var e,t,n,i,r,a=this;(e=this._token,t=this._containerIdentifier,n=this._apnsEnvironment,i=function(e,t,n){return"device/"+E+"/"+e+"/"+n+"/"+T}(t,0,n),r=Object(S.d)(O,i),Object(m.a)(r,{method:w.a.POST,body:{apnsEnvironment:n,apnsToken:e,clientID:A.a.clientId}})).then(function(e){var t=e.status;if(t===f.a.OK)a._registrationDidSucceed();else if(t===f.a.BAD_REQUEST)a._registrationDidFail();else{var n=a._retryAfter;p.a(function(){a._registerCloudKitSubscription()},n),a._retryAfter=Math.min(2*n,3e5)}})},_registrationDidSucceed:function(){this._registrationPromise.resolve(d.a.SUCCESS)},_registrationDidFail:function(){this._registrationPromise.resolve(d.a.SUCCESS)},staticMembers:{__QUALIFIED_CLASS_NAME__:"CKDeviceRegisterURLConnection"}}),L=n(1090),N=n(1160),M=i.a.extend({mixinDependencies:[N.a],pushServiceURL:a.d({type:String,serialization:{propertyName:"webCourierURL"}}),registeredTopics:a.d({type:Array}),token:a.d({type:String,serialization:{propertyName:"pushToken"}}),tokenTTL:a.d({type:Number,serialization:{propertyName:"pushTokenTTL"}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"PushWebServiceRegisterResponse"}}),P=i.a.extend({mixinDependencies:[N.a],notification:a.d({type:g.a,serialization:{propertyName:"data"}}),pushTopic:a.d({type:String}),staticMembers:{__QUALIFIED_CLASS_NAME__:"PushWebServiceTopicState"}}),x=i.a.extend({mixinDependencies:[N.a],states:a.d({type:Array,serialization:{collectionObjectType:P}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"PushWebServiceStateResponse"}});n(3);var R=b.b("PushWebServiceRegisterError",{REVERT_TO_POLLING:"REVERT_TO_POLLING",UNKNOWN_ERROR:"UNKNOWN_ERROR"});function j(e){switch(e){case 400:return R.REVERT_TO_POLLING;default:return R.UNKNOWN_ERROR}}var F=i.a.extend({registerPushTopics:function(e,t,n){return this._pushTopics=new Set(e),this._tokenTTL=t,this._token=n,this._registerPushTopics(),this._registrationPromise=s.a.create()},_pushTopics:a.d({type:Set}),_registeredPushTopics:a.d({type:Array,defaultValue:u.c([])}),_registrationPromise:a.d({type:s.a}),_retryAfter:a.d({type:Number,defaultValue:250}),_token:a.d({type:String}),_tokenTTL:a.d({type:Number}),_registerPushTopics:function(){var e=this,t=this._token,n=this._tokenTTL,i=this._pushTopics;return(t?function(e,t,n){return Object(m.a)(Object(S.d)("push","registerTopics"),{method:w.a.POST,body:{pushTopics:e,pushToken:t,pushTokenTTL:n}}).then(function(e){var t=e.status;return t===f.a.OK?e.json().then(function(e){var t=M.deserialize(e);return L.a.create({status:d.a.SUCCESS,data:t})}):L.a.create({status:d.a.ERROR,error:j(t)})})}(Array.from(i),t,n):function(e,t){return Object(m.a)(Object(S.d)("push","getToken"),{method:w.a.POST,body:{pushTopics:e,pushTokenTTL:t}}).then(function(e){var t=e.status;return t===f.a.OK?e.json().then(function(e){var t=M.deserialize(e),n=t.pushServiceURL,i=t.token,r=t.tokenTTL;return i&&r&&n?L.a.create({status:d.a.SUCCESS,data:t}):L.a.create({status:d.a.ERROR,data:t})}):L.a.create({status:d.a.ERROR,error:j(t)})})}(Array.from(i),n)).then(function(t){var n=t.isOK,r=t.error;if(n){var a=t.data,o=a.pushServiceURL,s=a.registeredTopics,c=a.token,l=a.tokenTTL;if(e._token=c,e._tokenTTL=l,e._pushServiceURL=o,s)for(var u=e._registeredPushTopics,d=0,h=s.length;d<h;d++){var f=s[d];i.delete(f),u.push(f)}}if(0===i.size&&n)e._registrationDidSucceed();else if(r===R.REVERT_TO_POLLING)e._registrationDidFail(r);else{var m=e._retryAfter;p.a(function(){e._registerPushTopics()},m),e._retryAfter=Math.min(2*m,3e5)}})},_registrationDidSucceed:function(){var e=M.create({pushServiceURL:this._pushServiceURL,registeredTopics:this._registeredPushTopics,token:this._token,tokenTTL:this._tokenTTL});this._registrationPromise.resolve(L.a.create({status:d.a.SUCCESS,data:e}))},_registrationDidFail:function(e){var t=M.create({pushServiceURL:this._pushServiceURL,registeredTopics:this._registeredPushTopics,token:this._token,tokenTTL:this._tokenTTL});this._registrationPromise.resolve(L.a.create({status:d.a.ERROR,data:t,error:e}))},staticMembers:{__QUALIFIED_CLASS_NAME__:"PushWebServiceRegisterURLConnection"}}),V=n(406);n(3),n.d(t,"a",function(){return U});var U=i.a.extend({mixinDependencies:[r.a,C],delegate:a.d({type:h.a}),initialize:function(e,t){var n=this;return e||o.b("[PushController] Requires push topics"),t||o.b("[PushController] Requires token store"),this._pushTopics=e,this._sessionStore=t,this._hasInitialized=!0,this.registerPushTopics(e).then(function(e){if(e===d.a.SUCCESS){var t=n._pendingCloudKitSubscriptions,i=n._pendingCloudKitSubscriptionsPromise;if(t&&i){for(var r=[],a=Array.from(t),o=0,c=a.length;o<c;o++){var l=a[o];r.push(n.registerCloudKitSubscription(l)),t.delete(l)}return s.a.all(r).then(function(e){var t=e.every(function(e){return e===d.a.SUCCESS})?d.a.SUCCESS:d.a.ERROR;return i.resolve(t),t})}}return e})},registerCloudKitSubscription:function(e){var t=this;if(!this._hasInitialized){this._pendingCloudKitSubscriptions.add(e);var n=this._pendingCloudKitSubscriptionsPromise;return n||(n=this._pendingCloudKitSubscriptionsPromise=s.a.create()),n}return this._registeredCloudKitContainers.has(e)?s.a.resolve(d.a.SUCCESS):this._fetchToken().then(function(n){return n!==d.a.SUCCESS?n:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"production";return D.create().registerCloudKitSubscription(e,t,n)}(t._token,e).then(function(n){return n===d.a.SUCCESS&&(t._registeredCloudKitContainers.add(e),t._connectToPushService()),n})})},registerPushTopics:function(e){var t=this;this._hasInitialized||o.b("[PushController] Must initialize before registering topics");for(var n=[],i=this._registeredPushTopics,r=0,a=e.length;r<a;r++){var s=e[r];i.has(s)||n.push(s)}return c.a(n)?this._fetchToken().then(function(){return t._connectToPushService(),d.a.SUCCESS}):this._registerPushTopics(n).then(function(e){return e===d.a.SUCCESS&&t._connectToPushService(),e})},apnsConnectionDidTerminate:function(e,t){var n=this;this._apnsConnection=null,t===y.PUSH_TOKEN_EXPIRED?(this._token=null,this._fetchToken().then(function(){n._connectToPushService()})):(l.b.error("[PushController] Lost connection to APNS"),this.delegate&&this.delegate.pushControllerDidDisconnect(this))},apnsConnectionDidReceiveNotification:function(e,t){var n=this.delegate;n&&n.didReceivePushNotification(t)},_apnsConnection:a.d({type:I}),_hasInitialized:a.d({type:Boolean}),_pendingCloudKitSubscriptions:a.d({type:Set,defaultValue:u.c(Set)}),_pendingCloudKitSubscriptionsPromise:a.d({type:s.a}),_pushServiceURL:a.d({type:String}),_pushTopics:a.d({type:Array}),_registeredCloudKitContainers:a.d({type:Set,defaultValue:u.c(Set)}),_registeredPushTopics:a.d({type:Set,defaultValue:u.c(Set)}),_sessionStore:a.d({type:V.a}),_token:a.d({type:String,get:function(){return this._sessionStore.value.pushToken},set:function(e){var t=this._sessionStore;t.value.pushToken=e,t.save()}}),_tokenTTL:a.d({type:Number}),_connectToPushService:function(){if(!this._apnsConnection){var e=this._token,t=this._tokenTTL,n=this._pushServiceURL,i=I.create();i.delegate=this,i.connect(e,t,n),this._apnsConnection=i}},_didRegisterPushTopics:function(e){for(var t=this._registeredPushTopics,n=0,i=e.length;n<i;n++)t.add(e[n]);this._fetchBadgeCounts(e)},_fetchBadgeCounts:function(e){var t,n=this;(t=e,Object(m.a)(Object(S.d)("push","getState"),{method:w.a.POST,body:{pushTopics:t}}).then(function(e){return e.status===f.a.OK?e.json().then(function(e){var t=x.deserialize(e);return L.a.create({status:d.a.SUCCESS,data:t})}):L.a.create({status:d.a.ERROR})})).then(function(e){if(e.isOK){var t=n.delegate,i=e.data.states;if(t&&i)for(var r=0,a=i.length;r<a;r++){var o=i[r],s=o.notification;s.topic=o.pushTopic,t.didReceivePushNotification(s)}}})},_fetchToken:function(){var e=this._token,t=this._tokenTTL,n=this._pushServiceURL,i=this._pushTopics;return e&&t&&n?s.a.resolve(d.a.SUCCESS):this._registerPushTopics(i)},_registerPushTopics:function(e){var t=this;return function(e,t,n){return F.create().registerPushTopics(e,43200,n)}(e,0,this._token).then(function(e){if(e.isOK){var n=e.data,i=n.pushServiceURL,r=n.registeredTopics,a=n.token,o=n.tokenTTL;t._token=a,t._tokenTTL=o,t._pushServiceURL=i,c.a(r)||t._didRegisterPushTopics(r)}return e.status})},staticMembers:{__QUALIFIED_CLASS_NAME__:"PushController"}})},function(e,t,n){"use strict";var i=n(819),r=n(849),a=n(1042),o=n(1045),s=n(850),c=(n(24),n(101)),l=n(81),u=n(98),d=n(80),h=n(78),p=n(86),f=n(109),m=n(202),g=(n(0),f.b.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:["crash-modal",{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"primaryInteractionModeClassName",attributes:{}}]}},__QUALIFIED_CLASS_NAME__:"CrashModalView"},primaryInteractionMode:u.b(),primaryInteractionModeClassName:u.b({readOnly:!0,dependencies:["primaryInteractionMode"],get:Object.assign(function(){return this.primaryInteractionMode===m.a.TOUCH?"primary-interaction-mode-touch":"primary-interaction-mode-mouse"},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])===m.a.TOUCH?"primary-interaction-mode-touch":"primary-interaction-mode-mouse"}})}),buttonDidActivate:function(e){}})),b=n(877),v=n(899),_=(n(0),b.a.extend(v.a,{staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"toggleArrow",attributes:{escape:"false"}}],classes:["toggle-arrow"],attributes:{"data-xpid":"toggle-arrow"}},{type:"ELEMENT",tagname:"span",children:[{type:"TEXT",data:"Details"}]}],classes:["crash-details-toggle"],attributes:{"data-xpid":"crash-details-toggle"}},__QUALIFIED_CLASS_NAME__:"CrashModalDetailsToggleView"},isDetailsCollapsed:u.b(!0),toggleArrow:u.b({readOnly:!0,dependencies:["isDetailsCollapsed"],get:Object.assign(function(){return this.isDetailsCollapsed?"&#x25b6;&#xFE0E;":"&#x25bc;&#xFE0E;"},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?"&#x25b6;&#xFE0E;":"&#x25bc;&#xFE0E;"}})})})),y=n(902),C=n(104),I=(n(0),n(14),n(12),y.a.extend({additionalClassNames:C.b(["crash-details-message-scroll-view"]),crashDetailsMessage:u.b(),contentView:u.b({defaultValue:p.c(b.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"crashDetailsMessage",attributes:{}}],classes:["crash-details-message"]}},crashDetailsMessage:u.b()})),downstreamBindings:{crashDetailsMessage:"(owner).crashDetailsMessage"}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"CrashDetailsMessageScrollView"}})),w=(n(25),n(0),n(14),n(12),b.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"a",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{}},{type:"VIEWOUTLET",tagname:"view",name:"iconView"}],classes:["base-link-view","privacy-policy"],attributes:{href:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"href",attributes:{},attribute:"href"},tabindex:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"tabIndex",attributes:{},attribute:"tabindex"},target:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"target",attributes:{},attribute:"target"},type:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"type",attributes:{},attribute:"type"},download:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"download",attributes:{},attribute:"download"},referrerpolicy:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"referrerpolicy",attributes:{},attribute:"referrerpolicy"}}}},__QUALIFIED_CLASS_NAME__:"BaseLink"},isFocusable:!0,href:u.b({type:"string"}),tabIndex:0,target:u.b({defaultValue:"_blank",type:"string"}),referrerpolicy:u.b({defaultValue:"noreferrer",type:"string"}),title:u.b({type:"string"})})),S=b.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"detailsToggleView"},{type:"VIEWOUTLET",tagname:"view",name:"detailsMessageScrollView"},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"privacyText",attributes:{}}],classes:["privacy-info"]},{type:"VIEWOUTLET",tagname:"view",name:"privacyLink"}],classes:["apple-privacy",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isPrivacyCollapsed",truevalue:"hide",attributes:{}}],attributes:{"data-xpid":"crash-apple-privacy"}}],classes:["crash-details"],attributes:{"data-xpid":"crash-details"}},__QUALIFIED_CLASS_NAME__:"CrashModalAccessoryView"},crashDetailsMessage:u.b(),isDetailsCollapsed:u.b(),isPrivacyCollapsed:u.b({dependencies:["isDetailsCollapsed"],readOnly:!0,defaultValue:!1,get:Object.assign(function(){return!this.isDetailsCollapsed},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])}})}),detailsToggleView:u.b({defaultValue:p.c(_,{action:"toggleDetails"}),downstreamBindings:{isDetailsCollapsed:"(owner).isDetailsCollapsed"}}),privacyText:d.d("CrashReporter.Privacy"),privacyLink:p.c(w,{href:d.d("CrashReporter.PrivacyPolicy.URL"),additionalClassNames:["privacy-policy"],title:d.d("CrashReporter.PrivacyPolicy.URL"),isFocusable:!0}),detailsMessageScrollView:u.b({dependencies:["isDetailsCollapsed"],readOnly:!0,get:Object.assign(function(){return this.isDetailsCollapsed?void 0:this._detailsMessageScrollView},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?void 0:this._detailsMessageScrollView}})}),_detailsMessageScrollView:u.b({defaultValue:p.c(I),downstreamBindings:{crashDetailsMessage:"(owner).crashDetailsMessage"}})}),A=n(158),O=n(59);function E(e){var t=[],n=void 0,i=void 0,r=void 0,a=void 0,o=void 0,s=void 0,c=void 0,l=void 0,u=void 0;for(n in e)if(i=e[n]){for(r="",s=!0,a=0,o=n.length;a<o;a++)(c=n.charAt(a))===(l=c.toUpperCase())?((0===a||u)&&(s=!1),s&&(r+=" "),u=!0):u=!1,r+=l;t.push(r),t.push(i+"\n")}return t.join("\n")}n(1),n(0),n(14),n(12),n(5),n(8),n(2),n(24),n(25);var T=c.b.extend({staticMembers:{showOnce:function(e){this._crashReporterShowing||(T.show(e),this._crashReporterShowing=!0)},didHideCrashModal:function(){this._crashReporterShowing=!1},_crashReporterShowing:l.d({type:Boolean,defaultValue:!1}),__QUALIFIED_CLASS_NAME__:"CrashModalViewController"},viewClass:g,view:u.b({downstreamBindings:{primaryInteractionMode:"(owner).primaryInteractionMode"}}),message:u.b({readOnly:!0,get:function(){return d.d("CrashReporter.Heading",{appName:O.a.localizedAppName})}}),description:u.b({readOnly:!0,get:function(){return d.d("CrashReporter.Title",{appName:O.a.localizedAppName})}}),primaryButton:{title:d.d("CrashReporter.SendToApple"),action:"clickedSendToApple"},alternateButton:{title:d.d("CrashReporter.Close"),action:"closeAlert"},canCreateRadarObserver:h.h("canCreateRadar",function(){this.otherButton=this.canCreateRadar?{title:d.d("CrashReporter.CreateRadar"),action:"clickedCreateRadar"}:null}),accessoryView:u.b({defaultValue:p.c(S),strong:!1,downstreamBindings:{crashDetailsMessage:"(owner).crashDetailsMessage",isDetailsCollapsed:"(owner).isDetailsCollapsed"}}),error:u.b(),shouldReloadOnClose:l.d({type:Boolean,defaultValue:!0}),errorReport:u.b({readOnly:!0,dependencies:["error"],get:Object.assign(function(){return A.a.createErrorReport(this.error)},{__CW__getter:function(e,t,n,i){return A.a.createErrorReport(i.internalGet(this,t[0+n]))}})}),crashDetailsMessage:u.b({readOnly:!0,dependencies:["errorReport"],get:Object.assign(function(){return E(this.errorReport)},{__CW__getter:function(e,t,n,i){return E(i.internalGet(this,t[0+n]))}})}),isDetailsCollapsed:u.b({type:"boolean",defaultValue:!0}),canCreateRadar:u.b({type:"boolean",readOnly:!0,defaultValue:!1,get:function(){return O.a.isAppleInternal}}),clickedSendToApple:function(){var e=this;A.a.recordErrorReportWithUserConsent(this.errorReport).finally(function(){e.closeAlert()})},clickedCreateRadar:function(){var e,t=O.a.radarComponentID,n=encodeURIComponent(O.a.radarComponentName||"iCloud.com"),i=encodeURIComponent(O.a.radarComponentVersion||"New Bugs"),r=encodeURIComponent(O.a.radarTitle),a=encodeURIComponent(function(e){var t=E(e);return e&&e.requestUUID&&(t+="\n\n\nSplunk:\nhttps://splunk-qa.icloud.apple.com/en-US/app/search/search?q=search%20index%3Dfeedbackws%20web_appName%3D%22"+O.a.appName+"%22%20web_request_uuid%3D"+e.requestUUID),t}(this.errorReport)),o=encodeURIComponent("Serious Bug"),s=encodeURIComponent("I Didn't Try");e=this.primaryInteractionMode===m.a.TOUCH?"tap-to-radar://new?ComponentID="+t+"&ComponentName="+n+"&ComponentVersion="+i+"&Title="+r+"&Description="+a+"&Classification="+o+"&Reproducibility="+s+"&AutoDiagnostics=-1":"rdar://new/problem/componentId="+t+"&title="+r+"&description="+a+"&classification="+o,window.open(e,"_blank"),this.closeAlert()},closeAlert:function(){var e=this.shouldReloadOnClose;this.hide(),T.didHideCrashModal(),e&&window.location.reload()},toggleDetails:function(){this.isDetailsCollapsed=!this.isDetailsCollapsed},viewDidLoad:function(){var e=arguments;this.__s._$1_k$viewDidLoad.apply(this,e),A.a.recordErrorCatcherWasDisplayed(this.error)},primaryInteractionMode:u.b({readOnly:!0,defaultValue:m.a.MOUSE,get:function(){return O.a.primaryInteractionMode}}),__superMap:{_$1_k$viewDidLoad:"viewDidLoad"}}),D=n(203),L=(n(1),n(0),n(14),n(12),n(5),n(8),n(2),n(24),n(25),{configure:function(e){Object.assign(O.a,e);var t=O.a.appName,n=O.a.buildInfo,i=O.a.isSendingStatsEnabled,r=O.a.flushInterval,a=O.a.sessionID;A.a.configure({appName:t,hostingAppName:e.hostingAppName,buildInfo:n,flushInterval:r,sessionID:a,location:window.location,userAgent:window.navigator.userAgent,stringifyExceptionContext:s.a}),i&&D.a.scheduleFlush()},handleError:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];T.showOnce({error:e,shouldReloadOnClose:t})},InteractionMode:m.a}),N=n(1040),M=n(1046),P=n(1047);n(1),n(0),n(14),n(12),n(5),n(8),n(2),n(24),n(25),n(16),n.d(t,"a",function(){return j});var x=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},R=!0,j=function(){function e(){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this)}return e.disableStats=function(){R=!1},e.showCrashReporter=function(e,t,n,r,s){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:L;t||i.b("[CrashReporterUtils] no crashing application info specified");var l=a.a.sharedInstance.primaryInteractionMode===o.a.TOUCH,u={sessionID:M.a.sharedInstance.identifier,isAppleInternal:r,isSendingStatsEnabled:R,primaryInteractionMode:l?L.InteractionMode.TOUCH:L.InteractionMode.MOUSE},d=t.localizedApplicationName,h=t.applicationIdentifier,p=t.buildInfo,f=t.radarComponentId;if(u.appName=h,u.localizedAppName=d,u.buildInfo=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.buildNumber,n=void 0===t?"UNKNOWN":t,i=e.masteringNumber,r=void 0===i?"UNKNOWN":i,a=e.locale;return n+"__"+r+"__"+(void 0===a?"UNKNOWN":a)}(p),u.masteringNumber=p.masteringNumber,u.buildNumber=p.buildNumber,u.isAppleInternal=r,r&&(u.radarComponentID=f,u.radarTitle=h+" crashed"),n){var m=n.applicationIdentifier;u.hostingAppName=m,u.cloudOSMasteringNumber=n.buildInfo.masteringNumber,u.cloudOSBuildNumber=n.buildInfo.buildNumber}c.configure(u),c.handleError(e,s),Object(P.c)(!0)},e.showCrashReporterWithTerminationReasonAndInfo=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments[2],a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:L,s=r.a(),c=s.isAppleInternal,l=s.hostingApplicationCrashInfo;e.showCrashReporterWithTerminationReasonAndInfoForHost(t,n,i,l,c,a,o)},e.showCrashReporterWithTerminationReasonAndInfoForHost=function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments[2],a=arguments[3],o=arguments[4],s=arguments.length>5&&void 0!==arguments[5]&&arguments[5],c=arguments.length>6&&void 0!==arguments[6]?arguments[6]:L;r||i.b("[CrashReporterUtils] no child application info specified");var l=n.error?n.error:n,u=l.buildInfo,d=n.calleeStack,h=x({type:t},l,{context:d}),p=r.configuration,f=r.radarComponentId,m=void 0===f?"UNKNOWN":f,g=r.applicationName,b=void 0===g?"UNKNOWN":g,v=p.displayName,_=new N.a(b,v,m,u);e.showCrashReporter(h,_,a,o,s,c)},e}()},function(e,t,n){"use strict";var i=n(818),r=n(81),a=["summary","title","content"],o=i.a.extend({staticMembers:{createFromDataHash:function(e){for(var t=0;t<a.length;t++)e[a[t]]=(n=e[a[t]],decodeURIComponent(atob(n).split("").map(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)}).join("")));var n;return o.create(e)},__QUALIFIED_CLASS_NAME__:"TermsSectionDetails"},summary:r.d({type:String}),type:r.d({type:String}),title:r.d({type:String}),version:r.d({type:Number}),content:r.d({type:String})});n.d(t,"a",function(){return s});var s=i.a.extend({staticMembers:{createFromResponse:function(e){var t=e.country,n=e.downloadICloudTerms,i=e.locale,r=e.iCloudTerms,a=o.createFromDataHash(r);return s.create({country:t,downloadICloudTerms:n,locale:i,iCloudTerms:a})},__QUALIFIED_CLASS_NAME__:"TermsDetails"},country:r.d({type:String}),downloadICloudTerms:r.d({type:String}),locale:r.d({type:String}),iCloudTerms:r.d({type:o})})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(131),o=(n(139),n(877)),s=n(81),c=n(820),l=n(78),u=n(869),d=n(892),h=n(80),p=n(863),f=n(881),m=n(100),g=n(1078),b=n(1156),v=(n(0),o.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"\n                        "},{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"appleLegalHtml",attributes:{escape:"false"}},{type:"TEXT",data:"\n                    "}],classes:["legal-footer-content",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isLightTheme",truevalue:"legal-footer-light",attributes:{}}]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isInitialLineWrapDone",truevalue:"",falsevalue:"line-wrap-in-progress",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"footerViewIsVisible",truevalue:"",falsevalue:"hide-footer-view",attributes:{}}]}},className:"legal-footer",__QUALIFIED_CLASS_NAME__:"LegalFooterView"},isLightTheme:r.b({type:Boolean,defaultValue:!1}),footerViewIsVisible:r.b({type:Boolean,defaultValue:!0}),isInitialLineWrapDone:r.b({type:Boolean,defaultValue:!1}),shouldShowCreateLink:r.b({type:Boolean}),handleCreateAccount:s.d({readOnly:!0,get:function(){var e=this;return function(t){return t.preventDefault(),e.sendEvent("createAccount"),!1}}}),appleLegalHtml:Object(b.a)({dependencies:["_footerViewLocValue","_footerViewContent"],readOnly:!0,get:Object.assign(function(){return c.a(this._footerViewLocValue,this._footerViewContent)},{__CW__getter:function(e,t,n,i){return c.a(i.internalGet(this,t[0+n]),i.internalGet(this,t[1+n]))}})}),isManagedAppleID:r.b(!1),debouncedMeasureToLineWrap:function(){_.then(this._measureToLineWrap.bind(this,this._ignoranceToken=Math.random()))},_createLinkObserver:l.h({inputs:["isAttached","shouldShowCreateLink"],callback:function(e,t){var n=this.element.getElementsByClassName("create")[0];if(n){var i=this.handleCreateAccount;e&&t?u.a(n,"click",i):d.a(n,"click",i)}}}),_baseLocValueChanged:l.h({inputs:["_baseLocValue"],callback:function(){this.isAttached&&(this._resetMeasurement(),this.debouncedMeasureToLineWrap())}}),_baseLocValue:Object(b.a)({dependencies:["isManagedAppleID","shouldShowCreateLink"],readOnly:!0,get:Object.assign(function(){var e=this.isManagedAppleID?"CloudOS.LegalFooterView.ManagedAppleId.Text":"CloudOS.LegalFooterView.Text",t=h.d(e);return e===t?"":("cn"===g.a.sharedInstance.current.dataUserDomain&&(t=t.replace(/\|(?=[^|]+copyrightText)/,'|  <a class="chinaICP" target="_blank" href="http://www.beian.miit.gov.cn">黔ICP备18008477号</a>  |')),this.shouldShowCreateLink&&(t=h.d("CloudOS.LegalFooterView.Text.Fragment.CreateAccount")+t),t)},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n])?"CloudOS.LegalFooterView.ManagedAppleId.Text":"CloudOS.LegalFooterView.Text",a=h.d(r);return r===a?"":("cn"===g.a.sharedInstance.current.dataUserDomain&&(a=a.replace(/\|(?=[^|]+copyrightText)/,'|  <a class="chinaICP" target="_blank" href="http://www.beian.miit.gov.cn">黔ICP备18008477号</a>  |')),i.internalGet(this,t[1+n])&&(a=h.d("CloudOS.LegalFooterView.Text.Fragment.CreateAccount")+a),a)}})}),_lineWrappedLocValue:r.b({type:String}),_footerViewLocValue:r.b({dependencies:["_baseLocValue","_lineWrappedLocValue"],readOnly:!0,get:Object.assign(function(){return this._lineWrappedLocValue||this._baseLocValue},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])||i.internalGet(this,t[0+n])}})}),_footerViewContent:Object(b.a)({type:Object,readOnly:!0,get:function(){var e=h.d("CloudOS.LegalFooterView.Text.Fragment.StatusUrl.Href"),t=h.d("CloudOS.LegalFooterView.Text.Fragment.StatusUrl.Title"),n=h.d("CloudOS.LegalFooterView.Text.Fragment.PrivacyUrl.Href"),i=h.d("CloudOS.LegalFooterView.Text.Fragment.PrivacyUrl.Title"),r=h.d("CloudOS.LegalFooterView.Text.Fragment.TermsUrl.Href"),a=h.d("CloudOS.LegalFooterView.Text.Fragment.TermsUrl.Title"),o=h.d("CloudOS.SchoolLegalFooterView.Text.Fragment.TermsUrl.Title"),s=h.d("CloudOS.BusinessLegalFooterView.Text.Fragment.TermsUrl.Title"),c=h.d("CloudOS.LegalFooterView.Text.Fragment.CreateAccount.Title"),l=(new Date).getFullYear();return{statusAnchorTag:'<a class="sytemStatus" target="_blank" href="'+e+'">'+t+"</a>",createAccountAnchorTag:'<a class="create" target="_blank" href="#">'+c+"</a>",privacyAnchorTag:'<a class="privacy" target="_blank" href="'+n+'">'+i+"</a>",termsAnchorTag:'<a class="terms" target="_blank" href="'+r+'">'+a+"</a>",schoolTermsAnchorTag:'<a class="terms" target="_blank" href="https://www.apple.com/legal/education/apple-school-manager/">'+o+"</a>",businessTermsAnchorTag:'<a class="terms" target="_blank" href="https://www.apple.com/legal/enterprise/apple-business-manager/">'+s+"</a>",copyrightText:'<span class="copyright">'+h.d("CloudOS.LegalFooterView.Text.Fragment.Copyright",{currentYear:l})+"</span>"}}}),_dividerWidth:void 0,_elementWidths:void 0,_oneLineWidth:void 0,_twoLineMaxWidth:void 0,_threeLineMaxWidth:void 0,_twoLineLocValue:void 0,_threeLineLocValue:void 0,_measureToLineWrap:function(e){if((!this._ignoranceToken||this._ignoranceToken===e)&&this._baseLocValue){var t=this._elementWidths,n=this._dividerWidth;if(!t){var i=this.element.querySelector(".legal-footer-content > span").querySelectorAll("a, span");if(0===i.length)return void p.b.warn("LegalFooterView: no footer elements exist to be measured");for(var r=[],a=0;a<i.length;a++)r.push(f.a(i[a]));if((t=this._elementWidths=r.map(function(e){return e.width}))[0].top!==t[t.length-1].top&&p.b.warn("LegalFooterView: initial unmeasured footer elements should all be in one line"),this._divider="  |  ",this._locValueParts=this._baseLocValue.split(/\s*\|\s*/),!n){var o=r[0],s=o.width,c=o.x,l=r[1],u=l.width,d=l.x;n=this._dividerWidth=c<d?d-c-s:c-d-u}}var h=f.a(this.element).width-30,m=this._oneLineWidth,g=this._twoLineMaxWidth,b=this._threeLineMaxWidth;if(m||(m=this._oneLineWidth=t.reduce(function(e,t){return e+n+t})),m<=h)this._lineWrappedLocValue=this._baseLocValue;else{if(!g){for(var v=-n,_=-n,y=-1,C=t.length;C-y>1;)if(v>=_){if((_+=n+t[C-1])>h)break;C--}else{if((v+=n+t[y+1])>h)break;y++}if(C-y==1){g=this._twoLineMaxWidth=Math.max(v,_);var I=this._divider,w=this._locValueParts,S=w.slice(0,C).join(I),A=w.slice(C).join(I);this._twoLineLocValue=S+"\n"+A}}if(g<=h)this._lineWrappedLocValue=this._twoLineLocValue;else{if(!b){var O=1/0,E=void 0,T=void 0,D=void 0,L=void 0,N=void 0,M=void 0,P=void 0,x=void 0;for(L=1;L<=t.length-2;L++)for(N=L+1;N<=t.length-1;N++)M=t.slice(0,L).reduce(function(e,t){return e+n+t}),P=t.slice(L,N).reduce(function(e,t){return e+n+t}),x=t.slice(N).reduce(function(e,t){return e+n+t}),(D=Math.max(M,P,x))<O&&(E=L,T=N,O=D);b=this._threeLineMaxWidth=O;var R=this._divider,j=this._locValueParts,F=j.slice(0,E).join(R),V=j.slice(E,T).join(R),U=j.slice(T).join(R);this._threeLineLocValue=F+"\n"+V+"\n"+U}b<=h?this._lineWrappedLocValue=this._threeLineLocValue:p.b.warn("LegalFooterView: Cannot find proper footer layout")}}this._lineWrappedLocValue&&(this.isInitialLineWrapDone=!0)}},_resetMeasurement:function(){this._elementWidths=void 0,this._dividerWidth=void 0,this._oneLineWidth=void 0,this._twoLineMaxWidth=void 0,this._threeLineMaxWidth=void 0,this.isInitialLineWrapDone=!1,this._lineWrappedLocValue=void 0}})),_=m.a.resolve(),y=n(23);n(1),n(0),n(2),n(139),n(4),n(3),n.d(t,"a",function(){return C});var C=i.a.extend({mixinDependencies:[a.a],viewClass:v,view:r.b({type:v,downstreamBindings:{footerViewIsVisible:"(owner).footerViewIsVisible",isManagedAppleID:"(owner).isManagedAppleID",shouldShowCreateLink:"(owner).shouldShowCreateLink"}}),footerViewIsVisible:r.b(!0),shouldShowCreateLink:r.b(),isManagedAppleID:r.b(!0),createAccount:function(){y.a.sharedInstance.createAccount()},didAttach:function(){var e=arguments;this.__s._$Lw$didAttach.apply(this,e),this._debouncedMeasureToLineWrap()},availableContentAreaDidChange:function(e){this._debouncedMeasureToLineWrap()},_debouncedMeasureToLineWrap:function(){this.view.debouncedMeasureToLineWrap()},__superMap:{_$Lw$didAttach:"didAttach"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegalFooterViewController"}})},function(e,t,n){"use strict";var i=n(890),r=n(81),a=n(86),o=n(98),s=n(1158),c=n(417),l=n(1103),u=n(38),d=(n(173),n(0),n(13),l.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",name:"backgroundView",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"dimsBackground",truevalue:"dimming-background-view",falsevalue:"modal-background-view",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"childViews",classes:["child-views"]}],name:"contentView",classes:["modal-content"]}]},__QUALIFIED_CLASS_NAME__:"ModalPresenterView"},dimsBackground:o.b({type:Boolean}),animateModalBackgroundViewIn:function(){var e=this.backgroundView;Object(u.c)(e).then(function(){Object(u.i)(e)})},animateModalBackgroundViewOut:function(){var e=this.backgroundView;Object(u.d)(e).then(function(){Object(u.i)(e)})},pointerDown:function(e){this.contentView.contains(e.targetView.element)?this.sendEvent("modalPresenterContentViewWasHit"):this.sendEvent("modalPresenterBackgroundViewWasHit")}})),h=n(605);n(1),n(0),n(2),n(6),n(173),n(13),n(125),n.d(t,"a",function(){return p});var p=s.a.extend({mixinDependencies:[i.a,c.a],defaultTransitioningDelegate:r.d({defaultValue:a.c(h.a)}),dismissable:r.d({type:Boolean,defaultValue:!1}),dimsBackground:o.b({type:Boolean,defaultValue:!0}),viewClass:d,view:o.b({downstreamBindings:{dimsBackground:"(owner).dimsBackground"}}),presentViewController:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.presentContentViewController(e,t)},dismissViewController:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.dismissContentViewController(e,t)},modalPresenterBackgroundViewWasHit:function(){this.dismissable&&this.dismissViewController(this.presentedViewController)},presentationTransitionWillBegin:function(e){var t=arguments;return this.show(),this.__s._$kj$presentationTransitionWillBegin.apply(this,t)},dismissalTransitionDidEnd:function(e){var t=arguments;return this.hide(),this.__s._$qY$dismissalTransitionDidEnd.apply(this,t)},presentModalContent:function(){this.dimsBackground&&this.view.animateModalBackgroundViewIn()},dismissModalContent:function(){this.dimsBackground&&this.view.animateModalBackgroundViewOut()},__superMap:{_$kj$presentationTransitionWillBegin:"presentationTransitionWillBegin",_$qY$dismissalTransitionDidEnd:"dismissalTransitionDidEnd"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ModalPresenterViewController"}})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(100),o=n(94),s=n(880),c=n(830),l={mixinDependencies:[o.a],isAppleLogoVisible:s.a.define(),navigationHeaderTitle:s.a.define(),isCancelButtonVisible:s.a.define(),performCancelButtonAction:c.a.define(),primaryButtonTitle:s.a.define(),performPrimaryAction:c.a.define(),primaryButtonDisabled:s.a.define(),secondaryButtonTitle:s.a.define(),performSecondaryAction:c.a.define(),tertiaryButtonTitle:s.a.define(),performTertiaryAction:c.a.define(),data:s.a.define()},u=n(1090),d=n(1088);n(0),n.d(t,"a",function(){return h});var h=i.a.extend({mixinDependencies:[l],isAppleLogoVisible:r.b({type:Boolean,defaultValue:!1}),navigationHeaderTitle:r.b({type:String,defaultValue:""}),isCancelButtonVisible:r.b({type:Boolean,defaultValue:!1}),performCancelButtonAction:function(){},primaryButtonTitle:r.b({type:String,defaultValue:""}),performPrimaryAction:function(){return a.a.resolve(u.a.create({status:d.a.SUCCESS}))},primaryButtonDisabled:r.b({type:Boolean,defaultValue:!1}),secondaryButtonTitle:r.b({type:String,defaultValue:""}),performSecondaryAction:function(){},tertiaryButtonTitle:r.b({}),performTertiaryAction:function(){},data:r.b({}),staticMembers:{__QUALIFIED_CLASS_NAME__:"NavigationLayoutViewContentController"}})},function(e,t,n){e.exports=!n(54)&&!n(34)(function(){return 7!=Object.defineProperty(n(327)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){t.f=n(45)},function(e,t,n){var i=n(74),r=n(75),a=n(249)(!1),o=n(329)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),c=0,l=[];for(n in s)n!=o&&i(s,n)&&l.push(n);for(;t.length>c;)i(s,n=t[c++])&&(~a(l,n)||l.push(n));return l}},function(e,t,n){var i=n(55),r=n(30),a=n(164);e.exports=n(54)?Object.defineProperties:function(e,t){r(e);for(var n,o=a(t),s=o.length,c=0;s>c;)i.f(e,n=o[c++],t[n]);return e}},function(e,t,n){var i=n(75),r=n(167).f,a={}.toString,o="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return o&&"[object Window]"==a.call(e)?function(e){try{return r(e)}catch(e){return o.slice()}}(e):r(i(e))}},function(e,t,n){"use strict";var i=n(164),r=n(250),a=n(213),o=n(57),s=n(212),c=Object.assign;e.exports=!c||n(34)(function(){var e={},t={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=i})?function(e,t){for(var n=o(e),c=arguments.length,l=1,u=r.f,d=a.f;c>l;)for(var h,p=s(arguments[l++]),f=u?i(p).concat(u(p)):i(p),m=f.length,g=0;m>g;)d.call(p,h=f[g++])&&(n[h]=p[h]);return n}:c},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){"use strict";var i=n(63),r=n(37),a=n(440),o=[].slice,s={};e.exports=Function.bind||function(e){var t=i(this),n=o.call(arguments,1),c=function(){var i=n.concat(o.call(arguments));return this instanceof c?function(e,t,n){if(!(t in s)){for(var i=[],r=0;r<t;r++)i[r]="a["+r+"]";s[t]=Function("F,a","return new F("+i.join(",")+")")}return s[t](e,n)}(t,i.length,i):a(t,i,e)};return r(t.prototype)&&(c.prototype=t.prototype),c}},function(e,t){e.exports=function(e,t,n){var i=void 0===n;switch(t.length){case 0:return i?e():e.call(n);case 1:return i?e(t[0]):e.call(n,t[0]);case 2:return i?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return i?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return i?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var i=n(32).parseInt,r=n(189).trim,a=n(333),o=/^[-+]?0[xX]/;e.exports=8!==i(a+"08")||22!==i(a+"0x16")?function(e,t){var n=r(String(e),3);return i(n,t>>>0||(o.test(n)?16:10))}:i},function(e,t,n){var i=n(32).parseFloat,r=n(189).trim;e.exports=1/i(n(333)+"-0")!=-1/0?function(e){var t=r(String(e),3),n=i(t);return 0===n&&"-"==t.charAt(0)?-0:n}:i},function(e,t,n){var i=n(116);e.exports=function(e,t){if("number"!=typeof e&&"Number"!=i(e))throw TypeError(t);return+e}},function(e,t,n){var i=n(37),r=Math.floor;e.exports=function(e){return!i(e)&&isFinite(e)&&r(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var i=n(336),r=Math.pow,a=r(2,-52),o=r(2,-23),s=r(2,127)*(2-o),c=r(2,-126);e.exports=Math.fround||function(e){var t,n,r=Math.abs(e),l=i(e);return r<c?l*(r/c/o+1/a-1/a)*c*o:(n=(t=(1+o/a)*r)-(t-r))>s||n!=n?l*(1/0):l*n}},function(e,t,n){var i=n(30);e.exports=function(e,t,n,r){try{return r?t(i(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw void 0!==a&&i(a.call(e)),t}}},function(e,t,n){var i=n(63),r=n(57),a=n(212),o=n(50);e.exports=function(e,t,n,s,c){i(t);var l=r(e),u=a(l),d=o(l.length),h=c?d-1:0,p=c?-1:1;if(n<2)for(;;){if(h in u){s=u[h],h+=p;break}if(h+=p,c?h<0:d<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:d>h;h+=p)h in u&&(s=t(s,u[h],h,l));return s}},function(e,t,n){"use strict";var i=n(57),r=n(165),a=n(50);e.exports=[].copyWithin||function(e,t){var n=i(this),o=a(n.length),s=r(e,o),c=r(t,o),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?o:r(l,o))-c,o-s),d=1;for(c<s&&s<c+u&&(d=-1,c+=u-1,s+=u-1);u-- >0;)c in n?n[s]=n[c]:delete n[s],s+=d,c+=d;return n}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var i=n(348);n(9)({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},function(e,t,n){n(54)&&"g"!=/./g.flags&&n(55).f(RegExp.prototype,"flags",{configurable:!0,get:n(214)})},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var i=n(30),r=n(37),a=n(352);e.exports=function(e,t){if(i(e),r(t)&&t.constructor===e)return t;var n=a.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var i=n(456),r=n(172);e.exports=n(258)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=i.getEntry(r(this,"Map"),e);return t&&t.v},set:function(e,t){return i.def(r(this,"Map"),0===e?0:e,t)}},i,!0)},function(e,t,n){"use strict";var i=n(55).f,r=n(166),a=n(171),o=n(115),s=n(169),c=n(170),l=n(338),u=n(450),d=n(168),h=n(54),p=n(150).fastKey,f=n(172),m=h?"_s":"size",g=function(e,t){var n,i=p(t);if("F"!==i)return e._i[i];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,l){var u=e(function(e,i){s(e,u,t,"_i"),e._t=t,e._i=r(null),e._f=void 0,e._l=void 0,e[m]=0,void 0!=i&&c(i,n,e[l],e)});return a(u.prototype,{clear:function(){for(var e=f(this,t),n=e._i,i=e._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];e._f=e._l=void 0,e[m]=0},delete:function(e){var n=f(this,t),i=g(n,e);if(i){var r=i.n,a=i.p;delete n._i[i.i],i.r=!0,a&&(a.n=r),r&&(r.p=a),n._f==i&&(n._f=r),n._l==i&&(n._l=a),n[m]--}return!!i},forEach:function(e){f(this,t);for(var n,i=o(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!g(f(this,t),e)}}),h&&i(u.prototype,"size",{get:function(){return f(this,t)[m]}}),u},def:function(e,t,n){var i,r,a=g(e,t);return a?a.v=n:(e._l=a={i:r=p(t,!0),k:t,v:n,p:i=e._l,n:void 0,r:!1},e._f||(e._f=a),i&&(i.n=a),e[m]++,"F"!==r&&(e._i[r]=a)),e},getEntry:g,setStrong:function(e,t,n){l(e,t,function(e,n){this._t=f(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?u(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),d(t)}}},function(e,t,n){"use strict";var i=n(456),r=n(172);e.exports=n(258)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return i.def(r(this,"Set"),e=0===e?0:e,e)}},i)},function(e,t,n){"use strict";var i,r=n(32),a=n(124)(0),o=n(69),s=n(150),c=n(437),l=n(459),u=n(37),d=n(172),h=n(172),p=!r.ActiveXObject&&"ActiveXObject"in r,f=s.getWeak,m=Object.isExtensible,g=l.ufstore,b=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(u(e)){var t=f(e);return!0===t?g(d(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return l.def(d(this,"WeakMap"),e,t)}},_=e.exports=n(258)("WeakMap",b,v,l,!0,!0);h&&p&&(c((i=l.getConstructor(b,"WeakMap")).prototype,v),s.NEED=!0,a(["delete","has","get","set"],function(e){var t=_.prototype,n=t[e];o(t,e,function(t,r){if(u(t)&&!m(t)){this._f||(this._f=new i);var a=this._f[e](t,r);return"set"==e?this:a}return n.call(this,t,r)})}))},function(e,t,n){"use strict";var i=n(171),r=n(150).getWeak,a=n(30),o=n(37),s=n(169),c=n(170),l=n(124),u=n(74),d=n(172),h=l(5),p=l(6),f=0,m=function(e){return e._l||(e._l=new g)},g=function(){this.a=[]},b=function(e,t){return h(e.a,function(e){return e[0]===t})};g.prototype={get:function(e){var t=b(this,e);if(t)return t[1]},has:function(e){return!!b(this,e)},set:function(e,t){var n=b(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,a){var l=e(function(e,i){s(e,l,t,"_i"),e._t=t,e._i=f++,e._l=void 0,void 0!=i&&c(i,n,e[a],e)});return i(l.prototype,{delete:function(e){if(!o(e))return!1;var n=r(e);return!0===n?m(d(this,t)).delete(e):n&&u(n,this._i)&&delete n[this._i]},has:function(e){if(!o(e))return!1;var n=r(e);return!0===n?m(d(this,t)).has(e):n&&u(n,this._i)}}),l},def:function(e,t,n){var i=r(a(t),!0);return!0===i?m(e).set(t,n):i[e._i]=n,e},ufstore:m}},function(e,t,n){var i=n(117),r=n(50);e.exports=function(e){if(void 0===e)return 0;var t=i(e),n=r(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var i=n(167),r=n(250),a=n(30),o=n(32).Reflect;e.exports=o&&o.ownKeys||function(e){var t=i.f(a(e)),n=r.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";var i=n(251),r=n(37),a=n(50),o=n(115),s=n(45)("isConcatSpreadable");e.exports=function e(t,n,c,l,u,d,h,p){for(var f,m,g=u,b=0,v=!!h&&o(h,p,3);b<l;){if(b in c){if(f=v?v(c[b],b,n):c[b],m=!1,r(f)&&(m=void 0!==(m=f[s])?!!m:i(f)),m&&d>0)g=e(t,n,f,a(f.length),g,d-1)-1;else{if(g>=9007199254740991)throw TypeError();t[g]=f}g++}b++}return g}},function(e,t,n){var i=n(50),r=n(335),a=n(122);e.exports=function(e,t,n,o){var s=String(a(e)),c=s.length,l=void 0===n?" ":String(n),u=i(t);if(u<=c||""==l)return s;var d=u-c,h=r.call(l,Math.ceil(d/l.length));return h.length>d&&(h=h.slice(0,d)),o?h+s:s+h}},function(e,t,n){var i=n(164),r=n(75),a=n(213).f;e.exports=function(e){return function(t){for(var n,o=r(t),s=i(o),c=s.length,l=0,u=[];c>l;)a.call(o,n=s[l++])&&u.push(e?[n,o[n]]:o[n]);return u}}},function(e,t,n){var i=n(188),r=n(466);e.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");return r(this)}}},function(e,t,n){var i=n(170);e.exports=function(e,t){var n=[];return i(e,!1,n.push,n,t),n}},function(e,t){e.exports=Math.scale||function(e,t,n,i,r){return 0===arguments.length||e!=e||t!=t||n!=n||i!=i||r!=r?NaN:e===1/0||e===-1/0?e:(e-t)*(r-i)/(n-t)+i}},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__119.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__16.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__128.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__131.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__125.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__130.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__133.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__35.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__126.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__123.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__132.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__22.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__23.png"},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819),r={staticMembers:{init:function(e){return this.isAbstract&&!this.hasOwnProperty("isAbstract")&&(this.isAbstract=!1),this.__s._$EA$init.call(this,e)},isAbstract:!0,__superMap:{_$EA$init:"init"}},init:function(e){this.constructor.isAbstract?Object(i.b)("this class cannot be instantiated because it is abstract"):this.__s._$Ke$init.call(this,e)},__superMap:{_$Ke$init:"init"}}},function(e,t,n){"use strict";function i(e,t,n){if(e)return e[t]=n,e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(79),r=n(844),a=n(370).a.extend({debugType:"ReadOnly Strong",nodeWillFree:function(e,t){var n=r.a.getDataForNode(t);Object(i.e)(n,e,"Observable strong ref for `"+this.key+"` (read-only default value)")},staticMembers:{__QUALIFIED_CLASS_NAME__:"UpstreamReadOnlyStrongNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(79),r=n(844),a=n(97).b.extend({debugType:"Strong",init:function(e){var t=arguments;this.__s._$9V$init.apply(this,t);var n=this.key;this._stateArrayReferenceDescriptor="Observable strong ref for `"+n+"` (upstream state preprocessing storage)",this._ownValueReferenceDescriptor="Observable strong ref for `"+n+"` (upstream own-value storage)"},_manageForWasDirtiedByParent:function(e,t){Object(i.e)(e,t,this._stateArrayReferenceDescriptor)},_manageForWasDirtiedBySelf:function(e,t,n){var r=this._stateArrayReferenceDescriptor;Object(i.f)(e,n,r),Object(i.e)(t,n,r)},_manageForCalculateValueForNode:function(e,t,n){Object(i.f)(e,n,this._ownValueReferenceDescriptor),Object(i.e)(t,n,this._stateArrayReferenceDescriptor)},previousValueWasReplaced:function(e,t,n){Object(i.e)(n,e,this._ownValueReferenceDescriptor)},nodeWillFree:function(e,t){var n=r.a.getStateDataForNode(t),a=r.a.getDataForNode(t);Object(i.e)(n,e,this._stateArrayReferenceDescriptor),Object(i.e)(a,e,this._ownValueReferenceDescriptor)},_stateArrayReferenceDescriptor:void 0,_ownValueReferenceDescriptor:void 0,__superMap:{_$9V$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"UpstreamStrongNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(79),r=n(845).a.extend({debugType:"Strong",validateDescendantDownstreamNodeManager:function(e,t,n){e.reference===i.c&&this._throwValidationError(e,t,"Illegal binding (reference strength) from `%{key}` (to `%{parentKey}`): You cannot bind a weak and a strong property together.")},staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseDownstreamStrongNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(79),r=n(844),a=n(371).a.extend({debugType:"Weak Computed",_manageForCalculateValueForNode:function(e,t,n){var r=this.key,a=e._weakReferenceTokens[r];Object(i.h)(t,a),e._weakReferenceTokens[r]=Object(i.g)(n,e,e.weaklyReferencedObjectWasDisposed,r)},nodeWillFree:function(e,t){var n=this.key,a=e._weakReferenceTokens[n],o=r.a.getDataForNode(t);Object(i.h)(o,a)},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownstreamWeakComputedNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(79),r=n(845).a.extend({debugType:"Unsafe",validateDescendantDownstreamNodeManager:function(e,t,n){e.reference!==i.b&&this._throwValidationError(e,t,"Illegal binding (reference strength) from `%{key}` (to `%{parentKey}`): You cannot bind a %{reference} property up to an unsafe one.")},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownstreamUnsafeNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(79),r=n(844),a=n(97).b.extend({calculateValueForNode:function(e,t,n,a){var o=arguments,s=this.key,c=e._weakReferenceTokens,l=c[s],u=r.a.getDataForNode(t);Object(i.h)(u,l);var d=this.__s._$L7$calculateValueForNode.apply(this,o);return c[s]=Object(i.g)(d,e,e.weaklyReferencedObjectWasDisposed,s),d},nodeWillFree:function(e,t){var n=this.key,a=e._weakReferenceTokens[n],o=r.a.getDataForNode(t);Object(i.h)(o,a)},__superMap:{_$L7$calculateValueForNode:"calculateValueForNode"},staticMembers:{__QUALIFIED_CLASS_NAME__:"UpstreamWeakRootValueNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(369),r=n(846),a=i.a.extend({staticMembers:{_beginBatchSetter:function(){return r.a.begin()},__QUALIFIED_CLASS_NAME__:"BatchSetterForObject"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(833);function r(e){if(!e||!Object(i.a)(e.stack))return null;var t=e.stack.trim().split("\n"),n=t.length;if(n>500){var r=n-500;t.splice(400,r,"… "+r+" lines truncated …")}return t.join("\n")}},function(e,t,n){"use strict";function i(e){return e=e||new r(16),a(e),e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}n.d(t,"a",function(){return i});var r=Uint8Array||Array,a=void 0;a=window.crypto&&window.crypto.getRandomValues?function(e){window.crypto.getRandomValues(e)}:function(e){for(var t=0,n=void 0,i=void 0,r=void 0;t<16;)for(i=Math.random(),n=0;n<4;t++,n++)r=0|(i*=256),e[t]=r,i-=r}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function r(e){var t="",n=void 0,r=void 0;for(n=0;n<16;n++)r=e[n],t+=i[r>>4],t+=i[15&r],3!==n&&5!==n&&7!==n&&9!==n||(t+="-");return t}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(497),r=n(855),a=n(830),o=n(85),s={mixinDependencies:[i.a,r.a],createIterator:function(){return this.createIteratorAt(0)},createIteratorAtEnd:function(){return this.createIteratorAt(this.get("length")-1)},createIteratorAt:Object(o.c)(a.a)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(830),r=n(85),a={mixinDependencies:[n(373).a],createIteratorAtEnd:Object(r.c)(i.a)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(499),r=n(856),a=n(85),o=n(81),s={mixinDependencies:[i.a],position:Object(o.d)(0),countAfter:Object(o.d)({readOnly:!0,get:function(){return this.get("length")-this.get("position")-1}}),countBefore:Object(o.d)({readOnly:!0,get:function(){return this.get("position")}}),moveTo:function(e){return this.set("position",e),this},length:Object(a.c)(r.a),moveBy:function(e){return this.moveTo(this.get("position")+e)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(830),r=n(85),a={done:!1,value:null},o={mixinDependencies:[n(180).a],moveToNext:Object(r.c)(i.a,{requiredKey:"moveBy",default:function(){return this.moveBy(1)}}),moveToPrevious:Object(r.c)(i.a,{requiredKey:"moveBy",default:function(){return this.moveBy(-1)}}),previous:function(){return a.value=this.get("value"),a.done=this.get("isValid"),this.moveBy(-1),a},moveBy:Object(r.c)(i.a,{requiredKey:["moveToNext","moveToPrevious"],default:function(e){if(e>0)for(;0!=e--;)this.moveToNext();else if(e<0)for(;0!=e++;)this.moveToPrevious();return this}})}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(818),r=n(81),a=n(864),o=n(78),s=n(98),c=n(99),l=0,u=i.a.extend(o.b,{id:Object(r.d)({get:function(){return this._id||(this._id=++l)}}),body:null,bodySerializer:Object(r.d)(a.a.sharedInstance),timeout:null,state:Object(s.b)(c.b.UNSENT),staticMembers:{__QUALIFIED_CLASS_NAME__:"Message"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(819),a=n(863),o=n(99),s=n(502),c=i.a.extend(s.a,{staticMembers:{_TransportClass:null,__QUALIFIED_CLASS_NAME__:"BaseTransport"},send:function(e,t){var n;e||Object(r.b)("No request to send",this),t?n=e.__transport:(e._retryCount=0,(n=e.__transport=new this.constructor._TransportClass)._request=e,e.triggerStatusEvent(o.b.WILLSEND)),this.prepare(e,t);var i=this.getBodyText(e);n.send(i),t||e._synchronous||e.triggerStatusEvent(o.b.SENT)},getBodyText:function(e){var t=e.get("bodySerializer"),n=e.get("body");return t&&(n=t.encode(n)),n},abort:function(e){e||Object(r.b)("No request to abort",this);var t=e.__transport;t?t.abort():a.b.warn("Cannot abort request because it is not in transit",e)},handleResponse:function(e,t){var n=this.createResponse(t);if(this._shouldFinalizeWithResponse(e,n)){e.set("response",n),e.set("state",o.b.COMPLETED);var i=this.computeStatuses(t);e._synchronous&&e.triggerStatusEvent(o.b.SENT),i&&e.triggerStatusEvents.apply(e,i),e.finalize()}},_shouldFinalizeWithResponse:function(e,t){var n=!0;if(e.shouldFinalizeWithResponse){var i=e._pendingRetryCallback=function(){i===e._pendingRetryCallback&&(delete e._pendingRetryCallback,e._retryCount++,this.send(e,!0))}.bind(this);n=e.shouldFinalizeWithResponse(t,i,e._retryCount)}return n},handleTimeout:function(e){this.abort(e);var t=this.createResponse(null);t.status=o.b.TIMEDOUT,this._shouldFinalizeWithResponse(e,t)&&(e.set("response",t),e.set("state",o.b.TIMEDOUT),e.triggerStatusEvent(o.b.FAILED),e.triggerStatusEvent(o.b.COMPLETED),e.finalize())},finalize:function(e){e&&(e.__transport&&(delete e.__transport._request,delete e.__transport),delete e._pendingRetryCallback,e._retryCount=0)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(821),r=n(94),a=n(847),o=n(830),s={mixinDependencies:[r.a,a.a],prepare:o.a.create(),send:o.a.create(),abort:o.a.create(),createResponse:o.a.create(),computeStatuses:o.a.create(),finalize:i.a}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(818),r=n(375),a=n(81),o=i.a.extend(r.a,{status:0,headers:"",body:Object(a.d)({get:function(){return this._cachedBody||(this._cachedBody=this.deserialize(this.get("encodedBody")))}}),encodedBody:Object(a.d)(),toJSON:function(){return this.getPropertiesAsObject("status","headers","encodedBody")},_cachedBody:Object(a.d)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"Response"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(828),r=n(818),a=n(180),o=n(81),s=r.a.extend(a.a,{_index:0,_original:null,_queue:null,_references:null,_clones:null,init:function(e,t){if(this.source=e,this.__s._$Rx$init.call(this),Object(i.a)(t,this.constructor)){this._original=t._original,this._container=t._container;var n=this._index=t._index;(this._clones=t._clones).push(this),this._queue=t._queue,(this._references=t._references)[n]++}else this._clones=[this],this._queue=[],this._references=[1],this._original=t,this.moveToNext()},moveToNext:function(){if(this._isValid){var e,t=this._index,n=this._queue,i=this._references;if(e=t<n.length?n[t]:this._advanceOriginal(),0==--i[t]&&0===t){i.shift(),n.shift();for(var r=this._clones,a=0,o=r.length;a<o;a++)r[a].index--}else t++;i[t]++,this._index=t,this._container=e}},add:function(e){if(this.isValid){var t,n=this._queue;if(0===n.length||!n[n.length-1].done)do{t=this._advanceOriginal()}while(!t.done)}return this._container={done:!1,value:e},!0},_advanceOriginal:function(){var e=this._original.next();return this._references.push(0),this._queue.push(e),e},_container:null,isValid:Object(o.d)({readOnly:!0,defaultValue:!0,get:function(){return!this._container.done}}),value:Object(o.d)({readOnly:!0,get:function(){return this.source.decode(this._container.value)}}),encodedValue:Object(o.d)({readOnly:!0,get:function(){return this._container.value}}),clone:function(){return this.constructor.create(this,this)},__superMap:{_$Rx$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"NativeIteratorWrapper"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(285),r=n(228),a=n(81),o=i.a.extend(r.a,{init:function(e,t){t||(t=e._map.keys()),this.__s._$9M$init.call(this,e,t)},add:function(e,t){var n=arguments,i=this.source;if(i.has(e))return!1;var r=this.__s._$Bn$add.apply(this,n);return i.set(e,t),r},remove:function(){if(this.isValid){var e=this.value;return this.source.delete(e),this.moveToNext(),e}},value:Object(a.d)({readOnly:!1,set:function(e){var t=this.source,n=this._container.value,i=t.get(n);return t.delete(n),this.add(e,i),e}}),__superMap:{_$9M$init:"init",_$Bn$add:"add"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MapKeyIterator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(285).a.extend({init:function(e,t){t||(t=e._map.values()),this.__s._$88$init.call(this,e,t)},__superMap:{_$88$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MapValueIterator"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return s});var i=n(78),r=n(155),a=n(144),o=n(108),s={mixinDependencies:[i.b,o.a,r.a],staticMembers:{handler:a.a.create({nodeType:"ATTRIBUTE",render:function(e,t,n){return n.value}})}}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return d});var i=n(78),r=n(87),a=n(839),o=n(828),s=n(155),c=n(144),l=n(108),u=n(64),d={mixinDependencies:[i.b,l.a,s.a],staticMembers:{handler:c.a.create({nodeType:"ATTRIBUTEOUTLET",generateLookupFunction:function(e,t){return a.a},register:function(e,t){var n=t.attribute,i=Object(u.a)(t);Object(u.c)(e,t,function(e,t){null===(t=i(t))||void 0===t||t.toString===Object.prototype.toString||t.toString===Function.prototype.toString?e.removeAttribute(n):e.setAttribute(n,t)})},render:function(e,t,n){var i=e.prototype[n.name];return null!=(i=Object(o.a)(i,r.a)?"":i)?i:""}})}}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return u});var i=n(78),r=n(823),a=n(86),o=n(155),s=n(144),c=n(108),l=n(64),u={mixinDependencies:[i.b,c.a,o.a],__classNameOutlet_addedHash:Object(a.c)(Object),staticMembers:{handler:s.a.create({nodeType:"CLASSNAMEOUTLET",generateLookupFunction:function(e,t){return function(e){return e=e.classList,t(e)}},register:function(e,t){var n=Object(l.a)(t),i="__templateObserver__previous"+t.name+Object(r.b)(t),a=Object(r.b)(t.parent);Object(l.c)(e,t,function(e,t){var r=this.__classNameOutlet_addedHash[a]=this.__classNameOutlet_addedHash[a]||{},o=this[i];o&&(r[o]--,0===r[o]&&e.remove(o));var s=n(t);s&&(r[s]=r[s]||0,0===r[s]&&e.add(s),r[s]++),this[i]=s})}})}}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return g});var i=n(882),r=n(89),a=n(78),o=n(819),s=n(196),c=n(828),l=n(108),u=n(155),d=n(385),h=n(64),p=i.a.create(),f=[],m=u.b.extend({nodeType:"MULTIVIEWOUTLET",register:function(e,t){var n=t.name;n||Object(o.b)("View template error: multi-view outlets (`<views>`) must specify a name (like `<views name='foo'>`).",{ViewClass:e}),Object(s.a)(n).length>1&&Object(o.b)("View template error: multi-view outlets (`<views>`) must have a single key name. '%{name}' is a path.",{ViewClass:e,name:n}),t.children&&t.children.length>0&&Object(o.b)("View template error: multi-view outlets (`<views>`) may not have child elements",{ViewClass:e}),this.__s._$br$register.call(this,e,t,!0);var i=t.contentsDidChangeNode=Object(l.b)(t);i.parent=t.parent,i.name=n+".contentsDidChange",e._registerRemovalHandler(n,this),Object(h.c)(e,t,function(e,t){for(var i;i=e.firstChild;)v.call(this,n,e,i.view,i);if(t)for(var r=t.length,a=0;a<r;a++){var o=t.objectAt(a);i=o.element,b.call(this,n,e,o)}},{get:function(e){return e||(e=r.b.create()),e},set:function(e){return Object(c.a)(r.b,e)||(e=r.b.create(e)),e}}),Object(h.c)(e,i,function(e,t){if(t&&!this._isCleaningUpOutlets){var i,a,o=t.context;!function(e){for(var t=e.length,n=0;n<t;n++){var i=e[n],a=i.item;a.hasOwnProperty("_changeRefCount")||(a._changeRefCount=0),i.operation===r.b.REMOVE?a._changeRefCount--:a._changeRefCount++}}(o);var s,c=o.length;for(s=0;s<c;s++){var l=o.objectAt(s);if(i=l.object,l.operation===r.b.REMOVE&&i.hasOwnProperty("_changeRefCount")&&i._changeRefCount<0)v.call(this,n,e,i,i.element),delete i._changeRefCount;else if(i.hasOwnProperty("_changeRefCount")&&i._changeRefCount>0){var u=l.index;a=e.childNodes[u],p.set(i,u),b.call(this,n,e,i,a),delete i._changeRefCount}}this._isCleaningUpOutlets=!0;var d,h=this.get(n);for(s=0,c=h.length;s<c;s++){i=h.objectAt(s);var m=p.get(i);void 0!==m&&s!==m&&f.push(s)}if(f.length>0){for(h.beginBatchedChanges(),s=0,c=f.length;s<c;s++)h.removeAt(f[s]);h.endBatchedChanges(),f.length=0}for(p.clear(),this._isCleaningUpOutlets=!1,s=h.length-1;s>=0;s--){var g=(i=h.objectAt(s)).element;_(e,g,d),d=g}}})},render:function(e,t,n){var i=arguments,r=n.attributes;if(r&&r.tagName){var a=r.tagName;delete r.tagName,n.tagname=a}else"views"===n.tagname&&(n.tagname="div");return this.__s._$2LA$render.apply(this,i)},removeChildView:function(e,t,n){var i=e[t];i.removeAt(i.indexOf(n))},disposeOutlet:function(e,t){if(e.getMetadata(t).readOnly||e.isDisposing){var n=e[t];if(!n||n.isDisposed)return;for(var i=0,r=n.length;i<r;i++){var a=n.objectAt(i);a&&!a.isDisposed&&(a.parent=null,a.parentKey="")}}else e[t]=null},__superMap:{_$br$register:"register",_$2LA$render:"render"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MultiViewOutletHandler"}}),g={mixinDependencies:[a.b,l.a,d.a],staticMembers:{handler:m.create()},_isCleaningUpOutlets:!1};function b(e,t,n,i){var r=n.parent;!r||r===this&&n.parentKey===e||r._removeChildView(n.parentKey,n);var a=n.element;return t.insertBefore(a,i||null),n.parent=this,n.parentKey=e,a}function v(e,t,n,i){return n&&!n.isDisposed&&(n.parent=null,n.parentKey=""),t.removeChild(i),i}function _(e,t,n){!n&&t===e.lastChild||n&&t===n.previousSibling||e.insertBefore(t,n||null)}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(94),r=n(199),a=n(880),o=n(287),s={mixinDependencies:[i.a,r.a],contentsDidChange:o.a.define(),length:a.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(281),r=n(78),a=n(513),o=n(98),s=i.a.extend(a.a,r.b,{position:Object(o.b)(),source:Object(o.b)(),isValid:Object(o.b)({dependencies:["wasRemoved","source.length","position"],get:Object.assign(function(){var e=arguments;return!this.wasRemoved&&this.__s._$E3$get.apply(this,e)},{__CW__getter:function(e,t,n,i){var r=arguments;return!i.internalGet(this,t[0+n])&&this.__s._$E3$get.apply(this,r)}}),__superMap:{_$E3$get:"get"}}),value:Object(o.b)({dependencies:["position","source","wasRemoved"],writeDependencies:[],get:Object.assign(function(){var e=arguments;return this.wasRemoved?this._previousValue:this.__s._$JS$get.apply(this,e)},{__CW__getter:function(e,t,n,i){var r=arguments;return i.internalGet(this,t[2+n])?this._previousValue:this.__s._$JS$get.apply(this,r)}}),set:function(e){var t=arguments;if(this.wasRemoved)return this._previousValue=e,e;var n=this.shouldObserveChanges;this.shouldObserveChanges=!1;var i=this.__s._$P3$set.apply(this,t);return this.shouldObserveChanges=n,i},__superMap:{_$JS$get:"get",_$P3$set:"set"}}),remove:function(){var e=arguments,t=this.shouldObserveChanges;this.shouldObserveChanges=!1;var n=this.__s._$TK$remove.apply(this,e);return this.shouldObserveChanges=t,this.propertyChanged("value"),n},initFromPool:function(){var e=arguments;this.__s._$WG$initFromPool.apply(this,e),this.source._registerIterator(this)},cleanup:function(){this.wasRemoved=!1,this.source._unregisterIterator(this),this.__s._$ZQ$cleanup.call(this)},wasRemoved:Object(o.b)(!1),_previousValue:Object(o.b)(),moveTo:function(){var e=arguments;return this.wasRemoved=!1,this.__s._$e8$moveTo.apply(this,e)},__superMap:{_$TK$remove:"remove",_$WG$initFromPool:"initFromPool",_$ZQ$cleanup:"cleanup",_$e8$moveTo:"moveTo"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ObservableArrayIterator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(180),r=n(85),a=n(78),o=n(880),s={mixinDependencies:[i.a,a.b],isValid:Object(r.c)(o.a),wasRemoved:Object(r.c)(o.a),shouldObserveChanges:!0}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(830),r=n(81),a=n(885).a.extend({at:i.a.define(),startHandle:Object(r.d)({readOnly:!0,get:function(){return this.at(0)}}),endHandle:Object(r.d)({readOnly:!0,get:function(){return this.at(this.source.length-1)}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseRandomAccessHandleProvider"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(81),a=n(856),o=n(78),s=n(98),c=i.a.extend(o.b,{HandleClass:Object(r.d)({readOnly:!0}),source:Object(r.d)({weak:!0}),startHandle:a.a.define(),delegate:Object(s.b)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseHandleProvider"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return u});var i=n(839),r=n(78),a=n(155),o=n(144),s=n(108),c=n(64),l=n(82),u={mixinDependencies:[r.b,s.a,a.a],staticMembers:{handler:o.a.create({nodeType:"STYLEOUTLET",generateLookupFunction:function(e,t){return i.a},register:function(e,t){var n=t.unit||"",i=t.property,r=Object(c.a)(t);Object(c.c)(e,t,function(e,t){t=r(t),n&&null!=t&&(t+=n),Object(l.c)(e,i,t)})}})}}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return r});var i=n(144),r={mixinDependencies:[n(108).a],staticMembers:{handler:i.a.create({nodeType:"TEXT",render:function(e,t,n){return t.createTextNode(n.data)}})}}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return u});var i=n(78),r=n(819),a=n(196),o=n(144),s=n(108),c=n(385),l=n(64),u={mixinDependencies:[i.b,s.a,c.a],staticMembers:{handler:o.a.create({nodeType:"VIEWOUTLET",register:function(e,t){var n=t.name;n||Object(r.b)("View template error: view outlets (`<view>`) must specify a name (like `<view name='foo'>`).",{ViewClass:e}),Object(a.a)(n).length>1&&Object(r.b)("View template error: view outlets (`<view>`) must have a single key name. '%{name}' is a path.",{ViewClass:e,name:n}),t.parent||Object(r.b)("View template error: view outlets (`<view>`) may not be the root element in your template.",{ViewClass:e});var i="_previous_"+n;e._registerRemovalHandler(n,this),Object(l.c)(e,t,function(e,t){var n=e.parentNode,i=e;return t?i=t.element:e.__cw__isTemplatePlaceholder__||(i=d(this.document)),i!==e&&n.replaceChild(i,e),i},void 0,function(e,t){var r=this[i];if(t!==r){if(r&&!r.isDisposed){var a=r.parent,o=r.parentKey;a===this&&o===n&&(r.isDisposed||(r.parent=null,r.parentKey=""))}if(t){var s=t.parent;s&&s._removeChildView(t.parentKey,t),t.parent=this,t.parentKey=n}this[i]=t}})},render:function(e,t,n){return d(t)},removeChildView:function(e,t,n){e[t]=null},disposeOutlet:function(e,t){if(e.getMetadata(t).readOnly||e.isDisposing){var n=e[t];if(!n||n.isDisposed)return;n.parent=null,n.parentKey=""}else e[t]=null}})}};function d(e){var t=e.createElement("div");return t.__cw__isTemplatePlaceholder__=!0,t}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(98),r={staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:["cw-modal-dialog"],attributes:{role:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"modalDialogRole",attributes:{},attribute:"role"},"aria-labelledby":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaLabelledByID",attributes:{},attribute:"aria-labelledby"},"aria-describedby":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaDescribedByID",attributes:{},attribute:"aria-describedby"},tabindex:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"tabIndex",attributes:{},attribute:"tabindex"}}}}},isFocusable:!0,tabIndex:Object(i.b)(-1),ariaLabelledByID:Object(i.b)(),ariaDescribedByID:Object(i.b)(),modalDialogRole:Object(i.b)("dialog")}},function(e,t,n){"use strict";n(1),n(0),n(8),n(2),n.d(t,"a",function(){return a});var i=n(386),r=n(276),a=i.a.extend({modalDialogDidDismiss:function(){this.hide()},dismissModalDialog:function(){this.view&&this.view.instanceOf(r.b)&&this.view.animateClosed()},staticMembers:{__QUALIFIED_CLASS_NAME__:"ModalDialogViewController"}})},function(e,t,n){"use strict";n(2),n(1),n(0),n.d(t,"a",function(){return c});var i=n(110),r=n(522),a=n(288),o=n(289),s=n(387),c=i.a.extend({staticMembers:{paneManagerClass:r.a,__QUALIFIED_CLASS_NAME__:"PaneManagerInitializer"},dependencies:[a.a,o.a,s.a],action:function(e){var t=this.constructor.paneManagerClass.create({isRootViewController:!0,application:e});e._paneManager=t,t.willAttach(),e.rootElement.appendChild(t.view.element),t._setIsAttached(!0),t.view.isAttached=!0,t.didAttach(),t.addPane(e.rootViewController)}})},function(e,t,n){"use strict";n(1),n(0),n.d(t,"a",function(){return m}),n(2);var i=n(879),r=n(81),a=n(100),o=n(86),s=n(277),c=n(90),l=n(98),u=n(859),d=n(87),h=n(871),p=n(877),f=n(819),m=h.a.extend(s.b,{viewClass:p.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"panes"}],classes:["cw-pane-container"]}}}}),application:null,nextResponder:Object(r.d)({get:function(){return this.application}}),wantsFocus:Object(l.b)({defaultValue:!0}),presentViewController:function(e){return this.addPane(e),a.a.resolve()},dismissViewController:function(e){return this.removePane(e),a.a.resolve()},addPane:function(e){e||Object(f.b)("Must pass a pane to addPane"),e.retain();var t=this._paneStack;-1!==t.indexOf(e)&&Object(f.b)("Cannot add duplicate pane onto stack",{pane:e}),e.willMoveToParentViewController(this),null===e.presentingViewController&&(e.presentingViewController=this),this.view.panes.push(e.view),this.addChildViewController(e),this._addFocusLayerToPane(e),t.push(e),this.propertyChanged("activePane"),e.shouldFocusPaneOnAttach&&e.focus(),e.didMoveToParentViewController(this),e.release()},_addFocusLayerToPane:function(e){var t=this._paneStack,n=t.length;if(e.inheritsFocusLayer&&0!==n){for(var i=void 0,r=n-1;r>=0;r--){var a=t[r];if(a.isFocusablePane){i=a.focusParent;break}}i||Object(f.b)("Cannot find a focus layer to inherit",{pane:e,paneStack:t}),e.focusParent=i}else{var o=s.a.create().retain(this,"A new focus layer managed by the PaneManager");o.parent=this,e.focusParent=o}e.focusParent.defaultFocusChild=e},removePane:function(e){e||Object(f.b)("Must pass a pane to removePane"),e.retain();var t=this._paneStack;0===t.length&&Object(f.b)("Cannot remove pane from empty pane stack",{pane:e});var n=t.indexOf(e);-1===n&&Object(f.b)("Cannot remove pane; not a current pane",{pane:e}),e.willMoveToParentViewController(null),e.presentingViewController=null,t.splice(n,1),this.view.panes.remove(e.view),this.removeChildViewController(e),this.propertyChanged("activePane"),this._removeFocusLayerFromPane(e),e.didMoveToParentViewController(null),e.release()},_removeFocusLayerFromPane:function(e){var t=e.focusParent,n=this.topFocusLayer;t!==n&&t?t.release(this,"A new focus layer managed by the PaneManager"):n&&n!==this&&(n.defaultFocusChild=this.topFocusablePane),e.focusParent=null},bringToFront:function(e){var t=this._paneStack,n=t.indexOf(e);-1===n&&Object(f.b)("Cannot bring to front; not a current pane",{pane:e}),t.splice(n,1),t.push(e),this.propertyChanged("activePane")},activePane:Object(l.b)({cacheable:!1,readOnly:!0,get:function(){var e=this._paneStack;return e[e.length-1]}}),focusTopFocusLayer:function(){var e=this.topFocusLayer;(!e.isFocusedLayer||!e.focus(!0))&&g()},topFocusablePane:Object(l.b)({cacheable:!1,readOnly:!0,dependencies:["activePane"],get:function(){for(var e=this._paneStack,t=e.length-1;t>=0;t--){var n=e[t];if(n.isFocusablePane)return n}return this}}),topFocusLayer:Object(l.b)({cacheable:!1,readOnly:!0,dependencies:["activePane"],get:function(){for(var e=this._paneStack,t=e.length-1;t>=0;t--){var n=e[t];if(n.isFocusablePane)return n.focusParent}return this},didChange:function(e){var t=this._previousTopFocusLayer;if(t&&(t._previousFocusableLayerState=t.isFocusableLayer,t.isFocusableLayer=!1),e){var n=e._previousFocusableLayerState;e.isFocusableLayer=n}this._previousTopFocusLayer=e,this.focusTopFocusLayer()}}),_previousTopFocusLayer:null,focusReleasedInApp:function(){var e=i.a.sharedInstance;return e.isIE||e.isFirefox?this._focusReleasedTimer.start():(this.wantsFocus=!1,g()),!0},_focusReleasedTimer:Object(r.d)(Object(o.c)(u.a,{delay:0,action:"_checkActiveElementAgainstFocusResponderAndKillBrowserFocus"})),_checkActiveElementAgainstFocusResponderAndKillBrowserFocus:function(){this._checkActiveElementAgainstFocusResponder(!0)},appHasFocus:Object(l.b)({binding:Object(d.c)("topFocusLayer.isFocusableLayer"),readOnly:!0}),appLostFocus:function(){var e=i.a.sharedInstance;return e.isIE||e.isFirefox?this._appLostFocusTimer.start():this.topFocusLayer.isFocusableLayer=!1,!0},_appLostFocusTimer:Object(r.d)(Object(o.c)(u.a,{delay:0,action:"_checkActiveElementAgainstFocusResponder"})),_checkActiveElementAgainstFocusResponder:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=document.activeElement;Object(c.b)(t)===this.topFocusLayer.focusResponder&&document.hasFocus()||(this.topFocusLayer.isFocusableLayer=!1,e&&g())},appGainedFocusability:function(){return this.topFocusLayer.isFocusableLayer=!0,!0},appWantsFocus:function(){return this.wantsFocus=!0,!0},didReceiveFocus:function(e){return null===e.relatedTarget&&this.appGainedFocusability(),this.focusTopFocusLayer(),!0},_paneStack:Object(o.c)(Array),staticMembers:{__QUALIFIED_CLASS_NAME__:"PaneManager"}});function g(){var e,t=i.a.sharedInstance;if(t.isIE||t.isEdge)try{(e=document.activeElement)&&e.blur&&e.blur()}catch(e){}else(e=document.activeElement)&&e.blur&&e.blur()}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={};n(233).a.get("sharedInstance").generate(i,{keyDown:"keydown",keyPress:"keypress",keyUp:"keyup",compositionStart:"compositionstart",compositionUpdate:"compositionupdate",compositionEnd:"compositionend"})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(525),r={};n(233).a.get("sharedInstance").generate(r,{didReceiveFocus:"focus",didReceiveBlur:"blur"},function(e){return function(t){var n=i.a.create({nativeEvent:t});n.cwType=e,this.dispatchEvent(n)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(104),r=n(874).a.extend({staticMembers:{nativePropertiesToCopy:Object(i.b)(["target"]),eventPropertiesToCopy:Object(i.b)(["target"]),__QUALIFIED_CLASS_NAME__:"FocusEvent"},cwForceBubble:!0,target:null})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={};n(233).a.get("sharedInstance").generate(i,{beforeInput:"beforeinput",input:"input",selectionDidChange:"select"})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={};n(233).a.get("sharedInstance").generate(i,{dragStart:"dragstart",dragEnter:"dragenter",dragOver:"dragover",dragLeave:"dragleave",drag:"drag",drop:"drop",dragEnd:"dragend"});var r=i.dragover;i.dragover=function(e){r.apply(this,arguments),e.preventDefault()};var a=i.drop;i.drop=function(e){a.apply(this,arguments),e.preventDefault()}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={change:function(e){e.cwType="change",this.dispatchEvent(e)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(893),r="onwheel"in document||"WheelEvent"in window?"wheel":"mousewheel",a={};a[r]=function(e){(e=i.a.create({nativeEvent:e})).cwType="wheel",this.dispatchEvent(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={};["pointerOver","pointerDown","pointerMove","pointerUp","pointerOut","pointerCancel"].forEach(function(e){i[e.toLowerCase()]=function(t){t.cwType=e,this.dispatchEvent(t)}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(103),r={},a={pointerOver:"mouseover",pointerDown:"mousedown",pointerMove:"mousemove",pointerUp:"mouseup",pointerOut:"mouseout",pointerCancel:"mousecancel"},o=function(e){return function(t){var n=i.a.create({cwType:e,nativeEvent:t,pointerType:i.b.MOUSE,width:1,height:1});this.dispatchEvent(n)}};for(var s in a)r[a[s]]=o(s)},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(100),r=n(819),a=n(869),o=n(892),s=n(110).a.extend({action:function(e){if(window.__CW_BLOBS_READY)return i.a.resolve();var t=i.a.create(),n=function(){t.resolve()},s=function(e){t.reject(e.data||Object(r.b)("Failed to preload images in SpritePreloader"))};return Object(a.a)(window,"__CW_SPRITE_LOADED",n),Object(a.a)(window,"__CW_SPRITE_ERROR",s),t.finally(function(){Object(o.a)(window,"__CW_SPRITE_LOADED",n),Object(o.a)(window,"__CW_SPRITE_ERROR",s)})},staticMembers:{__QUALIFIED_CLASS_NAME__:"SpritePreloader"}})},function(e,t,n){"use strict";n(1),n.d(t,"a",function(){return s});var i=n(110),r=n(288),a=n(289),o=n(387),s=i.a.extend({dependencies:[r.a,a.a,o.a],action:function(e){var t=window.document.createElement("div");t.innerHTML='<div id="cw-aria-live-region" aria-live="polite"></div>';var n=t.firstChild;n.style.cssText="position:fixed; top:-1px; width:1px; height:1px; overflow:hidden;",e.rootElement.appendChild(n)},staticMembers:{__QUALIFIED_CLASS_NAME__:"AriaLiveRegionInitializer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(879),r=n(878),a=n(127);function o(e,t){Object(a.a)(t||r.a.get("sharedInstance"),e,"data-"),Object(a.a)(t||i.a.get("sharedInstance"),e,"data-")}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return i}),n(8);var i=n(877).a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"contentView"}]}},className:"cw-ui-popup-view",__QUALIFIED_CLASS_NAME__:"PopupView"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(102),r=regeneratorRuntime.mark(c),a=i.b.Possible,o=i.b.Ended,s=i.b.Failed;function c(e){var t;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return void(e.next=2);case 2:if((t=e.sent)===a){e.next=5;break}throw new Error("DiscreteGestureRecognizer: state must be initialized to Possible.");case 5:return void(e.next=7);case 7:if((t=e.sent)!==s){e.next=12;break}return e.abrupt("return");case 12:if(t!==o){e.next=16;break}return e.abrupt("return");case 16:throw new Error("GestureRecognizer: invalid state "+t+" for DiscreteGestureRecognizer after Possible. Must be either Ended or Failed.");case 17:case"end":return e.stop()}},r,this)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(874),r=n(81),a=i.a.extend({deltaX:Object(r.d)(0),deltaY:Object(r.d)(0),consumeX:o("deltaX"),consumeY:o("deltaY"),isEmpty:Object(r.d)({get:function(){return 0===this.get("deltaX")&&0===this.get("deltaY")}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ScrollEvent"}});function o(e){return function(t){var n,i,r=this.get(e);return void 0===t?t=r:(n=t,i=r,t=Math.abs(n)<Math.abs(i)?n:i),this.set(e,r-t),t}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(291),r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},a=function(e){function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var i=n.initialOffset,a=void 0===i?0:i,o=n.initialPosition,s=void 0===o?0:o,c=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,r({},n,{initialPosition:s-a})));return c.initialOffset=a,c}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.calculatePositionAtTime=function(e){var t=1e3*this.initialVelocity;e/=1e3;var n=Math.exp(-11.25*e);return(this.initialOffset+t*e)*n},t.prototype.calculateVelocityAtTime=function(e){var t=1e3*this.initialVelocity,n=-11.25*(e/=1e3);return Math.exp(n)*((1+n)*t+-11.25*this.initialOffset)/1e3},t.prototype.calculateTimeAtPosition=function(e){throw new Error("BounceAnimationg#calculateTimeAtPosition: not implemented")},t}(i.a)},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(847),a=n(837),o=n(832),s=n(56),c=n(540),l=i.a.extend(r.a,c.a,{jsonRpcVersion:"2.0",generateCallMessageFor:function(e){for(var t={jsonrpc:this.jsonRpcVersion,id:"CW.JsonRpcMessageFormatterV2:"+ ++u,method:e},n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.length>0&&(t.params=i),t},generateNotificationMessageFor:function(e){for(var t={jsonrpc:this.jsonRpcVersion,method:e},n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return i.length>0&&(t.params=i),t},generateErrorMessageFor:function(e,t){var n=t.code;Object(a.a)(n)||(n=s.a.INTERNAL_ERROR);var i=t.message,r=t.data,c={jsonrpc:this.jsonRpcVersion,id:e,error:{code:n,message:i}};return Object(o.a)(r)&&(c.error.data=r),c},generateResultMessageFor:function(e,t){return{jsonrpc:this.jsonRpcVersion,id:e,result:t}},staticMembers:{__QUALIFIED_CLASS_NAME__:"JsonRpcMessageFormatterV2"}}),u=0},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],jsonRpcVersion:"0",generateCallMessageFor:r.a.define(),generateErrorMessageFor:r.a.define(),generateNotificationMessageFor:r.a.define(),generateResultMessageFor:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(905),r=n(866);function a(e,t){if("*"===e||"*"===t)return!0;var n=r.a.parse(e),a=r.a.parse(t);if(Object(i.a)(n.protocol)||Object(i.a)(a.protocol)||n.protocol!==a.protocol)return!1;if(Object(i.a)(n.hostname)||Object(i.a)(a.hostname)||n.hostname!==a.hostname)return!1;if(e===t)return!0;var o=n.port;Object(i.a)(o)&&(o="https:"===n.protocol?"443":"80");var s=a.port;return Object(i.a)(s)&&(s="https:"===a.protocol?"443":"80"),o===s}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return c}),n(17);var i=n(877),r=n(903),a=n(86),o=n(98),s=n(932),c=i.a.extend(r.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"itemViews"}],classes:["cw-collection-view"]}},className:"cw-ui-collections-collection-view",__QUALIFIED_CLASS_NAME__:"CollectionView"},_scrollBy:function(e,t){this.sendEvent("didScroll",e,t)},itemViews:Object(o.b)({strong:!0,defaultValue:Object(a.c)(s.a)})})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(104),r=n(876),a=n(819),o=n(903),s={viewClass:Object(i.b)({isFocusable:!0}),init:function(){var e=arguments;this.__s._$D1$init.apply(this,e),this.view.hasMixin(o.a)||Object(a.b)("KeyboardScrollViewControllerSupport cannot be used on a ViewController where the view lacks ScrollSupport.")},keyDown:function(e){var t=!0,n=void 0;switch(e.keyCode){case r.a.SPACE:n=e.shiftKey?"scrollToPreviousPage":"scrollToNextPage";break;case r.a.PAGEUP:n="scrollToPreviousPage";break;case r.a.PAGEDOWN:n="scrollToNextPage";break;case r.a.HOME:n="scrollToFirstPage";break;case r.a.END:n="scrollToLastPage";break;default:t=!1}return t&&(this.sendEvent(n,e),e.preventDefault()),t||"function"==typeof this.__s._$VY$keyDown&&!!this.__s._$VY$keyDown.call(this,e)},scrollToPreviousPage:function(){this.view.pageUp()},scrollToNextPage:function(){this.view.pageDown()},scrollToFirstPage:function(){this.view.scrollTo(void 0,0)},scrollToLastPage:function(){this.view.scrollTo(void 0,100)},__superMap:{_$D1$init:"init",_$VY$keyDown:"keyDown"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(228),a=n(81),o=n(823),s=n(227),c=i.a.extend(r.a,{source:null,_map:null,_keys:null,init:function(e,t){this.source=e;var n=this._map=e._map;this._keys=t||Object.keys(n),this.__s._$92$init.call(this)},moveToNext:function(){return this._keys.pop(),this},isValid:Object(a.d)({readOnly:!0,get:function(){return!!this._keys.length}}),_getCurrentItem:function(){var e=this._keys;return this._map[e[e.length-1]]},value:Object(a.d)({get:function(){return this.source.decode(this.encodedValue)},set:function(e){this.encodedValue=this.source.encode(e)}}),encodedValue:Object(a.d)({get:function(){return this._getCurrentItem()},set:function(e){var t=this._getCurrentItem();return this.source.encodedRemove(t),this.source.encodedAdd(e),this._keys.pop(),this._keys.push(Object(o.b)(e)),e}}),clone:function(){return this.constructor.create(this.source,Object(s.a)(this._keys))},remove:function(){var e=this.get("value"),t=this.source.remove(e);return this.moveToNext(),t},add:function(e){return this._keys.pop(),this._keys.push(Object(o.b)(e)),this.source.add(e)},__superMap:{_$92$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SetIterator"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n(78),r=n(98),a=n(844),o=n(106),s=n(142),c=n(818),l=n(86),u=n(853),d=n(863),h=n(819),p=n(73),f=n(546),m=c.a.extend(i.b,{collection:Object(r.b)(),layoutDelegate:Object(r.b)({strong:!0}),layoutMetrics:Object(r.b)({strong:!0}),presenter:Object(r.b)({strong:!0}),viewportWidth:Object(r.b)(1024),viewportHeight:Object(r.b)(768),horizontalOverdraw:Object(r.b)(0),verticalOverdraw:Object(r.b)(0),_updateViewportBounds:Object(i.h)("viewportWidth","viewportHeight","horizontalOverdraw","verticalOverdraw",function(e,t,n,i){var r=this.viewportBounds;a.a.pause(),r.x=-n,r.y=-i,r.width=e+2*n,r.height=t+2*i,a.a.resume()}),viewportBounds:Object(r.b)({strong:!0,defaultValue:function(){return o.a.create({x:-this.horizontalOverdraw,y:-this.verticalOverdraw})}}),spaceAroundViewport:Object(r.b)({strong:!0,defaultValue:Object(l.c)(f.a)}),visibleCells:Object(r.b)({strong:!0,defaultValue:u.a.create().retain(window,"shared visibleCells initial value")}),_tmp_cellsArray:Object(l.c)(Array),showItem:function(e,t,n){var i=this.collection.handleFor(e);if(i.isValid){var r=s.a.create(t,n);this.update(p.a.create({itemShown:i,itemShownAt:r}))}else d.b.warn("LayoutController: Attempted to scroll to item not in collection",{item:e})},scrollToItem:function(e){var t=this.collection.handleFor(e);this.scrollToHandle(t)},scrollToHandle:function(e){e.isValid&&!e.wasRemoved?this.update(p.a.create({itemScrolledTo:e})):d.b.warn("LayoutController: Attempted to scroll to handle not in collection",{handle:e,handlePosition:e.position,handleIsValid:e.isValid,handleWasRemoved:e.wasRemoved})},rectForItem:function(e){var t=this.visibleCells;if(0===t.length)return null;var n=this.layoutDelegate.getCellForItem(this,this.collection,t,e);return n?n.rect:void 0},_beginUpdate:function(e,t,n){return this._isUpdating&&Object(h.b)("LayoutController cannot update while an update is already in progress.",{invalidationContext:e}),this._isUpdating=!0,n||Object(h.b)("LayoutController#_beginUpdate: layoutDelegate is required",{invalidationContext:e}),n.acquireVisibleCells(this,t,e)},_finishUpdate:function(e,t,n,i,r){this.visibleCells=r,this._handleItemEnters(r),this._handleItemMoves(r),this._handleItemExits(i),i.clear(),this._isUpdating=!1,this.computeSpaceAroundViewport(e)},update:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p.a.create({everythingChanged:!0});e.retain(this,"LayoutController#update: invalidationContext");var t=this.collection,n=this.layoutDelegate;if(n){var i=this._beginUpdate(e,t,n),r=this.visibleCells;r&&r.length>0&&n.reusePreviousVisibleCells(this,t,i,r,e),0===i.length&&n.initializeVisibleCells(this,t,i,r,e),0!==i.length&&n.completeVisibleCells(this,t,i,e),n.finalizeVisibleCells(this,t,i,e),this._finishUpdate(e,t,n,r,i),e.release(this,"LayoutController#update: invalidationContext")}else e.release(this,"LayoutController#update: invalidationContext")},_handleItemExits:function(e){var t,n,i=e.length,r=this._tmp_cellsArray;for(r.length=0,t=0;t<i;t++)(n=e.objectAt(t)).isLaidOut||r.push(n);var a=this.presenter;for(a.cellsWillExit(r),i=r.length,t=0;t<i;t++)(n=r[t]).wasLaidOut=!1,a.cellDidExit(n);a.cellsDidExit(r)},_handleItemEnters:function(e){var t,n,i=e.length,r=this._tmp_cellsArray;for(r.length=0,t=0;t<i;t++)(n=e.objectAt(t)).wasLaidOut||r.push(n);var a=this.presenter;for(a.cellsWillEnter(r),i=r.length,t=0;t<i;t++)n=r[t],a.cellDidEnter(n),n.wasLaidOut=!0;a.cellsDidEnter(r),r.length=0},_handleItemMoves:function(e){var t=this.presenter;t.cellsWillMove(e);for(var n=0,i=e.length;n<i;n++){var r=e.objectAt(n);t.cellDidMove(r)}t.cellsDidMove(e)},computeSpaceAroundViewport:function(e){var t=this.spaceAroundViewport;return a.a.pause(),0===this.visibleCells.length?(t.left=0,t.right=0,t.top=0,t.bottom=0):(t=this.layoutDelegate.computeSpaceAroundViewport(this,e),this.spaceAroundViewport=t),a.a.resume(),t},staticMembers:{__QUALIFIED_CLASS_NAME__:"CollectionLayoutController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(818),r=n(78),a=n(98),o=i.a.extend(r.b,{left:Object(a.b)(0),top:Object(a.b)(0),right:Object(a.b)(0),bottom:Object(a.b)(0),isEstimated:Object(a.b)(!1),toString:function(){var e=this.left,t=this.top,n=this.right,i=this.bottom;return this.__s._$hH$toString.call(this)+" { left: "+e+", top: "+t+", right: "+n+", bottom: "+i+" }"},__superMap:{_$hH$toString:"toString"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SpaceAroundViewport"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(94),r=n(85),a=n(830),o={mixinDependencies:[i.a],itemsInsertedAtIndex:Object(r.c)(a.a),itemsRemovedAtIndex:Object(r.c)(a.a)}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return m});var i=n(78),r=n(98),a=n(81),o=n(86),s=n(294),c=n(853),l=n(818),u=n(877),d=n(819),h=n(828),p=n(549),f={mixinDependencies:[i.b],mappedViews:Object(a.d)({strong:!0,defaultValue:Object(o.c)(s.a)}),activeViews:Object(a.d)({strong:!0,defaultValue:Object(o.c)(c.a)}),viewsToCells:Object(a.d)({strong:!0,defaultValue:Object(o.c)(Map)}),cellsToViews:Object(a.d)({strong:!0,defaultValue:Object(o.c)(Map)}),pools:Object(a.d)({strong:!0,defaultValue:Object(o.c)(Map)}),viewForCell:function(e,t){var n=this.cellsToViews.get(e);if(!n){if(!t)return null;n=this._getViewOfClass(t),this.cellsToViews.set(e,n),this.viewsToCells.set(n,e)}return n},cellForView:function(e){return this.viewsToCells.get(e)},releaseViewForItem:function(e){var t=this.cellsToViews.get(e);t||Object(d.b)("No view for cell"),this._releaseView(t,e),this._poolView(t)},releaseView:function(e){var t=this.viewsToCells.get(e);e||Object(d.b)("No cell for view"),this._releaseView(e,t),this._poolView(e)},_getViewOfClass:function(e){var t=this.pools.get(e);t||(t=[],this.pools.set(e,t));var n=void 0;return t.length>0?n=t.pop():(n=this.viewForViewClass(e),this.mappedViews.push(n)),n.isPooledInDom=!1,this.activeViews.push(n),n},viewForViewClass:function(e){return e.create()},_releaseView:function(e,t){this.activeViews.remove(e),this.cellsToViews.delete(t),this.viewsToCells.delete(e)},_poolView:function(e){this.pools.get(e.constructor).push(e),e.isPooledInDom=!0}},m=l.a.extend(f,p.a,{itemViewClass:Object(r.b)(u.a),_oldItemViewClass:null,_clearItemViewCache:Object(i.h)("itemViewClass",function(e){var t=this._oldItemViewClass;t&&this.replaceViewsOfClass(t),this._oldItemViewClass=e}),replaceViewsOfClass:function(e){for(var t=this.activeViews,n=t.length-1;n>=0;n--){var i=t.objectAt(n);if(Object(h.a)(i,e)){var r=this.viewsToCells.get(i);this.cellDidExit(r),this.cellDidEnter(r)}}},views:Object(r.b)(),dataProperty:"content",viewClassKeysByCellType:{item:"itemViewClass"},itemViewClassForItem:function(e){var t=e.cellType,n=this.viewClassKeysByCellType[t],i=this[n];return i||Object(d.b)('ItemViewPresenter: no view class for cell type "%{cellType}" and view class key "%{viewClassKey}"',{cellType:t,viewClassKey:n}),i},viewForViewClass:function(e){return e.create({layoutMetrics:this.bindingFor("layoutMetrics")})},cellDidEnter:function(e){var t=this.viewForCell(e,this.itemViewClassForItem(e));this.itemViewDidEnter(t,e),t.isAttached||this.views.push(t),t.layout=e},cellDidMove:function(e){var t=this.viewForCell(e);t&&this.itemViewDidMove(t,e)},cellDidExit:function(e){var t=this.viewForCell(e);this.itemViewDidExit(t,e),this.releaseViewForItem(e)},itemViewDidEnter:function(e,t){e.set(this.dataProperty,t.value)},itemViewDidMove:function(e,t){},itemViewDidExit:function(e,t){},staticMembers:{__QUALIFIED_CLASS_NAME__:"ItemViewPresenter"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(78),r=n(98),a=n(94),o=n(85),s=n(830),c={mixinDependencies:[a.a,i.b],layoutMetrics:Object(r.b)({strong:!0}),cellsWillEnter:function(e){},cellDidEnter:Object(o.c)(s.a),cellsDidEnter:function(e){},cellsWillMove:function(e){},cellDidMove:Object(o.c)(s.a),cellsDidMove:function(e){},cellsWillExit:function(e){},cellDidExit:Object(o.c)(s.a),cellsDidExit:function(e){}}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e.charAt(0).toUpperCase()+e.slice(1)}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(94),r=n(86),a=n(818),o=n(85),s=n(79),c=n(78),l=n(98),u=n(87),d=n(880),h=n(396),p={mixinDependencies:[i.a,c.b],selection:Object(l.b)(Object(u.c)("selectionController.selection")),selectedItem:Object(l.b)(Object(u.c)("selectionController.selectedItem")),selectionController:Object(l.b)({strong:!0,downstreamBindings:{collection:"(owner).collection",delegate:"(owner).selectionDelegate",isEmptySelectionEnabled:"(owner).isEmptySelectionEnabled",isMultipleSelectionEnabled:"(owner).isMultipleSelectionEnabled"}}),selectionDelegate:Object(l.b)({defaultValue:Object(r.c)(a.a.extend(h.a))}),collection:Object(o.c)(d.a),isSelectionEnabled:Object(l.b)({defaultValue:!0,didChange:function(e){e||(this.selection=null,this.update())}}),update:function(e){var t=arguments;Object(s.f)(e,this,"SelectionSupportProtocol: invalidationContext"),this.__s._$nR$update.apply(this,t),e&&(e.itemsChanges||e.collectionChanged||e.everythingChanged)&&this.selectionController.updateSelectionForCollectionChange(e),Object(s.e)(e,this,"SelectionSupportProtocol: invalidationContext")},isEmptySelectionEnabled:Object(l.b)(!0),isMultipleSelectionEnabled:Object(l.b)(!0),selectItem:function(e){this.selectedItem=e},userPerformedSelectionOperation:function(e,t){if(this.isSelectionEnabled)return this.selectionController.userPerformedSelectionOperation(e,t)},isItemAtHandleSelected:function(e){return!!this.isSelectionEnabled&&this.selectionController.isItemAtHandleSelected(e)},isCellSelected:function(e){return!!this.isSelectionEnabled&&!!this.isCellSelectable(e)&&this.isItemAtHandleSelected(e.handle)},isCellSelectable:function(e){return"item"===e.cellType},selectCell:function(e,t){if(this.isSelectionEnabled){var n=this.selectionController;e?this.isCellSelectable(e)&&n.userPerformedSelectionOperation(e.handle,t):n.userPerformedSelectionOperation(null,t)}},userPerformedSelectionOperationInDirection:function(e,t){if(this.isSelectionEnabled)return this.selectionController.userPerformedSelectionOperationInDirection(e,t)},selectAll:function(){if(this.isSelectionEnabled)return this.selectionController.selectAll()},clearSelection:function(){if(this.isSelectionEnabled)return this.userPerformedSelectionOperation()},_updateWhenSelectionChanges:Object(c.g)("selectionController.selectionDidChange",function(){this.update()}),__superMap:{_$nR$update:"update"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(878),r=n(876),a={keyDown:function(e){var t=(i.a.sharedInstance.isWindows?e.ctrlKey:e.metaKey)&&e.keyCode===r.a.A;return t&&(this.sendEvent("selectAll"),e.preventDefault()),t||"function"==typeof this.__s._$A1$keyDown&&!!this.__s._$A1$keyDown.call(this,e)},__superMap:{_$A1$keyDown:"keyDown"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i,r=n(876),a=n(61),o=n(119),s={selectionDirectionByKeyCode:(i={},i[r.a.UP]=o.a.UP,i[r.a.DOWN]=o.a.DOWN,i),keyDown:function(e){var t=this.selectionDirectionByKeyCode[e.keyCode],n=t instanceof Object;return n&&(this.selectInDirection(t,e),e.preventDefault()),n||"function"==typeof this.__s._$E1$keyDown&&!!this.__s._$E1$keyDown.call(this,e)},selectInDirection:function(e,t){var n=this.collection;if(n&&n.length){var i=this._findFromHandleForDirectionalSelectionAction(),r=this._findToHandleAndSelectionModeForDirectionalSelectionAction(e,t,i),a=r.toHandle,o=r.selMode,s=a instanceof Object&&a.isValid?a:i;if(s instanceof Object){this.userPerformedSelectionOperation(s,o);var c=s.isValid&&!s.wasRemoved?s:n.handleProvider.startHandle.atDistance(Math.min(n.length-1,s.position||0));c.isValid&&this.scrollToHandle(c);var l=this.layoutDelegate.cellForHandleIfPresent(c);if(l instanceof Object&&this.presenter.viewForCell){var u=this.presenter.viewForCell(l);u&&u.focus()}}}},_findFromHandleForDirectionalSelectionAction:function(){var e=this.collection,t=this.selectionController,n=t.pivot,i=t.extendedTo,r=i instanceof Object&&!i.wasRemoved?i:n;return r instanceof Object&&!r.wasRemoved||(r=e.startHandle),r},_findToHandleAndSelectionModeForDirectionalSelectionAction:function(e,t,n){var i=this.selectionController,r=i.pivot,o=a.a.SET,s=void 0;if(0===i.selection.length)s=n;else if(t.altKey)s=i.getLastHandleInDirection(n,e),t.shiftKey&&(o=a.a.EXTEND);else if(s=i.getHandleInDirection(n,e),t.shiftKey&&(o=a.a.EXTEND,s instanceof Object&&i.isItemAtHandleSelected(s)&&!(Math.min(r.position,n.position)<=s.position&&s.position<=Math.max(r.position,n.position)))){var c=i.getSelectableHandleInDirection(s,e);c instanceof Object&&(s=c)}return{toHandle:s,selMode:o}},__superMap:{_$E1$keyDown:"keyDown"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(936),r=n(98),a=n(78),o=n(89),s=n(81),c=n(86),l=n(397),u=n(111),d=n(119),h=i.a.create(),p=l.a.extend({_tempIndexSet:Object(s.d)({strong:!0,defaultValue:Object(c.c)(u.a)}),selectedIndices:Object(r.b)({dependencies:[],writeDependencies:["selectionDidChange","pivot"],get:function(){return this._selectedIndices},set:Object.assign(function(e){var t=this.delegate,n=this.collection,i=this._selectedIndices;if(!n)return this.pivot=null,this._selectedIndices=u.a.create(),void this.selectionDidChange(!0);var r=i.length;1===r?t.selectionControllerDidDeselectItem(this,n.startHandle.at(i.firstIndexAfter(-1))):r>1&&t.selectionControllerDidSelectRange(this,i),e||(e=i);var a=this.getPath("collection.length");if(!this.isEmptySelectionEnabled&&a&&0===e.length){this._selectedIndices=u.a.create();for(var o=n.startHandle;o.isValid&&!this.selectItemAtHandle(o);o=o.next);e=this._selectedIndices}else if(!this.isMultipleSelectionEnabled&&e.length>1){this._selectedIndices=u.a.create();var s=e,c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var d;if(c){if(l>=s.length)break;d=s[l++]}else{if((l=s.next()).done)break;d=l.value}var h=d,p=n.startHandle.at(h).retain(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"),f=this.selectItemAtHandle(p);if(p.release(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"),f)break}e=this._selectedIndices}else this._selectedIndices=e=t.selectionControllerShouldSelectRange(this,e),t.selectionControllerDidSelectRange(this,e);var m=this._pivot,g=m;m&&e.contains(m.position)||e.length>0&&(g=n.startHandle.at(e.lastIndexBefore(1/0))),this.pivot=g,this.selectionDidChange(!0)},{__CW__setter:function(e,t,n,i,r){var a=this.delegate,o=this.collection,s=this._selectedIndices;if(!o)return n[1+i]=null,this._selectedIndices=u.a.create(),void this.selectionDidChange(!0);var c=s.length;1===c?a.selectionControllerDidDeselectItem(this,o.startHandle.at(s.firstIndexAfter(-1))):c>1&&a.selectionControllerDidSelectRange(this,s),e||(e=s);var l=this.getPath("collection.length");if(!this.isEmptySelectionEnabled&&l&&0===e.length){this._selectedIndices=u.a.create();for(var d=o.startHandle;d.isValid&&!this.selectItemAtHandle(d);d=d.next);e=this._selectedIndices}else if(!this.isMultipleSelectionEnabled&&e.length>1){this._selectedIndices=u.a.create();var h=e,p=Array.isArray(h),f=0;for(h=p?h:h[Symbol.iterator]();;){var m;if(p){if(f>=h.length)break;m=h[f++]}else{if((f=h.next()).done)break;m=f.value}var g=m,b=o.startHandle.at(g).retain(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"),v=this.selectItemAtHandle(b);if(b.release(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"),v)break}e=this._selectedIndices}else this._selectedIndices=e=a.selectionControllerShouldSelectRange(this,e),a.selectionControllerDidSelectRange(this,e);var _=this._pivot,y=_;_&&e.contains(_.position)||e.length>0&&(y=o.startHandle.at(e.lastIndexBefore(1/0))),n[1+i]=y,this.selectionDidChange(!0)}}),writeDependencySetPathMap:[,"false"]}),_maintainFlags:Object(a.h)({inputs:["delegate","isEmptySelectionEnabled","isMultipleSelectionEnabled"],callback:function(e){e&&(this.selectedIndices=this._selectedIndices)}}),_selectedIndices:Object(s.d)({strong:!0,defaultValue:Object(c.c)(u.a)}),updateSelectionForCollectionChange:function(e){var t=this._selectedIndices,n=e.itemsChanges,i=!1;if(n){if(t.length>0){h.serializer=this.collection.serializer;for(var r=n.length,a=0;a<r;a++){var s=n[a],c=s.index;if(-1!==t.firstIndexAfter(c)&&(i=!0),s.operation===o.b.REMOVE)t.contains(c)&&h.encodedAdd(s.encodedItem),t.itemsRemovedAtIndex(c,1);else if(t.itemsInsertedAtIndex(c,1),h.length>0){var l=s.encodedItem;h.encodedContains(l)&&(t.add(c),h.encodedRemove(l),i=!0)}}h.length&&(i=!0,h.clear())}}else if(e.collectionChanged)t.length&&(i=!0,t.clear());else if(e.everythingChanged&&t.length){var u=this.collection.length;t.clone().forEach(function(e){e>=u&&t.remove(e)}),i=!0}0!==t.length||this.isEmptySelectionEnabled||(i=!0),i&&(this.selectedIndices=t)},selection:Object(r.b)({strong:!0,dependencies:["selectedIndices"],set:Object.assign(function(e){var t=this.collection,n=u.a.create();if(e&&t)if(e.serializer===t.serializer&&e.createIterator)for(var i=e.createIterator();i.isValid;i.moveToNext())n.add(t.encodedIndexOf(i.encodedValue));else e.forEach(function(e){n.add(t.indexOf(e))});return this.selectedIndices=n,e},{__CW__setter:function(e,t,n,i,r){var a=this.collection,o=u.a.create();if(e&&a)if(e.serializer===a.serializer&&e.createIterator)for(var s=e.createIterator();s.isValid;s.moveToNext())o.add(a.encodedIndexOf(s.encodedValue));else e.forEach(function(e){o.add(a.indexOf(e))});return n[0+i]=o,e}}),get:Object.assign(function(){var e=this.collection,t=i.a.create();return e&&(t.serializer=e.serializer,this.selectedIndices.forEach(function(n){t.encodedAdd(e.encodedObjectAt(n))})),t},{__CW__getter:function(e,t,n,r){var a=this.collection,o=i.a.create();return a&&(o.serializer=a.serializer,r.internalGet(this,t[0+n]).forEach(function(e){o.encodedAdd(a.encodedObjectAt(e))})),o}}),writeDependencySetPathMap:["false"]}),isItemAtHandleSelected:function(e){return this.selectedIndices.contains(e.position)},selectItemAtHandle:function(e){var t=this.delegate;return!!t.selectionControllerShouldSelectItem(this,e)&&(this._selectedIndices.add(e.position),this.propertyChanged("selectedIndices"),t.selectionControllerDidSelectItem(this,e),!0)},deselectItemAtHandle:function(e){var t=this._selectedIndices,n=this.collection,i=e.position,r=null;if(t.remove(i),0!==t.length){var a=this.pivot;if(e===a){var o=t.firstIndexAfter(i),s=t.lastIndexBefore(i),c=(-1===o?1/0:o-i)<(-1===s?1/0:i-s)?o:s;r=n.startHandle.at(c)}else r=a}return this.pivot=r,this.propertyChanged("selectedIndices"),this.delegate.selectionControllerDidDeselectItem(this,e),!0},clearSelection:function(){var e=this.selectedIndices;this.delegate.selectionControllerDidDeselectRange(this,e),this.selectedIndices.clear(),this.pivot=null},selectRange:function(e,t){var n=e.position,i=t.position,r=this._selectedIndices,a=this._tempIndexSet;a.clear(),a.add(n,i);var o=this.delegate.selectionControllerShouldSelectRange(this,a);r.union(o),this.delegate.selectionControllerDidSelectRange(this,o)},getSelectableHandleInDirection:function(e,t){var n;switch(t){case d.a.UP:n=-1;break;case d.a.DOWN:n=1;break;default:return null}for(var i=e.retain(this,"getSelectableHandleInDirection: selectableItem");;){var r=i.atDistance(n).retain(this,"getSelectableHandleInDirection: selectableItem");if(i.release(this,"getSelectableHandleInDirection: selectableItem"),!r.isValid)return r.release(this,"getSelectableHandleInDirection: selectableItem"),null;if(i=r,this.delegate.selectionControllerShouldSelectItem(this,i)&&!this.isItemAtHandleSelected(i))return i.autorelease(this,"getSelectableHandleInDirection: selectableItem")}},staticMembers:{__QUALIFIED_CLASS_NAME__:"IndexedSelectionController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(821),r=n(111),a={mixinDependencies:[n(396).a],selectionControllerShouldSelectRange:function(e,t){var n=r.a.create(),i=e.collection.handleProvider,a=t.ranges(),o=Array.isArray(a),s=0;for(a=o?a:a[Symbol.iterator]();;){var c;if(o){if(s>=a.length)break;c=a[s++]}else{if((s=a.next()).done)break;c=s.value}for(var l=c,u=l.start,d=l.end,h=u;h<=d;h++){var p=i.at(h);this.selectionControllerShouldSelectItem(e,p)&&n.add(h)}}return n},selectionControllerDidSelectRange:i.a,selectionControllerDidDeselectRange:i.a}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(818),r=n(100),a=i.a.extend({downloadFromURL:function(e){return this._createLinkAndTrigger(e.toString()),r.a.resolve(e)},downloadFromURLs:function(e){for(var t=e.length,n=new Array(t),i=0;i<t;i++)n[i]=this.downloadFromURL(e[i]);return n},_createLinkAndTrigger:function(e){var t=document.createElement("a");t.href=e,t.download="";var n=document.createEvent("MouseEvents");n.initEvent("click",!0,!0),t.dispatchEvent(n)},staticMembers:{__QUALIFIED_CLASS_NAME__:"LinkDownloader"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(106),r=n(98),a=n(78),o=n(86),s=n(904),c=n(558).a.extend({dispose:function(){var e=arguments;this.__s._$AY$dispose.apply(this,e),cancelAnimationFrame(this._scheduledMeasurement)},targetLayout:Object(o.c)(i.a),targetIsHidden:Object(r.b)({dependencies:["target.isAttached","_targetMeasurementFailed"],readOnly:!0,get:Object.assign(function(){return!this.getPath("target.isAttached")||this._targetMeasurementFailed},{__CW__getter:function(e,t,n,i){return!i.internalGetPath(this,t[0+n])||i.internalGet(this,t[1+n])}})}),_targetMeasurementFailed:Object(r.b)(!1),recomputeLayoutIfNecessary:Object(a.h)({inputs:["shouldMeasure"],callback:function(e){if(cancelAnimationFrame(this._scheduledMeasurement),this._targetMeasurementFailed=!1,e){var t=function(){var e=this.target,n=this.targetLayout,i=e.element;if(i){var r=i.getBoundingClientRect(),a=r.left,o=r.top,c=r.width,l=r.height;0===a&&0===o&&0===c&&0===l?this._targetMeasurementFailed=!0:(this._targetMeasurementFailed=!1,n.beginBatchSet().setIfChanged("x",a).setIfChanged("y",o).setIfChanged("width",c).setIfChanged("height",l).end())}this._scheduledMeasurement=Object(s.a)(t)}.bind(this);t()}}}),__superMap:{_$AY$dispose:"dispose"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DOMLayoutMeasurer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(818),r=n(821),a=n(78),o=n(98),s=i.a.extend(a.b,{target:Object(o.b)(),targetLayout:Object(o.b)(),targetIsHidden:Object(o.b)(!1),recomputeLayoutIfNecessary:r.a,shouldMeasure:Object(o.b)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"LayoutMeasurer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(818),r=n(78),a=n(98),o=n(87),s=i.a.extend(r.b,{config:Object(a.b)(),anchorLayout:Object(a.b)(Object(o.c)("config.anchorLayout")),spaceLayout:Object(a.b)(Object(o.c)("config.spaceLayout")),desiredSize:Object(a.b)({strong:!0,binding:"config.desiredSize"}),minimumSize:Object(a.b)({strong:!0,binding:"config.minimumSize"}),layout:Object(a.b)(),fit:Object(a.b)({readOnly:!0,dependencies:["layout.height","layout.width"],get:Object.assign(function(){var e=this.getPath("layout.width"),t=this.getPath("layout.height");if(!t||!e)return 0;var n=this.minimumSize.width;return t<this.minimumSize.height?0:e<n?0:e*t},{__CW__getter:function(e,t,n,i){var r=i.internalGetPath(this,t[1+n]),a=i.internalGetPath(this,t[0+n]);if(!a||!r)return 0;var o=this.minimumSize.width;return a<this.minimumSize.height?0:r<o?0:r*a}})}),staticMembers:{__QUALIFIED_CLASS_NAME__:"PopoverLayout"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return c}),n(20);var i=n(877),r=n(44),a=n(98),o=n(87),s=n(78),c=i.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"contentView"}],name:"container",classes:["cw-popover-content"]}],classes:["cw-popover-view"],styles:{width:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"width",attributes:{},unit:null,property:"width"},height:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"height",attributes:{},unit:null,property:"height"}}}},className:"cw-ui-popover-view",__QUALIFIED_CLASS_NAME__:"PopoverView"},layout:Object(a.b)(),left:Object(a.b)(Object(o.c)("layout.left")),top:Object(a.b)(Object(o.c)("layout.top")),_transformObserver:Object(s.h)("left","top",function(e,t){this.style.translateDevicePixels(e,t)}),height:Object(a.b)(Object(o.c)("layout.height")),width:Object(a.b)(Object(o.c)("layout.width")),verticalAlignment:Object(a.b)({type:r.b}),horizontalAlignment:Object(a.b)({type:r.a})})},function(e,t,n){"use strict";function i(e){for(var t in e)e.hasOwnProperty(t)&&delete e[t];return e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";var i=n(88),r=n(528),a=n(527),o=n(524),s=n(526),c=n(523),l=n(531),u=n(530),d=n(362),h=n(529);n.d(t,"a",function(){return f});var p,f=[{handlers:c.a,useCapture:!1},{handlers:o.a,useCapture:!0},{handlers:s.a,useCapture:!1},{handlers:a.a,useCapture:!1},{handlers:r.a,useCapture:!1},{handlers:{contextmenu:function(e){e.cwType="contextMenu",this.dispatchEvent(e)}},useCapture:!1}];switch(i.c.isMouseWheelSupported&&f.push({handlers:h.a,useCapture:!1}),i.c.pointerEventClass){case i.b.Pointer:p=u.a;break;case i.b.Touch:p=d.b;break;case i.b.Mouse:p=l.a}p&&f.push({useCapture:!1,handlers:p})},function(e,t,n){"use strict";(function(e){n(1),n(0),n(14),n(12),n(5),n(8),n(2),n(16),n(24),n(25),n.d(t,"a",function(){return s}),n.d(t,"b",function(){return c});var i=n(80),r=n(849),a=n(1040),o=n(1041);function s(){var t=new a.a("cloudos2",i.d("Application.Title"),759510,e.__CW_BUILD_INFO);return new o.a(t)}function c(e){r.a().isAppleInternal=e}}).call(this,n(31))},function(e,t,n){"use strict";(function(e){n(1),n(0),n(14),n(12),n(5),n(8),n(2),n(18),n(17),n(7),n(15),n(10),n(4),n(16),n(24),n(25),n(3),n(22),n(28),n(19),n(6),n(65),n(13),n(139),n(140),n(193),n(126),n(173),n(125),n(138),n(60),n(152),n(33),n(58),n(71),n(217),n(191),n(220),n(194),n(72),n(266),n(62),n(219),n(265),n(267),n(176),n(268),n(357),n(141),n(175),n(269),n(358),n(195),n(221),n.d(t,"a",function(){return Me});var i=n(104),r=n(81),a=n(98),o=n(127),s=n(869),c=n(100),l=n(80),u=n(819),d=n(101),h=n(866),p=n(825),f=n(838),m=n(106),g=n(86),b=n(1042),v=n(1044),_=n(1045),y=n(1062),C=n(1058),I=n(590),w=n(1078),S=n(1093),A=n(1127),O=n(576),E=n(1092),T=n(1156),D=n(1090),L=n(1088),N=n(1080),M=n(1159),P=n(1114),x=n(427),R=n(23),j=n(573),F=n(135),V=n(36),U=n(29),k=n(577),B=n(403),z=n(571),W=n(11),H=n(595),$=n(226),G=n(26),K=n(325),Q=n(67),q=n(1121),Y=n(594),X=n(563),J=n(604),Z=n(209),ee=n(1125),te=n(132),ne=n(574),ie=n(575),re=n(318),ae=n(317),oe=n(578),se=n(581),ce=n(185),le=n(405),ue=n(182),de=n(579),he=n(609),pe=n(246),fe=n(186),me=n(580),ge=n(319),be=n(426),ve=n(129),_e=n(608),ye=n(1128),Ce=n(1117),Ie=n(1105),we=n(247),Se=n(582),Ae=n(52),Oe=n(321),Ee=n(583),Te=n(1081),De=n(588),Le=n(1132),Ne=n(1129),Me=A.a.extend({mixinDependencies:[j.a,ne.a,ie.a,B.a,z.a,O.a,k.a,oe.a,le.a,de.a,me.a,se.a,Se.a,Ee.a],Initializers:i.b([Te.a]),autoUpdateController:null,currentChildApplicationIdentifier:r.d({readOnly:!0,get:function(){return U.a.sharedInstance.currentChildApplicationIdentifier}}),currentChildApplicationInfo:r.d({readOnly:!0,get:function(){return U.a.sharedInstance.currentChildApplicationInfo}}),disableTouchScrolling:!1,session:r.d({type:I.a,readOnly:!0,get:function(){var e=I.a.create();e.dataUserDomain=w.a.sharedInstance.current.countryCode,e.webServices=W.a.configuration.webServices;var t=R.a.sharedInstance.cloudOSUser;if(t){var n=t.details;e.user=n}return e}}),sessionInfo:a.b({get:function(){var e=this.session;return e?e.serialize():void 0}}),hostInfo:a.b({type:Object,get:function(){var e=W.a.primaryInteractionMode,t=W.a.platformType,n=W.a.deviceType,i=W.a.protocolVersion,r=W.a.buildNumber,a=W.a.theme,o=W.a.locale,s=W.a.secondaryLocale,c=W.a.clientId,l=W.a.childApplicationSupportedLocales,u=Q.a.sharedInstance,d=u.regionFormattingRules,h=u.regionFormatRulesVersion,p=u.regionFormatBaseUrl,f=u.regionFormatterLocaleMap,m=E.a.sharedInstance,g=m.sizeClassHorizontal,b=m.sizeClassVertical;return{primaryInteractionMode:e,platformType:t,deviceType:n,regionFormat:{version:h,rules:d,baseUrl:p,localeMap:f},protocolVersion:i,buildNumber:r,sizeClassHorizontal:g?g.value:void 0,sizeClassVertical:b?b.value:void 0,visualViewport:m.visualViewport,theme:a,locale:o,secondaryLocale:s,clientId:c,supportedLocales:De.a,localesSupportedByAllApplications:l}}}),applicationName:r.d({type:String,readOnly:!0,get:function(){return"cloudos2"}}),sizeClassVertical:a.b({type:S.a}),sizeClassHorizontal:a.b({type:S.a}),switchToSpringboard:function(){var e=R.a.sharedInstance,t=U.a.sharedInstance,n=e.getPath("cloudOSUser.details.completedAuthenticationStep");t._currentChildApplicationIdentifier=void 0,W.a.title=this.springboardTitleName;var i=e.cloudOSUser,r=i&&i.details&&i.details.isiCloudLiteAccount,a=b.a.sharedInstance.deviceType===v.a.PHONE;if(0===n)e.authenticateUser();else{if(r&&a)return e.unauthenticateUser(!0);this._showSpringboardViewController()}},springboardTitleName:Object(T.b)("Application.Title"),showAppSwitcher:function(e){this.rootViewController.showAppSwitcher(e)},launch:function(){var t=this,n=b.a.sharedInstance,i=E.a.sharedInstance,r=n.deviceType;o.b("data-device-type-class",r.toLowerCase(),e.document.documentElement),i.delegate=this,i.startWatchingForChanges(),this._setSizeClassDataClass(i),this.sizeClassVertical=i.sizeClassVertical,this.sizeClassHorizontal=i.sizeClassHorizontal,R.a.sharedInstance.validateUser(),s.a(window,"beforeunload",function(e){return t._onBeforeUnload(e)}),s.a(window,"unload",function(e){return t._onUnload(e)})},localeDidChange:function(){var e=U.a.sharedInstance,t=this.currentChildApplicationInfo,n=W.a.title,i=void 0;(i=t?e.getChildApplicationController(t).currentTitleName:this.springboardTitleName)!==n&&(W.a.title=i),this.rootViewController.localeDidChange(),e.reloadChildApplications(),this._notifyHostingStateDidChange()},acceptTermsAndConditions:function(e,t,n){var i=Ne.a.create(),r=this._inAppLoginViewController;return(r?r.presentSecondaryModal(i):this.rootViewController.presentViewController(i)).then(function(){return i.displayTerms(t,n).then(function(){return i.dismiss()})})},displayTermsAndConditionsSuccessConfirmation:function(e,t){var n=c.a.create();return this.rootViewController.showViewController(Ie.a.create({wasTermsUpdatePerformed:t,dismissalPromise:n})),n},accountNeedsSetUp:function(t){var n=c.a.create(),i=w.a.sharedInstance.current.domain,r=l.d("CloudOS.AccountNeedsSetup.Domain."+i);return F.a.extend({message:l.d("CloudOS.AccountNeedsSetup.Title",{currentDomain:r}),description:l.d("CloudOS.AccountNeedsSetup.Description",{currentDomain:r}),primaryButton:{title:l.d("CloudOS.AccountNeedsSetup.LearnMoreButton.Title"),action:"learnMoreLinkClicked"},learnMoreLinkClicked:function(){window.open(l.d("CloudOS.AccountNeedsSetup.LearnMoreButton.Href"))},shouldDismissOnPrimaryButtonClick:!1,alternateButton:{title:l.d("CloudOS.AccountNeedsSetup.CloseButton.Title"),action:"reload"},reload:function(){e.location.reload()}}).show(),n},shouldTrustCredentialsOnLogout:function(e){var t,n,i=this,r=c.a.create(),a=(t=regeneratorRuntime.mark(function e(t,n){var a;return regeneratorRuntime.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:a=D.a.create(),t===Y.a.CANCEL?a.status=L.a.CANCELED:(a.status=L.a.SUCCESS,a.data=n),r.resolve(a);case 3:case"end":return e.stop()}},e,i)}),n=function(){var e=t.apply(this,arguments);return new Promise(function(t,n){return function i(r,a){try{var o=e[r](a),s=o.value}catch(e){return void n(e)}if(!o.done)return Promise.resolve(s).then(function(e){i("next",e)},function(e){i("throw",e)});t(s)}("next")})},function(e,t){return n.apply(this,arguments)});return Y.b.show(a),r},startAuthentication:function(e){var t=this._inAppLoginViewController=this._createLoginViewController(e,H.a);this.rootViewController.presentViewController(t)},continueAuthentication:function(e){var t=this._homeLoginViewController,n=this._loginViewControllerForSessionRetrieve,i=this._inAppLoginViewController;n?n.continueAuthentication():t?(this.rootViewController.showViewController(t),t.continueAuthentication()):i.continueAuthentication()},validationDidSucceed:function(e,t){var n=this;if(!Pe(t,this)){var i=V.a.sharedInstance,r=U.a.sharedInstance,a=fe.a.sharedInstance,o=G.a.sharedInstance,s=o.shortGuid,c=o.applicationIdentifier,l=t.details.isiCloudLiteAccount,u=b.a.sharedInstance.deviceType===v.a.PHONE,d=c?i.getApplicationInfo(c):void 0;l&&u?this._couldNotLaunchApplicationForUser(d,t):i.update().then(function(){n._configureEnvironmentForUser(t),ue.a.sharedInstance.start(),n._initializePushConnection(t),n._initializeAlarms(),a.shouldResolveShortGuid(s,c)?a.resolveShortGuid(t,s,c):a.shouldResolveVettingToken()?a.resolveVettingToken(t):c?r.canLaunchChildApplication(d)?r.launchChildApplication(d):n._couldNotLaunchApplicationForUser(d,t):n._showSpringboardViewController()})}},validationDidFail:function(e,t){var n=G.a.sharedInstance,i=fe.a.sharedInstance,r=n.shortGuid,a=n.applicationIdentifier,o=V.a.sharedInstance,s=U.a.sharedInstance;if(this._configureEnvironmentForUser(t),i.shouldResolveShortGuid(r,a))i.resolveShortGuid(t,r,a);else if(i.shouldResolveVettingToken())i.resolveVettingToken(t);else{var c=a?o.getApplicationInfo(a):void 0;c&&s.canLaunchChildApplication(c)?s.launchChildApplication(c):this._showHomeLoginViewController(e)}},authenticationDidCancel:function(e){this._inAppLoginViewController?(this._inAppLoginViewController.dismiss(),this._inAppLoginViewController=void 0):this._showHomeLoginViewController(e),Z.c.notifyApplicationsAuthenticationDidCancel(this._serviceManager)},authenticationStepDidComplete:function(e,t,n,i){var r=this,a=V.a.sharedInstance,o=U.a.sharedInstance;a.update().then(function(){if(1===n){r._configureEnvironmentForUser(t);var s=G.a.sharedInstance.applicationIdentifier;if(s){var c=a.getApplicationInfo(s);c.allowsOneFactorAuthenticationMode&&n<i?o.canLaunchChildApplication(c)?o.launchChildApplication(c):r._couldNotLaunchApplicationForUser(c,t):n<i&&e.continueAuthentication()}else n<i&&e.continueAuthentication()}Z.c.notifyApplicationsAuthenticationStateHasChanged(r._serviceManager,t.details)})},authenticationDidComplete:function(e,t){var n=this,i=Pe(t,this),r=G.a.sharedInstance,a=r.shortGuid,o=r.applicationIdentifier,s=U.a.sharedInstance,c=V.a.sharedInstance,l=o?c.getApplicationInfo(o):void 0,u=N.a.create("cloudosAuthSuccess");if(M.b.sharedInstance.recordStat(u),!i){var d=t.details.isiCloudLiteAccount,h=b.a.sharedInstance.deviceType===v.a.PHONE;d&&h?this._couldNotLaunchApplicationForUser(l,t):c.update().then(function(){n._configureEnvironmentForUser(t),ue.a.sharedInstance.start(),n._initializePushConnection(t),n._initializeAlarms();var e=n._inAppLoginViewController;e&&e.dismiss(),n._inAppLoginViewController=void 0,n._homeLoginViewController=void 0;var i=ve.a.applicationInfo,r=s.getChildApplicationController(i);s.reloadChildApplication(r,!0);var c=t.isAuthenticated,u=fe.a.sharedInstance;u.currentShareRecord&&u.currentShareRecord.isPublicShare?u.acceptShare(c):u.shouldResolveShortGuid(a,o)?u.resolveShortGuid(t,a,o):u.shouldResolveVettingToken()?u.resolveVettingToken(t):l?s.canLaunchChildApplication(l)?s.launchChildApplication(l):n._couldNotLaunchApplicationForUser(l,t):(n._hideLoginSpinner(),n._showSpringboardViewController()),Z.c.notifyApplicationsAuthenticationDidComplete(n._serviceManager,t.details),n._notifyHostingStateDidChange()})}},_showLoginSpinner:function(){this._homeLoginViewController&&this._homeLoginViewController.showLoginSpinner()},_hideLoginSpinner:function(){this._homeLoginViewController&&this._homeLoginViewController.hideLoginSpinner()},authenticationDidFail:function(e,t){var n=N.a.create("cloudosAuthFailure",t);M.b.sharedInstance.recordStat(n),u.b("Could not authenticate - "+t.errorType)},userWillUnauthenticate:function(e){var t=c.a.create(),n=U.a.sharedInstance.hasChildApplicationWithUnsavedChanges();return n?F.a.extend({message:l.d("CloudOS.UnsavedChanges.Alert.Title"),description:l.d("CloudOS.UnsavedChanges.Alert.Description",{applicationName:n.applicationConfiguration.displayName}),primaryButton:{title:l.d("CloudOS.UnsavedChanges.Alert.SignOutButton"),action:"logoutWithUnsavedChangesAction"},alternateButton:{title:l.d("CloudOS.UnsavedChanges.Alert.DontSignOutButton"),action:"cancelLogoutWithUnsavedChangesAction"},logoutWithUnsavedChangesAction:function(){t.resolve(L.a.SUCCESS)},cancelLogoutWithUnsavedChangesAction:function(){t.resolve(L.a.CANCELED)}}).show():t.resolve(L.a.SUCCESS),t},userDidUnauthenticate:function(t){this.primaryInteractionMode===_.a.TOUCH?e.location.reload():this.primaryInteractionMode===_.a.MOUSE?Object(y.c)(e.location.origin):u.b("primaryInteractionMode not properly set.")},startSessionRetrieve:function(e,t,n,i){var r=this._createLoginViewController(e,K.a,t,n,i);r.pauseBetweenSteps=1===n,this.rootViewController.presentViewController(r),this._loginViewControllerForSessionRetrieve=r},sessionRetrieveDidComplete:function(e){this._loginViewControllerForSessionRetrieve.dismiss(),this._loginViewControllerForSessionRetrieve=void 0},willFinishCreateAccountFlow:function(){this._homeLoginViewController&&this._homeLoginViewController.showLoginSpinnerForCreate()},didFinishCreateAccountFlow:function(){},didCancelCreateAccountFlow:function(){this._homeLoginViewController&&this._homeLoginViewController.showNoticeIfNecessary()},createAccount:function(){R.a.sharedInstance.cancelUserAuthenticate();var e=W.a.configuration.createAccountUrl,t=Le.a.create(e);this.rootViewController.presentViewController(t)},configurationWasUpdated:function(e){var t=this;this.rootViewController.configurationWasUpdated(e);var n=V.a.sharedInstance;return Object(C.c)(this.processState,C.a.RUNNING)&&this._notifyHostingStateDidChange(),n.update().then(function(){var n=G.a.sharedInstance.showEnvironmentInfo;if(!e.isProduction&&n){var i=e.environment,r=W.a.masteringNumber;t.rootViewController.displayEnvironmentInformation(i,r)}})},parametersDidChange:function(e){var t=this;V.a.sharedInstance.update().then(function(){var n=U.a.sharedInstance,i=e.applicationIdentifier;t.currentChildApplicationIdentifier!==i&&(i?n.switchToApplication(i):t.switchToSpringboard())})},showChildApplicationSlowLoadingBanner:function(e){var t=e.applicationConfiguration.titleOrDisplayName,n=P.a.create("Banner.SlowConnection.Title"),i=P.a.create("Banner.SlowConnection.Description",{appName:t}),r=P.a.create("Banner.SlowConnection.OptionalLink.Text"),a=te.a.sharedInstance.setCurrentBanner(n,i,r,this,ce.a.BUTTON);this._slowLoadingApplicationBannerMap.set(e,a)},showChildApplicationRemoteViewController:function(e){this._clearAllSlowLoadingBannersIfNeeded(),Oe.a.sharedInstance.removeNotificationForChildApplication(e.applicationConfiguration.identifier),this.rootViewController.showViewController(e.remoteApplicationViewController)},insertChildApplicationRemoteViewController:function(e){this._clearAllSlowLoadingBannersIfNeeded(),this.rootViewController.insertViewController(e.remoteApplicationViewController)},showChildApplicationErrorViewController:function(e,t,n){this._clearAllSlowLoadingBannersIfNeeded();var i=e.applicationInfo,r=this.primaryInteractionMode===_.a.TOUCH,a=pe.a.create(i,t,n),o=R.a.getPath("sharedInstance.cloudOSUser.details"),s="photos"===e.applicationConfiguration.identifier?"photos-icon":"icloud-icon";r||!o?this._showErrorViewController(a):(this.redirectToHomeScreen(),d.b.show({iconNames:s,message:t,description:n,primaryButton:{title:l.d("CloudOS.Button.OK.Title")}}))},showChildApplicationDidFatalErrorDialog:function(e,t,n){this._clearAllSlowLoadingBannersIfNeeded();var i=R.a.getPath("sharedInstance.cloudOSUser.details");if(i&&i.completedAuthenticationStep>0)return this._showSpringboardViewController().then(function(){x.a.showCrashReporterWithTerminationReasonAndInfo(t,n,e.applicationInfo,!1)});x.a.showCrashReporterWithTerminationReasonAndInfo(t,n,e.applicationInfo,!0)},redirectChildApplicationForDocument:function(e,t){var n=e.applicationInfo.supportedSubDomains,i=e.applicationConfiguration.identifier,r=w.a.sharedInstance.current,a=r.subdomain,o=r.domain,s=W.a.getFallbackOrderForSubDomain(a),c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var u;if(c){if(l>=s.length)break;u=s[l++]}else{if((l=s.next()).done)break;u=l.value}var d=u;if(n.includes(d)){var p=d+"."+o,f="/"+i+"/"+t,m=h.a.create({protocol:"https:",hostname:p,pathname:f});this.rootViewController.navigateToExternalURL(m,!0)}}},redirectToHomeScreen:function(){var t=R.a.getPath("sharedInstance.cloudOSUser.details");t&&t.completedAuthenticationStep>0?this.switchToSpringboard():Object(y.c)(e.location.origin)},showAlertForLockedApplication:function(e){var t=e.displayName;F.a.extend({message:l.d("CloudOS.Error.AppPCSDeleted.Title",{applicationName:t}),description:l.d("CloudOS.Error.AppPCSDeleted.Description"),primaryButton:{title:l.d("CloudOS.Button.OK.Title")}}).show()},showAlertForUnavailableMailService:function(e){var t=e.displayName;F.a.extend({message:l.d("CloudOS.Error.MailNotEnabled.Title"),description:l.d("CloudOS.Error.MailNotEnabled.Description",{applicationName:t}),primaryButton:{title:l.d("CloudOS.Button.OK.Title")}}).show()},showBanner:function(e,t){this.rootViewController.showBanner(t)},removeBanner:function(e){this.rootViewController.removeBanner()},alarmWasTriggered:function(e){var t=V.a.sharedInstance.getApplicationInfo(e.applicationIdentifier),n=Ae.a.create(Ae.b.ALARM,t,e);Oe.a.sharedInstance.enqueue(n)},authenticateWithShareInfo:function(e,t,n){if(t.isPublicShare)this._showShareAcceptanceViewController(e,t,n);else{var i=t.ownerName,r=t.fileType,a=R.a.sharedInstance;this._showHomeLoginViewController(a,l.d("CloudOS.InNetworkAcceptance.Description.One",{ownerName:i,fileType:r}))}},signInAndAcceptShare:function(e,t){var n=R.a.sharedInstance,i=t.ownerName,r=t.fileType;this._showHomeLoginViewController(n,l.d("CloudOS.InNetworkAcceptance.Description.One",{ownerName:i,fileType:r}))},acceptShare:function(e,t,n){this._showShareAcceptanceViewController(e,t,n)},signInAndShowShareUnavailable:function(e){var t=R.a.sharedInstance;this._showHomeLoginViewController(t)},shareUnavailable:function(e,t){var n=void 0,i=void 0,r=void 0,a=void 0;if(e.shouldResolveVettingToken())i=l.d("CloudOS.OutOfNetworkAcceptance.VerificationLinkExpired.Title"),r=l.d("CloudOS.OutOfNetworkAcceptance.VerificationLinkExpired.Description"),a=l.d("CloudOS.OutOfNetworkAcceptance.VerificationLinkExpired.DescriptionTwo");else{var o=p.a(t,"fileType");i=l.d("CloudOS.Sharing.Unavailable.Title",{fileType:o}),r=l.d("CloudOS.Sharing.Unavailable.Description")}var s=t.applicationIdentifier;s&&(n=V.a.sharedInstance.getApplicationInfo(s));var c=pe.a.create(n,i,r,a);this._showErrorViewController(c)},shareWasAccepted:function(e,t,n){if(n||t.outOfNetworkParticipantList&&t.outOfNetworkParticipantList.length>0){var i=he.a.create(e,t,!0,!0);this.rootViewController.showViewController(i)}else U.a.sharedInstance.switchToApplication(t.applicationIdentifier)},shareWasNotAccepted:function(e){var t=this.currentChildApplicationInfo;if(t)U.a.sharedInstance.replaceHistoryState(t,{},void 0,"");else{var n=W.a.title,i=G.a.sharedInstance,r=i.applicationIdentifier,a=i.relativePath;G.a.sharedInstance.replaceHistoryState({},n,r,a,"")}var o=this._verifyShareAccessNavigationViewController;o&&(o.dismiss(),this._verifyShareAccessNavigationViewController=void 0),this.switchToSpringboard()},openiWorkPreview:function(e,t){window.location.href=t.href},upgradeToiCloudDrive:function(e){var t=pe.a.create(void 0,l.d("CloudOS.Sharing.Error.UpgradeToiCloudDrive.Title"),l.d("CloudOS.Sharing.Error.UpgradeToiCloudDrive.SubTitle"),l.d("CloudOS.Sharing.Error.UpgradeToiCloudDrive.Description"));this._showErrorViewController(t)},upgradeToNotes:function(e){var t=pe.a.create(void 0,l.d("CloudOS.Sharing.Error.UpgradeToNotes.Title"),l.d("CloudOS.Sharing.Error.UpgradeToNotes.SubTitle"));this._showErrorViewController(t)},verifyAccess:function(e){var t=this,n=_e.a.create([ye.a.create(e),Ce.a.create()]);this.rootViewController.presentViewController(n),n.execute().then(function(e){n.dismiss(),t._verifyShareAccessNavigationViewController=void 0,t.switchToSpringboard()}),this._verifyShareAccessNavigationViewController=n},signInAndResolveVettingToken:function(e){var t=R.a.sharedInstance;this._showHomeLoginViewController(t)},shareWasInvalid:function(){var e=U.a.sharedInstance,t=V.a.sharedInstance,n=R.a.sharedInstance.cloudOSUser,i=G.a.sharedInstance.applicationIdentifier,r=t.getApplicationInfo(i);e.canLaunchChildApplication(r)?e.launchChildApplication(r):this._couldNotLaunchApplicationForUser(r,n)},dismissErrorButtonWasClicked:function(e,t){this.redirectToHomeScreen()},didReceivePushNotification:function(e,t,n){for(var i=e.ckInfo,r=e.topic,a=e.applicationIdentifier,o=V.a.sharedInstance.configurations,s=0,c=o.length;s<c;s++){var l=o.objectAt(s),u=l.applicationInfo,d=u.pushTopic,h=u.cloudKitInfo;if(r&&r===d||i&&h&&i.containerIdentifier===h.containerIdentifier||a===l.identifier){we.a.sharedInstance.scheduleAlarms([l.identifier]);var p=U.a.sharedInstance.getChildApplicationController(l.applicationInfo);if(f.a(e.notification)&&e.clientId!==W.a.clientId){var m=Ae.a.create(Ae.b.PUSH,p.applicationInfo,e,t,n);Oe.a.sharedInstance.enqueue(m)}p.handlePushNotification(e)}}},pushControllerDidDisconnect:function(e){ae.c.startPolling(this._serviceManager)},sizeClassDidChange:function(e){this._setSizeClassDataClass(e),this.sizeClassVertical=e.sizeClassVertical,this.sizeClassHorizontal=e.sizeClassHorizontal,this._notifyHostingStateDidChange(),V.a.sharedInstance.update()},browserSizeDidChange:function(e){re.c.notifySizeClassDidChange(this._serviceManager,e.sizeClassHorizontal,e.sizeClassVertical);var t=window.top.innerHeight,n=window.top.innerWidth,i=m.a.create({x:0,y:0,width:n,height:t});this.rootViewController.availableContentAreaDidChange(i)},visualViewportDidChange:function(e){this._notifyHostingStateDidChange()},quotaLimitWasExceeded:function(e){var t=R.a.sharedInstance.cloudOSUser,n=t&&t.details&&t.details.isiCloudLiteAccount,i=n?"Lite":"Full",r=P.a.create("Banner.QuotaExceeded."+i+"Account.Title"),a=P.a.create("Banner.QuotaExceeded."+i+"Account.Description"),o=this._quotaBannerId,s=te.a.sharedInstance;o?s.updateBanner(o,r,a):this._quotaBannerId=n?s.displayBanner(r,a):s.displayBanner(r,a,P.a.create("Banner.QuotaExceeded.OptionalLink.Text"),this,ce.a.LINK)},quotaLimitAlmostExceeded:function(e){var t=R.a.sharedInstance.cloudOSUser,n=t&&t.details&&t.details.isiCloudLiteAccount,i=n?"Lite":"Full",r=P.a.create("Banner.QuotaAlmostExceeded."+i+"Account.Title"),a=P.a.create("Banner.QuotaAlmostExceeded."+i+"Account.Description"),o=this._quotaBannerId,s=te.a.sharedInstance;o?s.updateBanner(o,r,a):this._quotaBannerId=n?s.displayBanner(r,a):s.displayBanner(r,a,P.a.create("Banner.QuotaExceeded.OptionalLink.Text"),this,ce.a.LINK)},quotaLimitHasRecovered:function(e){var t=this._quotaBannerId;t&&(te.a.sharedInstance.removeBanner(t),this._quotaBannerId=void 0)},bannerActionDidClick:function(e){var t=this._slowLoadingApplicationBannerMap,n=!1,i=t,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o,c=s[0],u=s[1];u===e.bannerId&&(n=!0,te.a.sharedInstance.removeBanner(u),U.a.sharedInstance.terminateChildApplication(c,!0),t.delete(c))}if(!n){var d=l.d("Banner.QuotaExceeded.OptionalLink.Url");window.open(d)}},showNotification:function(e,t){return this.rootViewController.showNotification(t)},removeNotification:function(e,t){return this.rootViewController.removeNotification(t)},notificationDidClick:function(e,t,n){U.a.sharedInstance.switchToApplication(n,t)},alarmDismissDidClick:function(e,t,n){we.a.sharedInstance.acknowledgeAlarm(n)},alarmSnoozeDidClick:function(e,t,n){we.a.sharedInstance.snoozeAlarm(n)},meCardDidChange:function(e,t){var n=R.a.sharedInstance.cloudOSUser;n.photo=t.photo,ge.c.sendMeCard(this._serviceManager,t),this._springboardViewController.cloudOSUserDidUpdate(n)},_browserWindowController:r.d({type:E.a,defaultValue:g.c(E.a)}),_inAppLoginViewController:r.d({type:H.a}),_homeLoginViewController:r.d({type:J.a}),_loginViewControllerForSessionRetrieve:r.d({type:K.a}),_springboardViewController:a.b({type:$.SpringboardViewController,get:function(){return $.SpringboardViewController.create()}}),_verifyShareAccessNavigationViewController:r.d({type:_e.a}),_quotaBannerId:r.d({type:String}),_slowLoadingApplicationBannerMap:r.d({type:Map,defaultValue:g.c(Map)}),_serviceManager:r.d({defaultValue:g.c(q.a)}),_notifyHostingStateDidChange:function(){this.propertyChanged("hostInfo"),this.hostingStateDidChange(this.session.serialize(),this.hostInfo)},_configureEnvironmentForUser:function(e){var t=e.countryCode,n=e.isAppleInternal;this._springboardViewController.cloudOSUserDidUpdate(e);var i=this._inAppLoginViewController;i&&(i.cloudOSUser=e),Object(X.b)(n),t&&w.a.sharedInstance.setDomainFromCountryCode(t)},_initializePushConnection:function(e){var t=e.accountSessionStore,n=V.a.sharedInstance.displayOrder.toArray().map(function(e){return e.applicationInfo.pushTopic}).filter(function(e){return!!e});be.a.sharedInstance.initialize(n,t)},_initializeAlarms:function(){for(var e=[],t=V.a.sharedInstance.displayOrder.toArray(),n=0,i=t.length;n<i;n++){var r=t[n];e.push(r.identifier)}we.a.sharedInstance.scheduleAlarms(e)},_installServices:function(e){this.__s._$LhM$_installServices.call(this,e),ee.a.initialize(e)},_getApplicationIconUrl:function(e){var t=V.a.sharedInstance,n=G.a.sharedInstance.port,i=t.getApplicationInfo(e).iconUrlForCurrentDPR,r=W.a.protocol,a=W.a.hostName,o=void 0;return i&&(o=h.a.create({protocol:r,hostname:a,port:n,pathname:i}).href),o},_showSpringboardViewController:function(){return this.rootViewController.showViewController(this._springboardViewController)},_showErrorViewController:function(e){var t=this;return e.delegate=this,e.loadImage().then(function(n){return t.rootViewController.showViewController(e)})},_showHomeLoginViewController:function(t,n){var i=n?l.d("CloudOS.Authentication.Panel.AppName.Title"):void 0,r=this._homeLoginViewController=this._createLoginViewController(t,J.a,"","",n,i),a=this.rootViewController;e.delayCloudOSLoadingScreenDismissal(),a.showViewController(r),G.a.sharedInstance.isSignupRequested&&R.a.sharedInstance.createAccount()},_createLoginViewController:function(e,t,n,i,r,a){var o=W.a.configuration,s=o.trustTokens,c=o.appleIdUrl,l=G.a.sharedInstance.applicationIdentifier,u=c;t===K.a&&(u=W.a.configuration.appleIdUrlForSessionRetrieve);var d=void 0,h=!1;if(l){var p=V.a.sharedInstance.getApplicationInfo(l);if(p.allowsOneFactorAuthenticationMode){d=this._getApplicationIconUrl(l);var f=p.configuration,m=f.displayName,g=f.titleName;r=r||g||m,h=!0}}var b=t.create(e,u,s,d,n,i,r,a);return b.pauseBetweenSteps=h,b},_showShareAcceptanceViewController:function(e,t,n){var i=he.a.create(e,t,n);this.rootViewController.showViewController(i)},_setSizeClassDataClass:function(t){var n=t.sizeClassHorizontal,i=t.sizeClassVertical;o.b("data-horizontal-size-class",n.value.toLowerCase(),e.document.documentElement),o.b("data-vertical-size-class",i.value.toLowerCase(),e.document.documentElement)},_clearAllSlowLoadingBannersIfNeeded:function(){var e=this._slowLoadingApplicationBannerMap,t=e.values(),n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}var a=r;te.a.sharedInstance.removeBanner(a)}e.clear()},_couldNotLaunchApplicationForUser:function(e,t){var n=void 0,i=void 0;if(e){var r=e.configuration.displayName;n=l.d("CloudOS.Error.UnableToLoadApp.Title",{applicationName:r}),i=l.d("CloudOS.Application.Title")}else n=l.d("CloudOS.Error.UnableToLoadiCloud.Title"),i=l.d("CloudOS.iCloud.Title");var a=t.details,o=a.appleId,s=void 0;if(a.isiCloudLiteAccount){var c='<span class="user-email-label">'+o+"</span>";s=l.d("CloudOS.Error.UnableToLoadApp.iCloudLiteAccount.Description",{appleId:c,applicationTitle:i})}var u=pe.a.create(e,n,s);this._showErrorViewController(u)},_onBeforeUnload:function(e){var t=U.a.sharedInstance.hasChildApplicationWithUnsavedChanges();if(t)return e.preventDefault(),l.d("CloudOS.UnsavedChanges.Alert.Description",{applicationName:t.applicationConfiguration.displayName})},_onUnload:function(e){M.b.sharedInstance.flushStats()},__superMap:{_$LhM$_installServices:"_installServices"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSApplication"}});function Pe(t,n){return function(e){var t=!1,n=w.a.subDomains.CARRY,i=W.a.subDomain===n,r=e.isCarryUser,a=G.a.sharedInstance.redirectedFromCarry;if(i&&!r){var o=W.a.getFallbackOrderForSubDomain(n),s=o.length>0?o[1]:void 0;W.a.subDomain=s,t=!0}else a||i||!r||(W.a.subDomain=n,t=!0);return t}(t)|function(t){var n=!1;if(function(){var e=G.a.sharedInstance.postLoginRedirectUrl;if(e){var t=h.a.create(e),n=w.a.sharedInstance.current.domain;if(t.isInDomain(n)&&"https:"===t.protocol)return!0}return!1}()){var i=G.a.sharedInstance.postLoginRedirectUrl;t._showLoginSpinner(),e.location.href=i,n=!0}return n}(n)}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(293),r=n(838),a=n(100),o=n(56),s=n(863),c=n(819),l=i.a.extend({hasHandlerForProcedure:function(e){return Object(r.a)(d(e,this))},registerProcedure:function(e,t,n){!function(e,t,n,i){var r=i.channel,a=u.get(r);a||(a=new Map,u.set(r,a));var o=a.get(e);o&&Object(c.b)("A handler for `%{procedureName}` was already registered on this channel",{procedureName:e,registration:o}),a.set(e,{listener:i,target:t,handlerMethodName:n})}(e,t,n=n||e,this)},registerProcedures:function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];Array.isArray(r)?this.registerProcedure(r[0],t,r[1]):this.registerProcedure(r,t)}},unregisterProcedure:function(e){var t=this.channel,n=u.get(t);n&&n.get(e).listener===this&&(n.delete(e),0===n.size&&n.delete(t))},unregisterProcedures:function(e){var t=this;e.forEach(function(e){t.unregisterProcedure(e)})},unregisterAllProcedures:function(){var e=u.get(this.channel);if(e)for(var t=e.entries(),n=void 0;n=t.next().value;){var i=n[0];n[1].listener===this&&e.delete(i)}},shouldHandleMessage:function(e){var t=this;return(Array.isArray(e)?e:[e]).filter(function(e){return e&&Object(r.a)(e.jsonrpc)&&e.jsonrpc===t.messageFormatter.jsonRpcVersion&&Object(r.a)(e.method)}).length>0},handleMessage:function(e){var t=this,n=Array.isArray(e),i=n?e:[e],s=a.a.wrapFunction(h),c=this.messageFormatter,l=[],u={};return i.forEach(function(e){var n=e.id,i=s(e,t).then(function(e){u[n]=e!==m?function(e,t,n){if(Object(r.a)(t))return e.generateResultMessageFor(t,n)}(c,n,e):m}).catch(function(e){if(u[n]=p(c,n,e),!(e instanceof o.b))throw e});l.push(i)}),a.a.all(l).then(function(){return f(t,i,u,n)},function(e){throw f(t,i,u,n),e})},dispose:function(){this.unregisterAllProcedures(),this.__s._$33C$dispose.call(this)},__superMap:{_$33C$dispose:"dispose"},staticMembers:{__QUALIFIED_CLASS_NAME__:"JsonRpcListenerFix"}}),u=new Map;function d(e,t){var n=u.get(t.channel);if(n){var i=n.get(e);if(i&&i.listener===t)return i}return null}function h(e,t){if(t.isDisposed)return new Promise(function(){});var n=e.method,i=e.params,a=void 0===i?[]:i;if(Object(r.a)(a)&&!Array.isArray(a)){var c="JSON-RPC calls in JavaScript cannot support `params` as an Object, only as an Array";throw s.b.error(c,e),new o.d(c,{message:e})}var l,h,p,f=d(n,t);if(!f){if(l=n,h=t.channel,(p=u.get(h))&&p.get(l))return m;var g="A JSON-RPC registration was not found for method `"+n+"`.";throw s.b.error(g,e,t),new o.f(g,{message:e,listener:t})}var b=f.target;if(!b)throw s.b.error("The JSON-RPC target was not found",e,t),new o.f("The JSON-RPC target was not found",{message:e,listener:t});var v=b[f.handlerMethodName];if(!v)throw s.b.error("The JSON-RPC method was not found",e,t),new o.f("The JSON-RPC method was not found",{message:e,listener:t});return v.call.apply(v,[b].concat(a))}function p(e,t,n){if(Object(r.a)(t))return e.generateErrorMessageFor(t,n)}function f(e,t,n,i){var a=e.messageFormatter,s=[];if(t.forEach(function(e){var t=e.id;if(Object(r.a)(t)){var i=n[t];if(i)i!==m&&s.push(i);else{var c=new o.c("The JSON-RPC call was part of a batch which failed due to a fatal error thrown by another call.");i=p(a,t,c)}}}),s.length>0){var c=i?s:s[0];e.channel.send(e.serializer.encode(c))}}var m=Symbol("Do not reply")},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(831),a=n(870),o=n(100),s=n(1053),c=n(1051);function l(e,t){if(!e)throw new s.a("[wrapProtocolTargetMethods] no original protocol target specified");if(!t)throw new s.a("[wrapProtocolTargetMethods] no protocol method names specified");var n=i.a.create({originalProtocolTarget:e}),l=function(t){var i=e[t];if(!r.a(i))throw new s.a("Protocol method name "+t+" is not a Function");n[t]=function(){try{var n=e[t].apply(e,arguments);return n?a.a(n)?n.then(function(e){return c.a.createWithOptionalData(e).serialize()}).catch(function(e){if(e&&!e.isMessagingError)throw e;return c.a.createFromError(e).serialize()}):o.a.resolve(c.a.createWithOptionalData(n).serialize()):o.a.resolve(c.a.createWithOptionalData().serialize())}catch(e){if(e&&!e.isMessagingError)throw e;return o.a.resolve(c.a.createFromError(e).serialize())}}},u=t,d=Array.isArray(u),h=0;for(u=d?u:u[Symbol.iterator]();;){var p;if(d){if(h>=u.length)break;p=u[h++]}else{if((h=u.next()).done)break;p=h.value}l(p)}return n}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(818),r=n(298),a=i.a.extend({mixinDependencies:[r.a],applicationWillFinishLaunching:function(e,t){},applicationDidFinishLaunching:function(e,t){},staticMembers:{__QUALIFIED_CLASS_NAME__:"ApplicationDelegate"}})},function(e,t,n){"use strict";(function(e){n(0),n.d(t,"a",function(){return h});var i=n(862),r=n(832),a=n(819),o=n(849),s=n(871),c=n(822),l=n(1060),u=n(1062),d=n(1063),h=i.a(function(t,n){if(t&&!r.a(t)&&a.b("Application options specified is not a hash."),r.a(n)||a.b("initializationOptions specified is not a hash."),Object(u.b)()){var i=e.parent,h=Object(u.a)(),p=e.__CW_BUILD_INFO,f=new d.a(i,h,p);o.c(f)}var m=n.defaultApplicationClass,g=n.defaultDelegateClass,b=n.defaultDelegateClassProtocol;m&&g&&b||a.b("initializationOptions must define defaultApplicationClass, defaultDelegateClass, and defaultDelegateClassProtocol");var v,_,y=(_={},(v=t)&&Object.keys(v).forEach(function(e){_[e]=v[e]||void 0}),_),C=y.applicationClass,I=void 0===C?m:C,w=y.delegateClass,S=void 0===w?g:w,A=y.rootViewControllerClass,O=void 0===A?s.a:A;I===m||I.subclassOf(m)||a.b("Specifed application class is not a subclass of "+c.a(m)),S===g||S.subclassOf(g)||Object(l.b)(S,b)||a.b("Specified application delegate class is neither a subclass of "+c.a(g)+" nor implements "+b),O===s.a||O.subclassOf(s.a)||a.b("Specifed root view controller class is not a subclass of CW.ViewController");var E=I.create({rootViewController:O}),T=S!==I?S.create():E;E.delegate=T,E.setup()})}).call(this,n(31))},function(e,t,n){"use strict";n(3),n.d(t,"a",function(){return g});var i=n(818),r=n(81),a=n(866),o=n(852),s=n(819),c=n(100),l=n(570),u=n(1079),d=n(1080),h=n(1159),p=n(403),f=n(11),m=n(26),g=i.a.extend({mixinDependencies:[l.a],delegate:r.d({type:p.a}),init:function(){this.__s._$Gw$init.call(this),u.a.sharedInstance.configurationProvider=this},environment:r.d({type:String,readOnly:!0,get:function(){return this._environment||"PROD"}}),isProduction:r.d({type:Boolean,readOnly:!0,get:function(){return!this.environment||"ICLOUD1"===this.environment||"PROD"===this.environment}}),applications:r.d({type:Array,readonly:!0}),urls:r.d({type:Object,readOnly:!0}),accountCreateEnabled:r.d({type:Boolean,readOnly:!0}),trustTokens:r.d({type:Array,readOnly:!0}),isPCSKeyDeleted:r.d({type:Boolean,readOnly:!0}),rawConfiguration:r.d({type:Object,readOnly:!0}),appleIdUrl:r.d({type:String,readOnly:!0,get:function(){var e=f.a.configuration.urls,t=m.a.sharedInstance.enableAuthorization,n=void 0;if(e){var i=e.accountAuthorizeUI,r=e.accountLoginUI;if(t){if(!i){var c=d.a.create("incompleteAuthBag",{message:"[CloudOSConfiguration] accountAuthorizeUI cannot be undefined"});h.b.sharedInstance.recordStat(c)}var l=a.a.create(i||r);l.setMultipleQueryParameters({redirect_uri:f.a.location.origin,response_mode:"web_message",response_type:"code",frame_id:o.a()}),n=l.href}else{if(!r){var u=d.a.create("incompleteAuthBag",{message:"[CloudOSConfiguration] accountLoginUI cannot be undefined"});h.b.sharedInstance.recordStat(u)}n=r}}return n||s.b("[CloudOSConfiguration] appleIdUrl cannot be empty"),n}}),appleIdUrlForSessionRetrieve:r.d({type:String,readOnly:!0,get:function(){var e=f.a.configuration.urls,t=void 0;return e&&(t=e.accountLoginUI),t}}),createAccountUrl:r.d({type:String,readOnly:!0,get:function(){var e=f.a.configuration.urls,t=void 0;return e&&(t=e.accountCreateUI),t}}),webServices:r.d({type:Map,readOnly:!0}),updateConfiguration:function(e,t,n,i,r,a,o,s){return this._updateConfiguration(e,t,n,i,r,a,o,s)},invalidateConfiguration:function(){return this._updateConfiguration()},_updateConfiguration:function(e,t,n,i,r,a,o,s){var l,u,d=c.a.resolve();if(l=this._rawConfiguration,u=s,JSON.stringify(l)!==JSON.stringify(u)){this._applications=t,this._webServices=n,this._urls=i,this._accountCreateEnabled=r,this._trustTokens=a,this._isPCSKeyDeleted=o,this._environment=e;var h=this.delegate;h&&(d=h.configurationWasUpdated(this)),this._rawConfiguration=s}return d},__superMap:{_$Gw$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSConfiguration"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(856),a={mixinDependencies:[i.a],webServices:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],parametersDidChange:r.a.define()}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return f});var i=n(3),r=n(1042),a=n(1045),o=n(1044),s=n(299),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),l="v",u=new Set([l,"terms"]),d="share",h=[d,"iclouddrive","notes","pages","numbers","keynote","reminders","photos"],p=["find","find-my-iphone"];e.hasEnteredCulDeSacMode=e.hasEnteredCulDeSacMode||!1;var f=function(){function t(e){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),this._url=e;var n=function(e){var t=[];if(e){var n=e.pathname;n&&(t=Object(s.a)(n))}return t}(e);this._applicationIdentifier=void 0,this._shortGuid=void 0;var i=e.hash,a=window.userAgent;if(a||(a=window.navigator.userAgent),this.updatePrimaryInteractionMode(r.a.sharedInstance.primaryInteractionMode),this.updateUserAgent(a),this.updateDeviceType(r.a.sharedInstance.deviceType),this.setupBrowserFinders(),0===n.length&&i&&i.length){var o=i,c="#newspublisher"===o;"#"!==o[0]||c||(o=o.substr(1));var p=m((n=o.split("/"))[0]),f=this.supportsShareURLs=h.indexOf(p)>=0;u.has(p)||-1!==p.indexOf("postLoginRedirectUrl=")||(p!==d&&(this._applicationIdentifier=m(n[0])),n.length>1&&f?this._shortGuid=m(n[1]):this._relativePath=n.slice(1).join("/"),c||this.isTouch||this._setRedirectUrlPath(p))}else if(n.length>0){var g=m(n[0]),b=this.supportsShareURLs=h.indexOf(g)>=0;u.has(g)?g===l&&(this._shortGuid=m(n[1])):(g!==d&&(this._applicationIdentifier=m(n[0])),n.length>1&&b?this._shortGuid=m(n[1]):i&&i.length>1&&b?this._shortGuid=m(i):this._relativePath=n.slice(1).join("/"))}"find-my-iphone"===this._applicationIdentifier&&this._setRedirectUrlPath("/find/")}return c(t,[{key:"applicationIdentifier",get:function(){return this._applicationIdentifier}},{key:"isInCulDeSacMode",get:function(){return e.hasEnteredCulDeSacMode},set:function(t){!0===t&&(e.hasEnteredCulDeSacMode=!0)}},{key:"shortGuid",get:function(){return this._shortGuid}},{key:"relativePath",get:function(){return this._relativePath}},{key:"url",get:function(){return this._url}},{key:"redirectUrlPath",get:function(){return this._redirectUrlPath}}]),t.prototype._determineCulDeSacStatus=function(){return!!this.isInCulDeSacMode||(this.isInCulDeSacMode=(p.indexOf(this.applicationIdentifier)>=0||void 0!==this.shortGuid)&&this.isOnCulDeSacSupportedBrowser(),this.isInCulDeSacMode)},t.prototype.isOnCulDeSacSupportedBrowser=function(){return!!this.isTouch&&this.isBrowserVersionAtLeast({android:7,ios:8})},t.prototype.updatePrimaryInteractionMode=function(e){this.primaryInteractionMode=e,this.isTouch=e===a.a.TOUCH},t.prototype.updateDeviceType=function(e){this.deviceType=e},t.prototype.areCookiesEnabled=function(){try{return i.set("COS_BOOTSTRAP_COOKIE_TEST","1"),"1"===i.get("COS_BOOTSTRAP_COOKIE_TEST")}catch(e){return!1}},t.prototype.updateUserAgent=function(e){var t=e.toLowerCase();this.userAgent=t,this.isEdge=/\sedge\//.test(t),this.isFirefoxiOS=!this.isEdge&&/fxios/.test(t),this.isChrome=!this.isEdge&&!this.isFirefoxiOS&&/chrome|crios/.test(t),this.isSafari=!this.isEdge&&!this.isFirefoxiOS&&!this.isChrome&&/safari/.test(t),this.isFirefox=this.isFirefoxiOS||!this.isEdge&&!this.isChrome&&!this.isSafari&&/firefox/.test(t),this.isIE=!this.isEdge&&!this.isChrome&&!this.isSafari&&!this.isFirefox&&/trident|msie/.test(t);var n=(t.match(/webkit\/(.+?) /)||[])[1],i=((t.split(/\s*[;)(]\s*/)||[])[1]||"").toLowerCase(),r=(!!/macintosh/.test(t)||/mac os x/.test(t)&&!/like mac os x/.test(t))&&this.isTouch&&!this.isChrome,a="ipad"===i||i.indexOf("ipod")>=0||"iphone"===i||r;this.isMobileSafari=(/apple.*mobile/.test(t)&&a?n:0)||r;var o=t.match(/\b(iPad|iPhone|iPod)\b.*\bOS (\d+)_(\d+)/i);r?this.iOSMajorVersion="13":o&&(this.iOSMajorVersion=o[2])},t.prototype.determineRedirectUrl=function(){var e=this.url.origin,t=this.isCrawler(),n=this.isOnSupportedDesktop(),i=this.isOnSupportedMobile(),r=this.isTermsAndConditionUrl(),a=-1!==window.location.hash.indexOf("postLoginRedirectUrl="),o=void 0;return navigator.cookieEnabled||this.areCookiesEnabled()?t||r||a||(!this.isTouch||i||this._determineCulDeSacStatus()?this.isTouch||n||this._determineCulDeSacStatus()||(o=e+"/unsupported_browser/"):o=this.applicationIdentifier?e+"/unsupported_mobile/":e+"/find/"):o=e+"/enable_cookies/",o},t.prototype._setRedirectUrlPath=function(e){var t=this.relativePath,n=this.shortGuid,i=t?"/"+t:"",r=n?"/"+n:"";this._redirectUrlPath=""+e+i+r},t.prototype.isOnSupportedDesktop=function(){return this.isBrowserVersionAtLeast({mobilesafari:-1,android:-1,safari:6,firefox:21,opera:0,chrome:0,ie:11,otherwise:!0})},t.prototype.isOnSupportedMobile=function(){return this.deviceType===o.a.TABLET?this.isBrowserVersionAtLeast({ios:13}):this.isBrowserVersionAtLeast({android:7,ios:8})},t.prototype.isOnSupportedMouseDeviceWithWarningMode=function(){return!this.isBrowserVersionAtLeast({safari:7,firefox:21,chrome:35,ie:11,edge:12,otherwise:!1})},t.prototype.isOnSupportedTouchDeviceWithWarningMode=function(){return!1},t.prototype.isCrawler=function(){return this.isBrowserVersionAtLeast({googlebot:0})},t.prototype.isTermsAndConditionUrl=function(){return-1!==window.location.hash.indexOf("#terms")},t.prototype.isBrowserVersionAtLeast=function(e){var t=void 0,n=void 0,i=void 0,r=this.BROWSER_FINDER_VERSIONS;for(t in e)if("otherwise"!==t){var a=r[t];if(a.matches)return n=a.version||this.getUserAgentVersion(r[t]),-1!==(i=e[t])&&n>=i}return!!e.otherwise},t.prototype.getUserAgentVersion=function(e){var t=0,n=void 0;try{n=this.userAgent.match(e.regexp),t=parseInt(n[n.length-1],10)}catch(e){}return t},t.prototype.setupBrowserFinders=function(){var e=this;this.BROWSER_FINDER_VERSIONS={safari:{get matches(){return e.isSafari},regexp:/version\/(\d+\.*\d+).*?safari/},mobilesafari:{get matches(){return e.isMobileSafari},regexp:/version\/(\d+\.*\d+).*?safari/},ios:{get matches(){return e.isMobileSafari},get version(){return e.iOSMajorVersion}},android:{get matches(){return!!/android/.test(e.userAgent)},regexp:/android (\d+\.*\d*)/},firefox:{get matches(){return e.isFirefox},regexp:/firefox\/(\d+\.*\d+)/},chrome:{get matches(){return e.isChrome},regexp:/chrome\/(\d+\.*\d+)/},opera:{get matches(){return!!/opera/.test(e.userAgent)},regexp:/version\/(\d+\.*\d+)/},ie:{get matches(){return e.isIE},regexp:/(msie |trident.*?rv:)(\d+\.*\d+)/},edge:{get matches(){return e.isEdge},regexp:/edge\/(\d+\.*\d+)/},crios:{get matches(){return e.userAgent.match(/\scrios\//)},regexp:/crios\/(d+\.*\d+)/},googlebot:{get matches(){return e.userAgent.match(/\sgooglebot\//)},regexp:/googlebot\/(d+\.*\d+)/},mobilesafariwebview:{get matches(){return e.isMobileSafari&&e.userAgent.match(/^((?!safari).)*$/)},regexp:/applewebkit\/\d+\.*\d+.*mobile\/(\d+[A-z]*\d+)$/},facebookMessengeriOSwebview:{get matches(){return e.isMobileSafari&&e.userAgent.match(/fban\/messengerforios;/)},regexp:/applewebkit\/(\d+)[\.*\d+]+ .*mobile\/(\d+[A-z]*\d+).*fban\/messengerforios/}}},t}();function m(e){var t=e;"#"===t[0]&&(t=t.substr(1));var n=t.indexOf("?");return n>0&&(t=t.substr(0,n)),t}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],acceptTermsAndConditions:r.a.define(),displayTermsAndConditionsSuccessConfirmation:r.a.define(),accountNeedsSetUp:r.a.define(),shouldTrustCredentialsOnLogout:r.a.define(),startAuthentication:r.a.define(),continueAuthentication:r.a.define(),validationDidSucceed:r.a.define(),validationDidFail:r.a.define(),authenticationDidCancel:r.a.define(),authenticationStepDidComplete:r.a.define(),authenticationDidComplete:r.a.define(),authenticationDidFail:r.a.define(),userWillUnauthenticate:r.a.define(),userDidUnauthenticate:r.a.define(),startSessionRetrieve:r.a.define(),sessionRetrieveDidComplete:r.a.define(),createAccount:r.a.define(),willFinishCreateAccountFlow:r.a.define(),didFinishCreateAccountFlow:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],showBanner:r.a.define(),removeBanner:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],alarmWasTriggered:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],sizeClassDidChange:r.a.define(),visualViewportDidChange:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],showChildApplicationSlowLoadingBanner:r.a.define(),showChildApplicationRemoteViewController:r.a.define(),insertChildApplicationRemoteViewController:r.a.define(),showChildApplicationErrorViewController:r.a.define(),showChildApplicationDidFatalErrorDialog:r.a.define(),redirectChildApplicationForDocument:r.a.define(),redirectToHomeScreen:r.a.define(),showAlertForLockedApplication:r.a.define(),showAlertForUnavailableMailService:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],quotaLimitWasExceeded:r.a.define(),quotaLimitAlmostExceeded:r.a.define(),quotaLimitHasRecovered:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],authenticateWithShareInfo:r.a.define(),signInAndAcceptShare:r.a.define(),acceptShare:r.a.define(),signInAndShowShareUnavailable:r.a.define(),shareUnavailable:r.a.define(),shareWasAccepted:r.a.define(),shareWasNotAccepted:r.a.define(),verifyAccess:r.a.define(),signInAndResolveVettingToken:r.a.define(),upgradeToiCloudDrive:r.a.define(),openiWorkPreview:r.a.define(),shareWasInvalid:r.a.define(),upgradeToNotes:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],meCardDidChange:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],didReceivePushNotification:r.a.define(),pushControllerDidDisconnect:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],dismissErrorButtonWasClicked:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],showNotification:r.a.define(),removeNotification:r.a.define(),notificationDidClick:r.a.define(),alarmDismissDidClick:r.a.define(),alarmSnoozeDidClick:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(200),r=n(819),a=i.a.extend({init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e||r.b("URLRequest: no url specified");var n=t.credentials;if(n&&!t.hasOwnProperty("useCredentialsIfCrossOrigin"))switch(n){case"include":t.useCredentialsIfCrossOrigin=!0}t.url=e,this.__s._$Ep$init.call(this,t)},__superMap:{_$Ep$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"URLRequest"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],fetch:r.a.define()}},function(e,t,n){"use strict";n(4),n(3),n.d(t,"a",function(){return g});var i=n(81),r=n(910),a=n(100),o=n(1045),s=n(1042),c=n(1093),l=n(1078),u=n(236),d=n(27),h=n(49),p=n(53),f=d.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(p.b)("mmbc402b84")}]}})}).create({authBagId:"photos",path:"photos",generation:2,usesLegacyCloudOSProtocol:!0,requiredServices:["ckdatabasews"],supportedDevices:[{primaryInteractionMode:o.a.MOUSE,sizeClass:c.a.REGULAR},{primaryInteractionMode:o.a.MOUSE,sizeClass:c.a.COMPACT}],supportedSubDomains:[l.a.subDomains.WWW,l.a.subDomains.CARRY,l.a.subDomains.BETA,l.a.subDomains.FUTURE],isPCSRequired:!0,applicationIconUrl1x:n(476),applicationIconUrl2x:n(477),applicationIconUrl3x:n(478),radarComponentId:740310,cloudKitInfo:u.a.create({containerIdentifier:"com.apple.photos.cloud"})}),m=d.a.extend({helpButtonConfigs:i.d({readOnly:!0,type:Array,get:function(){return[{externalURL:Object(p.b)("mmbc402b84")}]}})}).create({authBagId:"photos3",path:"photos3",generation:3,requiredServices:["ckdatabasews"],supportedSubDomains:[l.a.subDomains.WWW,l.a.subDomains.CARRY,l.a.subDomains.BETA,l.a.subDomains.FUTURE],allowsUnauthenticatedMode:!0,applicationIconUrl1x:n(476),applicationIconUrl2x:n(477),applicationIconUrl3x:n(478),radarComponentId:740310,cloudKitInfo:u.a.create({containerIdentifier:"com.apple.photos.cloud",partition:"https://ckdatabasews.icloud.com",recoverableErrorTitleLocKey:"Photos.CloudKit.Recoverable.Title",recoverableErrorSubtitleLocKey:"Photos.CloudKit.Recoverable.Subtitle",unrecoverableErrorTitleLocKey:"Photos.CloudKit.Unrecoverable.Title"})}),g=h.a.extend({_setApplicationInfoForConfiguration:function(e,t,n){var i=this,c=void 0,l=n.showApps,u=n.shortGuid,d=n.applicationIdentifier;if(l&&l.find(function(e){return e.identifier===i.identifier}))c=e;else{var h=s.a.sharedInstance.primaryInteractionMode===o.a.MOUSE,p=d===this.identifier&&u;c=h&&!p?f:m}return r.a(this,"_applicationInfo",c),a.a.resolve()}}).create({identifier:"photos",displayNameLocKey:"Photos.DisplayName",titleNameLocKey:"Photos.TitleName",generations:[f,m],defaultGenerationToPreload:f})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],childApplicationIsLoadingSlowly:r.a.define(),childApplicationDidFinishLaunching:r.a.define(),childApplicationDidTerminate:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=[{dispName:"English (U.S.)",locale:"en-us"},{dispName:"English (Australia)",locale:"en-au"},{dispName:"English (Canada)",locale:"en-ca"},{dispName:"English (New Zealand)",locale:"en-nz"},{dispName:"English (U.K.)",locale:"en-gb"},{dispName:"Français",locale:"fr-fr"},{dispName:"Français (Canada)",locale:"fr-ca"},{dispName:"Deutsch",locale:"de-de"},{dispName:"简体中文",locale:"zh-cn"},{dispName:"繁體中文（香港）",locale:"zh-hk"},{dispName:"繁體中文（台灣）",locale:"zh-tw"},{dispName:"日本語",locale:"ja-jp"},{dispName:"Español",locale:"es-es"},{dispName:"Español (México)",locale:"es-mx"},{dispName:"Italiano",locale:"it-it"},{dispName:"Nederlands",locale:"nl-nl"},{dispName:"한국어",locale:"ko-kr"},{dispName:"Português (Brasil)",locale:"pt-br"},{dispName:"Português (Portugal)",locale:"pt-pt"},{dispName:"Dansk",locale:"da-dk"},{dispName:"Suomi",locale:"fi-fi"},{dispName:"Norsk bokmål",locale:"no-no"},{dispName:"Svenska",locale:"sv-se"},{dispName:"Русский",locale:"ru-ru"},{dispName:"Polski",locale:"pl-pl"},{dispName:"Türkçe",locale:"tr-tr"},{dispName:"العربية",locale:"ar-sa"},{dispName:"ภาษาไทย",locale:"th-th"},{dispName:"Čeština",locale:"cs-cz"},{dispName:"Magyar",locale:"hu-hu"},{dispName:"Català",locale:"ca-es"},{dispName:"Hrvatski",locale:"hr-hr"},{dispName:"Ελληνικά",locale:"el-gr"},{dispName:"עברית",locale:"iw-il"},{dispName:"Română",locale:"ro-ro"},{dispName:"Slovenčina",locale:"sk-sk"},{dispName:"Українська",locale:"uk-ua"},{dispName:"Bahasa Indonesia",locale:"id-id"},{dispName:"Bahasa Melayu",locale:"ms-my"},{dispName:"Tiếng Việt",locale:"vi-vi"},{dispName:"हिन्दी",locale:"hi-in"}]},function(e,t,n){"use strict";function i(e){if(e){var t=e.url,n=e.signature,i=e.crop,r={photoUrl:t,photoSignature:n};return i&&(r.photoCrop=i.serialize()),r}return null}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(818),r=n(81),a=n(1087),o=n(1160),s=i.a.extend({mixinDependencies:[o.a],user:r.d({type:a.a,serialization:{propertyName:"dsInfo"}}),dataUserDomain:r.d({type:String}),webServices:r.d({type:Map,serialization:{collectionObjectType:Object}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"Session"}})},function(e,t,n){"use strict";(function(e){n(0),n(14),n(12),n(5),n(195),n.d(t,"a",function(){return d});var i=n(871),r=n(98),a=n(80),o=n(866),s=n(592),c=n(593),l=n(418),u=n(1156),d=i.a.extend({viewClass:s.a,init:function(e,t){this.__s._$9s$init.call(this),this.termsContentSummary=e.iCloudTerms.content,this.accountCountry=t,this.termsDetails=e},view:r.b({type:s.a,downstreamBindings:{termsContentSummary:"(owner).termsContentSummary",termsContent:"(owner).termsContent"}}),termsContentSummary:r.b({type:String}),termsContent:Object(u.a)({dependencies:["accountCountry"],readOnly:!0,get:Object.assign(function(){return"CHN"===this.accountCountry?a.d("CloudOS.TermsAndConditions.ChinaTerms.Content"):a.d("CloudOS.TermsAndConditions.Content")},{__CW__getter:function(e,t,n,i){return"CHN"===i.internalGet(this,t[0+n])?a.d("CloudOS.TermsAndConditions.ChinaTerms.Content"):a.d("CloudOS.TermsAndConditions.Content")}})}),termsDetails:r.b({type:Object}),accountCountry:r.b({type:String}),disagreeTerms:function(){e.location.reload()},downloadACopy:function(){var e=this.termsDetails,t=e.locale,n=e.country,i=e.downloadICloudTerms,r=o.a.create(i);r.setQueryParameter("locale",t),r.setQueryParameter("country",n),c.a.create("X-APPLE-TERMS-VALIDATE","icloud.com").download(l.a.create(r.toJSON(),"termsValidateToken"))},__superMap:{_$9s$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"TermsAndConditionsViewController"}})}).call(this,n(31))},function(e,t,n){"use strict";n(0),n(14),n(12),n(5),n(195),n.d(t,"a",function(){return p});var i=n(877),r=n(98),a=n(86),o=n(948),s=n(104),c=n(898),l=n(902),u=(n(195),n(591)),d=n(1156),h=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"termsContentTitle"}],classes:["content-title"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"termsContent",attributes:{}}],classes:["content-desc"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"termsContentSummary",attributes:{escape:"false"}}],classes:["content-desc"]}]},__QUALIFIED_CLASS_NAME__:"TermsContentView"},termsContentTitle:r.b({defaultValue:a.c(o.a),downstreamBindings:{value:"(owner).termsContentLocTitle"}}),termsContentLocTitle:Object(d.b)("CloudOS.TermsAndConditions.Content.Title"),termsContent:r.b({type:String}),termsContentSummary:r.b({type:String})}),p=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"termsTitleView"}],classes:["terms-header-view"]},{type:"VIEWOUTLET",tagname:"view",name:"termsScrollView"},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"downloadCopyButton"},{type:"VIEWOUTLET",tagname:"view",name:"disagreeButton"},{type:"ELEMENT",tagname:"div",classes:["separator-view"]},{type:"VIEWOUTLET",tagname:"view",name:"agreeButton"}],classes:["terms-footer-view"]}]},__QUALIFIED_CLASS_NAME__:"TermsAndConditionsView"},termsTitleView:r.b({defaultValue:a.c(o.a,{additionalClassNames:s.b(["terms-header-title"])}),downstreamBindings:{value:"(owner).termsLocTitle"}}),termsLocTitle:Object(d.b)("CloudOS.TermsAndConditions.Title"),downloadCopyButton:r.b({type:c.a,defaultValue:a.c(c.a,{additionalClassNames:s.b(["download-link-view"]),action:"downloadACopy"}),downstreamBindings:{title:"(owner).buttonLocTitle"}}),buttonLocTitle:Object(d.b)("CloudOS.TermsAndConditions.DownloadCopyButton.Title"),termsContent:r.b({type:String}),termsContentSummary:r.b({type:String}),disagreeButton:r.b({type:c.a,defaultValue:a.c(c.a,{additionalClassNames:s.b(["disagree-link-view"]),action:"disagreeTerms",target:u.a}),downstreamBindings:{title:"(owner).disagreeButtonLocTitle"}}),disagreeButtonLocTitle:Object(d.b)("CloudOS.TermsAndConditions.DisagreeButton.Title"),agreeButton:r.b({type:c.a,defaultValue:a.c(c.a,{additionalClassNames:s.b(["agree-link-view"]),action:"agreeButtonClicked"}),downstreamBindings:{title:"(owner).agreeButtonLocTitle"}}),agreeButtonLocTitle:Object(d.b)("CloudOS.TermsAndConditions.AgreeButton.Title"),termsScrollView:r.b({type:l.a,defaultValue:a.c(l.a,{additionalClassNames:s.b(["content-scroll-view"])}),downstreamBindings:{contentView:"(owner).contentView"}}),contentView:r.b({defaultValue:a.c(h),downstreamBindings:{termsContent:"(owner).termsContent",termsContentSummary:"(owner).termsContentSummary"}})})},function(e,t,n){"use strict";n.d(t,"a",function(){return _});var i=n(95),r=n(818),a=n(81),o=n(819),s=n(828),c=n(100),l=n(398),u=n(86),d=n(278),h=n(1162),p=n(418),f=n(1088),m=n(1090),g=n(1042),b=n(1045),v=i.b("DownloadErrorReasons",{FAILED_TO_DOWNLOAD:"Failed to download the url",ALREADY_DOWNLOADING:"Already downloading a file. Retry after some time."}),_=r.a.extend({downloadCookieName:a.d({type:String}),init:function(e,t){this.__s._$m3$init.call(this),e||o.b("downloadCookieName is required to create the ValidatedDownloadManager"),t||o.b("cookieManagerDomain is required to create the ValidatedDownloadManager"),this.downloadCookieName=e,t&&(this._cookieManager=h.a.create(t))},download:function(e){var t=void 0;s.a(e,p.a)||o.b("Url to be downloaded is not of type ValidatedDownloadUrl");var n=this._cookieManager,i=this.downloadCookieName;return n.readCookieValue(i)?t=c.a.resolve(m.a.create({status:f.a.ERROR,errorReason:v.ALREADY_DOWNLOADING})):(this._writeCookie(e),t=this._startDownload(e)),t},_downloadManager:a.d({type:l.a,defaultValue:u.c(l.a)}),_cookieManager:a.d({type:h.a}),_startDownload:function(e){return g.a.sharedInstance.primaryInteractionMode===b.a.TOUCH?(window.open(e,"_blank"),c.a.resolve(m.a.create({status:f.a.SUCCESS}))):this._downloadManager.downloadFromURL(e).then(function(e){return e===d.a.FAILED?m.a.create({status:f.a.ERROR,errorReason:v.FAILED_TO_DOWNLOAD}):m.a.create({status:f.a.SUCCESS})})},_writeCookie:function(e){var t=e.downloadTokenQueryParamValue,n=this._cookieManager,i=this.downloadCookieName;n.writeCookie(i,t,void 0,!0,void 0,1)},__superMap:{_$m3$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ValidatedDownloadManager"}})},function(e,t,n){"use strict";n(1),n(0),n(5),n(8),n(2),n(65),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return l});var i=n(95),r=n(831),a=n(819),o=n(80),s=n(135),c=i.b("TrustBrowserAlertAction",{SIGNOUT:"SIGNOUT",CANCEL:"CANCEL"}),l=s.a.extend({staticMembers:{show:function(e){return r.a(e)||a.b("Incorrect usage: must provide a callbackMethod function"),this.__s._$MT$show.call(this,function(e){return{message:o.d("CloudOS.Authentication.TrustBrowser.SignOut.Title"),description:o.d("CloudOS.Authentication.TrustBrowser.SignOut.Description"),primaryButton:{title:o.d("CloudOS.Authentication.TrustBrowserAndSignOutButton.Title"),action:"trustBrowserAndSignOutButtonClicked"},alternateButton:{title:o.d("CloudOS.Button.Cancel.Title"),action:"cancelButtonClicked"},otherButton:{title:o.d("CloudOS.Authentication.SignOutButton.Title"),action:"signOutButtonClicked"},trustBrowserAndSignOutButtonClicked:function(){e(c.SIGNOUT,!0)},signOutButtonClicked:function(){e(c.SIGNOUT,!1)},cancelButtonClicked:function(){e(c.CANCEL,!1)}}}(e))},__superMap:{_$MT$show:"show"},__QUALIFIED_CLASS_NAME__:"TrustBrowserAlertViewController"}})},function(e,t,n){"use strict";n(1),n(0),n(5),n(2),n(4),n(3),n(22),n(6),n(139),n(140),n(193),n(126),n(173),n(13),n(125),n.d(t,"a",function(){return l});var i=n(98),r=n(87),a=n(863),o=n(184),s=n(325),c=n(430),l=s.a.extend({cloudOSUser:i.b({type:o.a}),isManagedAppleID:i.b(r.c("cloudOSUser.details.isManagedAppleID")),presentSecondaryModal:function(e){return c.a.create({dimsBackground:!1}).presentViewController(e)},appleIdWillStart:function(e){a.b.debug("[InAppLoginViewController] appleIdWillStart")},appleIdStepDidComplete:function(e,t,n,i,r,o,s){a.b.debug("[InAppLoginViewController] ["+t+"] ["+n.value+"] appleIdStepDidComplete: step "+o+" of "+s)},appleIdModeWillChange:function(e,t){a.b.debug("[InAppLoginViewController] appleIdModeWillChange: will change to mode ["+t.value+"]")},appleIdModeDidChange:function(e,t){a.b.info("[InAppLoginViewController] appleIdModeDidChange: has changed to mode ["+t.value+"]")},appleIdRepairDidStart:function(e){a.b.debug("[InAppLoginViewController] appleIdRepairDidStart"),this.appleLogoIsVisible=!1,this.footerViewIsVisible=!1,this.headerViewIsVisible=!1,this.cancelButtonIsVisible=!1,this.isSpinnerViewVisible=!1},appleIdDidFinish:function(e,t,n,i,r,o,s){a.b.debug("[InAppLoginViewController] ["+t+"] ["+(n?n.value:"")+"] ["+r+"] appleIdDidFinish: session ["+i+"]")},appleIdDidCancel:function(e){a.b.debug("[InAppLoginViewController] appleIdDidCancel")},appleIdDidFail:function(e,t,n,i,r){a.b.debug("[InAppLoginViewController] ["+t+"] ["+n+"] ["+i+"] appleIdDidFail: "+r)},appleIdError:function(e,t,n){a.b.debug("[InAppLoginViewController] appleIdError")},staticMembers:{__QUALIFIED_CLASS_NAME__:"InAppLoginViewController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"AuthorizationProtocol",version:.1,authorizationDidStart:i.a.define(),authorizationDidComplete:i.a.define(),authorizationDidFail:i.a.define(),authorizationDidCancel:i.a.define()}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return a});var i=n(877),r=n(98),a=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"iframe",name:"appleIdUIFrameView",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"frameClassName",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isHidden",truevalue:"view-hidden",attributes:{}}],attributes:{src:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"src",attributes:{},attribute:"src"},title:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{},attribute:"title"},id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"id",attributes:{},attribute:"id"},scrolling:"no"}}]},__QUALIFIED_CLASS_NAME__:"AppleIdUIView"},title:r.b({type:String}),id:r.b({type:String}),frameClassName:r.b(),isHidden:r.b({type:Boolean}),src:r.b({type:String})})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingToAppleIdViewProtocol",version:.1,responseMethods:["acknowledge","configPayload","resume2FA"],acknowledge:i.a.define(),configPayload:i.a.define(),resume2FA:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i="data:image/png;base64, "},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingToCreateAccountViewProtocol",version:.1,responseMethods:["acknowledge","configPayload","alertGUID","isAlertVisible"],acknowledge:i.a.define(),configPayload:i.a.define(),alertGUID:i.a.define(),isAlertVisible:i.a.define(),alertButtonClicked:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(78),r=n(98),a={staticMembers:{template:{type:"ELEMENT",tagname:"span",name:"iconElement"}},_iconObserver:i.h({inputs:["icon","iconStyle"],callback:function(e,t){void 0!==e&&(this.iconElement.innerHTML=e),void 0!==t&&this.iconElement.setAttribute("style",t)}}),icon:r.b(),iconStyle:r.b()}},function(e,t,n){"use strict";n(6),n(13),n.d(t,"a",function(){return h});var i=n(818),r=n(830),a=n(825),o=n(821),s=n(100),c=n(1100),l=n(1101),u=n(38),d=n(303),h=i.a.extend({mixinDependencies:[c.a],fadesInInitialView:!0,fadesOutFinalView:!0,isViewPersistent:r.a.define(),animateTransition:function(e){var t=a.a(e,"fromViewController.view"),n=a.a(e,"toViewController.view");this[!t&&!n||!t&&n&&!this.fadesInInitialView||!n&&t&&!this.fadesOutFinalView?"_swapViews":"_fadeViews"](n,t,e).then(function(){e.completeTransition(!0)})},animationEnded:o.a,_fadeViews:function(e,t,n){var i=void 0,r=this.isViewPersistent(t),a=this.isViewPersistent(e);return i=t&&!r?Object(u.f)(t).then(function(){Object(l.a)(t),Object(u.h)(t)}):s.a.resolve(),a?(Object(l.d)(e),n.transitionCoordinator.animateTo(1,0,n),i):i.then(function(){return n.transitionCoordinator.animateTo(1,d.a,n),Object(l.d)(e),Object(u.e)(e)}).then(function(){Object(u.h)(e)})},_swapViews:function(e,t,n){return t&&!this.isViewPersistent(t)&&(Object(l.a)(t),Object(u.h)(t)),e&&(Object(l.d)(e),Object(u.h)(e)),n.transitionCoordinator.animateTo(1,0,n),s.a.resolve()},staticMembers:{__QUALIFIED_CLASS_NAME__:"ContentContainerChildrenAnimationController"}})},function(e,t,n){"use strict";var i=n(81),r=n(834),a=n(828),o=n(819),s=n(863),c=n(851),l=n(1071),u=n(1049),d=n(1065),h=n(1068),p=n(1060),f=n(1058),m=n(1055),g=n(1056),b=n(95),v=b.b("LegacyLaunchReason",{LOAD_REASON_USER_CLICK:1,LOAD_REASON_LOCATION_HASH:2,LOAD_REASON_APP_SWITCH:3,LOAD_REASON_NOTIFICATION:4,LOAD_REASON_RELOAD:5,LOAD_REASON_SHARE_ACCEPTED:6,LOAD_REASON_APP_REPLACED:7}),_=b.b("LegacyExitReason",{EXIT_NON_FATAL:0,EXIT_FATAL_ERROR:1,EXIT_STARTUP_ERROR:2,EXIT_PCS_MISSING:3,EXIT_PCS_INVALID:4}),y=n(94),C=n(830),I={mixinDependencies:[y.a],name:"MessagingToLegacyCloudOSApplicationProtocol",version:"1.0",_applicationShouldInvokeMain:C.a.define(),_clearUserState:C.a.define(),_cloudOSStateChange:C.a.define(),_hasReceivedFocus:C.a.define(),_mouseMove:C.a.define(),_mouseUp:C.a.define(),_sleep:C.a.define(),_wake:C.a.define(),applicationWillBecomeActive:C.a.define(),applicationDidBecomeActive:C.a.define(),applicationWillSuspend:C.a.define(),applicationDidSuspend:C.a.define(),routeDidChange:C.a.define()},w=n(304),S=n(833),A=n(1059),O=n(1053),E=n(864),T=n(836),D=E.a.extend({encode:function(e){if(!S.a(e))try{var t=void 0,n=e,i=n.method,r=n.params,a=n.result;if(i)t={methodName:i,args:r||[],id:e.id,isCloudOSMessage:!0};else if(a){var s=a.data,c=[e.id];T.a(s)?c.push.apply(c,s):s&&c.push(s),t={methodName:"RPC_RESPONSE",args:c,id:e.id,isCloudOSMessage:!0}}e=JSON.stringify(t)}catch(t){o.b("[LegacyCloudOSJsonSerializer] Could not encode object to JSON.",{object:e,error:t})}return e},decode:function(e){if(S.a(e))try{e=JSON.parse(e)}catch(t){s.b.warn("[LegacyCloudOSJsonSerializer] Could not decode string as JSON",e),e=null}if(e&&e.isCloudOSMessage){var t=e,n=t.args,i=t.buildNumber,r=t.id,a=t.masteringNumber,o=t.methodName,c=n?Array.from(n):[],l={buildNumber:i,masteringNumber:a};c.unshift(l),e={method:o,id:r,params:c,jsonrpc:"2.0"}}return e},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyCloudOSJsonSerializer"}}),L=A.a.extend({_constructRPCMethodName:function(e,t){if(!t)throw new O.a("MessagingUtils - no method name specified");if(!S.a(t))throw new O.a("MessagingUtils - method name specified is not a string");return t},_createJsonRpcListener:function(e){var t=arguments,n=this.__s._$IA$_createJsonRpcListener.apply(this,t);return n.serializer=D.create(),n},_createJsonRpcCaller:function(e){var t=arguments,n=this.__s._$ME$_createJsonRpcCaller.apply(this,t);return n.serializer=D.create(),n},__superMap:{_$IA$_createJsonRpcListener:"_createJsonRpcListener",_$ME$_createJsonRpcCaller:"_createJsonRpcCaller"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyCloudOSMessagingChannel"}}),N=n(100),M=n(1051),P=n(1052),x=M.a.create({status:P.a.OK});function R(){return N.a.resolve(x)}var j=n(208),F=n(27),V=n(146);n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"a",function(){return U});var U=l.a.extend({mixinDependencies:[w.a,u.a,d.a],localProtocol:w.a,localProtocolTarget:i.d({readOnly:!0,type:w.a,get:function(){return this}}),remoteProtocol:I,messagingChannelClass:L,applicationInfo:i.d({type:F.a}),messagingFromUIChildDelegate:i.d({type:h.a}),connect:function(){var e=arguments;this.__s._$or$connect.apply(this,e);var t=this.remoteProxy,n=Object(p.a)(u.a),i=Array.isArray(n),a=0;for(n=i?n:n[Symbol.iterator]();;){var o;if(i){if(a>=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}var s=o;t[s]=r.a(this[s],this)}var c=Object(p.a)(d.a),l=Array.isArray(c),h=0;for(c=l?c:c[Symbol.iterator]();;){var f;if(l){if(h>=c.length)break;f=c[h++]}else{if((h=c.next()).done)break;f=h.value}var m=f;t[m]=r.a(this[m],this)}},launchLegacyApp:function(){var e=j.a.getCloudOSActions(),t=j.a.getCloudOSState(this.applicationInfo);this.remoteProxy._applicationShouldInvokeMain(e,t,v.LOAD_REASON_USER_CLICK.value)},run:function(e,t,n){Object(f.b)(this.processState,f.a.LOADED);var i=this.processInfo;a.a(e,Object)||o.b("Invalid session info"),a.a(t,Object)||o.b("Invalid host info"),a.a(n,Object)&&n.launchReason||o.b("Invalid launch options were passed to ChildProcessReference.run"),i.launchOptions=n},beginLaunching:function(){return R()},hostingStateDidChange:function(){var e=j.a.getCloudOSState(this.applicationInfo);return this.remoteProxy._cloudOSStateChange(e),this.remoteProxy.routeDidChange(e.route),R()},openItems:function(){return R()},didBecomeActive:function(){var e=this.remoteProxy;return e.applicationWillBecomeActive(),e.applicationDidBecomeActive(),R()},willResignActive:function(){var e=this.remoteProxy;return e.applicationWillSuspend(),e.applicationDidSuspend(),R()},willEnterForeground:function(){var e=this;return this.invokeLater(function(){var t=e.messagingFromUIChildDelegate;t||o.b("LegacyUIChildProcessReference: missing messagingFromUIChildDelegate"),t.isReadyToBeDisplayed()}),R()},didEnterBackground:function(){return R()},didReceiveSyntheticBrowserEvent:function(e){return R()},applicationIsReady:function(e){var t=this;Object(f.c)(this.processState,f.a.LOADED,f.a.RUNNING)?s.b.warn("LegacyUIChildProcessReference did receive redundant `applicationIsReady` message"):(this.isReadyToReceiveMessages(),this.invokeLater(function(){t.didFinishLaunching()}))},appWillUnload:function(e,t){this.willUnload(t)},handleApplicationCrash:function(e,t,n){this.terminateWithReasonAndInfo(m.a.UNCAUGHT_EXCEPTION,{buildInfo:{buildNumber:t.buildNumber,masteringNumber:t.masteringNumber},calleeStack:t.stack,context:t.errorContext,lineNumber:t.line,message:t.error,type:m.a.UNCAUGHT_EXCEPTION})},exit:function(e,t,n){var i=void 0;switch(t){case _.EXIT_NON_FATAL.value:i=V.a.USER_INITIATED;break;case _.EXIT_STARTUP_ERROR.value:i=V.a.CANNOT_LOAD_STARTUP_DATA;break;case _.EXIT_PCS_MISSING.value:case _.EXIT_PCS_INVALID.value:i=V.a.PCS_REQUIRED;break;case _.EXIT_FATAL_ERROR.value:default:i=V.a.UNCAUGHT_EXCEPTION}var r=new Error,a=c.a(r),o={calleeStack:n+"\n\n"+Object(g.b)(r.stack,0),message:i,lineNumber:a,buildInfo:e};this.terminateWithReasonAndInfo(i,o)},reload:function(e){this.wantsReload()},relayKeyboardShortcut:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=s.b).info.apply(e,["Unhandled legacy cloudos message received: relayKeyboardShortcut"].concat(n))},relayMouseMove:function(){},reloadWhenCanTerminate:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=s.b).info.apply(e,["Unhandled legacy cloudos message received: reloadWhenCanTerminate"].concat(n))},__superMap:{_$or$connect:"connect"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyUIChildProcessReference"}})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(81),o=n(91),s=n(863),c=n(222),l=n(1043),u=n(1106),d=n(1107),h=n(23),p=n(11),f=(n(194),n(95)),m=n(877),g=n(89),b=n(80),v=n(104),_=n(86),y=n(898),C=n(1042),I=n(1044),w=n(1115),S=n(314),A=n(421),O=(n(0),n(5),n(10),n(72),f.b("NoticeType",{LITE:"lite",WINDOWS:"windows"})),E=m.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"appIconViews"}],classes:["notice-icon",{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"noticeTypeName",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{}}],classes:["title"]},{type:"VIEWOUTLET",tagname:"view",name:"descriptionView"}],classes:["notice-info"]}],classes:["notice-view-inner"]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"closeButton"}],classes:["notice-close"]}],classes:["notice-view"]},__QUALIFIED_CLASS_NAME__:"NoticeView"},noticeType:r.b({readOnly:!0,type:O}),noticeTypeName:r.b({dependencies:["noticeType"],readOnly:!0,type:String,get:function(){var e=this.noticeType;return e?e.value:""}}),appIconViews:r.b({type:g.b}),title:r.b({dependencies:["noticeType"],readOnly:!0,type:String,get:function(){switch(this.noticeType){case O.LITE:return b.d("Notice.Lite.Title");case O.WINDOWS:return b.d("Notice.Windows.Title")}}}),descriptionView:r.b({dependencies:["noticeType"],readOnly:!0,type:m.a,get:function(){switch(this.noticeType){case O.LITE:var e=C.a.sharedInstance.deviceType!==I.a.PHONE?b.d("Notice.Lite.Subtitle.Desktop"):b.d("Notice.Lite.Subtitle.Phone");return w.a.create({desiredFontSize:8,symbolMetadata:S.a,layoutMode:"layoutBox",title:e,action:"_liteSubtitleDidClick",additionalClassNames:v.b(["notice-lite-subtitle"])});case O.WINDOWS:return m.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"description",attributes:{}},{type:"TEXT",data:" "},{type:"VIEWOUTLET",tagname:"view",name:"actionView"}]}},additionalClassNames:v.b(["notice-windows-subtitle"]),description:b.d("Notice.Windows.Subtitle"),actionView:_.c(w.a,{desiredFontSize:8,symbolMetadata:S.a,layoutMode:"layoutBox",title:b.d("Notice.Windows.DownloadNow.Text"),action:"_windowsSubtitleDidClick",additionalClassNames:v.b(["notice-windows-subtitle-action"])})}).create()}}}),closeButton:r.b({readOnly:!0,type:y.a,defaultValue:_.c(A.a,{action:"_closeDidClick"})})}),T=n(94),D=n(830),L={mixinDependencies:[T.a],dismissNotice:D.a.define(),createAccount:D.a.define()},N=n(326),M=(n(266),n(0),m.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"noticeView"}],classes:["notice-view-container",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"noticeViewIsVisible",truevalue:"show-notice-view",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"appleIdContainerView"}],classes:["container-view"]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"quickAccessView"}],classes:["quick-access-view",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"quickAccessViewIsVisible",truevalue:"",falsevalue:"hide-quick-access-view",attributes:{}}]}]},__QUALIFIED_CLASS_NAME__:"HomeLoginView"},quickAccessViewIsVisible:r.b({type:Boolean,defaultValue:!1})})),P=n(100),x=n(932),R=n(133),j=n(36),F=n(1080),V=n(1159),U=(n(0),n(5),n(10),n(4),n(3),n(33),n(194),n(72),["pages","numbers","keynote"]),k=["iclouddrive"],B=i.a.extend({viewClass:E,view:r.b({type:E,downstreamBindings:{noticeType:"(owner).noticeType",appIconViews:"(owner).appIconViews"}}),delegate:a.d({type:L}),noticeType:r.b({type:O}),appIconViews:r.b({type:g.b}),init:function(e){this.__s._$Ow$init.call(this),this.noticeType=e,this._createAppIconViews()},prepareForDisplay:function(){return this._appIconViewsCompletionPromise},_createAppIconViews:function(){var e=this,t=[],n=[],i=void 0;switch(this.noticeType){case O.LITE:i=U;break;case O.WINDOWS:i=k;break;default:i=[]}var r=j.a.sharedInstance;i.forEach(function(e){var i=r.getApplicationInfo(e).iconUrlForCurrentDPR,a=R.a.create({iconSrc:i});t.push(a),n.push(a.prepareIcon())}),this._appIconViewsCompletionPromise=P.a.all(n).then(function(){e.appIconViews=x.a.create(t)})},_closeDidClick:function(){this.delegate.dismissNotice()},_liteSubtitleDidClick:function(){var e=F.a.create("liteAccountCreationNoticeClickedStat");V.b.sharedInstance.recordStat(e),this.delegate.createAccount()},_windowsSubtitleDidClick:function(){var e=b.d("Notice.Windows.DownloadNow.Url"),t=F.a.create("windowsNoticeClicked");V.b.sharedInstance.recordStat(t),window.open(e)},__superMap:{_$Ow$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"NoticeViewController"}}),z=n(87),W=(n(220),n(1156)),H=(n(0),n(5),n(3),y.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"div",classes:["quick-access-icon"]}]}},className:"quick-access-button-view",__QUALIFIED_CLASS_NAME__:"QuickAccessButtonView"},action:"quickAccessDidSelect",title:Object(W.b)()})),$=m.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"quickAccessLabel",attributes:{}}],classes:["quick-access-label"]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"quickAccessFMIPView"}],classes:["quick-access-button",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isFindMyIphoneVisible",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"quickAccessApplePayView"}],classes:["quick-access-button",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isApplePayVisible",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"quickAccessAppleWatchView"}],classes:["quick-access-button",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isAppleWatchVisible",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]}],classes:["quick-access-buttons"]}]}},className:"quick-access",__QUALIFIED_CLASS_NAME__:"QuickAccessView"},isFindMyIphoneVisible:r.b({type:Boolean,defaultValue:!0}),isApplePayVisible:r.b({type:Boolean,binding:z.c("isSettingsAvailable")}),isAppleWatchVisible:r.b({type:Boolean,binding:z.c("isSettingsAvailable")}),isSettingsAvailable:r.b({type:Boolean,get:function(){return p.a.isDesktopPlatform}}),quickAccessLabel:Object(W.b)("CloudOS.Authentication.QuickAccess.Title"),quickAccessFMIPView:r.b({type:H,defaultValue:_.c(H,{additionalClassNames:v.b(["fmip"]),context:"find",title:"FMIP.DisplayName"})}),quickAccessApplePayView:r.b({type:H,defaultValue:_.c(H,{additionalClassNames:v.b(["apple-pay"]),context:"settings",title:"CloudOS.Authentication.QuickAccess.ApplePay.Title"})}),quickAccessAppleWatchView:r.b({type:H,defaultValue:_.c(H,{additionalClassNames:v.b(["apple-watch"]),context:"settings",title:"CloudOS.Authentication.QuickAccess.AppleWatch.Title"})})}),G=n(29),K=(n(1),n(0),n(5),n(2),n(7),n(4),n(3),n(6),n(220),n(13),i.a.extend({viewClass:$,quickAccessDidSelect:function(e){G.a.sharedInstance.switchToApplication(e),h.a.sharedInstance._updateAuthenticationState()},staticMembers:{__QUALIFIED_CLASS_NAME__:"QuickAccessViewController"}})),Q=n(238),q=n(239),Y=n(240);n(1),n(0),n(5),n(2),n(7),n(22),n(10),n(4),n(3),n(6),n(194),n(72),n(140),n(266),n(33),n(13),n(220),n.d(t,"a",function(){return J});var X=Object.freeze({LITE:"hasDismissediCloudLiteNotice",WINDOWS:"hasDismissediCloudWindowsNotice"}),J=i.a.extend({mixinDependencies:[u.a,L],viewClass:M,view:r.b({type:M,downstreamBindings:{quickAccessViewIsVisible:"(owner).quickAccessViewIsVisible"}}),appleIdUrl:a.d({type:String}),noticeType:a.d({type:O,readOnly:!0,get:function(){return p.a.platformType!==l.a.WINDOWS?O.LITE:O.WINDOWS}}),noticeTypeDismissedStorageKey:a.d({type:Boolean,readOnly:!0,get:function(){var e=this.noticeType;return e===O.LITE?X.LITE:e===O.WINDOWS?X.WINDOWS:void 0}}),quickAccessViewIsVisible:r.b({type:Boolean,defaultValue:!1}),pauseBetweenSteps:a.d({type:Boolean,get:function(){return this._cloudOSAppleIdViewController.pauseBetweenSteps},set:function(e){this._cloudOSAppleIdViewController.pauseBetweenSteps=e}}),continueAuthentication:function(){this._cloudOSAppleIdViewController.continueAuthentication()},init:function(e,t,n,i,r,a,o,s){this.__s._$uj$init.call(this),this.appleIdUrl=t;var c=N.a.create(e,t,n,i,r,a,o,s);c.uiTheme=d.c.DARK,c.delegate=this,this._cloudOSAppleIdViewController=c,this._authenticationController=e,this.showNoticeIfNecessary()},showLoginSpinner:function(){this._cloudOSAppleIdViewController&&(this._cloudOSAppleIdViewController.isSpinnerViewVisible=!0)},hideLoginSpinner:function(){this._cloudOSAppleIdViewController&&(this._cloudOSAppleIdViewController.isSpinnerViewVisible=!1)},showLoginSpinnerForCreate:function(){this._cloudOSAppleIdViewController&&(this._cloudOSAppleIdViewController.isSpinnerViewVisibleOverride=!0)},hideLoginSpinnerForCreate:function(){this._cloudOSAppleIdViewController&&(this._cloudOSAppleIdViewController.isSpinnerViewVisibleOverride=!1)},showNotice:function(){var e=this,t=this.noticeType,n=B.create(t);n.delegate=this;var i=!0;if(t===O.LITE&&(i=!(Q.a.isHidden&&q.a.isHidden&&Y.a.isHidden)),i){var r=F.a.create("isNoticeVisible",{noticeType:t.value});V.b.sharedInstance.recordStat(r),n.prepareForDisplay().then(function(){e._noticeViewController=n})}},removeNotice:function(){this._noticeViewController=void 0},dismissNotice:function(){this.removeNotice();var e=this.noticeTypeDismissedStorageKey;o.a.sharedInstance.setItem(e,!0)},showNoticeIfNecessary:function(){var e=this.noticeType,t=this.noticeTypeDismissedStorageKey,n=o.a.sharedInstance.getItem(t),i=!0,r=p.a.configuration.accountCreateEnabled;n?i=!1:e!==O.LITE||r||(i=!1),i&&this.showNotice()},removeLiteNotice:function(){this._noticeViewController&&this.noticeType===O.LITE&&this.removeNotice()},dismissLiteNotice:function(){this.removeLiteNotice(),o.a.sharedInstance.setItem(X.LITE,!0)},createAccount:function(){this.removeLiteNotice(),this._authenticationController.createAccount()},appleIdWillStart:function(e){s.b.debug("[HomeLoginViewController] appleIdWillStart")},appleIdStepDidComplete:function(e,t,n,i,r,a,o){s.b.debug("[HomeLoginViewController] ["+t+"] ["+n.value+"] appleIdStepDidComplete: step "+a+" of "+o),1===a&&this.dismissLiteNotice(),a>=2&&(this.quickAccessViewIsVisible=!1,this._quickAccessViewController=void 0)},appleIdModeWillChange:function(e,t){s.b.debug("[HomeLoginViewController] appleIdModeWillChange: will change to mode ["+t.value+"]")},appleIdModeDidChange:function(e,t){s.b.debug("[HomeLoginViewController] appleIdModeDidChange: has changed to mode ["+t.value+"]"),t===d.b.HSA2&&(this._quickAccessViewController=K.create(),this.quickAccessViewIsVisible=!0)},appleIdRepairDidStart:function(e){s.b.debug("[HomeLoginViewController] appleIdRepairDidStart"),this.quickAccessViewIsVisible=!1},appleIdDidFinish:function(e,t,n,i,r,a,o){s.b.debug("[HomeLoginViewController] ["+t+"] ["+(n?n.value:"")+"] ["+r+"] appleIdDidFinish: session ["+i+"]"),this.dismissLiteNotice()},appleIdDidCancel:function(e){s.b.debug("[HomeLoginViewController] appleIdDidCancel")},appleIdDidFail:function(e,t,n,i,r){s.b.debug("[HomeLoginViewController] ["+t+"] ["+n+"] ["+i+"] appleIdDidFail: "+r)},appleIdError:function(e,t,n){s.b.debug("[HomeLoginViewController] appleIdError")},_authenticationController:a.d({type:h.a}),_cloudOSAppleIdViewController:c.b({strong:!0,type:N.a,viewOutlet:"appleIdContainerView"}),_noticeViewController:c.b({strong:!0,type:B,viewOutlet:"noticeView"}),_quickAccessViewController:c.b({strong:!0,type:K,viewOutlet:"quickAccessView"}),__superMap:{_$uj$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"HomeLoginViewController"}})},function(e,t,n){"use strict";var i=n(1099),r=n(95),a=n(818),o=n(81),s=n(828),c=n(821),l=n(1100),u=n(1101),d=n(38),h=n(417),p=(n(6),n(13),r.b("ModalPresentationAnimationDirection",{PRESENT:"PRESENT",DISMISS:"DISMISS"})),f=a.a.extend({mixinDependencies:[l.a],direction:o.d({type:p,defaultValue:p.PRESENT}),animateTransition:function(e){var t=e.toViewController,n=e.fromViewController,i=void 0;if(this.direction===p.PRESENT){var r=t.view;Object(u.d)(r),i=Object(d.e)(r).then(function(){Object(d.h)(r)}),s.a(n,h.a)&&n.presentModalContent()}else{var a=n.view;i=Object(d.f)(a).then(function(){Object(u.a)(a),Object(d.h)(a)}),s.a(t,h.a)&&t.dismissModalContent()}i.then(function(){e.completeTransition(!0)})},animationEnded:c.a,staticMembers:{__QUALIFIED_CLASS_NAME__:"ModalFadeAnimationController"}}),m=n(1102),g=(n(125),n(0),m.a.extend({presentationTransitionWillBegin:function(){this.containerView.element.classList.add("modal-form-sheet-content")},dismissalTransitionDidEnd:function(e){this.containerView.element.classList.remove("modal-form-sheet-content")},staticMembers:{__QUALIFIED_CLASS_NAME__:"ModalFormSheetPresentationController"}}));n(0),n(6),n(13),n(125),n.d(t,"a",function(){return b});var b=i.a.extend({animationControllerForPresentedViewController:function(e,t,n){return f.create({direction:p.PRESENT})},animationControllerForDismissedViewController:function(e){return f.create({direction:p.DISMISS})},presentationControllerForPresentedViewController:function(e,t,n){return g.create(e,t,n.view)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ModalTransitioningDelegate"}})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(89),o=n(81),s=n(100),c=n(86),l=n(932),u=n(78),d=n(161),h=n(877),p=n(104),f=(n(71),n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(33),n(13),n(58),h.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"ownAttachedChildViews"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"sizeCSSClass",attributes:{}}]},__QUALIFIED_CLASS_NAME__:"AppSwitcherView"},additionalClassNames:p.b(["app-switcher-view"]),attachesOwnChildViews:r.b(!0),childViews:r.b({type:a.b}),ownAttachedChildViews:r.b({readOnly:!0,dependencies:["attachesOwnChildViews","childViews"],get:Object.assign(function(){return this.attachesOwnChildViews?this.childViews:void 0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?i.internalGet(this,t[1+n]):void 0}})}),size:r.b({type:d.c}),sizeCSSClass:r.b({type:String,readOnly:!0,dependencies:["size"],get:function(){var e=this.size;return e&&e.value}})})),m=n(36),g=n(129),b=n(29),v=n(828),_=n(853),y=n(819),C=n(145),I={mixinDependencies:[C.a],init:function(){var e=arguments;this.__s._$CH$init.apply(this,e),v.a(this,_.a)||y.b("[ComparableArraySupport] Mixed into incompatible class",{class:this.constructor.name})},isEqual:function(e){return e===this||!!v.a(e,_.a)&&this.isEqualToCoreArray(e)},isEqualToCoreArray:function(e){if(e.length!==this.length)return!1;for(var t=0,n=e.length;t<n;t++){var i=e.objectAt(t),r=this.objectAt(t);if(!Object(C.b)(i,r))return!1}return!0},__superMap:{_$CH$init:"init"}},w=a.b.extend(I,{staticMembers:{__QUALIFIED_CLASS_NAME__:"ComparableArray"}});n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(33),n(13),n(58),n(71),n.d(t,"a",function(){return S});var S=i.a.extend({collection:r.b({type:a.b}),attachesOwnChildViews:r.b(!0),childViews:r.b({type:a.b}),itemViewClass:d.b,size:r.b({type:d.c,defaultValue:d.c.LARGE}),view:r.b({downstreamBindings:{childViews:"(owner).childViews",attachesOwnChildViews:"(owner).attachesOwnChildViews",size:"(owner).size"}}),viewClass:f,appSwitcherDidSelectItem:function(e){var t=e.applicationIdentifier;b.a.sharedInstance.switchToApplication(t,e)},prepareForDisplay:function(){return this._childViewsCompletionPromise},_displayOrder:r.b({type:a.b}),_childViewsCompletionPromise:o.d({type:s.a}),_iconViews:o.d({type:Map,defaultValue:c.c(Map)}),_createChildViews:function(){var e=this,t=[],n=[],i=this.collection,r=this.itemViewClass;if(i){var a=i,o=Array.isArray(a),c=0;for(a=o?a:a[Symbol.iterator]();;){var u;if(o){if(c>=a.length)break;u=a[c++]}else{if((c=a.next()).done)break;u=c.value}var d=u;if(this._shouldDisplayApplication(d)){var h=d.applicationIdentifier,p=this._getCachedItemView(h);p||(p=r.create({content:d,size:this.bindingFor("size")}),n.push(p.prepareItemView()),this._saveCachedItemView(h,p)),t.push(p)}}}this._childViewsCompletionPromise=s.a.all(n).then(function(){Object(C.b)(i,e.collection)&&(e.childViews=l.a.create(t))})},_getCachedItemView:function(e){return this._iconViews.get(e)},_saveCachedItemView:function(e,t){var n=this._iconViews;if(n.has(e)){var i=n.get(e);n.delete(e),i.release(this,"[AppSwitcherViewController] Release app icon view")}n.set(e,t),t.retain(this,"[AppSwitcherViewController] Retain app icon view")},_shouldDisplayApplication:function(e){return e.applicationIdentifier!==g.a.identifier},_displayOrderObserver:u.h(m.a.sharedInstance.bindingFor("displayOrder"),m.a.sharedInstance.bindingFor("displayOrder.contentsDidChange"),function(e){var t=w.create(e);t.isEqual(this._displayOrder)||(this.collection=t.map(function(e){return d.a.create({applicationIdentifier:e.identifier})}),this._displayOrder=t,this._createChildViews())}),staticMembers:{__QUALIFIED_CLASS_NAME__:"AppSwitcherViewController"}})},function(e,t,n){"use strict";var i=n(81),r=n(833),a=n(1059),o=n(1053),s=n(864),c=n(819),l=n(863),u=s.a.extend({responseMethods:i.d(),prefix:i.d(),encode:function(e){if(!Object(r.a)(e)){var t=e.method;this.responseMethods.some(function(e){return t===e})&&e.params&&e.params.length>=2&&(e.id=e.params[0],e.result=e.params[1],delete e.params,delete e.method);try{e=JSON.stringify(e),e=this.prefix+e}catch(t){Object(c.b)("Could not encode object to JSON.",{object:e,error:t})}}return e},decode:function(e){if(Object(r.a)(e)){var t=this.prefix;0===e.indexOf(t)&&(e=e.substr(t.length));try{for(var n in(e=JSON.parse(e)).params.splice(0,0,e.id),e)e.hasOwnProperty(n)&&"method"!==n&&"params"!==n&&"jsonrpc"!==n&&(e.params.push(e[n]),delete e[n])}catch(t){l.b.warn("Could not decode string as JSON",e),e=null}}return e},staticMembers:{__QUALIFIED_CLASS_NAME__:"AppleIdJsonSerializer"}});n.d(t,"a",function(){return d});var d=a.a.extend({responseMethods:i.d(),prefix:i.d(),_constructRPCMethodName:function(e,t){if(!t)throw new o.a("AppleIdMessagingChannel - no method name specified");if(!Object(r.a)(t))throw new o.a("AppleIdMessagingChannel - method name specified is not a string");return""+t},_createJsonRpcListener:function(e){var t=this.__s._$Ou$_createJsonRpcListener.call(this,e);return t.serializer=u.create({prefix:this.prefix,responseMethods:this.responseMethods}),t},_createJsonRpcCaller:function(e){var t=this.__s._$U0$_createJsonRpcCaller.call(this,e);return t.serializer=u.create({prefix:this.prefix,responseMethods:this.responseMethods}),t},__superMap:{_$Ou$_createJsonRpcListener:"_createJsonRpcListener",_$U0$_createJsonRpcCaller:"_createJsonRpcCaller"},staticMembers:{__QUALIFIED_CLASS_NAME__:"AppleIdMessagingChannel"}})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(100),o=n(819),s=n(828),c=n(89),l=n(932),u=n(81),d=n(222),h=n(877),p=n(930),f=n(86),m=n(948),g=n(104),b=n(898),v=n(80),_=(n(267),n(312)),y=(n(0),n(5),n(126),h.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"appleIconView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isAppleLogoVisible",truevalue:"",falsevalue:"hide-apple-logo",attributes:{}}]},{type:"VIEWOUTLET",tagname:"view",name:"navigationHeaderTitleView"},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"cancelButtonView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isCancelButtonVisible",truevalue:"",falsevalue:"hide-cancel-button",attributes:{}}]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"navigationHeaderTitle",truevalue:"navigation-header-view",falsevalue:"hide-navigation-header",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"navigationContentView"}],classes:["navigation-content-view"]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isSpinnerViewVisible",truevalue:"view-hidden",falsevalue:"",attributes:{}},"navigation-container-view"]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"tertiaryButtonView"},{type:"VIEWOUTLET",tagname:"view",name:"secondaryButtonView"},{type:"ELEMENT",tagname:"div",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"secondaryButtonTitle",truevalue:"separator-view",falsevalue:"hide-separator-view",attributes:{}}]},{type:"VIEWOUTLET",tagname:"view",name:"primaryButtonView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isFooterViewVisible",truevalue:"",falsevalue:"view-hidden",attributes:{}},"navigation-footer-container-view"]}],classes:["navigation-footer-view"]},{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"}]},__QUALIFIED_CLASS_NAME__:"NavigationLayoutView"},isSpinnerViewVisible:r.b({type:Boolean,defaultValue:!1}),isFooterViewVisible:r.b({type:Boolean,defaultValue:!0}),spinnerView:r.b({strong:!0,readOnly:!0,dependencies:["isSpinnerViewVisible"],type:p.a,get:Object.assign(function(){return this.isSpinnerViewVisible?p.a.create({color:"black"}):void 0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?p.a.create({color:"black"}):void 0}})}),isAppleLogoVisible:r.b({type:Boolean,defaultValue:!1}),appleIconView:r.b({type:_.a,defaultValue:f.c(_.a)}),navigationHeaderTitle:r.b({type:String}),navigationHeaderTitleView:r.b({defaultValue:f.c(m.a,{additionalClassNames:g.b(["navigation-header-title"])}),downstreamBindings:{value:"(owner).navigationHeaderTitle"}}),isCancelButtonVisible:r.b({type:Boolean,defaultValue:!1}),cancelButtonView:r.b({defaultValue:f.c(b.a,{additionalClassNames:g.b(["cancel-button"]),action:"cancelButtonDidClick"}),title:v.d("CloudOS.Button.Cancel.Title")}),primaryButtonTitle:r.b({type:String}),primaryButtonView:r.b({defaultValue:f.c(b.a,{additionalClassNames:g.b(["primary-button-view"]),action:"primaryButtonDidClick"}),downstreamBindings:{title:"(owner).primaryButtonTitle",isDisabled:"(owner).primaryButtonDisabled"}}),secondaryButtonTitle:r.b({type:String}),secondaryButtonView:r.b({defaultValue:f.c(b.a,{additionalClassNames:g.b(["secondary-button-view"]),action:"secondaryButtonDidClick"}),downstreamBindings:{title:"(owner).secondaryButtonTitle"}}),tertiaryButtonTitle:r.b({type:String}),tertiaryButtonView:r.b({defaultValue:f.c(b.a,{additionalClassNames:g.b(["tertiary-button-view"]),action:"tertiaryButtonDidClick"}),downstreamBindings:{title:"(owner).tertiaryButtonTitle"}}),primaryButtonDisabled:r.b({type:Boolean})})),C=n(1088);n(0),n(5),n(267),n(126),n.d(t,"a",function(){return I});var I=i.a.extend({viewClass:y,view:r.b({type:y,downstreamBindings:{isAppleLogoVisible:"(owner)._currentChildViewController.isAppleLogoVisible",navigationHeaderTitle:"(owner)._currentChildViewController.navigationHeaderTitle",isCancelButtonVisible:"(owner)._currentChildViewController.isCancelButtonVisible",primaryButtonTitle:"(owner)._currentChildViewController.primaryButtonTitle",primaryButtonDisabled:"(owner)._currentChildViewController.primaryButtonDisabled",secondaryButtonTitle:"(owner)._currentChildViewController.secondaryButtonTitle",tertiaryButtonTitle:"(owner)._currentChildViewController.tertiaryButtonTitle"}}),primaryButtonDidClick:function(){var e=this;this.view.isSpinnerViewVisible=!0,this.view.isFooterViewVisible=!1,this._currentChildViewController.performPrimaryAction().then(function(t){var n=e._errorOperationStatus;if(n)e._navigationLayoutPromise.resolve(n);else if(e.view.isSpinnerViewVisible=!1,e.view.isFooterViewVisible=!0,t.isOK){var i=t.data;e._currentStage++,e._currentStage<e._navigationChildViewControllers.length?e._goToNextStage(i):e._navigationLayoutPromise.resolve(C.a.SUCCESS)}else e._errorOperationStatus=t.status,e._currentChildViewController=t.data})},secondaryButtonDidClick:function(){this._currentChildViewController.performSecondaryAction()},tertiaryButtonDidClick:function(){this._currentChildViewController.performTertiaryAction()},cancelButtonDidClick:function(){this._currentChildViewController.performCancelAction()},execute:function(){var e=a.a.create();return this._goToNextStage(),this._navigationLayoutPromise=e,e},init:function(e){this.__s._$qa$init.call(this),e||o.b("[NavigationLayoutViewController] - Missing ChildViewController"),this._navigationChildViewControllers=s.a(e,c.b)?e:l.a.create(e)},_currentStage:u.d({type:Number,defaultValue:0}),_currentChildViewController:d.b({viewOutlet:"navigationContentView"}),_navigationLayoutPromise:u.d({type:a.a}),_errorOperationStatus:u.d({type:C.a}),_navigationChildViewControllers:u.d({type:l.a}),_goToNextStage:function(e){var t=this._navigationChildViewControllers.objectAt(this._currentStage);this._currentChildViewController=t,t.data=e},__superMap:{_$qa$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"NavigationLayoutViewController"}})},function(e,t,n){"use strict";n(219);var i=n(1078),r=n(871),a=n(98),o=n(80),s=n(898),c=n(104),l=n(81),u=n(819),d=n(866),h=n(1042),p=n(1045),f=n(1156),m=n(11),g=n(26),b=n(877),v=n(930),_=n(86),y=n(869),C=(n(0),n(5),b.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"img",classes:["img-icon-view"],attributes:{src:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"shareIconURL",attributes:{},attribute:"src"}}},{type:"ELEMENT",tagname:"img",name:"thumbnailImage",classes:["img-thumbnail-icon-view"],attributes:{src:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"thumbnailIconURL",attributes:{},attribute:"src"}}}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isShareIconVisible",truevalue:"share-icon-view",falsevalue:"hide-view",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"hasThumbnailLoaded",truevalue:"has-thumbnail",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"shareTitle",attributes:{}}],classes:["share-title-view"]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"shareDescriptionOne",attributes:{}}],classes:["share-description-one"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"shareDescriptionTwo",attributes:{escape:"false"}}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isOONFlow",truevalue:"hide-view",falsevalue:"share-description-two",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"shareDescriptionThree",attributes:{}}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isOONFlow",truevalue:"hide-view",falsevalue:"share-description-three",attributes:{}}]}],classes:["share-description-view"]}],classes:["share-content-container-view"]},{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"shareButtonThreeView"},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"shareButtonTwoView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isShareButtonTwoVisible",truevalue:"show-button",falsevalue:"hide-button",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"shareButtonOneView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isTouchSupported",truevalue:"hide-notnow-button",falsevalue:"show-notnow-button",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"shareButtonFourView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isTouchSupported",truevalue:"show-signout-button",falsevalue:"hide-signout-button",attributes:{}}]}],classes:["share-button-view"]}],classes:["share-button-container-view"]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isSpinnerViewVisible",truevalue:"hide-share-container-view",falsevalue:"share-container-view",attributes:{}}]},{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"}]},__QUALIFIED_CLASS_NAME__:"ShareAcceptanceView"},isTouchSupported:a.b({type:Boolean,defaultValue:!1}),wasShareAccepted:a.b({type:Boolean,defaultValue:!1}),shareIconURL:a.b({type:String}),thumbnailIconURL:a.b({type:String}),shareTitle:a.b({type:String}),shareDescriptionOne:a.b({type:String}),shareDescriptionTwo:a.b({type:String}),shareDescriptionThree:a.b({type:String}),shareButtonOneView:a.b({type:s.a}),shareButtonTwoView:a.b({type:s.a}),shareButtonThreeView:a.b({type:s.a}),shareButtonFourView:a.b({type:s.a}),isSeparatorViewVisible:a.b({type:Boolean,defaultValue:!0}),isOONFlow:a.b({type:Boolean,defaultValue:!0}),isShareIconVisible:a.b({type:Boolean,defaultValue:!0}),isShareButtonTwoVisible:a.b({type:Boolean,defaultValue:!0}),isSpinnerViewVisible:a.b({type:Boolean,defaultValue:!1}),spinnerColor:a.b({type:String,didChange:function(e){e&&(this.spinnerView.color=e)}}),spinnerView:a.b({strong:!0,readOnly:!0,type:v.a,defaultValue:_.c(v.a.extend({color:"#FFFFFF"})),downstreamBindings:{isVisible:"(owner).isSpinnerViewVisible"}}),hasThumbnailLoaded:a.b({type:Boolean,defaultValue:!1}),init:function(){var e=this,t=arguments;this.__s._$1X7$init.apply(this,t),y.a(this.thumbnailImage,"load",function(t){e.onload(t)})},onload:function(e){this.hasThumbnailLoaded=!0},__superMap:{_$1X7$init:"init"}})),I=n(23),w=n(186),S=n(120),A=n(240),O=n(239),E=n(238),T=n(36),D=n(593),L=n(418);n(1),n(0),n(5),n(2),n(4),n(3),n(219),n.d(t,"a",function(){return N});var N=r.a.extend({viewClass:C,cloudOSUser:a.b(I.a.bindingFor("sharedInstance.cloudOSUser")),authenticationState:a.b({readOnly:!0,binding:I.a.bindingFor("sharedInstance.authenticationState")}),view:a.b({type:C,downstreamBindings:{shareIconURL:"(owner).shareIconURL",thumbnailIconURL:"(owner).thumbnailIconURL",shareTitle:"(owner).shareTitleToUse",shareDescriptionOne:"(owner).shareDescriptionOne",shareDescriptionTwo:"(owner).shareDescriptionTwo",shareDescriptionThree:"(owner).shareDescriptionThree",shareButtonOneView:"(owner).shareButtonOneView",shareButtonTwoView:"(owner).shareButtonTwoView",shareButtonThreeView:"(owner).shareButtonThreeView",shareButtonFourView:"(owner).shareButtonFourView",isSeparatorViewVisible:"(owner).isSeparatorViewVisible",wasShareAccepted:"(owner).wasShareAccepted",isTouchSupported:"(owner).isTouchSupported",isOONFlow:"(owner).isOONFlow",isShareIconVisible:"(owner).isShareIconVisible",isShareButtonTwoVisible:"(owner).isShareButtonTwoVisible",isSpinnerViewVisible:"(owner).isSpinnerViewVisible",spinnerColor:"(owner).spinnerColor"}}),isSpinnerViewVisible:a.b({type:Boolean,defaultValue:!1}),spinnerColor:a.b({type:String,defaultValue:"black"}),wasShareAccepted:a.b({type:Boolean,defaultValue:!1}),isTouchSupported:a.b({type:Boolean,defaultValue:!1}),shareIconURL:a.b({type:String}),thumbnailIconURL:a.b({type:String}),isOONFlow:a.b({type:Boolean,defaultValue:!1}),isShareButtonTwoVisible:a.b({type:Boolean,dependencies:["isOONFlow","wasShareAccepted","isTouchSupported"],readOnly:!0,get:Object.assign(function(){var e=this.isOONFlow,t=this.isTouchSupported;return!(this.wasShareAccepted||(!e||!t)&&!e&&t)},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]),a=i.internalGet(this,t[2+n]);return!(i.internalGet(this,t[1+n])||(!r||!a)&&!r&&a)}})}),isShareIconVisible:a.b({type:Boolean,dependencies:["isOONFlow","shareIconURL"],readOnly:!0,get:Object.assign(function(){return!(this.isOONFlow||!this.shareIconURL)},{__CW__getter:function(e,t,n,i){return!(i.internalGet(this,t[0+n])||!i.internalGet(this,t[1+n]))}})}),shareTitle:a.b({type:String}),shareTitleToUse:Object(f.a)({type:String,dependencies:["isOONFlow","shareTitle"],readOnly:!0,get:Object.assign(function(){return this.isOONFlow?o.d("CloudOS.OutOfNetworkAcceptance.Title"):"“"+this.shareTitle+"“"},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?o.d("CloudOS.OutOfNetworkAcceptance.Title"):"“"+i.internalGet(this,t[1+n])+"“"}})}),shareDescriptionOne:Object(f.a)({type:String,dependencies:["_ownerFullName","_fileType","isOONFlow","shareTitle","wasShareAccepted"],readOnly:!0,get:Object.assign(function(){if(this.isOONFlow){var e=this.shareTitle,t="CloudOS.OutOfNetworkAcceptance.Description"+(this.wasShareAccepted?".Accepted":"");return e?o.d(t,{shareTitle:e}):""}var n=this._ownerFullName,i=this._fileType;return n?o.d("CloudOS.InNetworkAcceptance.Description.One",{ownerName:n,fileType:i}):""},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[2+n])){var r=i.internalGet(this,t[3+n]),a="CloudOS.OutOfNetworkAcceptance.Description"+(i.internalGet(this,t[4+n])?".Accepted":"");return r?o.d(a,{shareTitle:r}):""}var s=i.internalGet(this,t[0+n]),c=i.internalGet(this,t[1+n]);return s?o.d("CloudOS.InNetworkAcceptance.Description.One",{ownerName:s,fileType:c}):""}})}),shareDescriptionTwo:Object(f.a)({type:String,dependencies:["cloudOSUser","_isPublicShare","_applicationNameForDescription","_isAuthenticated","wasShareAccepted"],readOnly:!0,get:Object.assign(function(){if(this._isPublicShare&&!this._isAuthenticated){var e=this._applicationNameForDescription;return e?o.d("CloudOS.InNetworkAcceptance.PublicShare.Description.Two",{applicationName:e}):""}var t=this.cloudOSUser;if(t){var n=t.details,i=n.fullName,r=n.appleId,a='<span class="share-user-label">'+o.d("CloudOS.InNetworkAcceptance.Description.Two.UserDetails",{shareeFullName:i,shareeAppleId:r})+"</span>",s="CloudOS.InNetworkAcceptance.Description.Two"+(this.wasShareAccepted?".Accepted":"");return o.d(s,{userDetails:a})}},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[1+n])&&!i.internalGet(this,t[3+n])){var r=i.internalGet(this,t[2+n]);return r?o.d("CloudOS.InNetworkAcceptance.PublicShare.Description.Two",{applicationName:r}):""}var a=i.internalGet(this,t[0+n]);if(a){var s=a.details,c=s.fullName,l=s.appleId,u='<span class="share-user-label">'+o.d("CloudOS.InNetworkAcceptance.Description.Two.UserDetails",{shareeFullName:c,shareeAppleId:l})+"</span>",d="CloudOS.InNetworkAcceptance.Description.Two"+(i.internalGet(this,t[4+n])?".Accepted":"");return o.d(d,{userDetails:u})}}})}),shareDescriptionThree:Object(f.a)({type:String,dependencies:["_applicationNameForDescription","_fileType","_isPublicShare","_isAuthenticated","_applicationIdentifier","wasShareAccepted"],readOnly:!0,get:Object.assign(function(){if(!this._isPublicShare||this._isPublicShare&&this._isAuthenticated){var e=this._fileType;if(this._applicationIdentifier===S.a.identifier)return"";var t=this._applicationNameForDescription,n="CloudOS.InNetworkAcceptance.Description.Three"+(this.wasShareAccepted?".Accepted":"");return t?o.d(n,{fileType:e,applicationName:t}):""}},{__CW__getter:function(e,t,n,i){if(!i.internalGet(this,t[2+n])||i.internalGet(this,t[2+n])&&i.internalGet(this,t[3+n])){var r=i.internalGet(this,t[1+n]);if(i.internalGet(this,t[4+n])===S.a.identifier)return"";var a=i.internalGet(this,t[0+n]),s="CloudOS.InNetworkAcceptance.Description.Three"+(i.internalGet(this,t[5+n])?".Accepted":"");return a?o.d(s,{fileType:r,applicationName:a}):""}}})}),shareButtonOneView:a.b({dependencies:["_buttonTitleOne","_isAuthenticated"],readOnly:!0,get:Object.assign(function(){if(this._isAuthenticated){var e=this._buttonTitleOne;if(e)return s.a.create({title:e,action:"_notNowButtonDidClick",target:this,additionalClassNames:c.b(["share-button-one"])})}},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[1+n])){var r=i.internalGet(this,t[0+n]);if(r)return s.a.create({title:r,action:"_notNowButtonDidClick",target:this,additionalClassNames:c.b(["share-button-one"])})}}})}),shareButtonTwoView:Object(f.a)({dependencies:["_buttonTitleTwo","isOONFlow"],readOnly:!0,get:Object.assign(function(){if(this.isOONFlow)return s.a.create({title:o.d("CloudOS.OutOfNetworkAcceptance.VerifyButton.Title"),action:"_verifyButtonDidClick",target:this,additionalClassNames:c.b(["share-button-two"])});var e=this._buttonTitleTwo;return e?s.a.create({title:e,action:"_addToButtonDidClick",target:this,additionalClassNames:c.b(["share-button-two"])}):void 0},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[1+n]))return s.a.create({title:o.d("CloudOS.OutOfNetworkAcceptance.VerifyButton.Title"),action:"_verifyButtonDidClick",target:this,additionalClassNames:c.b(["share-button-two"])});var r=i.internalGet(this,t[0+n]);return r?s.a.create({title:r,action:"_addToButtonDidClick",target:this,additionalClassNames:c.b(["share-button-two"])}):void 0}})}),shareButtonThreeView:Object(f.a)({dependencies:["_isPublicShare","_isAuthenticated","_isFolderSharing","isTouchSupported"],readOnly:!0,get:Object.assign(function(){var e=["share-button-three"];if(this._isAuthenticated&&e.push("share-button-three-post-auth"),this._applicationIdentifier===S.a.identifier||this._isIWorkDocument){if(this.isTouchSupported)return this._isIWorkDocument?s.a.create({title:o.d("CloudOS.InNetworkAcceptance.PreviewButton."+this._applicationIdentifier),action:"_openIWorkPreviewDidClick",target:this,additionalClassNames:c.b(e)}):s.a.create({title:o.d("CloudOS.InNetworkAcceptance.PublicShare.DownloadCopyButton.Title"),action:"_downloadACopyButtonDidClick",target:this,additionalClassNames:c.b(e)});if(this._isPublicShare&&!this._isFolderSharing)return s.a.create({title:o.d("CloudOS.InNetworkAcceptance.PublicShare.DownloadCopyButton.Title"),action:"_downloadACopyButtonDidClick",target:this,additionalClassNames:c.b(e)})}},{__CW__getter:function(e,t,n,i){var r=["share-button-three"];if(i.internalGet(this,t[1+n])&&r.push("share-button-three-post-auth"),this._applicationIdentifier===S.a.identifier||this._isIWorkDocument){if(i.internalGet(this,t[3+n]))return this._isIWorkDocument?s.a.create({title:o.d("CloudOS.InNetworkAcceptance.PreviewButton."+this._applicationIdentifier),action:"_openIWorkPreviewDidClick",target:this,additionalClassNames:c.b(r)}):s.a.create({title:o.d("CloudOS.InNetworkAcceptance.PublicShare.DownloadCopyButton.Title"),action:"_downloadACopyButtonDidClick",target:this,additionalClassNames:c.b(r)});if(i.internalGet(this,t[0+n])&&!i.internalGet(this,t[2+n]))return s.a.create({title:o.d("CloudOS.InNetworkAcceptance.PublicShare.DownloadCopyButton.Title"),action:"_downloadACopyButtonDidClick",target:this,additionalClassNames:c.b(r)})}}})}),shareButtonFourView:Object(f.a)({dependencies:["isTouchSupported"],readOnly:!0,get:Object.assign(function(){if(this.isTouchSupported&&this._isAuthenticated)return s.a.create({title:o.d("CloudOS.InNetworkAcceptance.SignOutButton.Title"),action:"_signOutButtonDidClick",target:this,additionalClassNames:c.b(["share-button-one"])})},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n])&&this._isAuthenticated)return s.a.create({title:o.d("CloudOS.InNetworkAcceptance.SignOutButton.Title"),action:"_signOutButtonDidClick",target:this,additionalClassNames:c.b(["share-button-one"])})}})}),isSeparatorViewVisible:a.b({type:Boolean,defaultValue:!0}),shareAcceptanceController:l.d({type:w.a}),init:function(e,t,i,r){this.__s._$3oA$init.call(this),e||u.b("[ShareAcceptanceViewController] - No shareAcceptanceController has been provided"),t||u.b("[ShareAcceptanceViewController] - No share record has been provided");var a=t.applicationIdentifier,s=t.downloadURL,c=t.fileType,l=t.iconURL,d=t.thumbnailIconURL,f=t.isFolderSharing,m=t.isPublicShare,g=t.ownerName,b=t.title,v=t.outOfNetworkParticipantList,_=t.shortGuid;this.shareTitle=b,this._ownerFullName=g,this.shareIconURL=l,this.thumbnailIconURL=d,this._downloadURL=s,this._isFolderSharing=f,this._applicationIdentifier=a,this._shortGuid=_,f?(this.shareIconURL=n(1037),this._fileType=o.d("CloudOS.iclouddrive.folder.FileType"),m&&!i&&(this.isSeparatorViewVisible=!1)):this._fileType=c,this.shareAcceptanceController=e,this._setApplicationName(a),this._isPublicShare=m,this._isAuthenticated=i,h.a.sharedInstance.primaryInteractionMode===p.a.TOUCH&&(this.isTouchSupported=!0),this.wasShareAccepted=r,v&&v.length>0&&(this._outOfNetworkParticipantList=v,this.isOONFlow=!0)},_applicationIdentifier:a.b({type:String}),_shortGuid:a.b({type:String}),_isFolderSharing:a.b({type:Boolean,defaultValue:!1}),_isIWorkDocument:a.b({type:Boolean,defaultValue:!1}),_isPublicShare:a.b({type:Boolean,defaultValue:!1}),_isAuthenticated:a.b({type:Boolean,defaultValue:!1}),_applicationNameForDescription:a.b({type:String}),_applicationNameForButton:a.b({type:String}),_fileType:a.b({type:String}),_buttonTitleOne:Object(f.b)("CloudOS.InNetworkAcceptance.NotNowButton.Title"),_downloadURL:a.b({type:String}),_buttonTitleTwo:Object(f.a)({type:String,dependencies:["_applicationNameForButton"],readOnly:!0,get:Object.assign(function(){var e=this._applicationNameForButton;return e&&"iCloud Drive"===e?o.d("CloudOS.InNetworkAcceptance.AddToButton.Title",{applicationName:e}):o.d("CloudOS.InNetworkAcceptance.OpenInButton.Title",{applicationName:e})},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return r&&"iCloud Drive"===r?o.d("CloudOS.InNetworkAcceptance.AddToButton.Title",{applicationName:r}):o.d("CloudOS.InNetworkAcceptance.OpenInButton.Title",{applicationName:r})}})}),_ownerFullName:a.b({type:String}),_outOfNetworkParticipantList:a.b({type:Array}),_addToButtonDidClick:function(){this.isSpinnerViewVisible=!0,this.shareAcceptanceController.acceptShare(this._isAuthenticated)},_verifyButtonDidClick:function(){this.shareAcceptanceController.verifyAccess(this._isAuthenticated)},_notNowButtonDidClick:function(){this.shareAcceptanceController.declineShare()},_downloadACopyButtonDidClick:function(){var e=D.a.create(" ","icloud-content.com"),t=L.a.create(this._downloadURL," ");e.download(t)},_openIWorkPreviewDidClick:function(){var e=g.a.sharedInstance.port,t=m.a.protocol,n=i.a.sharedInstance.current,r=n.subdomain,a=n.domain,o=m.a.getFallbackOrderForSubDomain(r),s=T.a.sharedInstance.getApplicationInfo(this._applicationIdentifier).supportedSubDomains,c=void 0,l=o,u=Array.isArray(l),h=0;for(l=u?l:l[Symbol.iterator]();;){var p;if(u){if(h>=l.length)break;p=l[h++]}else{if((h=l.next()).done)break;p=h.value}var f=p;if(s.includes(f)){c=f+"."+a;break}}var b=d.a.create({protocol:t,hostname:c,port:e,pathname:"/"+this._applicationIdentifier+"/"+this._shortGuid,query:"?redirectReason=off",hash:"#:nooverride"});this.shareAcceptanceController.acceptShare(this._isAuthenticated,this.isTouchSupported,b)},_signOutButtonDidClick:function(){return I.a.sharedInstance.unauthenticateUser()},_setApplicationName:function(e){switch(e){case A.a.identifier:this._applicationNameForDescription=S.a.displayName,this._applicationNameForButton=A.a.displayName,this._isIWorkDocument=!0;break;case O.a.identifier:this._applicationNameForDescription=S.a.displayName,this._applicationNameForButton=O.a.displayName,this._isIWorkDocument=!0;break;case E.a.identifier:this._applicationNameForDescription=S.a.displayName,this._applicationNameForButton=E.a.displayName,this._isIWorkDocument=!0;break;default:var t=T.a.sharedInstance.getConfiguration(e)||S.a;this._applicationNameForDescription=t.displayName,this._applicationNameForButton=t.displayName}},__superMap:{_$3oA$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ShareAcceptanceViewController"}})},function(e,t,n){"use strict";var i=n(818),r=n(81),a=n(828),o=n(1160),s=n(145),c=n(889),l=n(422),u=i.a.extend({mixinDependencies:[o.a,s.a],staticMembers:{deserialize:function(e){if(e){var t=Object(l.a)(e);return this.create({date:t,timeArray:e})}},__QUALIFIED_CLASS_NAME__:"CalendarDate"},date:r.d({type:Date}),timeArray:r.d({type:Array}),serialize:function(){return this.timeArray},isEqual:function(e){return e===this||!!a.a(e,u)&&this.isEqualToCalendarDate(e)},isEqualToCalendarDate:function(e){return c.a(this.timeArray,e.timeArray)}});n.d(t,"a",function(){return d});var d=i.a.extend({mixinDependencies:[o.a,s.a],applicationIdentifier:r.d({type:String,serialization:{ignore:!0}}),allDay:r.d({type:Boolean}),duration:r.d({type:Number}),guid:r.d({type:String}),localStartDate:r.d({type:u}),localEndDate:r.d({type:u}),startDate:r.d({type:u}),location:r.d({type:String}),messageType:r.d({type:String}),pGuid:r.d({type:String}),startDateIsAllDay:r.d({type:Boolean}),timeZone:r.d({type:String,serialization:{propertyName:"tz"}}),triggerDate:r.d({type:u}),title:r.d({type:String}),isEqual:function(e){return e===this||!!a.a(e,d)&&this.isEqualToAlarmTrigger(e)},isEqualToAlarmTrigger:function(e){return e.applicationIdentifier===this.applicationIdentifier&&e.allDay===this.allDay&&e.duration===this.duration&&e.guid===this.guid&&e.location===this.location&&e.messageType===this.messageType&&e.pGuid===this.pGuid&&e.startDateIsAllDay===this.startDateIsAllDay&&e.timeZone===this.timeZone&&e.title===this.title&&Object(s.b)(this.localStartDate,e.localStartDate)&&Object(s.b)(this.localEndDate,e.localEndDate)},staticMembers:{__QUALIFIED_CLASS_NAME__:"AlarmTrigger"}})},function(e,t,n){n(1143),n(1139),n(1136),n(1138),n(1141),n(1142),n(1144),n(1145),n(1146),n(1147),n(1148),n(1150),n(1149),n(1151),n(1152),n(1153),n(1140),n(1137),n(1154),n(1155),n(612),n(815),e.exports=n(816)},function(e,t,n){"use strict";n(613)},function(e,t,n){"use strict";(function(e){if(n(614),n(811),n(812),e._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");e._babelPolyfill=!0;var t="defineProperty";function i(e,n,i){e[n]||Object[t](e,n,{writable:!0,configurable:!0,value:i})}i(String.prototype,"padLeft","".padStart),i(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&i(Array,e,Function.call.bind([][e]))})}).call(this,n(31))},function(e,t,n){n(615),n(618),n(619),n(620),n(621),n(622),n(623),n(624),n(625),n(626),n(627),n(628),n(629),n(630),n(631),n(632),n(633),n(634),n(635),n(636),n(637),n(638),n(639),n(640),n(641),n(642),n(643),n(644),n(645),n(646),n(647),n(648),n(649),n(650),n(651),n(652),n(653),n(654),n(655),n(656),n(657),n(658),n(659),n(660),n(661),n(662),n(663),n(664),n(665),n(666),n(667),n(668),n(669),n(670),n(671),n(672),n(673),n(674),n(675),n(676),n(677),n(678),n(679),n(680),n(681),n(682),n(683),n(684),n(685),n(686),n(687),n(688),n(689),n(690),n(691),n(692),n(693),n(695),n(696),n(698),n(699),n(700),n(701),n(702),n(703),n(704),n(706),n(707),n(708),n(709),n(710),n(711),n(712),n(713),n(714),n(715),n(716),n(717),n(718),n(347),n(719),n(451),n(720),n(452),n(721),n(722),n(723),n(724),n(725),n(455),n(457),n(458),n(726),n(727),n(728),n(729),n(730),n(731),n(732),n(733),n(734),n(735),n(736),n(737),n(738),n(739),n(740),n(741),n(742),n(743),n(744),n(745),n(746),n(747),n(748),n(749),n(750),n(751),n(752),n(753),n(754),n(755),n(756),n(757),n(758),n(759),n(760),n(761),n(762),n(763),n(764),n(765),n(766),n(767),n(768),n(769),n(770),n(771),n(772),n(773),n(774),n(775),n(776),n(777),n(778),n(779),n(780),n(781),n(782),n(783),n(784),n(785),n(786),n(787),n(788),n(789),n(790),n(791),n(792),n(793),n(794),n(795),n(796),n(797),n(798),n(799),n(800),n(801),n(802),n(803),n(804),n(805),n(806),n(807),n(808),n(809),n(810),e.exports=n(114)},function(e,t,n){"use strict";var i=n(32),r=n(74),a=n(54),o=n(9),s=n(69),c=n(150).KEY,l=n(34),u=n(211),d=n(187),h=n(163),p=n(45),f=n(433),m=n(328),g=n(617),b=n(251),v=n(30),_=n(37),y=n(75),C=n(121),I=n(162),w=n(166),S=n(436),A=n(76),O=n(55),E=n(164),T=A.f,D=O.f,L=S.f,N=i.Symbol,M=i.JSON,P=M&&M.stringify,x=p("_hidden"),R=p("toPrimitive"),j={}.propertyIsEnumerable,F=u("symbol-registry"),V=u("symbols"),U=u("op-symbols"),k=Object.prototype,B="function"==typeof N,z=i.QObject,W=!z||!z.prototype||!z.prototype.findChild,H=a&&l(function(){return 7!=w(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var i=T(k,t);i&&delete k[t],D(e,t,n),i&&e!==k&&D(k,t,i)}:D,$=function(e){var t=V[e]=w(N.prototype);return t._k=e,t},G=B&&"symbol"==typeof N.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof N},K=function(e,t,n){return e===k&&K(U,t,n),v(e),t=C(t,!0),v(n),r(V,t)?(n.enumerable?(r(e,x)&&e[x][t]&&(e[x][t]=!1),n=w(n,{enumerable:I(0,!1)})):(r(e,x)||D(e,x,I(1,{})),e[x][t]=!0),H(e,t,n)):D(e,t,n)},Q=function(e,t){v(e);for(var n,i=g(t=y(t)),r=0,a=i.length;a>r;)K(e,n=i[r++],t[n]);return e},q=function(e){var t=j.call(this,e=C(e,!0));return!(this===k&&r(V,e)&&!r(U,e))&&(!(t||!r(this,e)||!r(V,e)||r(this,x)&&this[x][e])||t)},Y=function(e,t){if(e=y(e),t=C(t,!0),e!==k||!r(V,t)||r(U,t)){var n=T(e,t);return!n||!r(V,t)||r(e,x)&&e[x][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=L(y(e)),i=[],a=0;n.length>a;)r(V,t=n[a++])||t==x||t==c||i.push(t);return i},J=function(e){for(var t,n=e===k,i=L(n?U:y(e)),a=[],o=0;i.length>o;)!r(V,t=i[o++])||n&&!r(k,t)||a.push(V[t]);return a};B||(s((N=function(){if(this instanceof N)throw TypeError("Symbol is not a constructor!");var e=h(arguments.length>0?arguments[0]:void 0),t=function(n){this===k&&t.call(U,n),r(this,x)&&r(this[x],e)&&(this[x][e]=!1),H(this,e,I(1,n))};return a&&W&&H(k,e,{configurable:!0,set:t}),$(e)}).prototype,"toString",function(){return this._k}),A.f=Y,O.f=K,n(167).f=S.f=X,n(213).f=q,n(250).f=J,a&&!n(149)&&s(k,"propertyIsEnumerable",q,!0),f.f=function(e){return $(p(e))}),o(o.G+o.W+o.F*!B,{Symbol:N});for(var Z="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;Z.length>ee;)p(Z[ee++]);for(var te=E(p.store),ne=0;te.length>ne;)m(te[ne++]);o(o.S+o.F*!B,"Symbol",{for:function(e){return r(F,e+="")?F[e]:F[e]=N(e)},keyFor:function(e){if(!G(e))throw TypeError(e+" is not a symbol!");for(var t in F)if(F[t]===e)return t},useSetter:function(){W=!0},useSimple:function(){W=!1}}),o(o.S+o.F*!B,"Object",{create:function(e,t){return void 0===t?w(e):Q(w(e),t)},defineProperty:K,defineProperties:Q,getOwnPropertyDescriptor:Y,getOwnPropertyNames:X,getOwnPropertySymbols:J}),M&&o(o.S+o.F*(!B||l(function(){var e=N();return"[null]"!=P([e])||"{}"!=P({a:e})||"{}"!=P(Object(e))})),"JSON",{stringify:function(e){for(var t,n,i=[e],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=t=i[1],(_(t)||void 0!==e)&&!G(e))return b(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!G(t))return t}),i[1]=t,P.apply(M,i)}}),N.prototype[R]||n(68)(N.prototype,R,N.prototype.valueOf),d(N,"Symbol"),d(Math,"Math",!0),d(i.JSON,"JSON",!0)},function(e,t,n){e.exports=n(211)("native-function-to-string",Function.toString)},function(e,t,n){var i=n(164),r=n(250),a=n(213);e.exports=function(e){var t=i(e),n=r.f;if(n)for(var o,s=n(e),c=a.f,l=0;s.length>l;)c.call(e,o=s[l++])&&t.push(o);return t}},function(e,t,n){var i=n(9);i(i.S,"Object",{create:n(166)})},function(e,t,n){var i=n(9);i(i.S+i.F*!n(54),"Object",{defineProperty:n(55).f})},function(e,t,n){var i=n(9);i(i.S+i.F*!n(54),"Object",{defineProperties:n(435)})},function(e,t,n){var i=n(75),r=n(76).f;n(123)("getOwnPropertyDescriptor",function(){return function(e,t){return r(i(e),t)}})},function(e,t,n){var i=n(57),r=n(77);n(123)("getPrototypeOf",function(){return function(e){return r(i(e))}})},function(e,t,n){var i=n(57),r=n(164);n(123)("keys",function(){return function(e){return r(i(e))}})},function(e,t,n){n(123)("getOwnPropertyNames",function(){return n(436).f})},function(e,t,n){var i=n(37),r=n(150).onFreeze;n(123)("freeze",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(e,t,n){var i=n(37),r=n(150).onFreeze;n(123)("seal",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(e,t,n){var i=n(37),r=n(150).onFreeze;n(123)("preventExtensions",function(e){return function(t){return e&&i(t)?e(r(t)):t}})},function(e,t,n){var i=n(37);n(123)("isFrozen",function(e){return function(t){return!i(t)||!!e&&e(t)}})},function(e,t,n){var i=n(37);n(123)("isSealed",function(e){return function(t){return!i(t)||!!e&&e(t)}})},function(e,t,n){var i=n(37);n(123)("isExtensible",function(e){return function(t){return!!i(t)&&(!e||e(t))}})},function(e,t,n){var i=n(9);i(i.S+i.F,"Object",{assign:n(437)})},function(e,t,n){var i=n(9);i(i.S,"Object",{is:n(438)})},function(e,t,n){var i=n(9);i(i.S,"Object",{setPrototypeOf:n(332).set})},function(e,t,n){"use strict";var i=n(188),r={};r[n(45)("toStringTag")]="z",r+""!="[object z]"&&n(69)(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},function(e,t,n){var i=n(9);i(i.P,"Function",{bind:n(439)})},function(e,t,n){var i=n(55).f,r=Function.prototype,a=/^\s*function ([^ (]*)/;"name"in r||n(54)&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(a)[1]}catch(e){return""}}})},function(e,t,n){"use strict";var i=n(37),r=n(77),a=n(45)("hasInstance"),o=Function.prototype;a in o||n(55).f(o,a,{value:function(e){if("function"!=typeof this||!i(e))return!1;if(!i(this.prototype))return e instanceof this;for(;e=r(e);)if(this.prototype===e)return!0;return!1}})},function(e,t,n){var i=n(9),r=n(441);i(i.G+i.F*(parseInt!=r),{parseInt:r})},function(e,t,n){var i=n(9),r=n(442);i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},function(e,t,n){"use strict";var i=n(32),r=n(74),a=n(116),o=n(334),s=n(121),c=n(34),l=n(167).f,u=n(76).f,d=n(55).f,h=n(189).trim,p=i.Number,f=p,m=p.prototype,g="Number"==a(n(166)(m)),b="trim"in String.prototype,v=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){var n,i,r,a=(t=b?t.trim():h(t,3)).charCodeAt(0);if(43===a||45===a){if(88===(n=t.charCodeAt(2))||120===n)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+t}for(var o,c=t.slice(2),l=0,u=c.length;l<u;l++)if((o=c.charCodeAt(l))<48||o>r)return NaN;return parseInt(c,i)}}return+t};if(!p(" 0o1")||!p("0b1")||p("+0x1")){p=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof p&&(g?c(function(){m.valueOf.call(n)}):"Number"!=a(n))?o(new f(v(t)),n,p):v(t)};for(var _,y=n(54)?l(f):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),C=0;y.length>C;C++)r(f,_=y[C])&&!r(p,_)&&d(p,_,u(f,_));p.prototype=m,m.constructor=p,n(69)(i,"Number",p)}},function(e,t,n){"use strict";var i=n(9),r=n(117),a=n(443),o=n(335),s=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",d=function(e,t){for(var n=-1,i=t;++n<6;)i+=e*l[n],l[n]=i%1e7,i=c(i/1e7)},h=function(e){for(var t=6,n=0;--t>=0;)n+=l[t],l[t]=c(n/e),n=n%e*1e7},p=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==l[e]){var n=String(l[e]);t=""===t?n:t+o.call("0",7-n.length)+n}return t},f=function(e,t,n){return 0===t?n:t%2==1?f(e,t-1,n*e):f(e*e,t/2,n)};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n(34)(function(){s.call({})})),"Number",{toFixed:function(e){var t,n,i,s,c=a(this,u),l=r(e),m="",g="0";if(l<0||l>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(n=(t=function(e){for(var t=0,n=e;n>=4096;)t+=12,n/=4096;for(;n>=2;)t+=1,n/=2;return t}(c*f(2,69,1))-69)<0?c*f(2,-t,1):c/f(2,t,1),n*=4503599627370496,(t=52-t)>0){for(d(0,n),i=l;i>=7;)d(1e7,0),i-=7;for(d(f(10,i,1),0),i=t-1;i>=23;)h(1<<23),i-=23;h(1<<i),d(1,1),h(2),g=p()}else d(0,n),d(1<<-t,0),g=p()+o.call("0",l);return l>0?m+((s=g.length)<=l?"0."+o.call("0",l-s)+g:g.slice(0,s-l)+"."+g.slice(s-l)):m+g}})},function(e,t,n){"use strict";var i=n(9),r=n(34),a=n(443),o=1..toPrecision;i(i.P+i.F*(r(function(){return"1"!==o.call(1,void 0)})||!r(function(){o.call({})})),"Number",{toPrecision:function(e){var t=a(this,"Number#toPrecision: incorrect invocation!");return void 0===e?o.call(t):o.call(t,e)}})},function(e,t,n){var i=n(9);i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var i=n(9),r=n(32).isFinite;i(i.S,"Number",{isFinite:function(e){return"number"==typeof e&&r(e)}})},function(e,t,n){var i=n(9);i(i.S,"Number",{isInteger:n(444)})},function(e,t,n){var i=n(9);i(i.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var i=n(9),r=n(444),a=Math.abs;i(i.S,"Number",{isSafeInteger:function(e){return r(e)&&a(e)<=9007199254740991}})},function(e,t,n){var i=n(9);i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var i=n(9);i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var i=n(9),r=n(442);i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},function(e,t,n){var i=n(9),r=n(441);i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},function(e,t,n){var i=n(9),r=n(445),a=Math.sqrt,o=Math.acosh;i(i.S+i.F*!(o&&710==Math.floor(o(Number.MAX_VALUE))&&o(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:r(e-1+a(e-1)*a(e+1))}})},function(e,t,n){var i=n(9),r=Math.asinh;i(i.S+i.F*!(r&&1/r(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var i=n(9),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var i=n(9),r=n(336);i(i.S,"Math",{cbrt:function(e){return r(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var i=n(9);i(i.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var i=n(9),r=Math.exp;i(i.S,"Math",{cosh:function(e){return(r(e=+e)+r(-e))/2}})},function(e,t,n){var i=n(9),r=n(337);i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},function(e,t,n){var i=n(9);i(i.S,"Math",{fround:n(446)})},function(e,t,n){var i=n(9),r=Math.abs;i(i.S,"Math",{hypot:function(e,t){for(var n,i,a=0,o=0,s=arguments.length,c=0;o<s;)c<(n=r(arguments[o++]))?(a=a*(i=c/n)*i+1,c=n):a+=n>0?(i=n/c)*i:n;return c===1/0?1/0:c*Math.sqrt(a)}})},function(e,t,n){var i=n(9),r=Math.imul;i(i.S+i.F*n(34)(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(e,t){var n=+e,i=+t,r=65535&n,a=65535&i;return 0|r*a+((65535&n>>>16)*a+r*(65535&i>>>16)<<16>>>0)}})},function(e,t,n){var i=n(9);i(i.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var i=n(9);i(i.S,"Math",{log1p:n(445)})},function(e,t,n){var i=n(9);i(i.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var i=n(9);i(i.S,"Math",{sign:n(336)})},function(e,t,n){var i=n(9),r=n(337),a=Math.exp;i(i.S+i.F*n(34)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(r(e)-r(-e))/2:(a(e-1)-a(-e-1))*(Math.E/2)}})},function(e,t,n){var i=n(9),r=n(337),a=Math.exp;i(i.S,"Math",{tanh:function(e){var t=r(e=+e),n=r(-e);return t==1/0?1:n==1/0?-1:(t-n)/(a(e)+a(-e))}})},function(e,t,n){var i=n(9);i(i.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){var i=n(9),r=n(165),a=String.fromCharCode,o=String.fromCodePoint;i(i.S+i.F*(!!o&&1!=o.length),"String",{fromCodePoint:function(e){for(var t,n=[],i=arguments.length,o=0;i>o;){if(t=+arguments[o++],r(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?a(t):a(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){var i=n(9),r=n(75),a=n(50);i(i.S,"String",{raw:function(e){for(var t=r(e.raw),n=a(t.length),i=arguments.length,o=[],s=0;n>s;)o.push(String(t[s++])),s<i&&o.push(String(arguments[s]));return o.join("")}})},function(e,t,n){"use strict";n(189)("trim",function(e){return function(){return e(this,3)}})},function(e,t,n){"use strict";var i=n(252)(!0);n(338)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=i(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){"use strict";var i=n(9),r=n(252)(!1);i(i.P,"String",{codePointAt:function(e){return r(this,e)}})},function(e,t,n){"use strict";var i=n(9),r=n(50),a=n(340),o="".endsWith;i(i.P+i.F*n(341)("endsWith"),"String",{endsWith:function(e){var t=a(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=r(t.length),s=void 0===n?i:Math.min(r(n),i),c=String(e);return o?o.call(t,c,s):t.slice(s-c.length,s)===c}})},function(e,t,n){"use strict";var i=n(9),r=n(340);i(i.P+i.F*n(341)("includes"),"String",{includes:function(e){return!!~r(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){var i=n(9);i(i.P,"String",{repeat:n(335)})},function(e,t,n){"use strict";var i=n(9),r=n(50),a=n(340),o="".startsWith;i(i.P+i.F*n(341)("startsWith"),"String",{startsWith:function(e){var t=a(this,e,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),i=String(e);return o?o.call(t,i,n):t.slice(n,n+i.length)===i}})},function(e,t,n){"use strict";n(70)("anchor",function(e){return function(t){return e(this,"a","name",t)}})},function(e,t,n){"use strict";n(70)("big",function(e){return function(){return e(this,"big","","")}})},function(e,t,n){"use strict";n(70)("blink",function(e){return function(){return e(this,"blink","","")}})},function(e,t,n){"use strict";n(70)("bold",function(e){return function(){return e(this,"b","","")}})},function(e,t,n){"use strict";n(70)("fixed",function(e){return function(){return e(this,"tt","","")}})},function(e,t,n){"use strict";n(70)("fontcolor",function(e){return function(t){return e(this,"font","color",t)}})},function(e,t,n){"use strict";n(70)("fontsize",function(e){return function(t){return e(this,"font","size",t)}})},function(e,t,n){"use strict";n(70)("italics",function(e){return function(){return e(this,"i","","")}})},function(e,t,n){"use strict";n(70)("link",function(e){return function(t){return e(this,"a","href",t)}})},function(e,t,n){"use strict";n(70)("small",function(e){return function(){return e(this,"small","","")}})},function(e,t,n){"use strict";n(70)("strike",function(e){return function(){return e(this,"strike","","")}})},function(e,t,n){"use strict";n(70)("sub",function(e){return function(){return e(this,"sub","","")}})},function(e,t,n){"use strict";n(70)("sup",function(e){return function(){return e(this,"sup","","")}})},function(e,t,n){var i=n(9);i(i.S,"Date",{now:function(){return(new Date).getTime()}})},function(e,t,n){"use strict";var i=n(9),r=n(57),a=n(121);i(i.P+i.F*n(34)(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=r(this),n=a(t);return"number"!=typeof n||isFinite(n)?t.toISOString():null}})},function(e,t,n){var i=n(9),r=n(694);i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},function(e,t,n){"use strict";var i=n(34),r=Date.prototype.getTime,a=Date.prototype.toISOString,o=function(e){return e>9?e:"0"+e};e.exports=i(function(){return"0385-07-25T07:06:39.999Z"!=a.call(new Date(-5e13-1))})||!i(function(){a.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),n=e.getUTCMilliseconds(),i=t<0?"-":t>9999?"+":"";return i+("00000"+Math.abs(t)).slice(i?-6:-4)+"-"+o(e.getUTCMonth()+1)+"-"+o(e.getUTCDate())+"T"+o(e.getUTCHours())+":"+o(e.getUTCMinutes())+":"+o(e.getUTCSeconds())+"."+(n>99?n:"0"+o(n))+"Z"}:a},function(e,t,n){var i=Date.prototype,r=i.toString,a=i.getTime;new Date(NaN)+""!="Invalid Date"&&n(69)(i,"toString",function(){var e=a.call(this);return e==e?r.call(this):"Invalid Date"})},function(e,t,n){var i=n(45)("toPrimitive"),r=Date.prototype;i in r||n(68)(r,i,n(697))},function(e,t,n){"use strict";var i=n(30),r=n(121);e.exports=function(e){if("string"!==e&&"number"!==e&&"default"!==e)throw TypeError("Incorrect hint");return r(i(this),"number"!=e)}},function(e,t,n){var i=n(9);i(i.S,"Array",{isArray:n(251)})},function(e,t,n){"use strict";var i=n(115),r=n(9),a=n(57),o=n(447),s=n(342),c=n(50),l=n(343),u=n(344);r(r.S+r.F*!n(254)(function(e){Array.from(e)}),"Array",{from:function(e){var t,n,r,d,h=a(e),p="function"==typeof this?this:Array,f=arguments.length,m=f>1?arguments[1]:void 0,g=void 0!==m,b=0,v=u(h);if(g&&(m=i(m,f>2?arguments[2]:void 0,2)),void 0==v||p==Array&&s(v))for(n=new p(t=c(h.length));t>b;b++)l(n,b,g?m(h[b],b):h[b]);else for(d=v.call(h),n=new p;!(r=d.next()).done;b++)l(n,b,g?o(d,m,[r.value,b],!0):r.value);return n.length=b,n}})},function(e,t,n){"use strict";var i=n(9),r=n(343);i(i.S+i.F*n(34)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)r(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){"use strict";var i=n(9),r=n(75),a=[].join;i(i.P+i.F*(n(212)!=Object||!n(118)(a)),"Array",{join:function(e){return a.call(r(this),void 0===e?",":e)}})},function(e,t,n){"use strict";var i=n(9),r=n(331),a=n(116),o=n(165),s=n(50),c=[].slice;i(i.P+i.F*n(34)(function(){r&&c.call(r)}),"Array",{slice:function(e,t){var n=s(this.length),i=a(this);if(t=void 0===t?n:t,"Array"==i)return c.call(this,e,t);for(var r=o(e,n),l=o(t,n),u=s(l-r),d=new Array(u),h=0;h<u;h++)d[h]="String"==i?this.charAt(r+h):this[r+h];return d}})},function(e,t,n){"use strict";var i=n(9),r=n(63),a=n(57),o=n(34),s=[].sort,c=[1,2,3];i(i.P+i.F*(o(function(){c.sort(void 0)})||!o(function(){c.sort(null)})||!n(118)(s)),"Array",{sort:function(e){return void 0===e?s.call(a(this)):s.call(a(this),r(e))}})},function(e,t,n){"use strict";var i=n(9),r=n(124)(0),a=n(118)([].forEach,!0);i(i.P+i.F*!a,"Array",{forEach:function(e){return r(this,e,arguments[1])}})},function(e,t,n){var i=n(37),r=n(251),a=n(45)("species");e.exports=function(e){var t;return r(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!r(t.prototype)||(t=void 0),i(t)&&null===(t=t[a])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var i=n(9),r=n(124)(1);i(i.P+i.F*!n(118)([].map,!0),"Array",{map:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(9),r=n(124)(2);i(i.P+i.F*!n(118)([].filter,!0),"Array",{filter:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(9),r=n(124)(3);i(i.P+i.F*!n(118)([].some,!0),"Array",{some:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(9),r=n(124)(4);i(i.P+i.F*!n(118)([].every,!0),"Array",{every:function(e){return r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(9),r=n(448);i(i.P+i.F*!n(118)([].reduce,!0),"Array",{reduce:function(e){return r(this,e,arguments.length,arguments[1],!1)}})},function(e,t,n){"use strict";var i=n(9),r=n(448);i(i.P+i.F*!n(118)([].reduceRight,!0),"Array",{reduceRight:function(e){return r(this,e,arguments.length,arguments[1],!0)}})},function(e,t,n){"use strict";var i=n(9),r=n(249)(!1),a=[].indexOf,o=!!a&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(o||!n(118)(a)),"Array",{indexOf:function(e){return o?a.apply(this,arguments)||0:r(this,e,arguments[1])}})},function(e,t,n){"use strict";var i=n(9),r=n(75),a=n(117),o=n(50),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(c||!n(118)(s)),"Array",{lastIndexOf:function(e){if(c)return s.apply(this,arguments)||0;var t=r(this),n=o(t.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,a(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in t&&t[i]===e)return i||0;return-1}})},function(e,t,n){var i=n(9);i(i.P,"Array",{copyWithin:n(449)}),n(151)("copyWithin")},function(e,t,n){var i=n(9);i(i.P,"Array",{fill:n(346)}),n(151)("fill")},function(e,t,n){"use strict";var i=n(9),r=n(124)(5),a=!0;"find"in[]&&Array(1).find(function(){a=!1}),i(i.P+i.F*a,"Array",{find:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(151)("find")},function(e,t,n){"use strict";var i=n(9),r=n(124)(6),a="findIndex",o=!0;a in[]&&Array(1)[a](function(){o=!1}),i(i.P+i.F*o,"Array",{findIndex:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(151)(a)},function(e,t,n){n(168)("Array")},function(e,t,n){var i=n(32),r=n(334),a=n(55).f,o=n(167).f,s=n(253),c=n(214),l=i.RegExp,u=l,d=l.prototype,h=/a/g,p=/a/g,f=new l(h)!==h;if(n(54)&&(!f||n(34)(function(){return p[n(45)("match")]=!1,l(h)!=h||l(p)==p||"/a/i"!=l(h,"i")}))){l=function(e,t){var n=this instanceof l,i=s(e),a=void 0===t;return!n&&i&&e.constructor===l&&a?e:r(f?new u(i&&!a?e.source:e,t):u((i=e instanceof l)?e.source:e,i&&a?c.call(e):t),n?this:d,l)};for(var m=function(e){e in l||a(l,e,{configurable:!0,get:function(){return u[e]},set:function(t){u[e]=t}})},g=o(u),b=0;g.length>b;)m(g[b++]);d.constructor=l,l.prototype=d,n(69)(i,"RegExp",l)}n(168)("RegExp")},function(e,t,n){"use strict";n(452);var i=n(30),r=n(214),a=n(54),o=/./.toString,s=function(e){n(69)(RegExp.prototype,"toString",e,!0)};n(34)(function(){return"/a/b"!=o.call({source:"a",flags:"b"})})?s(function(){var e=i(this);return"/".concat(e.source,"/","flags"in e?e.flags:!a&&e instanceof RegExp?r.call(e):void 0)}):"toString"!=o.name&&s(function(){return o.call(this)})},function(e,t,n){"use strict";var i=n(30),r=n(50),a=n(349),o=n(255);n(256)("match",1,function(e,t,n,s){return[function(n){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=s(n,e,this);if(t.done)return t.value;var c=i(e),l=String(this);if(!c.global)return o(c,l);var u=c.unicode;c.lastIndex=0;for(var d,h=[],p=0;null!==(d=o(c,l));){var f=String(d[0]);h[p]=f,""===f&&(c.lastIndex=a(l,r(c.lastIndex),u)),p++}return 0===p?null:h}]})},function(e,t,n){"use strict";var i=n(30),r=n(57),a=n(50),o=n(117),s=n(349),c=n(255),l=Math.max,u=Math.min,d=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g;n(256)("replace",2,function(e,t,n,f){return[function(i,r){var a=e(this),o=void 0==i?void 0:i[t];return void 0!==o?o.call(i,a,r):n.call(String(a),i,r)},function(e,t){var r=f(n,e,this,t);if(r.done)return r.value;var d=i(e),h=String(this),p="function"==typeof t;p||(t=String(t));var g=d.global;if(g){var b=d.unicode;d.lastIndex=0}for(var v=[];;){var _=c(d,h);if(null===_)break;if(v.push(_),!g)break;""===String(_[0])&&(d.lastIndex=s(h,a(d.lastIndex),b))}for(var y,C="",I=0,w=0;w<v.length;w++){_=v[w];for(var S=String(_[0]),A=l(u(o(_.index),h.length),0),O=[],E=1;E<_.length;E++)O.push(void 0===(y=_[E])?y:String(y));var T=_.groups;if(p){var D=[S].concat(O,A,h);void 0!==T&&D.push(T);var L=String(t.apply(void 0,D))}else L=m(S,h,A,O,T,t);A>=I&&(C+=h.slice(I,A)+L,I=A+S.length)}return C+h.slice(I)}];function m(e,t,i,a,o,s){var c=i+e.length,l=a.length,u=p;return void 0!==o&&(o=r(o),u=h),n.call(s,u,function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,i);case"'":return t.slice(c);case"<":s=o[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>l){var h=d(u/10);return 0===h?n:h<=l?void 0===a[h-1]?r.charAt(1):a[h-1]+r.charAt(1):n}s=a[u-1]}return void 0===s?"":s})}})},function(e,t,n){"use strict";var i=n(30),r=n(438),a=n(255);n(256)("search",1,function(e,t,n,o){return[function(n){var i=e(this),r=void 0==n?void 0:n[t];return void 0!==r?r.call(n,i):new RegExp(n)[t](String(i))},function(e){var t=o(n,e,this);if(t.done)return t.value;var s=i(e),c=String(this),l=s.lastIndex;r(l,0)||(s.lastIndex=0);var u=a(s,c);return r(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]})},function(e,t,n){"use strict";var i=n(253),r=n(30),a=n(215),o=n(349),s=n(50),c=n(255),l=n(348),u=n(34),d=Math.min,h=[].push,p=!u(function(){RegExp(4294967295,"y")});n(256)("split",2,function(e,t,n,u){var f;return f="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!i(e))return n.call(r,e,t);for(var a,o,s,c=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),d=0,p=void 0===t?4294967295:t>>>0,f=new RegExp(e.source,u+"g");(a=l.call(f,r))&&!((o=f.lastIndex)>d&&(c.push(r.slice(d,a.index)),a.length>1&&a.index<r.length&&h.apply(c,a.slice(1)),s=a[0].length,d=o,c.length>=p));)f.lastIndex===a.index&&f.lastIndex++;return d===r.length?!s&&f.test("")||c.push(""):c.push(r.slice(d)),c.length>p?c.slice(0,p):c}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,i){var r=e(this),a=void 0==n?void 0:n[t];return void 0!==a?a.call(n,r,i):f.call(String(r),n,i)},function(e,t){var i=u(f,e,this,t,f!==n);if(i.done)return i.value;var l=r(e),h=String(this),m=a(l,RegExp),g=l.unicode,b=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(p?"y":"g"),v=new m(p?l:"^(?:"+l.source+")",b),_=void 0===t?4294967295:t>>>0;if(0===_)return[];if(0===h.length)return null===c(v,h)?[h]:[];for(var y=0,C=0,I=[];C<h.length;){v.lastIndex=p?C:0;var w,S=c(v,p?h:h.slice(C));if(null===S||(w=d(s(v.lastIndex+(p?0:C)),h.length))===y)C=o(h,C,g);else{if(I.push(h.slice(y,C)),I.length===_)return I;for(var A=1;A<=S.length-1;A++)if(I.push(S[A]),I.length===_)return I;C=y=w}}return I.push(h.slice(y)),I}]})},function(e,t,n){"use strict";var i,r,a,o,s=n(149),c=n(32),l=n(115),u=n(188),d=n(9),h=n(37),p=n(63),f=n(169),m=n(170),g=n(215),b=n(350).set,v=n(351)(),_=n(352),y=n(453),C=n(257),I=n(454),w=c.TypeError,S=c.process,A=S&&S.versions,O=A&&A.v8||"",E=c.Promise,T="process"==u(S),D=function(){},L=r=_.f,N=!!function(){try{var e=E.resolve(1),t=(e.constructor={})[n(45)("species")]=function(e){e(D,D)};return(T||"function"==typeof PromiseRejectionEvent)&&e.then(D)instanceof t&&0!==O.indexOf("6.6")&&-1===C.indexOf("Chrome/66")}catch(e){}}(),M=function(e){var t;return!(!h(e)||"function"!=typeof(t=e.then))&&t},P=function(e,t){if(!e._n){e._n=!0;var n=e._c;v(function(){for(var i=e._v,r=1==e._s,a=0,o=function(t){var n,a,o,s=r?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(r||(2==e._h&&j(e),e._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),o=!0)),n===t.promise?l(w("Promise-chain cycle")):(a=M(n))?a.call(n,c,l):c(n)):l(i)}catch(e){u&&!o&&u.exit(),l(e)}};n.length>a;)o(n[a++]);e._c=[],e._n=!1,t&&!e._h&&x(e)})}},x=function(e){b.call(c,function(){var t,n,i,r=e._v,a=R(e);if(a&&(t=y(function(){T?S.emit("unhandledRejection",r,e):(n=c.onunhandledrejection)?n({promise:e,reason:r}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",r)}),e._h=T||R(e)?2:1),e._a=void 0,a&&t.e)throw t.v})},R=function(e){return 1!==e._h&&0===(e._a||e._c).length},j=function(e){b.call(c,function(){var t;T?S.emit("rejectionHandled",e):(t=c.onrejectionhandled)&&t({promise:e,reason:e._v})})},F=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),P(t,!0))},V=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw w("Promise can't be resolved itself");(t=M(e))?v(function(){var i={_w:n,_d:!1};try{t.call(e,l(V,i,1),l(F,i,1))}catch(e){F.call(i,e)}}):(n._v=e,n._s=1,P(n,!1))}catch(e){F.call({_w:n,_d:!1},e)}}};N||(E=function(e){f(this,E,"Promise","_h"),p(e),i.call(this);try{e(l(V,this,1),l(F,this,1))}catch(e){F.call(this,e)}},(i=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(171)(E.prototype,{then:function(e,t){var n=L(g(this,E));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=T?S.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&P(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),a=function(){var e=new i;this.promise=e,this.resolve=l(V,e,1),this.reject=l(F,e,1)},_.f=L=function(e){return e===E||e===o?new a(e):r(e)}),d(d.G+d.W+d.F*!N,{Promise:E}),n(187)(E,"Promise"),n(168)("Promise"),o=n(114).Promise,d(d.S+d.F*!N,"Promise",{reject:function(e){var t=L(this);return(0,t.reject)(e),t.promise}}),d(d.S+d.F*(s||!N),"Promise",{resolve:function(e){return I(s&&this===o?E:this,e)}}),d(d.S+d.F*!(N&&n(254)(function(e){E.all(e).catch(D)})),"Promise",{all:function(e){var t=this,n=L(t),i=n.resolve,r=n.reject,a=y(function(){var n=[],a=0,o=1;m(e,!1,function(e){var s=a++,c=!1;n.push(void 0),o++,t.resolve(e).then(function(e){c||(c=!0,n[s]=e,--o||i(n))},r)}),--o||i(n)});return a.e&&r(a.v),n.promise},race:function(e){var t=this,n=L(t),i=n.reject,r=y(function(){m(e,!1,function(e){t.resolve(e).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},function(e,t,n){"use strict";var i=n(459),r=n(172);n(258)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return i.def(r(this,"WeakSet"),e,!0)}},i,!1,!0)},function(e,t,n){"use strict";var i=n(9),r=n(259),a=n(353),o=n(30),s=n(165),c=n(50),l=n(37),u=n(32).ArrayBuffer,d=n(215),h=a.ArrayBuffer,p=a.DataView,f=r.ABV&&u.isView,m=h.prototype.slice,g=r.VIEW;i(i.G+i.W+i.F*(u!==h),{ArrayBuffer:h}),i(i.S+i.F*!r.CONSTR,"ArrayBuffer",{isView:function(e){return f&&f(e)||l(e)&&g in e}}),i(i.P+i.U+i.F*n(34)(function(){return!new h(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==m&&void 0===t)return m.call(o(this),e);for(var n=o(this).byteLength,i=s(e,n),r=s(void 0===t?n:t,n),a=new(d(this,h))(c(r-i)),l=new p(this),u=new p(a),f=0;i<r;)u.setUint8(f++,l.getUint8(i++));return a}}),n(168)("ArrayBuffer")},function(e,t,n){var i=n(9);i(i.G+i.W+i.F*!n(259).ABV,{DataView:n(353).DataView})},function(e,t,n){n(136)("Int8",1,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(136)("Uint8",1,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(136)("Uint8",1,function(e){return function(t,n,i){return e(this,t,n,i)}},!0)},function(e,t,n){n(136)("Int16",2,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(136)("Uint16",2,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(136)("Int32",4,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(136)("Uint32",4,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(136)("Float32",4,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){n(136)("Float64",8,function(e){return function(t,n,i){return e(this,t,n,i)}})},function(e,t,n){var i=n(9),r=n(63),a=n(30),o=(n(32).Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!n(34)(function(){o(function(){})}),"Reflect",{apply:function(e,t,n){var i=r(e),c=a(n);return o?o(i,t,c):s.call(i,t,c)}})},function(e,t,n){var i=n(9),r=n(166),a=n(63),o=n(30),s=n(37),c=n(34),l=n(439),u=(n(32).Reflect||{}).construct,d=c(function(){function e(){}return!(u(function(){},[],e)instanceof e)}),h=!c(function(){u(function(){})});i(i.S+i.F*(d||h),"Reflect",{construct:function(e,t){a(e),o(t);var n=arguments.length<3?e:a(arguments[2]);if(h&&!d)return u(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var i=[null];return i.push.apply(i,t),new(l.apply(e,i))}var c=n.prototype,p=r(s(c)?c:Object.prototype),f=Function.apply.call(e,p,t);return s(f)?f:p}})},function(e,t,n){var i=n(55),r=n(9),a=n(30),o=n(121);r(r.S+r.F*n(34)(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,n){a(e),t=o(t,!0),a(n);try{return i.f(e,t,n),!0}catch(e){return!1}}})},function(e,t,n){var i=n(9),r=n(76).f,a=n(30);i(i.S,"Reflect",{deleteProperty:function(e,t){var n=r(a(e),t);return!(n&&!n.configurable)&&delete e[t]}})},function(e,t,n){"use strict";var i=n(9),r=n(30),a=function(e){this._t=r(e),this._i=0;var t,n=this._k=[];for(t in e)n.push(t)};n(339)(a,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),i(i.S,"Reflect",{enumerate:function(e){return new a(e)}})},function(e,t,n){var i=n(76),r=n(77),a=n(74),o=n(9),s=n(37),c=n(30);o(o.S,"Reflect",{get:function e(t,n){var o,l,u=arguments.length<3?t:arguments[2];return c(t)===u?t[n]:(o=i.f(t,n))?a(o,"value")?o.value:void 0!==o.get?o.get.call(u):void 0:s(l=r(t))?e(l,n,u):void 0}})},function(e,t,n){var i=n(76),r=n(9),a=n(30);r(r.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return i.f(a(e),t)}})},function(e,t,n){var i=n(9),r=n(77),a=n(30);i(i.S,"Reflect",{getPrototypeOf:function(e){return r(a(e))}})},function(e,t,n){var i=n(9);i(i.S,"Reflect",{has:function(e,t){return t in e}})},function(e,t,n){var i=n(9),r=n(30),a=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(e){return r(e),!a||a(e)}})},function(e,t,n){var i=n(9);i(i.S,"Reflect",{ownKeys:n(461)})},function(e,t,n){var i=n(9),r=n(30),a=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(e){r(e);try{return a&&a(e),!0}catch(e){return!1}}})},function(e,t,n){var i=n(55),r=n(76),a=n(77),o=n(74),s=n(9),c=n(162),l=n(30),u=n(37);s(s.S,"Reflect",{set:function e(t,n,s){var d,h,p=arguments.length<4?t:arguments[3],f=r.f(l(t),n);if(!f){if(u(h=a(t)))return e(h,n,s,p);f=c(0)}if(o(f,"value")){if(!1===f.writable||!u(p))return!1;if(d=r.f(p,n)){if(d.get||d.set||!1===d.writable)return!1;d.value=s,i.f(p,n,d)}else i.f(p,n,c(0,s));return!0}return void 0!==f.set&&(f.set.call(p,s),!0)}})},function(e,t,n){var i=n(9),r=n(332);r&&i(i.S,"Reflect",{setPrototypeOf:function(e,t){r.check(e,t);try{return r.set(e,t),!0}catch(e){return!1}}})},function(e,t,n){"use strict";var i=n(9),r=n(249)(!0);i(i.P,"Array",{includes:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}}),n(151)("includes")},function(e,t,n){"use strict";var i=n(9),r=n(462),a=n(57),o=n(50),s=n(63),c=n(345);i(i.P,"Array",{flatMap:function(e){var t,n,i=a(this);return s(e),t=o(i.length),n=c(i,0),r(n,i,i,t,0,1,e,arguments[1]),n}}),n(151)("flatMap")},function(e,t,n){"use strict";var i=n(9),r=n(462),a=n(57),o=n(50),s=n(117),c=n(345);i(i.P,"Array",{flatten:function(){var e=arguments[0],t=a(this),n=o(t.length),i=c(t,0);return r(i,t,t,n,0,void 0===e?1:s(e)),i}}),n(151)("flatten")},function(e,t,n){"use strict";var i=n(9),r=n(252)(!0);i(i.P,"String",{at:function(e){return r(this,e)}})},function(e,t,n){"use strict";var i=n(9),r=n(463),a=n(257),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padStart:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";var i=n(9),r=n(463),a=n(257),o=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(a);i(i.P+i.F*o,"String",{padEnd:function(e){return r(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){"use strict";n(189)("trimLeft",function(e){return function(){return e(this,1)}},"trimStart")},function(e,t,n){"use strict";n(189)("trimRight",function(e){return function(){return e(this,2)}},"trimEnd")},function(e,t,n){"use strict";var i=n(9),r=n(122),a=n(50),o=n(253),s=n(214),c=RegExp.prototype,l=function(e,t){this._r=e,this._s=t};n(339)(l,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),i(i.P,"String",{matchAll:function(e){if(r(this),!o(e))throw TypeError(e+" is not a regexp!");var t=String(this),n="flags"in c?String(e.flags):s.call(e),i=new RegExp(e.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=a(e.lastIndex),new l(i,t)}})},function(e,t,n){n(328)("asyncIterator")},function(e,t,n){n(328)("observable")},function(e,t,n){var i=n(9),r=n(461),a=n(75),o=n(76),s=n(343);i(i.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,i=a(e),c=o.f,l=r(i),u={},d=0;l.length>d;)void 0!==(n=c(i,t=l[d++]))&&s(u,t,n);return u}})},function(e,t,n){var i=n(9),r=n(464)(!1);i(i.S,"Object",{values:function(e){return r(e)}})},function(e,t,n){var i=n(9),r=n(464)(!0);i(i.S,"Object",{entries:function(e){return r(e)}})},function(e,t,n){"use strict";var i=n(9),r=n(57),a=n(63),o=n(55);n(54)&&i(i.P+n(260),"Object",{__defineGetter__:function(e,t){o.f(r(this),e,{get:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var i=n(9),r=n(57),a=n(63),o=n(55);n(54)&&i(i.P+n(260),"Object",{__defineSetter__:function(e,t){o.f(r(this),e,{set:a(t),enumerable:!0,configurable:!0})}})},function(e,t,n){"use strict";var i=n(9),r=n(57),a=n(121),o=n(77),s=n(76).f;n(54)&&i(i.P+n(260),"Object",{__lookupGetter__:function(e){var t,n=r(this),i=a(e,!0);do{if(t=s(n,i))return t.get}while(n=o(n))}})},function(e,t,n){"use strict";var i=n(9),r=n(57),a=n(121),o=n(77),s=n(76).f;n(54)&&i(i.P+n(260),"Object",{__lookupSetter__:function(e){var t,n=r(this),i=a(e,!0);do{if(t=s(n,i))return t.set}while(n=o(n))}})},function(e,t,n){var i=n(9);i(i.P+i.R,"Map",{toJSON:n(465)("Map")})},function(e,t,n){var i=n(9);i(i.P+i.R,"Set",{toJSON:n(465)("Set")})},function(e,t,n){n(261)("Map")},function(e,t,n){n(261)("Set")},function(e,t,n){n(261)("WeakMap")},function(e,t,n){n(261)("WeakSet")},function(e,t,n){n(262)("Map")},function(e,t,n){n(262)("Set")},function(e,t,n){n(262)("WeakMap")},function(e,t,n){n(262)("WeakSet")},function(e,t,n){var i=n(9);i(i.G,{global:n(32)})},function(e,t,n){var i=n(9);i(i.S,"System",{global:n(32)})},function(e,t,n){var i=n(9),r=n(116);i(i.S,"Error",{isError:function(e){return"Error"===r(e)}})},function(e,t,n){var i=n(9);i(i.S,"Math",{clamp:function(e,t,n){return Math.min(n,Math.max(t,e))}})},function(e,t,n){var i=n(9);i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},function(e,t,n){var i=n(9),r=180/Math.PI;i(i.S,"Math",{degrees:function(e){return e*r}})},function(e,t,n){var i=n(9),r=n(467),a=n(446);i(i.S,"Math",{fscale:function(e,t,n,i,o){return a(r(e,t,n,i,o))}})},function(e,t,n){var i=n(9);i(i.S,"Math",{iaddh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)+(i>>>0)+((r&a|(r|a)&~(r+a>>>0))>>>31)|0}})},function(e,t,n){var i=n(9);i(i.S,"Math",{isubh:function(e,t,n,i){var r=e>>>0,a=n>>>0;return(t>>>0)-(i>>>0)-((~r&a|~(r^a)&r-a>>>0)>>>31)|0}})},function(e,t,n){var i=n(9);i(i.S,"Math",{imulh:function(e,t){var n=+e,i=+t,r=65535&n,a=65535&i,o=n>>16,s=i>>16,c=(o*a>>>0)+(r*a>>>16);return o*s+(c>>16)+((r*s>>>0)+(65535&c)>>16)}})},function(e,t,n){var i=n(9);i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},function(e,t,n){var i=n(9),r=Math.PI/180;i(i.S,"Math",{radians:function(e){return e*r}})},function(e,t,n){var i=n(9);i(i.S,"Math",{scale:n(467)})},function(e,t,n){var i=n(9);i(i.S,"Math",{umulh:function(e,t){var n=+e,i=+t,r=65535&n,a=65535&i,o=n>>>16,s=i>>>16,c=(o*a>>>0)+(r*a>>>16);return o*s+(c>>>16)+((r*s>>>0)+(65535&c)>>>16)}})},function(e,t,n){var i=n(9);i(i.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}})},function(e,t,n){"use strict";var i=n(9),r=n(114),a=n(32),o=n(215),s=n(454);i(i.P+i.R,"Promise",{finally:function(e){var t=o(this,r.Promise||a.Promise),n="function"==typeof e;return this.then(n?function(n){return s(t,e()).then(function(){return n})}:e,n?function(n){return s(t,e()).then(function(){throw n})}:e)}})},function(e,t,n){"use strict";var i=n(9),r=n(352),a=n(453);i(i.S,"Promise",{try:function(e){var t=r.f(this),n=a(e);return(n.e?t.reject:t.resolve)(n.v),t.promise}})},function(e,t,n){var i=n(137),r=n(30),a=i.key,o=i.set;i.exp({defineMetadata:function(e,t,n,i){o(e,t,r(n),a(i))}})},function(e,t,n){var i=n(137),r=n(30),a=i.key,o=i.map,s=i.store;i.exp({deleteMetadata:function(e,t){var n=arguments.length<3?void 0:a(arguments[2]),i=o(r(t),n,!1);if(void 0===i||!i.delete(e))return!1;if(i.size)return!0;var c=s.get(t);return c.delete(n),!!c.size||s.delete(t)}})},function(e,t,n){var i=n(137),r=n(30),a=n(77),o=i.has,s=i.get,c=i.key,l=function(e,t,n){if(o(e,t,n))return s(e,t,n);var i=a(t);return null!==i?l(e,i,n):void 0};i.exp({getMetadata:function(e,t){return l(e,r(t),arguments.length<3?void 0:c(arguments[2]))}})},function(e,t,n){var i=n(457),r=n(466),a=n(137),o=n(30),s=n(77),c=a.keys,l=a.key,u=function(e,t){var n=c(e,t),a=s(e);if(null===a)return n;var o=u(a,t);return o.length?n.length?r(new i(n.concat(o))):o:n};a.exp({getMetadataKeys:function(e){return u(o(e),arguments.length<2?void 0:l(arguments[1]))}})},function(e,t,n){var i=n(137),r=n(30),a=i.get,o=i.key;i.exp({getOwnMetadata:function(e,t){return a(e,r(t),arguments.length<3?void 0:o(arguments[2]))}})},function(e,t,n){var i=n(137),r=n(30),a=i.keys,o=i.key;i.exp({getOwnMetadataKeys:function(e){return a(r(e),arguments.length<2?void 0:o(arguments[1]))}})},function(e,t,n){var i=n(137),r=n(30),a=n(77),o=i.has,s=i.key,c=function(e,t,n){if(o(e,t,n))return!0;var i=a(t);return null!==i&&c(e,i,n)};i.exp({hasMetadata:function(e,t){return c(e,r(t),arguments.length<3?void 0:s(arguments[2]))}})},function(e,t,n){var i=n(137),r=n(30),a=i.has,o=i.key;i.exp({hasOwnMetadata:function(e,t){return a(e,r(t),arguments.length<3?void 0:o(arguments[2]))}})},function(e,t,n){var i=n(137),r=n(30),a=n(63),o=i.key,s=i.set;i.exp({metadata:function(e,t){return function(n,i){s(e,t,(void 0!==i?r:a)(n),o(i))}}})},function(e,t,n){var i=n(9),r=n(351)(),a=n(32).process,o="process"==n(116)(a);i(i.G,{asap:function(e){var t=o&&a.domain;r(t?t.bind(e):e)}})},function(e,t,n){"use strict";var i=n(9),r=n(32),a=n(114),o=n(351)(),s=n(45)("observable"),c=n(63),l=n(30),u=n(169),d=n(171),h=n(68),p=n(170),f=p.RETURN,m=function(e){return null==e?void 0:c(e)},g=function(e){var t=e._c;t&&(e._c=void 0,t())},b=function(e){return void 0===e._o},v=function(e){b(e)||(e._o=void 0,g(e))},_=function(e,t){l(e),this._c=void 0,this._o=e,e=new y(this);try{var n=t(e),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:c(n),this._c=n)}catch(t){return void e.error(t)}b(this)&&g(this)};_.prototype=d({},{unsubscribe:function(){v(this)}});var y=function(e){this._s=e};y.prototype=d({},{next:function(e){var t=this._s;if(!b(t)){var n=t._o;try{var i=m(n.next);if(i)return i.call(n,e)}catch(e){try{v(t)}finally{throw e}}}},error:function(e){var t=this._s;if(b(t))throw e;var n=t._o;t._o=void 0;try{var i=m(n.error);if(!i)throw e;e=i.call(n,e)}catch(e){try{g(t)}finally{throw e}}return g(t),e},complete:function(e){var t=this._s;if(!b(t)){var n=t._o;t._o=void 0;try{var i=m(n.complete);e=i?i.call(n,e):void 0}catch(e){try{g(t)}finally{throw e}}return g(t),e}}});var C=function(e){u(this,C,"Observable","_f")._f=c(e)};d(C.prototype,{subscribe:function(e){return new _(e,this._f)},forEach:function(e){var t=this;return new(a.Promise||r.Promise)(function(n,i){c(e);var r=t.subscribe({next:function(t){try{return e(t)}catch(e){i(e),r.unsubscribe()}},error:i,complete:n})})}}),d(C,{from:function(e){var t="function"==typeof this?this:C,n=m(l(e)[s]);if(n){var i=l(n.call(e));return i.constructor===t?i:new t(function(e){return i.subscribe(e)})}return new t(function(t){var n=!1;return o(function(){if(!n){try{if(p(e,!1,function(e){if(t.next(e),n)return f})===f)return}catch(e){if(n)throw e;return void t.error(e)}t.complete()}}),function(){n=!0}})},of:function(){for(var e=0,t=arguments.length,n=new Array(t);e<t;)n[e]=arguments[e++];return new("function"==typeof this?this:C)(function(e){var t=!1;return o(function(){if(!t){for(var i=0;i<n.length;++i)if(e.next(n[i]),t)return;e.complete()}}),function(){t=!0}})}}),h(C.prototype,s,function(){return this}),i(i.G,{Observable:C}),n(168)("Observable")},function(e,t,n){var i=n(32),r=n(9),a=n(257),o=[].slice,s=/MSIE .\./.test(a),c=function(e){return function(t,n){var i=arguments.length>2,r=!!i&&o.call(arguments,2);return e(i?function(){("function"==typeof t?t:Function(t)).apply(this,r)}:t,n)}};r(r.G+r.B+r.F*s,{setTimeout:c(i.setTimeout),setInterval:c(i.setInterval)})},function(e,t,n){var i=n(9),r=n(350);i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},function(e,t,n){for(var i=n(347),r=n(164),a=n(69),o=n(32),s=n(68),c=n(190),l=n(45),u=l("iterator"),d=l("toStringTag"),h=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},f=r(p),m=0;m<f.length;m++){var g,b=f[m],v=p[b],_=o[b],y=_&&_.prototype;if(y&&(y[u]||s(y,u,h),y[d]||s(y,d,b),c[b]=h,v))for(g in i)y[g]||a(y,g,i[g],!0)}},function(e,t,n){(function(t){!function(t){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,a="function"==typeof Symbol?Symbol:{},o=a.iterator||"@@iterator",s=a.asyncIterator||"@@asyncIterator",c=a.toStringTag||"@@toStringTag",l="object"==typeof e,u=t.regeneratorRuntime;if(u)l&&(e.exports=u);else{(u=t.regeneratorRuntime=l?e.exports:{}).wrap=y;var d="suspendedStart",h="suspendedYield",p="executing",f="completed",m={},g={};g[o]=function(){return this};var b=Object.getPrototypeOf,v=b&&b(b(N([])));v&&v!==i&&r.call(v,o)&&(g=v);var _=S.prototype=I.prototype=Object.create(g);w.prototype=_.constructor=S,S.constructor=w,S[c]=w.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(_),e},u.awrap=function(e){return{__await:e}},A(O.prototype),O.prototype[s]=function(){return this},u.AsyncIterator=O,u.async=function(e,t,n,i){var r=new O(y(e,t,n,i));return u.isGeneratorFunction(t)?r:r.next().then(function(e){return e.done?e.value:r.next()})},A(_),_[c]="Generator",_[o]=function(){return this},_.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var i=t.pop();if(i in e)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=N,L.prototype={constructor:L,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(D),!e)for(var t in this)"t"===t.charAt(0)&&r.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function i(i,r){return s.type="throw",s.arg=e,t.next=i,r&&(t.method="next",t.arg=n),!!r}for(var a=this.tryEntries.length-1;a>=0;--a){var o=this.tryEntries[a],s=o.completion;if("root"===o.tryLoc)return i("end");if(o.tryLoc<=this.prev){var c=r.call(o,"catchLoc"),l=r.call(o,"finallyLoc");if(c&&l){if(this.prev<o.catchLoc)return i(o.catchLoc,!0);if(this.prev<o.finallyLoc)return i(o.finallyLoc)}else if(c){if(this.prev<o.catchLoc)return i(o.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return i(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var a=i;break}}a&&("break"===e||"continue"===e)&&a.tryLoc<=t&&t<=a.finallyLoc&&(a=null);var o=a?a.completion:{};return o.type=e,o.arg=t,a?(this.method="next",this.next=a.finallyLoc,m):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),m},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),m}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;D(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,i){return this.delegate={iterator:N(e),resultName:t,nextLoc:i},"next"===this.method&&(this.arg=n),m}}}function y(e,t,n,i){var r=t&&t.prototype instanceof I?t:I,a=Object.create(r.prototype),o=new L(i||[]);return a._invoke=function(e,t,n){var i=d;return function(r,a){if(i===p)throw new Error("Generator is already running");if(i===f){if("throw"===r)throw a;return M()}for(n.method=r,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===d)throw i=f,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=p;var c=C(e,t,n);if("normal"===c.type){if(i=n.done?f:h,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=f,n.method="throw",n.arg=c.arg)}}}(e,n,o),a}function C(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function I(){}function w(){}function S(){}function A(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function O(e){function n(t,i,a,o){var s=C(e[t],e,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(e){n("next",e,a,o)},function(e){n("throw",e,a,o)}):Promise.resolve(l).then(function(e){c.value=e,a(c)},o)}o(s.arg)}var i;"object"==typeof t.process&&t.process.domain&&(n=t.process.domain.bind(n)),this._invoke=function(e,t){function r(){return new Promise(function(i,r){n(e,t,i,r)})}return i=i?i.then(r,r):r()}}function E(e,t){var i=e.iterator[t.method];if(i===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,E(e,t),"throw"===t.method))return m;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=C(i,e.iterator,t.arg);if("throw"===r.type)return t.method="throw",t.arg=r.arg,t.delegate=null,m;var a=r.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,m):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,m)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function N(e){if(e){var t=e[o];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function t(){for(;++i<e.length;)if(r.call(e,i))return t.value=e[i],t.done=!1,t;return t.value=n,t.done=!0,t};return a.next=a}}return{next:M}}function M(){return{value:n,done:!0}}}("object"==typeof t?t:"object"==typeof window?window:"object"==typeof self?self:this)}).call(this,n(31))},function(e,t,n){n(813),e.exports=n(114).RegExp.escape},function(e,t,n){var i=n(9),r=n(814)(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(e){return r(e)}})},function(e,t){e.exports=function(e,t){var n=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,n)}}},function(e,t,n){"use strict";(function(e){if(e.performance||(e.performance={}),!e.performance.now){var t,n=e.performance.timing;t=n&&n.navigationStart?n.navigationStart:Date.now(),e.performance.now=function(){return Date.now()-t}}}).call(this,n(31))},function(e,t,n){"use strict";n.r(t),function(e){n(1),n(0),n(14),n(12),n(5),n(8),n(20),n(35),n(21),n(2),n(18),n(17),n(16),n(7),n(40),n(15),n(42),n(46),n(43),n(47),n(39),n(10),n(48),n(41),n(4),n(24),n(25),n(3),n(22),n(28),n(19),n(6),n(263),n(62),n(173),n(13),n(125),n(354),n(216),n(138),n(60),n(152),n(33),n(58),n(71),n(217),n(191),n(355),n(264),n(218),n(192),n(174),n(153),n(139),n(356),n(265),n(219),n(140),n(193),n(126),n(220),n(194),n(72),n(266),n(267),n(141),n(175),n(176),n(268),n(65),n(269),n(357),n(358),n(195),n(221),n(817);var t=n(849),i=n(863),r=n(563),a=n(1124),o=n(564),s=n(1126);n(848),t.c(Object(r.a)()),i.b.logOutputLevel=i.a.LOG_LEVEL_INFO,e.animateBackgroundGradientMesh&&e.animateBackgroundGradientMesh(),o.a.main({applicationClass:o.a,delegateClass:s.a,rootViewControllerClass:a.a})}.call(this,n(31))},function(e,t,n){"use strict";var i=n(80);i.b(i.c(),{"Application.Title":"iCloud","Notice.Lite.Title":"Todo el mundo puede usar Pages, Numbers y Keynote para iCloud","Mail.TitleName":"iCloud - Mail","CloudOS.InNetworkAcceptance.Description.Three":"Este archivo %{fileType} se agregará a %{applicationName}.","Notice.Lite.Subtitle.Desktop":"Crea tu Apple ID gratuito y empieza a usarlo hoy mismo","CloudOS.OutOfNetworkAcceptance.EmailSent.Title":"Se ha enviado un correo electrónico de verificación","CloudOS.OutOfNetworkAcceptance.TextMessageSent.Description":"Se ha enviado un mensaje de texto con un enlace de verificación a %{phoneNumber}.","CloudOS.AppSwitcherItemView.Maintenance":"Mantenimiento","Alert.Cancel.Button.Title":"Cancelar","Photos.TitleName":"iCloud - Fotos","Contacts.DisplayName":"Contactos","CloudOS.Error.AppPCSRequired.Title":"No se puede cargar %{applicationName}.","CloudOS.Button.OK.Title":"Aceptar","Notification.Alarm.Dismiss.Title":"Ignorar","CloudOS.Springboard.LearnMore.Tablet.Text":"Usa más apps en iCloud.com ampliando Safari.","CloudOS.InNetworkAcceptance.Description.Three.Accepted":"Se agregó este %{fileType} a tu %{applicationName}.","Banner.QuotaAlmostExceeded.FullAccount.Description":"Si te quedas sin espacio de almacenamiento, tus fotos, videos, documentos y datos dejarán de actualizarse.","CloudOS.OutOfNetworkAcceptance.Description.Accepted":"Has verificado el acceso a \"%{shareTitle}\".","CloudOS.AccountNeedsSetup.Description":"Antes de poder usar %{currentDomain}, debes usar tu ID de Apple para configurar iCloud en un dispositivo iOS u macOS.","Pages.TitleName":"iCloud - Pages","Notice.Windows.DownloadNow.Url":"https://support.apple.com/es-mx/HT201391","Notes.TitleName":"iCloud - Notas","CloudOS.TermsAndConditions.CancelButton.Title":"Cancelar","Error.UnsupportedBrowser.TOUCH.Warning.Description":"Puedes continuar con tu dispositivo actual, pero iCloud funciona mejor con la versión más reciente de Safari, ejecutando el iOS o iPadOS más reciente.","Notice.Windows.Title":"Descarga iCloud para Windows","Notice.Lite.Subtitle.Phone":"Crea tu Apple ID sin cargo","CloudOS.TermsAndConditions.Content.Title":"Bienvenido/a a iCloud","CloudOS.BusinessLegalFooterView.Text.Fragment.TermsUrl.Title":"Términos y condiciones para empresas","Banner.QuotaExceeded.OptionalLink.Text":"Más información","CloudOS.LegalFooterView.ManagedAppleId.Text":"%{privacyAnchorTag}  |  %{schoolTermsAnchorTag}  |  %{businessTermsAnchorTag}  |  %{copyrightText}","CloudOS.Sharing.Unavailable.Description":"El propietario ha dejado de compartir este archivo o no tienes permiso para abrirlo.","CloudOS.Error.UnableToLoadApp.Title":"No se puede cargar %{applicationName}","AutoUpdate.Reload":"Volver a cargar","CloudOS.LegalFooterView.Text":"%{statusAnchorTag}  |  %{privacyAnchorTag}  |  %{termsAnchorTag}  |  %{copyrightText}","CloudOS.Sharing.Unavailable.OkButton.Title":"OK","CloudOS.LegalFooterView.Text.Fragment.PrivacyUrl.Title":"Política de privacidad","CloudOS.TermsAndConditions.Content":"Antes de usar iCloud, debes aceptar los Términos y condiciones de iCloud. En los términos encontrarás información importante. Léelos con atención.","CloudOS.OutOfNetworkAcceptance.TextMessageSent.Title":"Se ha enviado el mensaje de texto de verificación","Error.UnsupportedBrowser.Warning.Title":"Navegador incompatible","CloudOS.TermsAndConditions.ChinaTerms.Paragraph.Two":"Los servicios de iCloud y los datos que almacenes en iCloud, incluyendo fotos, videos, documentos y respaldos, estarán sujetos a los nuevos términos y condiciones de iCloud operado por GCBD.","CloudOS.InNetworkAcceptance.PublicShare.DownloadCopyButton.Title":"Descargar una copia","Error.UnsupportedBrowser.IgnoreButton.Title":"Ignorar","Contacts.TitleName":"iCloud - Contactos","CloudOS.OutOfNetworkAcceptance.SendVerificationButton.Title":"Enviar enlace de verificación","CloudOS.Authentication.Panel.AppName.Title":"Iniciar sesión en iCloud","Notification.Alarm.Future.Message":"“%{eventTitle}” el %{date} a las %{time}","CloudOS.Authentication.SignInButton.Title":"Iniciar sesión","Banner.QuotaExceeded.OptionalLink.Url":"http://support.apple.com/kb/HT4847?viewlocale=es_mx","CloudOS.Error.AppPCSRequired.Description":"Surgió un problema al cargar los datos de la aplicación.","CloudOS.AccountNeedsSetup.Domain.icloud.com":"iCloud.com","Settings.TitleName":"Configuración","Schoolwork.DisplayName":"Tareas Escolares","PhoneNumber.Title":"número de teléfono","Notification.Alarm.Snooze.Title":"Posponer","CloudOS.Error.AppPCSDeleted.Description":"No se puede iniciar esta aplicación. Ponte en contacto con el Servicio de atención al cliente.","Notification.PlaceholderDescription.mail":"Sin asunto","CloudOS.TermsAndConditions.Title":"Términos y condiciones","CloudOS.Authentication.TrustBrowser.SignOut.Description":"Si eliges confiar en este navegador, no se te pedirá un código de verificación la próxima vez que inicies sesión.","CloudOS.LegalFooterView.Text.Fragment.StatusUrl.Title":"Estado del sistema","CloudOS.OutOfNetworkAcceptance.Error.Description":"No hemos podido enviar el enlace de verificación. Vuelve a intentarlo más tarde.","Reminders.DisplayName":"Recordatorios","Banner.QuotaExceeded.FullAccount.Description":"A partir de ahora ya no se actualizarán las fotos, los vídeos, los documentos ni los datos.","FMF.TitleName":"iCloud - Buscar a mis amigos","CloudOS.TermsAndConditions.SuccessConfirmation.GameCenter.UpToDate.Description":"Tus términos y condiciones están actualizados. Ve a Game Center en tu Mac o dispositivo e inicia sesión nuevamente.","CloudOS.TermsAndConditions.DisagreeButton.Title":"No aceptar","CloudOS.Springboard.SettingsLink.Title":"Configuración de la cuenta","CloudOS.Sharing.Error.UpgradeToiCloudDrive.Title":"Actualizar a iCloud Drive","Photos.CloudKit.Recoverable.Subtitle":"Inténtalo otra vez en un momento.","Numbers.DisplayName":"Numbers","Photos.CloudKit.Unrecoverable.Title":"Las fotos compartidas no están disponibles","Notification.Alarm.Today.Message":"“%{eventTitle}” a las %{time}","CloudOS.InNetworkAcceptance.Description.One":"%{ownerName} compartió este/a %{fileType}.","CloudOS.InNetworkAcceptance.PublicShare.Description.Two":"Inicia sesión para agregar esto a tu %{applicationName}.","Alert.Help.Button.Title":"Ayuda","CloudOS.AccountMenu.Settings.Title":"Configuración de iCloud","CloudOS.AccountNeedsSetup.LearnMoreButton.Title":"Más información","CloudOS.OutOfNetworkAcceptance.VerificationLinkExpired.DescriptionTwo":"Intenta abrir el archivo compartido nuevamente o intenta abrirlo en otro dispositivo.","CloudOS.Authentication.QuickAccess.ApplePay.Title":"Apple Pay","CloudOS.OutOfNetworkAcceptance.Title":"Este archivo es privado","CloudOS.Authentication.QuickAccess.AppleWatch.Title":"Configuración del Apple Watch","CloudOS.Error.AppPCSDeleted.Title":"%{applicationName} está bloqueada","CloudOS.UnsavedChanges.Alert.Description":"%{applicationName} está guardando los cambios más recientes. Si sales, perderás los cambios que no hayas guardado.","CalendarIcon.Thursday":"Jueves","Notification.Alarm.Tomorrow.Message":"“%{eventTitle}” mañana a las %{time}","CloudOS.OutOfNetworkAcceptance.CancelButton.Title":"Cancelar","CloudOS.Application.Title":"esta aplicación","CloudOS.Authentication.SignOutButton.Title":"Cerrar sesión","Calendar.TitleName":"iCloud - Calendario","EmailAddress.Title":"con la dirección de correo electrónico","Pages.DisplayName":"Pages","CloudOS.UnsavedChanges.Alert.DontSignOutButton":"Cancelar","CloudOS.Error.UnableToLoadApp.iCloudLiteAccount.Description":"Tu Apple ID %{appleId} no puede visualizar %{applicationTitle}. Inicia sesión con el Apple ID que utilizas en tu dispositivo.","CloudOS.InNetworkAcceptance.NotNowButton.Title":"Ahora no","CloudOS.AppSwitcherItemView.Offline":"Sin conexión","CloudOS.Error.UnableToLoadiCloud.Title":"No es posible cargar iCloud","Alert.ManageAppleId.Button.Title":"Administrar Apple ID","CloudOS.AccountNeedsSetup.Title":"Configura iCloud en un dispositivo para usar %{currentDomain}.","CloudOS.AppIcon.Badge.LargeNumber":"%{badgeCount}+","CloudOS.OutOfNetworkAcceptance.PhoneVettedError.Description":"Otro Apple ID ya utiliza el número de teléfono \"%{phoneNumber}\". Inicia sesión en iCloud con ese Apple ID y vuelve a intentarlo.","CloudOS.Authentication.SignIn.AppleIdView.Title":"Iniciar sesión en iCloud","CloudOS.Sharing.Error.UpgradeToiCloudDrive.Description":"Puedes actualizarla activando iCloud Drive en Configuración en un dispositivo con iOS 8 o una versión posterior.","CloudOS.Springboard.Greeting.0-6":"Buenas noches, %{firstName}.","CloudOS.Sharing.Unavailable.Title":"Este archivo %{fileType} no es válido.","CloudOS.OutOfNetworkAcceptance.VerificationLinkExpired.Description":"Hubo un problema al verificar tu dirección de correo electrónico o número de teléfono.","Numbers.TitleName":"iCloud - Numbers","EmailAddressOrPhoneNumber.Title":"dirección de correo electrónico o número de teléfono","CloudOS.reminders.FileType":"recordatorio","CloudOS.UnsavedChanges.Alert.SignOutButton":"Cerrar sesión","Mail.DisplayName":"Mail","CloudOS.AccountNeedsSetup.Domain.icloud.com.cn":"iCloud.com.cn","CloudOS.TermsAndConditions.Description":"Acepto los términos y condiciones de iCloud.","CloudOS.OutOfNetworkAcceptance.Error.Title":"No se ha podido enviar el enlace","CloudOS.Authentication.TrustBrowserAndSignOutButton.Title":"Confiar y cerrar sesión","CloudOS.LegalFooterView.Text.Fragment.StatusUrl.Href":"https://www.apple.com/mx/support/systemstatus/","CloudOS.Error.TermsUpdateRequired.Title":"Términos y condiciones","Banner.QuotaAlmostExceeded.LiteAccount.Title":"Tu espacio de almacenamiento en iCloud está casi lleno.","CloudOS.OutOfNetworkAcceptance.DoneButton.Title":"Aceptar","CloudOS.TermsAndConditions.ChinaTerms.Paragraph.One":"Ahora los servicios de iCloud en China continental son operados por la empresa china de servicios de internet Guizhou on the Cloud Big Data Industrial Development Co., Ltd. (GCBD). Esto nos permite continuar mejorando la velocidad y confiabilidad de iCloud, así como cumplir con las regulaciones chinas.","CalendarIcon.Sunday":"Domingo","CalendarIcon.Friday":"Viernes","AutoUpdate.Title":"%{currentDomain} actualizado","CloudOS.notes.FileType":"nota","CloudOS.Button.Cancel.Title":"Cancelar","CloudOS.InNetworkAcceptance.Description.Two.Accepted":"Te registraste como %{userDetails}.","CloudOS.InNetworkAcceptance.AddToButton.Title":"Agregar a %{applicationName}","CloudOS.AccountNeedsSetup.CloseButton.Title":"Cerrar","CloudOS.Error.MailNotEnabled.Description":"Para usar %{applicationName} de iCloud, crea una dirección de correo electrónico nueva activando %{applicationName} en la configuración de iCloud con un sistema que use iOS o macOS.","CloudOS.Error.MailNotEnabled.Title":"Se necesita correo electrónico de iCloud","CloudOS.Springboard.LearnMore.Phone.Text":"Usa más apps en iCloud.com en el iPad o una computadora de escritorio.","CloudOS.Help.Title":"Ayuda","CloudOS.numbers.FileType":"hoja de cálculo","CloudOS.TermsAndConditions.SuccessConfirmation.UpToDate.Description":"Tus términos y condiciones están actualizados.","FMIP.TitleName":"iCloud - Buscar mi iPhone","CloudOS.TermsAndConditions.AgreeButton.Title":"Aceptar","CloudOS.TermsAndConditions.ChinaTerms.Title":"Tu cuenta de iCloud","CloudOS.TermsAndConditions.ContinueButton.Title":"Continuar","CloudOS.OutOfNetworkAcceptance.TextMessageSent.AdditionalDescription":"Utiliza el enlace que viene en el mensaje para completar la verificación.","CloudOS.OutOfNetworkAcceptance.VerifyAccessContent.FooterText":"Si no ves tu %{modeOfCommunication}, comunícate con la persona que te invitó.","CloudOS.TermsAndConditions.SuccessConfirmation.GameCenter.Description":"Has aceptado correctamente los términos y condiciones de iCloud. Ve a Game Center en tu Mac o dispositivo e inicia sesión nuevamente.","Banner.QuotaExceeded.LiteAccount.Description":"Los documentos ya no se actualizarán.","CloudOS.InNetworkAcceptance.Description.Two.UserDetails":"%{shareeFullName} (%{shareeAppleId})","CloudOS.OutOfNetworkAcceptance.VerifyAccess.Title":"Verifica tu acceso","Photos.CloudKit.Recoverable.Title":"Las fotos compartidas no están disponibles en este momento.","FMIP.DisplayName":"Buscar","CloudOS.LegalFooterView.Text.Fragment.TermsUrl.Href":"https://www.apple.com/legal/icloud/ww/","FMF.DisplayName":"Amigos","Notice.Windows.DownloadNow.Text":"Descargar ahora","CloudOS.OutOfNetworkAcceptance.EmailSent.Description":"Sigue las instrucciones indicadas en el correo electrónico para completar la verificación.","Error.UnsupportedBrowser.LearnMore.URL":"http://support.apple.com/kb/HT4759","CloudOS.InNetworkAcceptance.OpenInButton.Title":"Abrir en %{applicationName}","CloudOS.LegalFooterView.Text.Fragment.CreateAccount.Title":"Crear Apple ID","CalendarIcon.Monday":"Lunes","CloudOS.Authentication.TrustBrowser.SignOut.Title":"¿Quieres cerrar la sesión en iCloud.com?","Error.UnsupportedBrowser.TOUCH.Warning.Title":"Dispositivo móvil no compatible","CloudOS.keynote.FileType":"presentación","CloudOS.Springboard.Greeting.12-18":"Buenas tardes, %{firstName}.","CloudOS.TermsAndConditions.SuccessConfirmation.Title":"Términos y condiciones","CloudOS.Sharing.Error.UpgradeToiCloudDrive.SubTitle":"Para abrir este documento, debes actualizar tu cuenta a iCloud Drive.","CloudOS.Error.TermsUpdateRequired.Description":"Para continuar, acepta los Términos y condiciones de iCloud en un dispositivo iOS o macOS.","Settings.DisplayName":"Configuración","CloudOS.OutOfNetworkAcceptance.VerifyAccessContent.Description":"Selecciona tu %{modeOfCommunication}, y te enviaremos un enlace de verificación.","Error.AppNotLoading.Description":"Surgió un problema al cargar la aplicación.","Banner.QuotaExceeded.FullAccount.Title":"Tu espacio de almacenamiento de iCloud se ha agotado.","CloudOS.AppSwitcher.Launchpad.Title":"Launchpad","CloudOS.TermsAndConditions.SuccessConfirmation.Description":"Has aceptado correctamente los términos y condiciones de iCloud.","CalendarIcon.Saturday":"Sábado","CloudOS.InNetworkAcceptance.PreviewButton.keynote":"Abrir presentación","CloudOS.InNetworkAcceptance.Description.Two":"Te unirás como %{userDetails}.","Calendar.DisplayName":"Calendario","CloudOS.AccountNeedsSetup.LearnMoreButton.Href":"https://support.apple.com/HT208681","CloudOS.TermsAndConditions.ChinaTerms.Description":"Acepto los términos y condiciones de iCloud operado por GCBD.","CloudOS.AccountInfoMenuView.ManagedId.Title":"Administrar Apple ID","Notes.DisplayName":"Notas","Keynote.TitleName":"iCloud - Keynote","CalendarIcon.Tuesday":"Martes","Banner.SlowConnection.Description":"%{appName} está tardando en cargarse más de lo esperado.","CloudOS.InNetworkAcceptance.PreviewButton.numbers":"Abrir hoja de cálculo","Banner.SlowConnection.Title":"La red experimenta retrasos o no está disponible.","Banner.QuotaAlmostExceeded.FullAccount.Title":"Tu espacio de almacenamiento en iCloud está casi lleno.","CloudOS.pages.FileType":"documento","Reminders.TitleName":"iCloud - Recordatorios","CloudOS.LegalFooterView.Text.Fragment.Copyright":"Copyright © %{currentYear} Apple Inc. Todos los derechos reservados","CloudOS.Sharing.Error.UpgradeToNotes.SubTitle":"Para abrir las notas compartidas en la web necesitas abrir la app Notas en iOS 9, OS X 10.11 o en una versión posterior, y actualizar tu cuenta de iCloud.","Alert.Settings.Button.Title":"Configuración","Newspublisher.ResourcesTitle":"Recursos y soporte","Error.AppNotLoading.Title":"No se puede cargar %{appName}.","AutoUpdate.Later":"Más tarde","CloudOS.OutOfNetworkAcceptance.VerificationLinkExpired.Title":"El enlace de verificación ha caducado","Photos.DisplayName":"Fotos","CloudOS.InNetworkAcceptance.PreviewButton.pages":"Abrir documento","CloudOS.Springboard.Greeting.18-0":"Buenas noches, %{firstName}.","CloudOS.Sharing.Error.UpgradeToNotes.Title":"Es hora de actualizar tus notas.","ICloudDrive.DisplayName":"iCloud Drive","ICloudDrive.TitleName":"iCloud Drive","CloudOS.iCloud.Title":"iCloud","CloudOS.UnsavedChanges.Alert.Title":"Se están guardando los cambios.","CloudOS.SchoolLegalFooterView.Text.Fragment.TermsUrl.Title":"Términos y condiciones para centros educativos","Banner.QuotaAlmostExceeded.LiteAccount.Description":"Si te quedas sin espacio de almacenamiento, tus documentos dejarán de actualizarse.","Banner.SlowConnection.OptionalLink.Text":"Cancelar","Banner.QuotaExceeded.LiteAccount.Title":"Tu espacio de almacenamiento de iCloud se ha agotado.","CloudOS.LegalFooterView.Text.Fragment.TermsUrl.Title":"Términos y condiciones","CloudOS.iclouddrive.folder.FileType":"carpeta ","CloudOS.TermsAndConditions.DownloadCopyButton.Title":"Descargar una copia","Notice.Windows.Subtitle":"Mantén tus fotos, videos, documentos y más actualizados en tu PC.","CloudOS.TermsAndConditions.ChinaTerms.Content":"Debes aceptar los Términos y condiciones de iCloud. En los términos encontrarás información importante. Léelos con atención. Si decides usar iCloud en China, aceptas regirte por los Términos y condiciones de iCloud y GCBD. También reconoces que GCBD procesará datos de iCloud.","CloudOS.OutOfNetworkAcceptance.Description":"Verifica que tengas permiso para abrir \"%{shareTitle}\" con este Apple ID.","Error.UnsupportedBrowser.Warning.Description":"Puedes usar este navegador, pero iCloud funciona mejor con la versión más reciente de Safari, Chrome, Firefox, Microsoft Edge o Internet Explorer.","CalendarIcon.Wednesday":"Miércoles","CloudOS.Springboard.Greeting.6-12":"Buenos días, %{firstName}.","Keynote.DisplayName":"Keynote","CloudOS.iclouddrive.FileType":"artículo","CloudOS.InNetworkAcceptance.SignOutButton.Title":"Cerrar sesión","CloudOS.OutOfNetworkAcceptance.VerifyButton.Title":"Verificar","Error.UnsupportedBrowser.LearnMoreLink.Title":"Más información","AutoUpdate.Description":"Vuelve a cargar para usar la versión más reciente.","CloudOS.LegalFooterView.Text.Fragment.CreateAccount":"%{createAccountAnchorTag}  |  ","CloudOS.LegalFooterView.Text.Fragment.PrivacyUrl.Href":"https://www.apple.com/mx/privacy/"})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(822),r=n(823),a=n(84),o=n(81),s=a.a.extend(o.b,{toString:function(){return"[Object "+Object(i.a)(this)+":"+Object(r.b)(this)+"]"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CoreObject"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=n(820),r=function(e,t){var n=void 0;return e instanceof Error?n=e:(e&&(e=Object(i.a)(e,t)),n=new Error(e)),n.context=t,n},a=function(e,t){throw new r(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=/\s/g;function r(e,t){return e.replace(/%\{(.*?)\}/g,function(n,r){if(!t)throw new Error('Cannot use named parameters with `fmt` without a data object. String: "'+e+'"');return function(e,t,n){var r=void 0,a=void 0,o=void 0,s=(e=e.replace(i,"")).indexOf(":");if(s>-1&&(r=e.substr(s+1),e=e.substr(0,s)),a=t[e],o=t[e+"Formatter"])a=o(a,r);else if(r)throw new Error("fmt() was given a formatting string, but key '"+e+"' has no formatter for the string: \""+n+'"');return a&&a.toString?a.toString():a}(r,t,e)})}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(){}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(823);function r(e){return a(e.constructor)||a(e)||"<object>"}function a(e){var t=e.__QUALIFIED_CLASS_NAME__;if(t)return e.hasOwnProperty("__QUALIFIED_CLASS_NAME__")||(e.isClass&&!e.isInitialized?t+="(Uninitialized subclass "+Object(i.b)(e)+")":t+="(Anonymous subclass "+Object(i.b)(e)+")"),t}},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i=n(819),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},a=0,o=function(e){if(null===e)return"_null";if(void 0===e)return"_undefined";if(e.hasOwnProperty("_cwGUID"))return e._cwGUID;var t=void 0===e?"undefined":r(e);switch(t){case"number":Object.is(e,-0)&&(e="-0");case"string":case"boolean":return t+e;case"object":case"function":var n=t+ ++a;return c.value=n,Object.defineProperty(e,"_cwGUID",c),n;default:Object(i.b)("unrecognized object type",{object:e,type:t})}return null},s=function(){a=0},c={value:"",enumerable:!1,writable:!1,configurable:!1}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819),r={staticMembers:{_pool:null,init:function(){var e=arguments;this._pool=[],this.__s._$7M$init.apply(this,e)},maxPoolSize:200,create:function(){var e=void 0,t=this._pool;return t.length>0?(e=t.pop()).isPooled=!1:e=this.__s._$EI$create.call(this),e.retain(this,"CW._Poolable.create"),e.initFromPool.apply(e,arguments),e._autoreleaseForTransfer(this,"CW._Poolable.create"),e},_returnInstanceToPool:function(e){var t=this._pool;t.length>=this.maxPoolSize||(t.push(e),e.isPooled=!0)},__superMap:{_$7M$init:"init",_$EI$create:"create"}},retain:function(){var e=arguments;return this.isPooled&&Object(i.b)("Attempted to retain pooled object.",this),this.__s._$PX$retain.apply(this,e)},release:function(){var e=arguments;return this.isPooled&&Object(i.b)("Attempted to release pooled object.",this),this.__s._$Rz$release.apply(this,e)},_captureDisposingObjectForPool:function(){this.constructor._returnInstanceToPool(this)},isPooled:!1,initFromPool:function(e){for(var t in arguments.length>1&&Object(i.b)("Default poolable initializer supports at most one argument. If you would like to apply a mixin it should be done when calling .extend()."),e)this[t]=e[t]},__superMap:{_$PX$retain:"retain",_$Rz$release:"release"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(365),r=n(366),a=n(364);function o(e,t){var n=Object(a.a)(t,e);if(n)return Object(i.a)(n,Object(r.a)(t))}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(827),r=[];function a(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=0),r.length=0,Object(i.a)(r,e,t,n)}},function(e,t,n){"use strict";function i(e,t,n,i){void 0===n&&(n=0),void 0===i&&(i=n);var r=t.length;e.length=r+n-i;for(var a=i,o=n;a<r;a++,o++)e[o]=t[a];return e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e,t){return(n=e)&&n.instanceOf?e.instanceOf(t):(t===Event||"function"==typeof t)&&e instanceof t;var n}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(94),r=n(830),a=n(85),o={mixinDependencies:[i.a],clone:Object(a.c)(r.a)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(831),r=n(94).b.extend({requiredKey:null,validate:function(e,t){if(this._validating)return this._validating=!1,!1;this._validating=!0;var n,r=e[t];if(Object(i.a)(r)&&r!==this.default)return this._validating=!1,!0;if(t=this.requiredKey||t,Array.isArray(t)){n=!0;for(var a=t.length,o=0;o<a;o++)n=n&&this._validate(e,t[o])}else n=this._validate(e,t);return this._validating=!1,n},_validating:!1,_validate:function(e,t){var n=e.getMetadataByType(r)[t],a=e[t];return n?n.validate(e,t):Object(i.a)(a)},getValue:function(){return this.default},default:void 0,staticMembers:{__QUALIFIED_CLASS_NAME__:"RequiredMethod"}})},function(e,t,n){"use strict";function i(e){return e instanceof Function||!(!e||"function"!=typeof e||e instanceof Element)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function r(e){return"object"===(void 0===e?"undefined":i(e))&&null!==e&&e.constructor===Object&&!e.isClass}},function(e,t,n){"use strict";function i(e){return"string"==typeof e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(826),r=n(819),a=n(835);function o(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];var c=Object(i.a)(arguments,0,1),l="_cw_boundFunction_"+Object(a.a)(arguments);null!==t&&void 0!==t||s(t);var u=t[l];return u||(u=t[l]=e.bind.apply(e,c),t[l]||s(t)),u}function s(e){Object(r.b)("CW.Utils.bindFunction cannot bind a function to a primitive or frozen object ("+e+" in this case). Use `Function#bind` instead.")}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(819),r=n(823),a=n(836),o=n(197),s=[],c=function(e,t){var n=0|t,r="",c=void 0,u=void 0,d=void 0,h=void 0;if(Object(a.a)(e)){for(c=e.length,u=0;u<c;u++)u&&(r+=","),r+=l(e[u],n);return"["+r+"]"}if(e._isCwCollection&&e.objectAt){for(c=e.length,u=0;u<c;u++)u&&(r+=","),r+=l(e.objectAt(u),n);return"["+r+"]"}if(!Object(o.a)(e)){for(d in h=s.length,e)e.hasOwnProperty(d)&&s.push(d);for(s.sort(),c=s.length,u=h;u<c;u++)d=s[u],u!==h&&(r+=","),r+='"'+d+'":'+l(e[d],n);return s.length=h,"{"+r+"}"}return Object(i.b)("Object expected in call to `guidForContents`.",e),null},l=function(e,t){return t>0&&!Object(o.a)(e)?c(e,t-1):'"'+Object(r.b)(e)+'"'}},function(e,t,n){"use strict";function i(e){return!!Array.isArray(e)||!!e&&"[object Arguments]"===Object.prototype.toString.call(e)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e){return"number"==typeof e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";function i(e){return null!==e&&void 0!==e}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){return e}},function(e,t,n){"use strict";function i(e){return!(!e||!e.isClass)}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(842).b},function(e,t,n){"use strict";n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s});var i=n(836),r=n(832),a=n(227),o=function(e,t){var n=void 0;if(Object(i.a)(e)){var o=Object(a.a)(e);if(t){for(var c=o.length,l=0,u=0;u<c;u++)(n=t.call(this,o[u],t,u))!==s&&(o[l]=n,l++);l!==c&&(o.length=l)}return o}if(Object(r.a)(e)){for(var d=Object.create(Object.getPrototypeOf(e)),h=Object.keys(e),p=h.length,f=0;f<p;f++){var m=h[f];t?(n=t.call(this,e[m],t,m))!==s&&(d[m]=n):d[m]=e[m]}return d}return e},s={}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={toString:function(){return"CW.ITSELF"}};Object.freeze(i)},function(e,t,n){"use strict";n.d(t,"a",function(){return We});var i=n(821),r=n(819),a=3,o=~a,s=4,c=8,l=16,u=32,d=64,h=128,p=256,f=512,m=2048,g=8192,b=16384,v=0,_=1,y=2,C=3,I=-1,w=0,S=1,A=0,O=1,E=256,T=new Int16Array(1024),D=1,L=1024,N=new Array(1024),M=new Int32Array(2048),P=2048,x=new Int32Array(2048),R=new Int32Array(2048),j=0,F=2,V=2048,U=I,k=new Array(1024),B=new Array(1024),z=new Array(1024),W=new Int32Array(1024),H=2048,$=new Int32Array(256),G=0,K=256,Q=new Int32Array(256),q=0,Y=256,X=[],J=-1;function Z(){var e;return-1===J?e=new Int32Array(E):(e=X[J],J--),e[0]=1,e}var ee=Z(),te=new Int32Array(E),ne=0,ie=E,re=!Int16Array,ae=re?i.a:function(){L*=2,H*=2;var e=new Int16Array(L);e.set(T);var t=new Int32Array(H);t.set(W),T=e,W=t},oe=re?i.a:function(){P*=2;var e=new Int32Array(P);e.set(M),M=e;var t=new Int32Array(P);t.set(x),x=t},se=re?i.a:function(){V*=2;var e=new Int32Array(V);e.set(R),R=e},ce=re?i.a:function(){K*=2,Y*=2;var e=new Int32Array(K);e.set($),$=e;var t=new Int32Array(Y);t.set(Q),Q=t},le=re?i.a:function(){ie*=2;var e=new Int32Array(ie);e.set(te),te=e},ue=re?i.a:function(){var e=2*ee.length,t=new Int32Array(e);t.set(ee),ee=t},de=0,he=0;function pe(e){return e&d&&!(e&s)}function fe(e,t){pe(T[e])&&N[e].didRemoveParentFromNode(k[e],e,t,x[(e<<1)+w])}function me(e,t){pe(T[e])&&N[e].didRemoveChildFromNode(k[e],e,t,x[(e<<1)+S])}function ge(e,t){T[e]&d&&N[e].willRemoveChildFromNode(k[e],e,t,x[(e<<1)+S])}function be(e,t){pe(T[e])&&N[e].willRemoveParentFromNode(k[e],e,t,x[(e<<1)+w])}function ve(){if(!(de>0||he>0)){var e=0,t=q;for(e=0;e<t;e++)_e(Q[e]),Q[e]=I;q=0}}function _e(e){G>=K&&ce(),$[G++]=e}function ye(e,t){var n=M[t],i=I;U!==I?(i=0|U,U=R[U+O]):(i=0|j,(j+=F)>V&&se()),R[i+A]=e,R[i+O]=n,M[t]=i,x[t]++}function Ce(e,t){for(var n=M[t],i=I;n!==I;){if(R[n+A]===e){i!==I?R[i+O]=R[n+O]:M[t]=R[n+O],R[n+O]=U,U=n,x[t]--;break}i=n,n=R[n+O]}}function Ie(e,t,n){de++;for(var i=(e<<1)+t,r=M[i],a=t===w?S:w,o=r;o!==I;){var c=R[o];t===w?(n&&be(e,c),ge(c,e)):(n&&ge(e,c),be(c,e)),o=R[o+O]}if(o=r,M[i]=I,x[i]=0,o!==I)for(;;){var l=R[o];T[l]&s||Ce(e,(l<<1)+a),t===w?(n&&fe(e,l),me(l,e)):(n&&me(e,l),fe(l,e));var u=R[o+O];if(u===I){R[o+O]=U,U=r;break}o=u}de--,ve()}function we(e){return k[e]}function Se(e,t){var n=T[e];T[e]=n&o|t}function Ae(e,t){var n=T[e];return T[e]=n|t,T[e]}function Oe(e,t){var n=T[e];return T[e]=n&~t,T[e]}function Ee(e,t){De(e,t,e,y)}function Te(e,t){De(e,void 0,t,C)}function De(e,t,n,i,o){ze(e)||Object(r.b)("Tried to dirty an undefined node");var s=T[e],c=s&a;c!==_||s&b||Object(r.b)("Cycle found in dataflow graph");var d=s&p,h=d&&c===y?je(e):void 0;Se(e,_),Fe(t,e),Ve(n,e),d&&(i===C?N[e].wasDirtiedByParent(we(e),e,t,h):i===y&&N[e].wasDirtiedBySelf(we(e),e,t,h)),o||(Le(e),function(e){var t=T[e];!(t&l||t&u||t&m)||t&g||(ee.length<=ee[0]&&ue(),ee[ee[0]]=e,ee[0]++,Ae(e,g))}(e)),Se(e,i)}function Le(e,t){var n=T[e];if(!t&&n&h)!function(e){T[e]&b||(ie<=ne&&le(),te[ne]=e,ne++,Ae(e,b))}(e);else for(var i=(e<<1)+S,r=x[i],a=M[i],o=r-1;a!==I;)t&&!t[o]||Te(R[a+A],e),o--,a=R[a+O]}function Ne(){for(var e,t=0;t<ne;t++)Le(e=te[t],N[e].getActiveChildrenForNode(e));for(var n=0;n<ne;n++)Oe(e=te[n],b);ne=0}function Me(){if(!(he>0)){de++;var e=ee,t=e[0];ee=Z();var n,i,r=0,a=0;for(n=1;n<t;n++)Oe(r=e[n],g);for(n=1;n<t;n++)r=e[n],a=T[r],r===I||a&s||(a&l&&N[r].flushNode(k[r],r),a&m&&Pe(r));for(n=1;n<t;n++)r=e[n],a=T[r],r===I||a&s||a&u&&N[r].notifyNode(k[r],r);i=e,X[++J]=i,de--,ve()}}function Pe(e){ze(e)||Object(r.b)("Tried to getValue for an undefined node");var t=T[e];if(t&s)return xe(e);var n=t&a,i=N[e],o=i.isCacheable;if(n===v&&o)return xe(e);var c=n===C||!o,l=we(e),u=i.calculateValueForNode(l,e,c);Se(e,v),Fe(void 0,e);var d,h=t&f;return h&&(d=xe(e)),o&&Re(u,e),h&&i.previousValueWasReplaced(l,e,d),u}function xe(e){return B[e]}function Re(e,t){B[t]=e}function je(e){return z[e]}function Fe(e,t){z[t]=e}function Ve(e,t){W[t]=e}function Ue(e,t){void 0===t&&(t=0);var n,i=T[e];switch(i&a){case v:n="CLEAN";break;case _:n="DIRTYING";break;case y:n="DIRTY_SELF";break;case C:n="DIRTY_PARENT"}function r(e){for(var n,i=[];e!==I;)n=R[e+A],t>0?i.unshift(Ue(n,t-1)):i.unshift(n),e=R[e+O];return i}var o=e<<1,f=r(M[o+O]),m=r(M[o+A]),g=N[e],b={id:e,wantsFlush:!!(i&l),wantsNotify:!!(i&u),wantsFreeTracking:!!(i&c),wantsRelationshipTracking:!!(i&d),wantsActiveChildren:!!(i&h),wantsDirtyTracking:!!(i&p),isFreeing:!!(i&s),status:n,children:f,parents:m,manager:g,data:B[e],context:k[e],stateData:z[e],stateID:W[e]};return g&&g.addDebugInfoForNode&&g.addDebugInfoForNode(k[e],b,e),b}function ke(e,t,n){void 0===t&&(t=0),void 0===n&&(n=e.length-1);for(var i=[],r=t;r<=n&&!(r>=e.length);r++)i.push(Ue(e[r]));return i}function Be(e,t,n){var i="";return e[t].forEach(function(e){var r=(e&&void 0!==e.id?e.id:e)+(e&&e.status?" ("+e.status+")":"")+": "+e.toString();i+=n+r+"\n",e&&e[t]&&(i+=Be(e,t,n+"  "))}),i}function ze(e){return void 0!==e&&null!==e&&e!==I}var We={NULL_INDEX:I,dumpNode:Ue,dumpChildren:function(e,t){return void 0===t&&(t=7),"Children of "+e+":\n"+Be(Ue(e,t),"children","")},dumpParents:function(e,t){return void 0===t&&(t=7),"Parents of "+e+":\n"+Be(Ue(e,t),"parents","")},dumpNodes:ke,dumpNodeNames:function(e,t,n){return ke(e,t,n).map(function(e){return(e&&void 0!==e.id?e.id:e)+":"+e.toString()})},dumpNodesWithData:function(e){var t=[];return B.forEach(function(n,i){n===e&&t.push(i)}),t},dumpNodesWithStateData:function(e){var t=[];return z.forEach(function(n,i){n===e&&t.push(i)}),t},debugNextCycle:function(){},dumpStack:function(){return{stack:[],nodes:{}}},setNodeBit:Ae,removeNodeBit:Oe,addChildToNode:function(e,t,n){var i=(e<<1)+w;ye(e,(t<<1)+S),ye(t,i),function(e,t){pe(T[e])&&N[e].didAddChildToNode(k[e],e,t,x[(e<<1)+S])}(t,e),function(e,t){pe(T[e])&&N[e].didAddParentToNode(k[e],e,t,x[(e<<1)+w])}(e,t),n&&Te(e,t)},removeChildFromNode:function(e,t,n){ge(t,e),be(e,t),Ce(e,(t<<1)+S),Ce(t,(e<<1)+w),me(t,e),fe(e,t),n&&Te(e,t)},setValueForNode:function(e,t){Ee(t,e),Ne(),Me()},setValuesForNodes:function(){arguments.length%2!=0&&Object(r.b)("Invalid number of arguments on setValuesForNodes, arguments should be a paired list of nodeIDs and values.",arguments);for(var e=0;e<arguments.length;e+=2)Ee(arguments[e+1],arguments[e]);Ne(),Me()},setNodeToDirtyFromParent:function(e){Te(e,I),Ne(),Me()},passValueToNode:function(e,t){De(t,e,t,y,!0)},getValueForNode:Pe,getDataForNode:xe,setDataForNode:Re,getStateDataForNode:je,setStateDataForNode:Fe,getStateIDForNode:function(e){return W[e]},setStateIDForNode:Ve,getContextForNode:we,setContextForNode:function(e,t){k[t]=e},getManagerForNode:function(e){return N[e]},setManagerForNode:function(e,t){N[t]=e},getParentIDs:function(e,t,n){for(var i=n||0,r=(e<<1)+w,a=x[r],o=M[r],s=a-1+i,c=s+1;c<t.length;c++)t[c]=I;for(;o!==I;){var l=R[o+A];t[s]=l,s--,o=R[o+O]}return t},getChildrenIDs:function(e,t,n){for(var i=n||0,r=(e<<1)+S,a=x[r],o=M[r],s=a-1+i,c=s+1;c<t.length;c++)t[c]=I;for(;o!==I;){var l=R[o+A];t[s]=l,s--,o=R[o+O]}return t},getChildIndex:function(e,t){for(var n=(t<<1)+S,i=M[n],r=x[n]-1;i!==I;){if(R[i+A]===e)return r;i=R[i+O],r--}return I},getParentIndex:function(e,t){for(var n=(e<<1)+w,i=M[n],r=x[n]-1;i!==I;){if(R[i+A]===t)return r;i=R[i+O],r--}return I},FLUSH:l,NOTIFY:u,RELATIONSHIPS:d,FREE:c,ACTIVE_CHILDREN:h,DIRTY_TRACKING:p,PREVIOUS_VALUE_TRACKING:f,PULL_ON_FLUSH:m,PULL_ON_FREE:1024,allocNode:function(e,t,n){var i=0,r=I;i|=n|=0,G>0?r=$[--G]:(r=D++,D>L&&(ae(),oe())),T[r]=i;var a=r<<1+w,o=a+S;return M[a]=I,M[o]=I,x[a]=0,x[o]=0,N[r]=e,k[r]=t,B[r]=void 0,z[r]=void 0,W[r]=I,r},freeNode:function(e){var t=T[e];if(1024&t){var n=t&a;n!==y&&n!==C||Pe(e)}Ae(e,s),Ie(e,w,!1),Ie(e,S,!1),t&c&&N[e].nodeWillFree(k[e],e),N[e]=B[e]=k[e]=z[e]=void 0,W[e]=I,de>0||he>0?(q>=Y&&ce(),Q[q++]=e):_e(e)},disconnectParentsFromNode:function(e){Ie(e,w,!0)},disconnectChildrenFromNode:function(e){Ie(e,S,!0)},pullDataFromParents:function(e,t){for(var n=(e<<1)+w,i=x[n],r=M[n],a=i-1,o=a+1;o<t.length;o++)t[o]=void 0;for(;r!==I;){var s=R[r+A];t[a]=Pe(s),a--,r=R[r+O]}return t},triggerFlush:Me,pause:function(){he++},resume:function(){0==--he&&Me()},_sanitizeNodeID:function(e){return null!==e&&void 0!==e||(e=I),0|e},nodeIsDirty:function(e){var t=T[e]&a;return t&y||t&C},nodeIsFreeing:function(e){return T[e]&s},isValidNodeID:ze}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(84),r=n(821),a=n(828),o=n(819),s=n(844),c=n(198).a.extend({debugType:"Base",property:null,key:null,init:function(e){this.property=e,this.key=e.key,this.get=e._transformedGet,this.internalGet=e.internalGet,void 0!==e.cacheable&&(this.isCacheable=e.cacheable),this.dependencyCount=e.dependencies?e.dependencies.length:0,this.readOnly=e.readOnly,this.reference=e.reference,this.collectors=[],this.collectorsCount=0,this.validateType=e._validateType,e.isDependentComputedProperty&&(this._validateNewParent=r.a,this.isDependentComputedProperty=!0),this.__s._$ll$init.call(this)},isDependentComputedProperty:!1,readOnly:!1,validateType:null,get:null,internalGet:null,setUpNode:r.a,calculateValueForNode:function(e,t,n){var r=s.a.getDataForNode(t),c=this.getCollector();s.a.getParentIDs(t,c);for(var l=s.a.getValueForNode(c[0]),u=1;u<c.length;u++)c[u-1]=c[u];c[c.length-1]=s.a.NULL_INDEX;var d=this.get.call(e,l,c,0,this.property);if(this.releaseCollector(c),!this.validateType(d)){var h=this.property.type;Object(a.a)(d,i.a)?Object(o.b)('Type error: cannot return %{value} (an instance of %{constructor}) from observable property "%{key}" of %{object} which expected a %{type}. Value passed type check at `set` time, but was transformed inappropriately by an upstream property’s getter or setter.',{object:e,key:this.key,value:d,constructor:d.constructor,type:h}):Object(o.b)('Type error: cannot return value %{value} from observable property "%{key}" of %{object} which expected a %{type}. Value passed type check at `set` time, but was transformed inappropriately by an upstream property’s getter or setter.',{object:e,key:this.key,value:d,type:h})}return this._manageForCalculateValueForNode(e,r,d),d},_manageForCalculateValueForNode:r.a,didAddParentToNode:function(e,t,n){this._validateNewParent(t,n)},_validateNewParent:function(e,t){s.a.getManagerForNode(t).validateDescendantDownstreamNodeManager(this,e,t)},validateDescendantDownstreamNodeManager:r.a,_throwValidationError:function(e,t,n){Object(o.b)(n,{reference:e.reference,parentReference:this.reference,key:e.key,object:s.a.getContextForNode(t),parentKey:this.key,property:e.property})},dependencyCount:null,collectors:null,collectorsCount:0,getCollector:function(){return this.collectorsCount>0?this.collectors[--this.collectorsCount]:new Array(this.dependencyCount)},releaseCollector:function(e){var t,n=this.dependencyCount;for(t=0;t<n;t++)e[t]=null;this.collectors[this.collectorsCount++]=e},addDebugInfoForNode:function(e,t,n){t.type=this.debugType+" Downstream Node",t.object=e,t.key=this.key,t.toString=function(){return e+"."+this.key+" (Downstream)"},t.name=t.toString()},__superMap:{_$ll$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DownstreamNodeManager"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(84),r=n(844),a=i.c.extend({staticMembers:{init:function(){var e=arguments;this.__s._$H4$init.apply(this,e),i.c._bestBatchSetterClass=this,this._bestBatchSetterClass=this},__superMap:{_$H4$init:"init"},__QUALIFIED_CLASS_NAME__:"BatchSetter"},init:function(){var e=arguments;this.__s._$Oo$init.apply(this,e),this._toSetObservableArray=[]},end:function(){var e=arguments;this.__s._$QW$end.apply(this,e),this._toSetObservableArray.length=0},_toSetObservableArray:null,_performSet:function(e){if(0!==e.length){for(var t=this._toSetObservableArray,n=this._pointerTuple,i=0,a=e.length;i<a;i++){var o=e[i],s=o.value,c=this._resolvePointer(o,n),l=c[0],u=c[1],d=l.upstreamNodes?l.upstreamNodes[u]:void 0;d?(t.push(s),t.push(d)):l[u]=s}t.length>0&&r.a.setValuesForNodes.apply(this,t)}},__superMap:{_$Oo$init:"init",_$QW$end:"end"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(81),r={staticMembers:{sharedInstance:Object(i.d)({get:function(){return this.hasOwnProperty("_sharedInstance")&&this._sharedInstance||(this._sharedInstance=this.create())},set:function(e){this._sharedInstance=e}})},dispose:function(){var e=arguments;this.constructor._sharedInstance===this&&delete this.constructor._sharedInstance,this.__s._$Oz$dispose.apply(this,e)},__superMap:{_$Oz$dispose:"dispose"}}},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"b",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"a",function(){return s});var i=n(372),r=n(157);function a(e,t,n){if(d){if(l.isExceptionHandlingFatal)return;d=!1}if(u)return e.apply(n,t);if(!l.isExceptionHandlingEnabled)return Object(r.e)(e,n,t);u=!0;try{return Object(r.e)(e,n,t)}catch(e){var a=i.a;a.length>0&&(a.push(e.context),a.reverse(),e.context=a.slice(),a.length=0),l.exceptionHandler(e),l.exceptionWasHandled=!0,l.isExceptionHandlingFatal&&(d=!0)}finally{u=!1}}function o(e){l=e||c}function s(){return l}var c={isExceptionHandlingEnabled:!1},l=c,u=!1,d=!1},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(197),r=function(e){var t="";try{var n=e&&e.toJSON&&e.toJSON()||e;t=Object(i.a)(n)?""+n:JSON.stringify(n)}catch(n){var r={};for(var o in e)r[o]=a(e,o);t=JSON.stringify(r)}return t};function a(e,t){var n=e[t];if(Object(i.a)(n))return n;var r="";try{var a=n&&n.toJSON&&n.toJSON()||n;r=Object(i.a)(a)?""+a:JSON.stringify(a)}catch(e){try{r=n+" (could not `JSON.stringify()`)"}catch(e){r="(cannot stringify value)"}}return r}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(833),r=n(837);function a(e){if(!e)return null;if(e.lineNumber)return e.lineNumber;if(e.line)return e.line;if(Object(i.a)(e.stack)){var t=e.stack.split("\n")[1];if(Object(i.a)(t)){var n=t.split(":"),a=n[n.length-2],o=parseInt(a,10);if(Object(r.a)(o)&&!Number.isNaN(o))return o}}return null}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(494),r=n(495);function a(){return o=Object(i.a)(o),Object(r.a)(o)}var o=void 0},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(836),r=n(227),a=n(828),o=n(857),s=n(858),c=n(819),l=n(818),u=n(81),d=n(199),h=n(854),p=l.a.extend(h.a,{staticMembers:{from:function(e){return this.create(e)},__QUALIFIED_CLASS_NAME__:"CoreArray"},shouldDoPostInitProcessing:Object(u.d)(!0),init:function(e){var t,n=arguments,o=!1;Object(i.a)(e)?t=Object(r.a)(e):Object(a.a)(e,d.a)?t=e.toArray():(t=[],o=!0),this._array=t,o?this.__s._$dh$init.apply(this,n):this.__s._$dh$init.call(this),this.shouldDoPostInitProcessing&&this.postInitProcessing()},postInitProcessing:function(){var e=this._array;if(e){var t=this.serializer;if(e&&t&&t.encode)for(var n=0,i=e.length;n<i;n++)e[n]=t.encode(e[n],n)}},appendArrays:function(){m.length=0,m[0]=1/0;for(var e=0,t=arguments.length;e<t;e++){var n=arguments[e];Object(o.a)(m,n)}return this.insertAt.apply(this,m),this},_array:null,encodedRawSplice:function(e,t){var n=arguments.length-2;this.itemsWillChange(),t>0&&this.itemsWillBeRemoved(e,t),n>0&&this.itemsWillBeInserted(e,n);var i=this._array.splice.apply(this._array,arguments);return t>0&&this.itemsWereRemoved(e,t),n>0&&this.itemsWereInserted(e,n),this.itemsDidChange(),i},encodedObjectAt:function(e){return this._array[e]},length:Object(u.d)({get:f,set:function(e){e<0&&Object(c.b)("Invalid length %{length}. Must be a non-negative integer.",{length:e,object:this});var t,n=this._internalLength,i=e-n;0!==i&&(this.itemsWillChange(),i>0?this.itemsWillBeInserted(n,i):i<0&&(t=n- -1*i,this.itemsWillBeRemoved(t,-i)),this._array.length=e,i>0?this.itemsWereInserted(n,i):i<0&&this.itemsWereRemoved(t,-i),this.itemsDidChange());return e}}),_internalLength:Object(u.d)({readOnly:!0,get:f}),shallowCopy:function(){return this.constructor.create(Object(r.a)(this._array))},toJSON:function(){return Object(s.a)(this._array)},encodedPush:function(){var e,t=arguments.length,n=this.length;if(0===t)return n;this.itemsWillChange(),this.itemsWillBeInserted(n,t);var i=(e=this._array).push.apply(e,arguments);return this.itemsWereInserted(n,t),this.itemsDidChange(),i},clear:function(){var e=this.length;return this.itemsWillChange(),this.itemsWillBeRemoved(0,e),this._array.length=0,this.itemsWereRemoved(0,e),this.itemsDidChange(),this},removeAt:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=this.length;return e<0&&(e=n+e)<0&&(e=0),e<n&&e>=0&&(this.itemsWillChange(),this.itemsWillBeRemoved(e,t),this._array.splice(e,t),this.itemsWereRemoved(e,t),this.itemsDidChange()),this},encodedPop:function(){var e=this.length-1;this.itemsWillChange(),this.itemsWillBeRemoved(e,1);var t=this._array.pop();return this.itemsWereRemoved(e,1),this.itemsDidChange(),t},encodedSetIndex:function(e,t){var n=this.length;if(e<n)e<0&&(e=n+e)<0&&(e=0),this.itemsWillChange(),this.itemsWillBeRemoved(e,1),this.itemsWillBeInserted(e,1),this._array[e]=t,this.itemsWereRemoved(e,1),this.itemsWereInserted(e,1),this.itemsDidChange();else{var i=n,r=e-i+1;this.itemsWillChange(),this.itemsWillBeInserted(i,r),this._array[e]=t,this.itemsWereInserted(i,r),this.itemsDidChange()}return this},encodedShift:function(){this.itemsWillChange(),this.itemsWillBeRemoved(0,1);var e=this._array.shift();return this.itemsWereRemoved(0,1),this.itemsDidChange(),e},encodedUnshift:function(){var e,t=arguments.length;if(0===t)return this.length;this.itemsWillChange(),this.itemsWillBeInserted(0,t);var n=(e=this._array).unshift.apply(e,arguments);return this.itemsWereInserted(0,t),this.itemsDidChange(),n},dispose:function(){this.__s._$2RU$dispose.call(this),this._array=null},__superMap:{_$dh$init:"init",_$2RU$dispose:"dispose"}});function f(){return this._array&&this._array.length||0}var m=[]},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n(821),r=n(838),a=n(819),o=n(282),s=n(855),c=n(281),l=n(94),u=n(496),d=n(830),h=n(856),p=n(85),f=n(81),m={mixinDependencies:[l.a,s.a,u.a],lastItem:Object(f.d)({get:function(){return this.objectAt(this.length-1)},set:function(e){return this.setIndex(this.length-1,e),e}}),firstItem:Object(f.d)({get:function(){return this.objectAt(0)},set:function(e){return this.setIndex(0,e),e}}),push:function(){for(var e=this.length,t=this.serializer,n=e,i=arguments.length,r=Array(i),a=0;a<i;a++)r[a]=arguments[a];if(t&&t.encode)for(var o=0,s=r.length;o<s;o++)r[o]=t.encode(r[o],o+n);return this.encodedPush.apply(this,r)},encodedPush:function(){for(var e=this.length,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.encodedRawSplice.apply(this,[e,0].concat(n)),e+n.length},pop:function(){var e=this.length-1;return this.decode(this.encodedPop(),e)},encodedPop:function(){var e=this.length-1;return this.encodedRawSplice(e,1)[0]},unshift:function(){for(var e=this.serializer,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];if(e&&e.encode)for(var r=0,a=n.length;r<a;r++)n[r]=e.encode(n[r],r);return this.encodedUnshift.apply(this,n)},encodedUnshift:function(){for(var e=this.length,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];return this.encodedRawSplice.apply(this,[0,0].concat(n)),e+n.length},shift:function(){return this.decode(this.encodedShift(),0)},encodedShift:function(){return this.encodedRawSplice(0,1)[0]},insertAt:function(e){for(var t=this.serializer,n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];if(t&&t.encode)for(var a=0,o=i.length;a<o;a++)i[a]=t.encode(i[a],a+e);return this.encodedInsertAt.apply(this,[e].concat(i))},encodedInsertAt:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return this.encodedSplice.apply(this,[e,0].concat(n)),this},removeAt:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.encodedSplice(e,t),this},add:function(e){return this.push(e),!0},encodedAdd:function(e){return this.encodedPush(e),!0},remove:function(e){return this.encodedRemove(this.encode(e))},encodedRemove:function(e){var t=this.encodedIndexOf(e);return-1!==t&&(this.removeAt(t,1),!0)},slice:function(e,t){var n=this.get("length");if(0===n)return[];e=void 0===e?0:b(e,n);for(var i=(t=void 0===t||t>n?n:b(t,n))-e,r=new Array(i),a=0;a<i;a++)r[a]=this.objectAt(a+e);return r},indexOf:function(e,t){return this.encodedIndexOf(this.encode(e),t)},encodedIndexOf:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.length,i=t=b(t,n);i<n;i++)if(this.encodedObjectAt(i)===e)return i;return-1},contains:v,encodedContains:_,includes:v,encodedIncludes:_,lastIndexOf:function(e,t){return this.encodedLastIndexOf(this.encode(e),t)},encodedLastIndexOf:function(e,t){for(var n=this.length,i=t=void 0===t?n-1:b(t,n);i>=0;i--)if(this.encodedObjectAt(i)===e)return i;return-1},splice:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._validateSpliceArguments.apply(this,[this.rawSplice].concat(t))},encodedSplice:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return this._validateSpliceArguments.apply(this,[this.encodedRawSplice].concat(t))},_validateSpliceArguments:function(e,t,n){for(var i=arguments.length,r=Array(i>3?i-3:0),a=3;a<i;a++)r[a-3]=arguments[a];var o=this._internalLength;t<0?(t=o+t)<0&&(t=0):t>o&&(t=o);var s=arguments.length;return(2===s||n+t>o)&&(n=o-t),3===s&&0===n?[]:e.call.apply(e,[this,t,n].concat(r))},itemsWillBeInserted:i.a,itemsWereInserted:i.a,itemsWillBeRemoved:i.a,itemsWereRemoved:i.a,itemsWillChange:i.a,itemsDidChange:i.a,rawSplice:function(e,t){for(var n,i=this.serializer,r=arguments.length,a=Array(r>2?r-2:0),o=2;o<r;o++)a[o-2]=arguments[o];if(i&&(n=i.encode))for(var s=a.length,c=0;c<s;c++)a[c]=n.call(i,a[c],e+c);var l=this.encodedRawSplice.apply(this,[e,t].concat(a)),u=void 0;if(i&&(u=i.decode))for(var d=l.length,h=0;h<d;h++)l[h]=u.call(i,l[h],e+h);return l},encodedRawSplice:Object(p.c)(d.a),objectAt:function(e){return this.decode(this.encodedObjectAt(e),e)},encodedObjectAt:Object(p.c)(d.a),iteratorClass:Object(f.d)({readOnly:!0,defaultValue:c.a}),createIteratorAt:function(e){return this.get("iteratorClass").create(this,e)},join:function(e){void 0===e&&(e=",");for(var t=this.get("length"),n="",i=0;i<t;i++){var a=this.objectAt(i);0!==i&&(n+=e),Object(r.a)(a)&&(n+=a.toString())}return n},toString:function(){return this.join(", ")},reverse:function(){for(var e=this.get("length")-1,t=0;t<e;t++,e--)this.swap(t,e);return this},setIndex:function(e,t){return this.encodedSetIndex(e,this.encode(t,e))},encodedSetIndex:function(e,t){return e>this.length&&(this.length=e+1),this.encodedSplice(e,1,t),this},swap:function(e,t){var n=this.encodedObjectAt(t);return this.encodedSetIndex(t,this.encodedObjectAt(e)),this.encodedSetIndex(e,n),this},move:function(e,t){var n=this.encodedRawSplice(e,1)[0];return this.encodedRawSplice(t,0,n),this},sort:function(e){return e||(e=g),function e(t,n,i,r){if(!(r-i+1<=1)){var a=Math.floor((i+r)/2);a=function(e,t,n,i,r){var a=e.objectAt(r);for(e.swap(r,i),r=i;n<i;){t(e.objectAt(n),a)<=0?n++:e.swap(n,--i)}return e.swap(r,i),i}(t,n,i,r,a),e(t,n,i,a-1),e(t,n,a+1,r)}}(this,e,0,this.get("length")-1),this},reduce:function(e,t,n){var i,r=0,o=this.length;arguments.length>=2?i=t:o>0?(i=this.objectAt(0),r=1):Object(a.b)("reduce of empty array with no initial value");for(var s=r;s<o;s++)i=e.call(n,i,this.objectAt(s),s,this);return i},find:function(e,t){for(var n=this.get("length"),i=0;i<n;i++){var r=this.objectAt(i);if(e.call(t,r,i,this))return r}},findLast:function(e,t){for(var n=this.get("length")-1;n>=0;n--){var i=this.objectAt(n);if(e.call(t,i,n,this))return i}},findIndex:function(e,t){for(var n=this.get("length"),i=0;i<n;i++){var r=this.objectAt(i);if(e.call(t,r,i,this))return i}return-1},binarySearch:function(e){for(var t=this,n=o.a,i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];return n.apply(void 0,[0,this.length-1,function(e){return t.objectAt(e)},e].concat(r))},clear:function(){return this.encodedRawSplice(0,this.length),this},map:function(e,t){for(var n=this.constructNewInstance(),i=0,r=this.get("length");i<r;i++){var a=e.call(t,this.objectAt(i),i,this);n.setIndex(i,a)}return n},_internalLength:h.a.define()};function g(e,t){return void 0===t?void 0===e?0:-1:void 0===e?1:(e=String(e))<(t=String(t))?-1:e>t?1:0}function b(e,t){e<0&&(e=t+e);var n=t-1;return e>n?e=n:e<0&&(e=0),e}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.encodedContains(this.encode(e),t)}function _(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return-1!==this.encodedIndexOf(e,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n(838),r=n(832),a=n(837),o=n(836),s=n(828),c=n(199),l=n(94),u=n(830),d=n(85),h={mixinDependencies:[l.a,c.a],init:function(e){var t,n,l=arguments;if(1!==arguments.length)for(this.__s._$K7$init.call(this),t=0,n=arguments.length;t<n;t++)this.add(arguments[t]);else if(!Object(i.a)(e)||Object(r.a)(e))this.__s._$K7$init.apply(this,l);else if(Object(a.a)(e))for(this.__s._$K7$init.call(this),t=0,n=e;t<n;t++)this.add(void 0);else if(Object(o.a)(e))for(this.__s._$K7$init.call(this),t=0,n=e.length;t<n;t++)this.add(e[t]);else Object(s.a)(e,c.a)?(this.__s._$K7$init.call(this),this.addEach(e)):(this.__s._$K7$init.call(this),this.add(e))},add:function(e){return this.encodedAdd(this.encode(e))},encodedAdd:Object(d.c)(u.a),addEach:function(e){e.forEach(this.add,this)},remove:function(e){return this.encodedRemove(this.encode(e))},encodedRemove:Object(d.c)(u.a),delete:function(){return this.remove.apply(this,arguments)},removeEach:function(e){e.forEach(this.remove,this)},constructNewInstance:function(){return this.constructor.create()},filter:function(e,t){for(var n=this.constructNewInstance(),i=this.createIterator().retain(),r=0;i.isValid;){r++;var a=i.value;!0===e.call(t,a,r,this)&&n.add(a),i.moveToNext()}return i.release(),n},__superMap:{_$K7$init:"init"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(81),r=n(280).a.extend({metadataType:i.a,staticMembers:{__QUALIFIED_CLASS_NAME__:"RequiredProperty"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819);function r(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];var a=!1;e&&(Array.isArray(e)||e._isCwCollection&&e.objectAt)||(a=!0),a&&Object(i.b)("CW.Utils.appendArrays expects an array and got: "+e);for(var o=1,s=arguments.length;o<s;o++){var c=arguments[o],l=e.length,u=c.length,d=0,h=l;if(c._isCwCollection&&c.objectAt)for(;d<u;d++,h++)e.splice(h,0,c.objectAt(d));else for(;d<u;d++,h++)e.splice(h,0,c[d])}return e}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(842);function r(e){return Object(i.b)(e,i.b)}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(818),r=n(81),a=n(861),o=n(78),s=n(860),c=n(87),l=n(98),u=i.a.extend(o.b,s.a,{target:Object(c.c)("owner"),delay:0,timesToFire:1,delays:null,fireCount:0,isRunning:!1,isPaused:!1,timeUntilFire:Object(r.d)({readOnly:!0,get:function(){return this.isRunning?this.isPaused?1/0:this._nextFiringTime-Date.now():NaN}}),start:function(){return this.isRunning?this:(this.isRunning=!0,this._nextFiringTime=Date.now(),this._scheduleNextFiringOrStop(),this)},restart:function(){return this.stop(),this.start(),this},stop:function(){return this.isRunning?(this._handle&&(clearTimeout(this._handle),this._handle=null),this.fireCount=0,this.isRunning=!1,this.isPaused&&(this.isPaused=!1,this._pauseCount=0,this._timeRemainingAtPause=NaN),this):this},pause:function(){return this.isRunning?(this._pauseCount++,1===this._pauseCount&&(this._timeRemainingAtPause=this.get("timeUntilFire"),this.isPaused=!0,this._nextFiringTime=NaN,clearTimeout(this._handle),this._handle=null),this):this},resume:function(){return this.isRunning?(this._pauseCount--,0===this._pauseCount&&(this._nextFiringTime=Date.now()+this._timeRemainingAtPause,this._handle=Object(a.a)(d,Math.max(0,this._timeRemainingAtPause),this),this._timeRemainingAtPause=NaN,this.isPaused=!1),this._pauseCount<0&&(this._pauseCount=0),this):this},fastForward:function(e){return this.isRunning?e<0?this.rewind(-e):0===e?this:(e||(e=this._getRunningTimeUntilNextFiring()),this.isPaused?this._timeRemainingAtPause-=e:(this._nextFiringTime-=e,clearTimeout(this._handle),this._handle=Object(a.a)(d,Math.max(0,this._nextFiringTime-Date.now()),this)),this):this},rewind:function(e){return this.isRunning?e<0?this.fastForward(-e):0===e?this:(e||(e=this.getDelayAfterFireCount(this.fireCount)-this._getRunningTimeUntilNextFiring()),this.isPaused?this._timeRemainingAtPause+=e:(this._nextFiringTime+=e,clearTimeout(this._handle),this._handle=Object(a.a)(d,Math.max(0,this._nextFiringTime-Date.now()),this)),this):this},getDelayAfterFireCount:function(e){var t=this.delays;return t?t[Math.min(t.length-1,e)]:e>=this.timesToFire?1/0:this.delay},fire:function(){this.callAction(this)},owner:Object(l.b)(),_handle:null,_nextFiringTime:NaN,_pauseCount:0,_timeRemainingAtPause:NaN,_getRunningTimeUntilNextFiring:function(){return this.isPaused?this._timeRemainingAtPause:this.get("timeUntilFire")},_scheduleNextFiringOrStop:function(){if(this.isRunning){var e=this.getDelayAfterFireCount(this.fireCount);if(e<1/0){var t=this._nextFiringTime+=e;this._handle=Object(a.a)(d,Math.max(0,t-Date.now()),this)}else this.stop()}},dispose:function(){var e=arguments;this.stop(),this.__s._$4Dr$dispose.apply(this,e)},__superMap:{_$4Dr$dispose:"dispose"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Timer"}}),d=function(e){e.fireCount++,e.callAction(),e._scheduleNextFiringOrStop()}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(833),r=n(819),a=n(78),o=n(98),s={mixinDependencies:[a.b],target:Object(o.b)(),action:Object(o.b)(),callAction:function(){var e=this.action,t=this.target||this;Object(i.a)(e)||Object(r.b)("An action must be a method name only (as a string)",this);var n=t[e];n&&n.call||Object(r.b)("CW.TargetAction: The specified target did not respond to the action `"+e+"`.",this),n.call(t,this)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(862);function r(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return setTimeout.apply(void 0,[Object(i.a)(e),t].concat(r))}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(229),r=n(849),a=[];function o(e){var t=Object(i.a)(e);return t||((t=function(){var t=arguments.length;a.length=t+0-0;for(var n=0,i=0;n<t;n++,i++)a[i]=arguments[n];var o=a;return Object(r.b)(e,o,this)})._exceptionHandling_wrappedFunction=!0,t._exceptionHandling_inputFunction=e,e._exceptionHandling_wrappedFunction=t,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u});var i=n(826),r=n(820),a="debug",o="warn",s={group:"GROUP: ",debug:"DEBUG: ",info:"INFO:  ",warn:"WARN:  ",error:"ERROR: "},c={debug:4,info:3,warn:2,error:1,group:1,none:0},l=function(){function e(t){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this.messagePrefix=null,this.outputMessagePrefix=null,this.recordedMessagePrefix=null,this.logOutputLevel=o,this.logRecordingLevel=a,this.recordedLogMessagesMaximumLength=500,this._recordedLogMessagesEnd=-1,this.reporter=console,this._recordedLogMessages=[],this._indentationLevel=0,t&&(this.reporter=t)}return e.prototype.debug=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this._handleMessage(a,arguments)},e.prototype.info=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this._handleMessage("info",arguments)},e.prototype.warn=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this._handleMessage(o,arguments)},e.prototype.error=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];this._handleMessage("error",arguments)},e.prototype.group=function(e){this._handleMessage("group",arguments),"none"!==this.logRecordingLevel&&this._indentationLevel++},e.prototype.groupEnd=function(){this._outputMessage("groupEnd","");var e=this.logRecordingLevel;this._indentationLevel>0&&"none"!==e&&this._indentationLevel--},e.prototype.outputRecordedLogMessages=function(){for(var e=this._orderedRecordedLogMessages(),t=0;t<e.length;t++)this._outputMessage("log",e[t])},e.prototype.stringifyRecordedLogMessages=function(){return this._orderedRecordedLogMessages().join("\n")},e.prototype._orderedRecordedLogMessages=function(){var e=[],t=this._recordedLogMessages||[],n=this.recordedLogMessagesMaximumLength-1,i=this._recordedLogMessagesEnd,r=i;if(t.length>0)do{e.push(t[r]),r=0===r?n:r-1}while(t[r]&&r!==i);return e.reverse()},e.prototype._handleMessage=function(e,t){var n=this._shouldOutputType(e),i=this._shouldRecordType(e);if(n||i){var a=(this.messagePrefix||"")+r.a.apply(this,t);n&&this._outputMessage(e,a,t),i&&this._recordMessage(e,a)}},e.prototype._shouldOutputType=function(e){return c[e]<=c[this.logOutputLevel]},e.prototype._shouldRecordType=function(e){return c[e]<=c[this.logRecordingLevel]},e.prototype._outputMessage=function(e,t,n){var r=this.reporter,a=r?r[e]:null,o=this.outputMessagePrefix||"";if(a){var s=[];n&&n.length>1&&(s=Object(i.a)(n,0,1));try{var c;(c=Function.prototype.call).call.apply(c,[a,r,o+t].concat(s))}catch(e){Function.prototype.call.call(a,r,o+t,"Cycle argument")}}},e.prototype._recordMessage=function(e,t){var n=this._recordedLogMessages,i=this._createRecordedMessageString(e,t),r=this.recordedLogMessagesMaximumLength-1,a=this._recordedLogMessagesEnd,o=a===r?0:a+1;n[o]=i,this._recordedLogMessagesEnd=o},e.prototype._createRecordedMessageString=function(e,t){var n=function(e){(!e||e<0)&&(e=0);var t="",n=void 0;for(n=0;n<e;++n)t+="    ";return t}(this._indentationLevel),i=(new Date).toUTCString()+":  ",r=s[e];return n+i+(this.recordedMessagePrefix||"")+r+t},e}();l.LOG_LEVEL_NONE="none",l.LOG_LEVEL_GROUP="group",l.LOG_LEVEL_DEBUG=a,l.LOG_LEVEL_INFO="info",l.LOG_LEVEL_WARN=o,l.LOG_LEVEL_ERROR="error";var u=new l},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(833),r=n(819),a=n(863),o=n(818),s=n(865),c=n(847),l=o.a.extend(c.a,s.a,{contentType:"application/json",encode:function(e){if(!Object(i.a)(e))try{e=JSON.stringify(e)}catch(t){Object(r.b)("Could not encode object to JSON.",{object:e,error:t})}return e},decode:function(e){if(Object(i.a)(e))try{e=JSON.parse(e)}catch(t){a.b.warn("Could not decode string as JSON",e),e=null}return e},staticMembers:{__QUALIFIED_CLASS_NAME__:"JSONSerializer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],encode:r.a.create(),decode:r.a.create()}},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n(818),r=n(86),a=n(78),o=n(98),s=n(833),c=n(832),l=n(867),u=n(819),d=i.a.extend(a.b,{staticMembers:{shouldUseFormEncoding:!1,components:Object(r.c)(["protocol","auth","hostname","port","pathname","query","hash"]),componentFormatters:{protocol:function(e){return e+(v[e]?"":"//")},auth:function(e){return e+"@"},port:function(e){return":"+e}},componentCleaners:{protocol:function(e){return e.replace("//","")},auth:function(e){return e.replace("@","")}},parse:function(e){var t,n,i,r,a,o=e.match(h),s={},c=this.components;for(i=0,r=c.length;i<r;i++)(t=o[i+1])&&(n=c[i],a=this.componentCleaners[n],s[n]=a?a(t):t);return s},parseQuery:function(e,t){var n={};if(!Object(s.a)(e))return n;if(""===(e=e.replace(p,"")))return n;t=void 0===t?this.shouldUseFormEncoding:t;for(var i=e.split("&"),r=0,a=i.length;r<a;r++){var o,c=i[r].split("="),l=c[0],u=c[1];b.test(l)&&(l=l.replace(b,""),o=!0),u=this.parseValue(y(u,t));var d=n[l];d?(Array.isArray(d)?d.push(u):d=[d,u],u=d):o&&(u=[u]),n[l]=u}return n},parseValue:function(e){if(e&&f.test(e)){for(var t=(e=e.split(",")).length-1;t>=0;t--)e[t]=C(e[t]);return e}return C(e)},formatQuery:function(e,t){if(!Object(c.a)(e))return e;t=void 0===t?this.shouldUseFormEncoding:t;var n,i,r,a,o=Object.keys(e),s="";for(r=0,a=o.length;r<a;r++)i=e[n=o[r]],r>0&&(s+="&"),s+=_(n,t),null!==i&&void 0!==i&&(s+="="+(i=_(this.formatValue(i),t)));return r>0?"?"+s:""},formatValue:function(e){if(Array.isArray(e)){for(var t=e.length-1;t>=0;t--)e[t]=I(e[t]);return e.join(",")}return I(e)},init:function(){var e=arguments;this.__s._$31u$init.apply(this,e),this.prototype.registerMetadata("href",Object(o.b)({dependencies:this.components}))},__superMap:{_$31u$init:"init"},__QUALIFIED_CLASS_NAME__:"URL"},protocol:Object(o.b)(null),auth:Object(o.b)(null),hostname:Object(o.b)(null),port:Object(o.b)({defaultValue:null,set:function(e){return parseInt(e,10)}}),pathname:Object(o.b)(null),query:Object(o.b)(null),hash:Object(o.b)(null),href:Object(o.b)({readOnly:!0,get:function(){var e,t,n,i,r,a="",o=this.constructor.components,s=arguments[3],c=arguments[1],l=arguments[2];for(t=0,n=o.length;t<n;t++)i=o[t],(e=s.internalGet(this,c[t+l]))&&(a+=(r=this.constructor.componentFormatters[i])?r(e):e);return a}}),host:Object(o.b)({readOnly:!0,dependencies:["port","hostname"],get:Object.assign(function(){var e=this.port,t=this.hostname;return e&&(t=(t||"")+":"+e),t},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]),a=i.internalGet(this,t[1+n]);return r&&(a=(a||"")+":"+r),a}})}),origin:Object(o.b)({readOnly:!0,dependencies:["host","protocol"],get:Object.assign(function(){var e=this.host,t=this.protocol;return t&&(e=this.constructor.componentFormatters.protocol(t)+(e||"")),e},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]),a=i.internalGet(this,t[1+n]);return a&&(r=this.constructor.componentFormatters.protocol(a)+(r||"")),r}})}),path:Object(o.b)({readOnly:!0,dependencies:["query","pathname"],get:Object.assign(function(){var e=this.query,t=this.pathname;return e&&(t=(t||"")+e),t},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]),a=i.internalGet(this,t[1+n]);return r&&(a=(a||"")+r),a}})}),queryObject:Object(o.b)({dependencies:["query"],get:Object.assign(function(){return this.constructor.parseQuery(this.query)},{__CW__getter:function(e,t,n,i){return this.constructor.parseQuery(i.internalGet(this,t[0+n]))}}),set:Object.assign(function(e){this.query=this.constructor.formatQuery(e)},{__CW__setter:function(e,t,n,i,r){n[0+i]=this.constructor.formatQuery(e)}}),writeDependencySetPathMap:["false"]}),isInDomain:function(e){var t=this.hostname;if(!t||""===e)return!1;var n=new RegExp("(^|\\.)"+Object(l.c)(e)+"$","i");return!!t.match(n)},setQueryParameter:function(e,t){return this.query?(this.removeQueryParameter(e),this.appendQueryParameter(e,t)):this.appendQueryParameter(e,t)},appendQueryParameter:function(e,t){var n=this.query||"?";return"?"!==n&&(n+="&"),n+=_(e)+(null!==t&&void 0!==t?"="+_(this.constructor.formatValue(t),this.constructor.shouldUseFormEncoding):""),this.query=n,this},removeQueryParameter:function(e){var t=this.query;if(!t)return this;var n=this._regexpForQueryParameterKey(e),i=t.replace(n,""),r=i[0];return i?"?"!==r&&("&"===r&&(i=i.substr(1)),i="?"+i):i=null,this.query=i,this},getQueryParameter:function(e){var t=this.query;if(t){var n=this._regexpForQueryParameterKey(e).exec(t);if(n){var i=n[3];return void 0===i?null:y(i)}}},_regexpForQueryParameterKey:function(e){var t=Object(l.c)(e)+"|"+Object(l.c)(_(e));return new RegExp("(^|\\?|&)("+t+")(?:=([^&]*))?(?=&|$)","g")},setMultipleQueryParameters:function(e){for(var t in e)e.hasOwnProperty(t)&&this.setQueryParameter(t,e[t]);return this},init:function(e){if(Object(s.a)(e))e=this.constructor.parse(e);else if(e&&e.constructor===Location){for(var t,n,i={},r=this.constructor.components,a=0,o=r.length;a<o;a++)"query"===(n=t=r[a])&&(t="search"),i[n]=e[t];e=i}else e&&!Object(c.a)(e)&&Object(u.b)("A URL object cannot be created with the data provided",e);this.__s._$6ID$init.call(this,e)},toString:function(){return this.href},toJSON:function(){return""+this},__superMap:{_$6ID$init:"init"}}),h=/^(.*?:\/\/)?([^:/?]*:?[^:/?]*@+)?([^:/?]*):?(\d*)?([^?#]*)?(\??[^#]*)(#?.*)?$/,p=/^\?/,f=/,/,m=/%20/g,g=/\+/g,b=/\[\]$/,v={"mailto:":!0},_=function(e,t){var n=encodeURIComponent(""+e);return t?n.replace(m,"+"):n},y=function(e,t){if(!e)return e;var n=decodeURIComponent(""+e);return t?n.replace(g," "):n};function C(e){try{return JSON.parse(e)}catch(t){return e}}function I(e){return""+e}},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"a",function(){return u}),n.d(t,"c",function(){return d});var i=/[&<>]/g,r=/[&<>'"]|((((j|v[^\w ]*b|l[^\w ]*i[^\w ]*v[^\w ]*e).*)?)+(?:[^\w ]*\w)+[^\w ]*s[^\w ]*c[^\w ]*r[^\w ]*i[^\w ]*p[^\w ]*t[^\w ]*:)/gi,a={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},o=/[-/\\^$*+?.()|[\]{}]/g;function s(e){return a[e]||""}function c(e,t,n){if(!e)return"";if("string"!=typeof e)try{e=e.toString()}catch(e){return""}return e.replace(t,n)}function l(e){return c(e,i,s)}function u(e){return c(e,r,s)}function d(e){return c(e,o,"\\$&")}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(864).a.extend({encode:function(e){var t=arguments;return e instanceof Blob||ArrayBuffer.isView(e)||e instanceof ArrayBuffer?e:this.__s._$B2$encode.apply(this,t)},decode:function(e){var t=arguments;return e instanceof Blob||ArrayBuffer.isView(e)||e instanceof ArrayBuffer?e:this.__s._$Gc$decode.apply(this,t)},__superMap:{_$B2$encode:"encode",_$Gc$decode:"decode"},staticMembers:{__QUALIFIED_CLASS_NAME__:"XHRBodySerializer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(862);function r(e,t,n,r){return e.addEventListener(t,Object(i.a)(n),r||!1)}},function(e,t,n){"use strict";function i(e){return e&&"function"==typeof e.then}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return m});var i=n(818),r=n(86),a=n(81),o=n(872),s=n(105),c=n(78),l=n(98),u=n(87),d=n(178),h=n(819),p=n(383),f=n(877),m=i.a.extend(c.b,o.a,s.a,{_childViewControllers:Object(r.c)(Array),parent:Object(l.b)(null),_isViewLoaded:!1,isViewLoaded:Object(a.d)({readOnly:!0,get:function(){return this._isViewLoaded}}),_isAttached:void 0,isAttached:Object(l.b)({dependencies:["parent.isAttached"],defaultValue:!1,readOnly:!0,get:Object.assign(function(){var e=this._isAttached;return Object(d.a)(e)?e:Boolean(this.getPath("parent.isAttached"))},{__CW__getter:function(e,t,n,i){var r=this._isAttached;return Object(d.a)(r)?r:Boolean(i.internalGetPath(this,t[0+n]))}})}),_setIsAttached:function(e){this._isAttached=e,this.propertyChanged("isAttached")},isRootViewController:!1,_view:null,view:Object(l.b)({readOnly:!0,strong:!0,get:function(){return this.loadView(),this._view}}),presentingViewController:null,viewClass:f.a,dispose:function(){var e=arguments,t=this._childViewControllers,n=0,i=t.length;for(n=0;n<i;n++)t[n].parent=null,t[n].release(this,"holding as a childViewController");this.unloadView(!0),this.__s._$1Nd$dispose.apply(this,e)},loadView:function(){if(!this._isViewLoaded){this.viewWillLoad();var e=this.createView();e.beginBatchSet().set("viewController",this).set("nextResponder",this).set("focusParent",this).end(),this._view=e,this._isViewLoaded=!0,this._loadChildViews(e),this.viewDidLoad(e)}},viewWillLoad:function(){},viewDidLoad:function(e){},viewWillUnload:function(e){},viewDidUnload:function(){},createView:function(){return this.viewClass.create({isRootView:this.isRootViewController})},unloadView:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(this._isViewLoaded){var t=this._view;this.viewWillUnload(t),t.beginBatchSet().set("viewController",null).set("nextResponder",null).set("focusParent",null).end(),this._view=null,this._isViewLoaded=!1,e||this.propertyChanged("view"),this.viewDidUnload()}},willMoveToParentViewController:function(e){e&&e.isAttached&&!this.isAttached?this.willAttach():!e&&this.isAttached&&this.willDetach()},didMoveToParentViewController:function(e){e&&e.isAttached?this.didAttach():e||this.didDetach()},willAttach:function(){var e,t=this._childViewControllers,n=t.length;for(e=0;e<n;e++)t[e].willAttach()},didAttach:function(){var e,t=this._childViewControllers,n=t.length;for(e=0;e<n;e++)t[e].didAttach()},willDetach:function(){var e,t=this._childViewControllers,n=t.length;for(e=0;e<n;e++)t[e].willDetach()},didDetach:function(){var e,t=this._childViewControllers,n=t.length;for(e=0;e<n;e++)t[e].didDetach()},addChildViewController:function(e,t){var n=this._childViewControllers;e.parent&&Object(h.b)("Cannot add view controller because it is already a child of a view controller",{parent:this,child:e}),n.push(e),t?(t.set(e,"parent",this),t.set(e,"focusParent",this)):(e.parent=this,e.focusParent=this),e.retain(this,"holding as a childViewController")},removeChildViewController:function(e,t){var n=this._childViewControllers;n.indexOf(e)<0&&Object(h.b)("Cannot remove view controller because it is not a child of this view controller",{parent:this,child:e}),t?(t.set(e,"parent",null),t.set(e,"focusParent",null)):(e.parent=null,e.focusParent=null),e.release(this,"holding as a childViewController"),Object(p.a)(e,n)},_loadChildViews:function(e){for(var t=this._childViewControllers,n=0;n<t.length;n++){var i=t[n],r=i._destinationViewOutlet;r&&e.setPath(r,i.view)}},defaultFocusChild:Object(u.c)("view"),focusAsLeaf:function(){var e=arguments,t=this.__s._$4QT$focusAsLeaf.apply(this,e);return t&&this.view.focus(),t},nextResponder:Object(a.d)({get:function(e){if(e)return e;var t=this.view;return t?t.parent:null}}),performAction:function(e){var t=this.targetViewControllerForAction(e,this);if(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return t[e].apply(t,i)}Object(h.b)("CW.ViewController"+e+" No view controller in hierarchy implements "+e+".",{viewController:this})},canPerformAction:function(e,t){var n=arguments,i=this[e];switch(e){case"showViewController":case"showDetailViewController":case"presentViewController":case"dismissViewController":return"function"==typeof i&&i!==m.prototype[e];default:return this.__s._$59d$canPerformAction.apply(this,n)}},targetViewControllerForAction:function(e,t){var n=null;if(this.canPerformAction(e,t))n=this;else{var i=this.nextResponder;i&&(n=i.targetViewControllerForAction(e,t))}return n},showViewController:function(e){this.performAction("showViewController",e)},showDetailViewController:function(e){this.performAction("showDetailViewController",e)},presentViewController:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.presentingViewController=this,this.performAction("presentViewController",e,t)},dismissViewController:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.performAction("dismissViewController",e,t)},dismiss:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],t=this.presentingViewController;if(t)return t.dismissViewController(this,e);Object(h.b)("CW.ViewController#dismiss The view controller has no presentingViewController.",{viewController:this})},__superMap:{_$1Nd$dispose:"dispose",_$4QT$focusAsLeaf:"focusAsLeaf",_$59d$canPerformAction:"canPerformAction"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ViewController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(85),r=n(86),a=n(78),o=n(828),s=n(819),c=n(283),l=n(231),u=n(378),d=n(201),h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},p={mixinDependencies:[a.b,i.b,u.a],init:function(){var e=this,t=arguments;this.__s._$11h$init.apply(this,t);var n=this.gestureRecognizers;n&&(n instanceof Set||(this.gestureRecognizers=new Set(n)),this.gestureRecognizers.forEach(function(t){t.retain(e,"ResponderSupport#gestureRecognizers"),t.view=e}))},handleEvent:function(e){if(this.isDisposed)return!1;for(var t=!1,n=this[e],i=arguments.length,r=Array(i>1?i-1:0),a=1;a<i;a++)r[a-1]=arguments[a];if(n&&(t=n.call.apply(n,[this].concat(r))),!t){var o=this._specialEventHandlers;if(o){var s=o[e];s&&(t=s.call.apply(s,[this].concat(r)))}}return t},handleGestureRecognition:function(e){var t=this.gestureRecognizers;if(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return d.a.addGestureRecognizersWithEvent.apply(d.a,[e].concat(i,[t]))}return!1},gestureRecognizers:null,addGestureRecognizer:function(e){e.retain(this,"ResponderSupport#gestureRecognizers");var t=this.gestureRecognizers;if(t||(this.gestureRecognizers=t=new Set),t.has(e))throw new Error("ResponderSupport: attempted to register the same gesture recognizer twice.");e.view=this,t.add(e)},removeGestureRecognizer:function(e){var t=this.gestureRecognizers;if(!t||!t.has(e))throw new Error("ResponderSupport: attempted to deregister a gesture recognizer that was never registered.");d.a.cancelGestureRecognizer(e),t.delete(e),e.release(this,"ResponderSupport#gestureRecognizers")},_registeredShortcuts:Object(r.c)(Object),registerShortcutKeyCombo:function(e,t,n){var i=(Object(o.a)(e,l.a)?e:l.a.create(e)).toString(),r=this._registeredShortcuts;r[i]&&Object(s.b)("Shortcut already registered for `"+e+"` on "+this),t||Object(s.b)("Cannot register shortcut for `"+e+"`, because no action was provided");var a=void 0===t?"undefined":h(t);"function"!==a&&("string"===a?"function"!=typeof(t=this[t])&&Object(s.b)("Cannot register shortcut for `"+e+"`, because the action is not a function"):Object(s.b)("Cannot register shortcut for `"+e+"`, because the action is not a function")),r[i]={action:t,context:n},(this._specialEventHandlers||(this._specialEventHandlers={})).keyDown=this.triggerShortcutIfExists},triggerShortcutIfExists:function(e){var t=c.a.sharedInstance,n=this._registeredShortcuts,i=t.activeKeys.toString(),r=t.activeKeySequence,a=r.toString(),o=n[i]||n[a];return!!o&&(n[a]&&r.clear(),o.action.call(this,o.context),!0)},pointerOver:null,pointerDown:null,pointerMove:null,pointerUp:null,pointerOut:null,pointerEnter:null,pointerLeave:null,wheel:null,__superMap:{_$11h$init:"init"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(103),a={mixinDependencies:[i.a],gestureRecognizerShouldBegin:function(e){return!0},gestureRecognizerShouldReceive:function(e,t){return t.pointerType!==r.b.MOUSE||0===t.button},gestureRecognizerShouldRecognizeSimultaneouslyWith:function(e,t){return!1},gestureRecognizerShouldRequireFailureOf:function(e,t){return!1},gestureRecognizerShouldBeRequiredToFailBy:function(e,t){return!1}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(818),r=n(828),a=i.a.extend({staticMembers:{nativePropertiesToCopy:["ctrlKey","shiftKey","altKey","metaKey","relatedTarget"],eventPropertiesToCopy:["bubbles","cwType","ctrlKey","shiftKey","altKey","metaKey","relatedTarget","nativeEvent"],__QUALIFIED_CLASS_NAME__:"CoreEvent"},init:function(e){var t=arguments;if(e){if(Object(r.a)(e,this.constructor))return o(this,e,this.constructor.eventPropertiesToCopy),void this.__s._$SG$init.call(this);var n=e.nativeEvent;n&&o(this,n,this.constructor.nativePropertiesToCopy)}this.__s._$SG$init.apply(this,t),this.cwType||(this.cwType=this.type)},bubbles:!0,cwType:null,ctrlKey:!1,shiftKey:!1,altKey:!1,metaKey:!1,relatedTarget:null,nativeEvent:null,preventDefault:function(){this.nativeEvent.preventDefault()},stopPropagation:function(){this.nativeEvent.stopPropagation()},__superMap:{_$SG$init:"init"}});function o(e,t,n){for(var i=0,r=n.length;i<r;i++){var a=n[i],o=t[a];void 0!==o&&(e[a]=o)}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(819),r=[],a=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];0===arguments.length&&Object(i.b)("[CW.Utils#merge] Must provides objects to merge");var a=arguments.length;r.length=a+1-0;for(var o=0,s=1;o<a;o++,s++)r[s]=arguments[o];var c=r;return c[0]={},Object.assign.apply(this,c)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={BACKSPACE:8,TAB:9,RETURN:13,ENTER:13,SHIFT:16,CTRL:17,OPTION:18,ESC:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,HOME:36,END:35,SPACE:32,PAGEUP:33,PAGEDOWN:34,INSERT:45,CMD:91,COMMA:188,EQUALS:187,MINUS:189,A:65,B:66,C:67,D:68,E:69,F:70,G:71,H:72,I:73,J:74,K:75,L:76,M:77,N:78,O:79,P:80,Q:81,R:82,S:83,T:84,U:85,V:86,W:87,X:88,Y:89,Z:90,DIGIT_0:48,DIGIT_1:49,DIGIT_2:50,DIGIT_3:51,DIGIT_4:52,DIGIT_5:53,DIGIT_6:54,DIGIT_7:55,DIGIT_8:56,DIGIT_9:57}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return y});var i=n(818),r=n(81),a=n(178),o=n(839),s=n(105),c=n(872),l=n(98),u=n(507),d=n(508),h=n(509),p=n(232),f=n(155),m=n(510),g=n(516),b=n(360),v=n(517),_=n(518),y=i.a.extend(s.b,c.a,f.a,u.a,d.a,h.a,m.a,g.a,b.b,v.a,_.a,p.a,{init:function(e){var t=arguments;(e&&e.isRootView||this.isRootView)&&(this._isAttached=!1),this.__s._$yn$init.apply(this,t)},staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",attributes:{role:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaRole",attributes:{},attribute:"role"},"aria-label":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaLabel",attributes:{},attribute:"aria-label"},"aria-labelledby":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaLabelledBy",attributes:{},attribute:"aria-labelledby"},"aria-describedby":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaDescribedBy",attributes:{},attribute:"aria-describedby"},"aria-disabled":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaDisabled",attributes:{},attribute:"aria-disabled"},"aria-hidden":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaHidden",attributes:{},attribute:"aria-hidden"},"aria-controls":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaControls",attributes:{},attribute:"aria-controls"}}}},__QUALIFIED_CLASS_NAME__:"View"},nextResponder:Object(r.d)({get:function(e){return e||this.parent}}),isRootView:!1,isAttached:Object(l.b)({dependencies:["parent.isAttached"],get:Object.assign(function(e){return Object(a.a)(e)?e:Boolean(this.getPath("parent.isAttached"))},{__CW__getter:function(e,t,n,i){return Object(a.a)(e)?e:Boolean(i.internalGetPath(this,t[0+n]))}}),set:o.a}),parent:Object(l.b)(),parentKey:Object(l.b)(),ariaRole:Object(l.b)(),ariaLabel:Object(l.b)(),ariaLabelledBy:Object(l.b)(),ariaDescribedBy:Object(l.b)(),ariaDisabled:Object(l.b)(),ariaHidden:Object(l.b)(),ariaControls:Object(l.b)(),__superMap:{_$yn$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(818),r=n(847),a=n(81),o=n(86),s=n(839),c=n(869),l=n(862),u=n(78),d=n(98),h=n(879),p=n(88),f=[{name:"dppx",multiple:1},{name:"dpi",multiple:window.screen.logicalXDPI||96}],m="",g=NaN,b=!1;!function(){if(window.matchMedia)for(var e,t,n=0;e=f[n];n++){var i="(min-resolution: 1"+(t=e.name)+")",r=window.matchMedia(i),a=r?r.media:null;if(a&&-1!==a.indexOf("min-resolution"))return b=!0,m=t,void(g=e.multiple)}}();var v=i.a.extend(u.b,r.a,{isMac:void 0,isWindows:void 0,isiOS:void 0,osMajorVersion:void 0,osMinorVersion:void 0,isiPhone:void 0,isiPad:void 0,isDesktopClassTablet:void 0,isiPhoneLikeDevice:void 0,isiPadLikeDevice:void 0,devicePixelRatio:Object(d.b)({get:function(){return this._devicePixelRatio||(this._devicePixelRatio=this._getDevicePixelRatio())},readOnly:!0,didChange:function(e){this.roundToDevicePixelRatio=this._roundToDevicePixel(e),this.floorToDevicePixelRatio=this._floorToDevicePixel(e),this.ceilToDevicePixelRatio=this._ceilToDevicePixel(e)}}),roundToDevicePixelRatio:s.a,_roundToDevicePixel:function(e){return function(t){return Math.round(t*e)/e}},floorToDevicePixelRatio:s.a,_floorToDevicePixel:function(e){return function(t){return Math.floor(t*e)/e}},ceilToDevicePixelRatio:s.a,_ceilToDevicePixel:function(e){return function(t){return Math.ceil(t*e)/e}},_getDevicePixelRatio:function(){var e=this.stubWindow;return e.devicePixelRatio||e.screen.deviceXDPI/e.screen.logicalXDPI||1},_devicePixelRatio:NaN,isRetina:void 0,hardwareConcurrency:Object(a.d)({readOnly:!0,defaultValue:function(){return navigator.hardwareConcurrency||void 0}}),canvasSupportsImageSmoothingQuality:Object(a.d)({readOnly:!0,defaultValue:function(){if(this._canvasSupportsImageSmoothingQuality)return this._canvasSupportsImageSmoothingQuality;void 0!=document.createElement("canvas").getContext("2d").imageSmoothingQuality?this._canvasSupportsImageSmoothingQuality=!0:this._canvasSupportsImageSmoothingQuality=!1}}),pointer:Object(d.b)("none"),init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.window,n=void 0===t?window:t,i=e.navigator,r=void 0===i?navigator:i,a=(void 0===e.document&&document,e.userAgent),o=void 0===a?r.userAgent:a,s=e.eventCapabilities,l=void 0===s?p.c:s,u=function(e,t){var n={};for(var i in e)t.indexOf(i)>=0||Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=e[i]);return n}(e,["window","navigator","document","userAgent","eventCapabilities"]);this.stubWindow=n,this.__s._$39K$init.call(this,u);var d=o.toLowerCase(),h=!!/mac/.test(d)&&!/like mac/.test(d),f=h&&l.isTouchSupported,m=h&&!f,g=!!/windows/.test(d),b=d.match(/\b(iPad|iPhone|iPod)\b.*\bOS (\d+)_(\d+)/i);this.isMac=m,this.isWindows=g;var v=void 0,_=void 0,y=void 0;if(f)v=!1,_=y=!0;else if(b){var C=b[1];_="ipad"===C,y=(v="iphone"===C||"ipod"===C)||_}else v=_=y=!1;this.isiPhone=v,this.isiPhoneLikeDevice=v,this.isiPad=_,this.isDesktopClassTablet=f,this.isiPadLikeDevice=_,this.isiOS=y;var I=void 0,w=void 0;if(f)I="13",w="0";else if(m){var S=d.match(/mac os x (\d+)[ _.](\d+)/);S&&(I=S[1],w=S[2])}else if(g){var A=d.match(/windows[ a-z]+?(\d+)[ _.](\d+)/);A&&(I=A[1],w=A[2])}else y&&(I=b[2],w=b[3]);I&&(this.osMajorVersion=parseInt(I,10)),w&&(this.osMinorVersion=parseInt(w,10)),this.isRetina=n.devicePixelRatio>1,this._updateDevicePixelRatio(),Object(c.a)(n,"resize",this._updateDevicePixelRatio.bind(this),!1),this._listenForPointerChange()},_updateDevicePixelRatio:function(){if(h.a.getPath("sharedInstance.isFirefox")){var e=this._forceWindowResizeNotificationCanvas;e||((e=this._forceWindowResizeNotificationCanvas=document.createElement("canvas")).width=1,e.height=1,this._forceWindowResizeNotificationCanvasContext=e.getContext("2d"),e.classList.add("ff-force-window-resize-notification"),e.style.position="absolute",e.style.left="-1000px",e.style.top="-1000px",document.body.appendChild(e));try{this._forceWindowResizeNotificationCanvasContext.measureText("Blah")}catch(e){}}var t=this._getDevicePixelRatio();t!==this._devicePixelRatio&&(this._devicePixelRatio=t,this._detectChangeAwayFromDPR(t),this.propertyChanged("devicePixelRatio"))},_detectChangeAwayFromDPR:function(e){var t=this.stubWindow;if(t.matchMedia){var n,i=.001*Math.round(e/.001),r=i+.001,a=i-.001,o=Object(l.a)(this._updateDevicePixelRatio.bind(this)),s=this._dprQueryListCache||(this._dprQueryListCache={}),c=this._activeMediaQueryListPair,u=s[i];u||(u=s[i]={},n="(-webkit-min-device-pixel-ratio: "+a+"), (min--moz-device-pixel-ratio: "+a+")"+(b?", (min-resolution: "+a*g+m+")":""),u.lowerBound=t.matchMedia(n),n="(-webkit-max-device-pixel-ratio: "+r+"), (max--moz-device-pixel-ratio: "+r+")"+(b?", (max-resolution: "+r*g+m+")":""),u.upperBound=t.matchMedia(n)),u!==c&&(c&&(c.lowerBound.removeListener(o),c.upperBound.removeListener(o)),u.lowerBound.addListener(o),u.upperBound.addListener(o),this._activeMediaQueryListPair=u)}},_listenForPointerChange:function(){this.stubWindow.matchMedia&&(this._listenForPointerQuality("none"),this._listenForPointerQuality("coarse"),this._listenForPointerQuality("fine"))},_listenForPointerQuality:function(e){var t=this,n=this.stubWindow.matchMedia("(pointer: "+e+")"),i=function(n){n.matches&&(t.pointer=e)};n.addListener(i),this._pointerQueries.push([n,i]),i(n)},_pointerQueries:Object(o.c)(Array),_dprQueryListCache:null,_resMultiple:g,cleanup:function(){this.__s._$5sk$cleanup.call(this),this._pointerQueries.forEach(function(e){var t=e[0],n=e[1];return t.removeListener(n)})},__superMap:{_$39K$init:"init",_$5sk$cleanup:"cleanup"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Device"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(818),r=n(847),a=n(86),o=n(78),s=n(98),c=n(869),l=n(381),u=i.a.extend(r.a,o.b,{init:function(e){var t=e&&e.userAgent;t?delete e.userAgent:t=window.navigator.userAgent,t=t.toLowerCase();var n,i,r,a,o,s=/\sedge\//.test(t),l=!s&&/fxios/.test(t),u=!s&&!l&&/chrome|crios/.test(t),d=!s&&!l&&!u&&/safari/.test(t),h=l||!s&&!u&&!d&&/firefox/.test(t),p=!s&&!u&&!d&&!h&&/trident|msie/.test(t),f=s,m=!f&&/applewebkit/.test(t)&&!/edge/.test(t),g=!f&&!m&&/trident/.test(t),b=!f&&!m&&!g&&/gecko/.test(t);s?(n=t.match(/(?:edge).(\d+)\.(\d+)/),a=t.match(/(?:edge).(\d+)/)):(n=t.match(/(?:chrome|crios|version|firefox|fxios|msie|rv).(\d+)\.(\d+)/),a=t.match(/(?:applewebkit|gecko|trident).(\d+)/));var v=s||p;n&&(i=parseInt(n[1],10),r=parseInt(n[2],10)),a&&(o=parseInt(a[1])),this.__s._$tC$init.call(this,{isChrome:u,isSafari:d,isSafari12OrLower:d&&i<13,isFirefox:h,isEdge:s,isIE:p,isEdgeOrIE:v,isIE9OrLower:p&&i<10,isIE8OrLower:p&&i<9,majorVersion:i,minorVersion:r,isEdgeHTML:f,isWebKit:m,isGecko:b,isTrident:g,engineMajorVersion:o}),Object(c.a)(window,"online",this.updateNetworkConnectionStatus.bind(this)),Object(c.a)(window,"offline",this.updateNetworkConnectionStatus.bind(this)),this.updateNetworkConnectionStatus()},updateNetworkConnectionStatus:function(){this.isOffline=!window.navigator.onLine},isOffline:Object(s.b)(),isChrome:void 0,isFirefox:void 0,isEdge:void 0,isIE:void 0,isEdgeOrIE:void 0,isIE9OrLower:void 0,isIE8OrLower:void 0,isSafari:void 0,majorVersion:void 0,minorVersion:void 0,isEdgeHTML:void 0,isWebKit:void 0,isGecko:void 0,isTrident:void 0,engineMajorVersion:void 0,window:Object(s.b)({strong:!0,defaultValue:Object(a.c)(l.a)}),__superMap:{_$tC$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Browser"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(280),r=n(98),a=i.a.extend({metadataType:r.a,staticMembers:{__QUALIFIED_CLASS_NAME__:"RequiredObservableProperty"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(819),r=n(863);function a(e){e||Object(i.b)("An element is required to be able to measure it");var t=e.getBoundingClientRect();return void 0===t.x&&(t.x=t.left),void 0===t.y&&(t.y=t.top),0!==t.height||0!==t.width||document.body.contains(e)?t:(r.b.error("Tried to measure an element that is not in the document",e),null)}},function(e,t,n){"use strict";n.d(t,"a",function(){return m});var i=n(819),r=n(199),a=n(818),o=n(382),s=n(505),c=n(506),l=n(81),u=n(85),d=n(86),h=l.a.extend({get:function(){return this._map.size},staticMembers:{__QUALIFIED_CLASS_NAME__:"SizeProperty"}});function p(e){return this._map.has(e)}function f(e){return this._map.delete(e)}var m=a.a.extend(r.a,{_map:Object(d.c)(Map),get:function(e){return this.decode(this.encodedGet(e))},encodedGet:function(e){return this._map.get(e)},set:function(e,t){return this.encodedSet(e,this.encode(t))},encodedSet:function(e,t){return this._map.set(e,t),this},encodedContains:function(e){for(var t=this.values().retain();t.isValid;){if(e===t.encodedValue)return t.release(),!0;t.moveToNext()}return t.release(),!1},forEach:function(e,t){for(var n=this.createIterator().retain();n.isValid;){var i=n.value;e.call(t,i[1],i[0],this),n.moveToNext()}n.release()},reduce:function(e,t,n){var r,a=this.createIterator().retain();for(arguments.length>=2?r=t:a.isValid?(r=a.value[1],a.moveToNext()):Object(i.b)("reduce of empty array with no initial value");a.isValid;){var o=a.value;r=e.call(n,r,o[1],o[0],this),a.moveToNext()}return a.release(),r},find:function(e,t){for(var n=this.createIterator().retain();n.isValid;){var i=n.value;if(e.call(t,i[1],i[0],this))return n.release(),i;n.moveToNext()}n.release()},every:function(e,t){for(var n=this.createIterator().retain();n.isValid;){var i=n.value;if(!e.call(t,i[1],i[0],this))return n.release(),!1;n.moveToNext()}return n.release(),!0},some:function(e,t){for(var n=this.createIterator().retain();n.isValid;){var i=n.value;if(e.call(t,i[1],i[0],this))return n.release(),!0;n.moveToNext()}return n.release(),!1},containsKey:p,has:p,removeKey:f,delete:f,clear:function(){this._map.clear()},length:Object(u.c)(h),size:Object(u.c)(h),iteratorClass:Object(l.d)({readOnly:!0,defaultValue:o.a}),keys:function(){return s.a.create(this)},values:function(){return c.a.create(this)},entries:function(){return o.a.create(this)},staticMembers:{__QUALIFIED_CLASS_NAME__:"CoreMap"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(81),r=n(98),a={startHandle:Object(i.d)({readOnly:!0,get:function(){return this.handleProvider.startHandle}}),HandleProviderClass:null,handleProviderDelegate:Object(r.b)(),delegate:Object(r.b)(),handleProvider:Object(r.b)({strong:!0,readOnly:!0,get:function(){return this.HandleProviderClass.create({source:this,delegate:this.bindingFor("handleProviderDelegate")})}}),handleFor:function(e){return this.encodedHandleFor(this.encode(e))},encodedHandleFor:function(e){for(var t=this.startHandle.retain(this,"HandleSupport#encodedHandleFor");t.encodedValue!==e&&t.isValid;){var n=t.next.retain(this,"HandleSupport#encodedHandleFor");t.release(this,"HandleSupport#encodedHandleFor"),t=n}return t.autorelease(this,"HandleSupport#encodedHandleFor")}}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(86),r=n(514),a=n(78),o=n(886),s=n(286),c=r.a.extend(a.b,{HandleClass:o.a,_handles:Object(i.c)(Array),_allHandles:Object(i.c)(Set),cachedHandleAt:function(e){var t=this._handles[e];if(t)return t},at:function(e){var t=this.cachedHandleAt(e);return t||(t=this._createHandle(e),this._registerHandle(t),t.retain(this,"initial retain").autorelease(this,"initial retain"))},_createHandle:function(e){return this.HandleClass.create(this.source,this,e)},handlesDidUpdate:Object(a.g)("source.contentsDidChange",function(e){var t=this,n=e.context;if(n){var i=this._handles,r=n.length,a=n.lengthDelta,o=this.source.length-a;i.length<o&&(i.length=o);for(var c=0,l=function(){for(var e=n[c],a=e.operation,o=e.index,l=0,d=void 0;d=e.index,!(++c>=r)&&a===(e=n[c]).operation;)if(u=e.index-d,0===l){if(1!==u&&-1!==u)break;l=u}else if(u!==l)break;var h=d;if(h<o){var p=h;h=o,o=p}var f=++h-o;if(a===s.a.REMOVE)i.length-f==0?i.length=0:i.splice(o,f),t._allHandles.forEach(function(e){return e._applyRemove(o,h,f)});else{if(0===i.length)i.length=f;else for(var m=0,g=f;m<g;m+=32768){var b=Math.min(g-m,32768),v=[o,0];v.length=2+b,i.splice.apply(i,v)}t._allHandles.forEach(function(e){return e._applyInsert(o,f)})}};c<r;){var u;l()}}}),_registerHandle:function(e){e.isValid&&(e.registerWeakReference(this,this._handleWasDisposed,e),this._allHandles.add(e),this._handles[e.position]=e)},_handleWasDisposed:function(e){e.wasRemoved||(this._handles[e.position]=void 0),this._allHandles.delete(e)},everythingChanged:Object(a.g)("source.everythingChanged",function(){var e=this._handles;this._allHandles.forEach(function(t){t._applyRemove(t.position,t.position+1,0),e[t.position]=void 0}),e.length=this.source.length}),staticMembers:{__QUALIFIED_CLASS_NAME__:"OrderedListHandleProvider"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(856),r=n(515).a.extend({endHandle:i.a.define(),staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseBidirectionalHandleProvider"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(824),a=n(81),o=n(821),s=n(384),c=i.a.extend(r.a,s.a,{initFromPool:function(e,t,n){n=n||0,this.encodedValue=e.encodedObjectAt(n),this._position=n,this.__s._$Hf$initFromPool.call(this,e,t)},didEnterPool:function(){this._wasRemoved=!1,this.encodedValue=void 0,this._position=NaN,this._formerPosition=NaN,this.__s._$LU$didEnterPool.call(this)},atDistance:function(e){var t=arguments;if(this._wasRemoved){var n=this._formerPosition;return e>0?this.at(n+e-1):e<0?this.at(n+e):this}return this.__s._$XZ$atDistance.apply(this,t)},hasHandleAtDistance:function(e){var t=arguments;if(this._wasRemoved){var n=this._formerPosition;return e>0?this.hasHandleAt(n+e-1):!(e<0)||this.hasHandleAt(n+e)}return this.__s._$k2$hasHandleAtDistance.apply(this,t)},encodedValue:Object(a.d)({strong:!0}),position:Object(a.d)({readOnly:!0,defaultValue:NaN}),maximumPosition:Object(a.d)({readOnly:!0,get:function(){return this.source.length-1}}),wasRemoved:Object(a.d)({readOnly:!0,defaultValue:!1}),_formerPosition:NaN,hasHandleAt:function(e){return e>=0&&e<=this.maximumPosition},_handleRemove:o.a,_applyRemove:function(e,t,n){if(this._wasRemoved){var i=this._formerPosition;if(i<e)return;this._formerPosition=i<t?e:i-n}else{var r=this._position;if(r<e)return;r<t?(this._formerPosition=e,this._wasRemoved=!0,this._handleRemove()):this._position=r-n}},_applyInsert:function(e,t){if(this._wasRemoved){var n=this._formerPosition;if(n<e)return;this._formerPosition=n+t}else{var i=this._position;if(i<e)return;this._position=i+t}},__superMap:{_$Hf$initFromPool:"initFromPool",_$LU$didEnterPool:"didEnterPool",_$XZ$atDistance:"atDistance",_$k2$hasHandleAtDistance:"hasHandleAtDistance"},staticMembers:{__QUALIFIED_CLASS_NAME__:"OrderedListHandle"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(830),r=n(81),a=n(856),o={mixinDependencies:[n(888).a],atDistance:function(e){for(var t=Math.sign(e),n=this.retain(this,"atDistance: current handle"),i=0;i!==e;i+=t){var r=t>0?n.next:n.previous;r.retain(this,"atDistance: current handle"),n.release(this,"atDistance: current handle"),n=r}return n.autorelease(this,"atDistance: current handle")},hasHandleAtDistance:i.a.define(),end:Object(r.d)({get:function(){return this._provider.endHandle}}),previous:a.a.define(),hasPrevious:a.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(94),r=n(856),a=n(81),o={mixinDependencies:[i.a],isValid:r.a.define(),wasRemoved:r.a.define(),value:Object(a.d)({readOnly:!0,get:function(){return this.source.decode(this.encodedValue,this.position)}}),encodedValue:r.a.define(),start:Object(a.d)({get:function(){return this._provider.startHandle}}),next:r.a.define(),isAdjacentTo:function(e){return this.next===e||e.next===this},hasNext:r.a.define(),init:function(e,t){this.source=e,this._provider=t,this.__s._$28Q$init.call(this)},initFromPool:function(e,t){this.source=e,this._provider=t,this.__s._$2B9$initFromPool.call(this)},didEnterPool:function(){this.source=null,this._provider=null,this.__s._$2D0$didEnterPool.call(this)},source:Object(a.d)({strong:!0}),_provider:Object(a.d)(),__superMap:{_$28Q$init:"init",_$2B9$initFromPool:"initFromPool",_$2D0$didEnterPool:"didEnterPool"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(819),r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function a(e,t,n,s){if(e===t)return!0;var c=void 0,l=void 0,u=void 0,d=void 0;if(o[void 0===e?"undefined":r(e)]||o[void 0===t?"undefined":r(t)])return!1;if(null===e||null===t)return!1;if(n||(n=e.constructor),s||(s=t.constructor),n!==s)return!1;if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Object){var h=0;for(c in e)if(++h,(l=e[c])!==(u=t[c])){if(d=void 0===l?"undefined":r(l),o[d])return!1;if(!a(l,u))return!1}for(c in t)--h;return 0===h}if(n===Array){var p=e.length;if(p!==t.length)return!1;for(var f=p-1;f>=0;--f)if((l=e[f])!==(u=t[f])){if(d=void 0===l?"undefined":r(l),o[d])return!1;if(!a(l,u))return!1}return!0}var m=n.name&&n.name.length?n.name:String(n);return Object(i.b)("Unsupported type for 'deepEqual': "+m),null}var o={string:!0,number:!0,boolean:!0,undefined:!0}},function(e,t,n){"use strict";n(1),n(2),n(0),n.d(t,"a",function(){return a});var i=n(98),r=n(891),a={show:function(){if(!this.isAttached)return this.paneManager.presentViewController(this)},hide:function(){if(this.isAttached)return this.paneManager.dismissViewController(this)},toggle:function(){this.isAttached?this.hide.apply(this,arguments):this.show.apply(this,arguments)},paneManager:Object(i.b)({readOnly:!0,binding:r.a.bindingFor("application")}),isActivePane:Object(i.b)({readOnly:!0,dependencies:["paneManager.activePane"],get:Object.assign(function(){return this===this.getPath("paneManager.activePane")},{__CW__getter:function(e,t,n,i){return this===i.internalGetPath(this,t[0+n])}})}),keyDown:function(e){var t=this._keyEquivalentViews;if(!t)return!1;for(var n=t.length;n--;){var i=t[n];!i.isDisposed&&i.isAttached&&i.keyEquivalent||t.splice(n,1)}return t.some(function(t){return t&&t.performKeyEquivalent&&t.performKeyEquivalent(e)})},registerKeyEquivalent:function(e){var t=this._keyEquivalentViews||(this._keyEquivalentViews=[]);-1===t.indexOf(e)&&t.push(e)}}},function(e,t,n){"use strict";n(1),n(2),n(0),n.d(t,"a",function(){return A});var i=n(818),r=n(361),a=n(95),o=n(81),s=n(100),c=n(86),l=n(838),u=n(821),d=n(862),h=n(819),p=n(849),f=n(78),m=n(98),g=n(87),b=n(872),v=n(878),_=n(896),y=n(521),C=n(533),I=n(234),w=v.a.sharedInstance,S=function(e){var t=A&&A.application;if(t)return t.handleException.apply(t,arguments)},A=i.a.extend(f.b,b.a,r.b,{staticMembers:{application:Object(m.b)({weak:!0}),states:Object(a.b)("AppStates",function(e){e("NEW"),e("INITIALIZING"),e("READY")}),isExceptionHandlingEnabled:Object(o.d)({defaultValue:null,get:function(e){if(Object(l.a)(e))return e;if(!A.application){var t=this.exceptionHandler;if(!t||t===S)return!1}return!0}}),exceptionHandler:S,__QUALIFIED_CLASS_NAME__:"Application"},handleException:u.a,state:null,run:Object(d.a)(function(){var e=this;this.state=A.states.INITIALIZING;var t=this.Initializers.map(function(t){return t.create().run(e)});return s.a.all(t).then(function(t){return e.state=A.states.READY,t}).catch(Object(d.a)(function(e){throw e}))}),Initializers:Object(c.c)([y.a,C.a,_.a]),initializerPromises:Object(c.c)(Map),rootElement:window.document.body,primaryInteractionMode:Object(m.b)({readOnly:!0,binding:Object(g.c)("_cw_primaryInteractionMode")}),_cw_primaryInteractionMode:Object(m.b)({readOnly:!0,defaultValue:w.isiPhone||w.isiPad?I.a.TOUCH:"coarse"===w.pointer?I.a.TOUCH:(w.pointer,I.a.MOUSE)}),rootViewController:Object(m.b)({defaultValue:null,strong:!0}),_paneManager:Object(m.b)(),nextResponder:Object(o.d)({get:function(){return this.rootResponder}}),rootResponder:null,presentViewController:function(e){return this._paneManager.presentViewController(e)},dismissViewController:function(e){return this._paneManager.dismissViewController(e)},addPane:function(e){this.get("_paneManager").addPane(e)},removePane:function(e){this.get("_paneManager").removePane(e)},bringToFront:function(e){this.get("_paneManager").removePane(e)},activePane:Object(m.b)({binding:Object(g.c)("_paneManager.activePane"),readOnly:!0}),topFocusablePane:Object(m.b)({binding:Object(g.c)("_paneManager.topFocusablePane"),readOnly:!0}),topFocusLayer:Object(m.b)({binding:Object(g.c)("_paneManager.topFocusLayer"),readOnly:!0}),appHasFocus:Object(m.b)({binding:Object(g.c)("_paneManager.appHasFocus"),readOnly:!0}),writeTextToAriaLiveRegion:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"polite",n=window.document.getElementById("cw-aria-live-region");n.setAttribute("aria-live",t),n.textContent=e},init:function(){var e=arguments;A.application&&Object(h.b)("Only one application may be instantiated per JS context."),this.__s._$4Tb$init.apply(this,e),this.state=A.states.NEW,A.application=this},__superMap:{_$4Tb$init:"init"}});Object(p.c)(A)},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(229),r=function(e,t,n,r){return e.removeEventListener(t,Object(i.a)(n)||n,r||!1)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(894),r=n(104),a=n(380).a.extend({staticMembers:{eventPropertiesToCopy:Object(r.b)(["deltaX","deltaY"]),__QUALIFIED_CLASS_NAME__:"WheelEvent"},init:function(e){if(this.__s._$Am$init.call(this,e),e){var t=e.nativeEvent;if(t){var n=i.a.sharedInstance.deltaMultiplierForScrollEvent(t);"mousewheel"===t.type?(this.deltaX=t.wheelDeltaX,this.deltaY=t.wheelDeltaY||t.wheelDelta):(this.deltaX=t.deltaX,this.deltaY=t.deltaY),this.deltaY=this.deltaY||0,this.deltaX=this.deltaX||0,this.deltaY*=n,this.deltaX*=n}}},deltaX:0,deltaY:0,__superMap:{_$Am$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(818),r=n(847),a=n(879),o=i.a.extend(r.a,{deltaMultiplierForScrollEvent:function(e){var t=1;e&&"mousewheel"===e.type&&(t=-.025);var n=a.a.get("sharedInstance");return n.isWebKit&&n.engineMajorVersion>=538?t=1:n.isSafari?t=-1/3:n.isFirefox&&(t=.5,e&&1===e.deltaMode&&(t=40)),t},staticMembers:{__QUALIFIED_CLASS_NAME__:"Scrolling"}})},function(e,t,n){"use strict";function i(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var a=arguments.length,o=void 0,s=void 0;for(o=2;o<a;o++)t[s=arguments[o]]=e[s];return t}n.d(t,"a",function(){return i})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(80),r=n(534),a=n(127),o=n(110).a.extend({appDocumentElement:window.document.documentElement,action:function(e){var t=this.appDocumentElement;Object(r.a)(t);var n=i.a.sharedInstance;n.observe("locale",function(e){Object(a.b)("lang",e,t)}),n.observe("isRTL",function(e){var n=e?"rtl":"ltr";Object(a.b)("dir",n,t)}),t.setAttribute("data-primary-interaction-mode",e.primaryInteractionMode.toLowerCase())},staticMembers:{__QUALIFIED_CLASS_NAME__:"DocumentElementInitializer"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(95),r=Object(i.b)("AlertStyle",{ALERT:"alert",ACTION_SHEET:"action-sheet"})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return o}),n(5);var i=n(877),r=n(899),a=n(98),o=i.a.extend(r.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{signal:"titleDidRender"}}],classes:["title"]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"hasLeftIcon",truevalue:"cw-has-left-icon",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"hasRightIcon",truevalue:"cw-has-right-icon",attributes:{}}],attributes:{title:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"tooltip",attributes:{},attribute:"title"}}}},className:"cw-button",__QUALIFIED_CLASS_NAME__:"Button"},title:Object(a.b)(""),tooltip:Object(a.b)(""),hasLeftIcon:Object(a.b)(!1),hasRightIcon:Object(a.b)(!1)})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return f});var i=n(843),r=n(86),a=n(872),o=n(105),s=n(876),c=n(860),l=n(98),u=n(78),d=n(861),h=n(900),p=n(901),f={mixinDependencies:[h.a,a.a,c.a,p.a,o.a],staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isPointerFocused",truevalue:"cw-is-pointer-focused",falsevalue:"",attributes:{}}],attributes:{"aria-haspopup":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaHasPopup",attributes:{},attribute:"aria-haspopup"},"aria-owns":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaOwns",attributes:{},attribute:"aria-owns"}}}}},isPointerActivationDisabled:Object(l.b)({readOnly:!0,binding:"isDisabled"}),isPointerFocused:Object(l.b)({type:Boolean,readOnly:!0,dependencies:["isFocused","_mayBePointerFocused"],get:Object.assign(function(){return this._mayBePointerFocused&&this.isFocused},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])&&i.internalGet(this,t[0+n])}})}),_mayBePointerFocused:Object(l.b)({type:Boolean,defaultValue:!1}),action:Object(l.b)({type:"string",defaultValue:"wasActivated"}),context:Object(l.b)({defaultValue:i.a}),contextKeys:Object(r.c)(["context"]),keyEquivalent:Object(l.b)({didChange:function(e){e&&this.sendEvent("registerKeyEquivalent",this)}}),isAttachedDidChange:Object(u.h)("isAttached",function(e){e&&this.keyEquivalent&&this.sendEvent("registerKeyEquivalent",this)}),performKeyEquivalent:function(e){var t=this.keyEquivalent,n=e.keyCode,i=n===t;return(i=i||t.some&&t.some(function(e){return e===n}))&&this.triggerButtonAction()},pointerDown:function(e){var t=arguments,n=this.__s._$31g$pointerDown.apply(this,t);return e.preventDefault(),!this.isDisabled&&this.isFocusable&&(this._mayBePointerFocused=!0),n},keyUp:function(e){e.which!==s.a.SPACE||this.isDisabled||this.triggerButtonAction()},didBlur:function(){var e=arguments;this._mayBePointerFocused=!1,this.__s._$3Cp$didBlur.apply(this,e)},pointerActivate:function(e){var t=arguments;this.__s._$3GX$pointerActivate.apply(this,t),this.triggerButtonAction()},delayAction:!1,triggerButtonAction:function(){return!this.isDisabled&&(this.sendEvent("buttonWillActivate",this),this.delayAction?Object(d.a)(this._actuallyTriggerButtonAction.bind(this),0):this._actuallyTriggerButtonAction(),!0)},_actuallyTriggerButtonAction:function(){if(this.target)this.callAction();else{for(var e=[this.action],t=this.contextKeys,n=0,i=t.length;n<i;n++)e.push(this[t[n]]);this.sendEvent.apply(this,e)}this.sendEvent("buttonDidActivate",this)},ariaRole:"button",ariaHasPopup:Object(l.b)(),ariaOwns:Object(l.b)(),__superMap:{_$31g$pointerDown:"pointerDown",_$3Cp$didBlur:"didBlur",_$3GX$pointerActivate:"pointerActivate"}}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(78),r=n(98),a=n(87),o=n(105),s=n(839),c=Symbol("NOT_SET"),l={mixinDependencies:[i.b,o.a],controlElement:Object(r.b)({get:function(e){return e||this.element}}),isDisabled:Object(r.b)({defaultValue:!1,didChange:function(e){var t=this.controlElement;t&&(e?t.setAttribute("disabled",!0):t.removeAttribute("disabled"))}}),isFocusable:Object(r.b)({dependencies:["isDisabled"],writeDependencies:[],defaultValue:c,get:Object.assign(function(e){return e!==c?e:!this.isDisabled},{__CW__getter:function(e,t,n,i){return e!==c?e:!i.internalGet(this,t[0+n])}}),set:s.a}),ariaDisabled:Object(a.c)("isDisabled")}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return a});var i=n(98),r=n(78),a={mixinDependencies:[n(232).a],staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isBeingPressed",truevalue:"cw-being-pressed",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isBeingHovered",truevalue:"cw-being-hovered",attributes:{}}]}}},isBeingPressed:Object(i.b)(!1),isBeingHovered:Object(i.b)(!1),isPointerActivationDisabled:Object(i.b)(!1),pointerActivate:function(e){},pointerHitTest:function(e){var t=document.elementFromPoint(e.clientX,e.clientY);return this.element.contains(t)},pointerDown:function(e){return!this.isPointerActivationDisabled&&0===e.button&&!!this.pointerHitTest(e)&&(this.setPointerCapture(e.pointerId),this.updateHoverPressState(e),!0)},pointerOut:function(e){return this.updateHoverPressState(e),!1},pointerOver:function(e){return this.updateHoverPressState(e),!1},pointerUp:function(e){var t=!1;if(this.getPointerCapture(e.pointerId)!==this?t=!0:this.pointerHitTest(e)?(this.isDisabled||0!==e.button)&&(t=!0):t=!0,t)return this.releasePointerCapture(e.pointerId),this.updateHoverPressState(e),!1;this.releasePointerCapture(e.pointerId);var n=this.isBeingPressed;return this.updateHoverPressState(e),n&&this.pointerActivate(e),!0},pointerMove:function(e){return this.updateHoverPressState(e),this.getPointerCapture(e.pointerId)===this},setPointerCapture:function(e){var t=arguments;return this._capturedPointerId=e,this.sendEvent("lockCursor",this.getPath("style.cursor")),this.__s._$1sk$setPointerCapture.apply(this,t)},releasePointerCapture:function(e){var t=arguments;return this._capturedPointerId=NaN,this.sendEvent("releaseCursor"),this.__s._$1z2$releasePointerCapture.apply(this,t)},cancelPointerInteraction:function(){var e=this._capturedPointerId;isNaN(e)||this.releasePointerCapture(e),this.beginBatchSet().setIfChanged("isBeingPressed",!1).setIfChanged("isBeingHovered",!1).end()},updateHoverPressState:function(e){var t=Boolean("pointerOut"!==e.cwType&&this.pointerHitTest(e)),n=this.getPointerCapture(e.pointerId)===this,i=this.isPointerActivationDisabled;this.beginBatchSet().setIfChanged("isBeingPressed",n&&t&&!i).setIfChanged("isBeingHovered",(n||t)&&!i).end()},_releasePointerCaptureWhenUnattached:Object(r.h)("isAttached","isPointerActivationDisabled",function(e,t){e&&!t||this.cancelPointerInteraction()}),dispose:function(){var e=arguments;this.cancelPointerInteraction(),this.__s._$2TM$dispose.apply(this,e)},__superMap:{_$1sk$setPointerCapture:"setPointerCapture",_$1z2$releasePointerCapture:"releasePointerCapture",_$2TM$dispose:"dispose"}}},function(e,t,n){"use strict";n(12),n(0),n.d(t,"a",function(){return u}),n(14);var i=n(879),r=n(869),a=n(892),o=n(98),s=n(78),c=n(292),l=n(903),u=n(877).a.extend(l.a,c.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"contentView"}],name:"container",classes:["container"]}],classes:["cw-scroll-view"]}},className:"cw-ui-scroll-view",__QUALIFIED_CLASS_NAME__:"ScrollView"},init:function(){var e=arguments;this.__s._$HG$init.apply(this,e),this._syncScrollFromDomChanges=this._syncScrollFromDomChanges.bind(this),Object(r.a)(this.container,"scroll",this._syncScrollFromDomChanges,!1)},dispose:function(){var e=arguments;Object(a.a)(this.container,"scroll",this._syncScrollFromDomChanges,!1),this.__s._$OM$dispose.apply(this,e)},_syncScrollFromDomChanges:function(){var e=this.container,t=this.scrollY,n=this.scrollX,i=e.scrollTop-(parseInt(e.style.top,10)||0)+(parseInt(e.style.bottom,10)||0);Math.trunc(t)!==i&&(this.scrollY=i);var r=e.scrollLeft-(parseInt(e.style.left,10)||0)+(parseInt(e.style.right,10)||0);Math.trunc(n)!==r&&(this.scrollX=r)},windowSize:Object(o.b)(i.a.get("sharedInstance").window),scrollMaxX:Object(o.b)({readOnly:!0,cacheable:!1,dependencies:["isAttached","windowSize.width","contentView"],get:function(){return this.get("container").scrollWidth}}),scrollMaxY:Object(o.b)({readOnly:!0,cacheable:!1,dependencies:["isAttached","windowSize.height","contentView"],get:function(){return this.get("container").scrollHeight}}),height:Object(o.b)({readOnly:!0,cacheable:!1,dependencies:["element","isAttached"],get:Object.assign(function(){return this.element.clientHeight},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n]).clientHeight}})}),width:Object(o.b)({readOnly:!0,cacheable:!1,dependencies:["element","isAttached"],get:Object.assign(function(){return this.element.clientWidth},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n]).clientWidth}})}),scrollElementY:Object(s.h)("scrollY","height","scrollHeight",function(e,t,n){var i=Math.max(0,n-t),r=d(e,0,i),a=h(e,0),o=p(e,0,i),s=this.container,c=s.style;s.scrollTop=r,c.top=a?a+"px":"",c.bottom=o?o+"px":""}),scrollElementX:Object(s.h)("scrollX","width","scrollWidth",function(e,t,n){var i=Math.max(0,n-t),r=d(e,0,i),a=h(e,0),o=p(e,0,i),s=this.container,c=s.style;s.scrollLeft=r,c.left=a?a+"px":"",c.right=o?o+"px":""}),__superMap:{_$HG$init:"init",_$OM$dispose:"dispose"}});function d(e,t,n){return e<t?t:e>n?n:e}function h(e,t,n){return e<t?t-e:0}function p(e,t,n){return e>n?e-n:0}},function(e,t,n){"use strict";n.d(t,"a",function(){return w});var i=n(81),r=n(85),a=n(86),o=n(98),s=n(78),c=n(106),l=n(904),u=n(834),d=n(863),h=n(290),p=n(538),f=n(88),m=n(872),g=n(873),b=n(223),v=n(103),_=n(156),y=n(102),C=n(537),I=o.a.extend({readOnly:!0,cacheable:!1,get:function(e,t,n,i){return i.internalGet(this,t[1+n])-i.internalGet(this,t[0+n])},staticMembers:{__QUALIFIED_CLASS_NAME__:"SizeProperty"}}),w={mixinDependencies:[s.b,m.a,g.a],init:function(){var e=arguments,t=this.scrollGestureRecognizer=b.a.create({event:"updateScroll",delegate:this});this.addGestureRecognizer(t),this.__s._$Zk$init.apply(this,e)},gestureRecognizerShouldReceive:function(e,t){var n=arguments;return(!this.hasMomentum||e===this.scrollGestureRecognizer)&&(e===this.scrollGestureRecognizer?t.pointerType===v.b.TOUCH||t.pointerType===v.b.PEN:this.__s._$ig$gestureRecognizerShouldReceive.apply(this,n))},gestureRecognizerShouldRequireFailureOf:function(e,t){var n=arguments;return e===this.scrollGestureRecognizer?!(!t.instanceOf(_.b)||t.view!==this&&!this.element.contains(t.view.element)||this.hasMomentum):this.__s._$uE$gestureRecognizerShouldRequireFailureOf.apply(this,n)},_lastTranslation:{x:0,y:0},updateScroll:function(e){var t=e.state,n=e.translation,i=this._lastTranslation,r=this.normalizedX,a=this.normalizedY;this._lastTranslation=n;var o=i.x-n.x,s=i.y-n.y,c=0;this.canScrollHorizontally&&(c=this._calculatePositionWithStretch(o,r,this.normalizedMaxX,this.width));var l=0;if(this.canScrollVertically&&(l=this._calculatePositionWithStretch(s,a,this.normalizedMaxY,this.height)),this.scrollBy(c,l),t===y.b.Ended){this._lastTranslation={x:0,y:0};var u=e.velocity;Math.abs(u.y)<.175&&(u.y=0),Math.abs(u.x)<.175&&(u.x=0),u.y*=-1,u.x*=-1,this.beginMomentumScroll(u)}},_calculatePositionWithStretch:function(e,t,n,i){var r=t+e,a=S(r,0,n,i),o=Math.sign(e)*Math.min(Math.abs(r-a),Math.abs(e));return e-o+o/2.5},supportsTouchScroll:Object(i.d)(f.c.isTouchSupported),mayUseVerticalScrollingAsHorizontal:Object(i.d)(),processWheelEvent:function(e){this.mayUseVerticalScrollingAsHorizontal&&e.deltaY&&(e.deltaX+=e.deltaY,e.deltaY=0)},wheel:function(e){e.preventDefault();var t=this._deferredScrollEvent;t?(t.deltaX+=e.deltaX,t.deltaY+=e.deltaY,t.nativeEvent=e):((t=this._deferredScrollEvent=C.a.create({deltaX:e.deltaX,deltaY:e.deltaY,nativeEvent:e})).retain(this,"retain during scroll deferral"),this._scrollRAF||(this._scrollRAF=Object(l.a)(Object(u.a)(this._flushAccumulatedWheelDeltas,this))))},_flushAccumulatedWheelDeltas:function(){var e=this._deferredScrollEvent;this._cleanUpCurrentScrollAccumulation(),e&&(this.bubbleScroll(e),this.overflowX=this.overflowY=0)},_cleanUpCurrentScrollAccumulation:function(){var e=this._deferredScrollEvent;e&&(this._deferredScrollEvent=null,e.autorelease(this,"retain during scroll deferral"));var t=this._scrollRAF;t&&(this._scrollRAF=null,cancelAnimationFrame(t))},dispose:function(){var e=arguments;this._cleanUpCurrentScrollAccumulation(),this.__s._$2ZR$dispose.apply(this,e)},overflowX:Object(o.b)(0),overflowY:Object(o.b)(0),bubbleScroll:function(e){var t=this;for(e.deltaX=e.deltaX+this.overflowX,e.deltaY=e.deltaY+this.overflowY;!e.isEmpty;){for(;t&&!t.handleScroll;)t=t.nextResponder;if(!t)break;t.handleScroll(e),t=t.nextResponder}this.overflowX=e.deltaX,this.overflowY=e.deltaY},scrollX:Object(o.b)(0),normalizedX:Object(o.b)({readOnly:!0,dependencies:["scrollX","scrollMinX"],get:Object.assign(function(){return this.scrollX-this.scrollMinX},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])-i.internalGet(this,t[1+n])}})}),scrollY:Object(o.b)(0),normalizedY:Object(o.b)({readOnly:!0,dependencies:["scrollY","scrollMinY"],get:Object.assign(function(){return this.scrollY-this.scrollMinY},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])-i.internalGet(this,t[1+n])}})}),scrollMinX:Object(o.b)(0),scrollMaxX:Object(o.b)(0),normalizedMaxX:Object(o.b)({readOnly:!0,dependencies:["scrollMaxX","scrollMinX"],get:Object.assign(function(){return this.scrollMaxX-this.scrollMinX},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])-i.internalGet(this,t[1+n])}})}),scrollMinY:Object(o.b)(0),scrollMaxY:Object(o.b)(0),normalizedMaxY:Object(o.b)({readOnly:!0,dependencies:["scrollMaxY","scrollMinY"],get:Object.assign(function(){return this.scrollMaxY-this.scrollMinY},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])-i.internalGet(this,t[1+n])}})}),scrollHeight:Object(r.c)(I,{dependencies:["scrollMinY","scrollMaxY"]}),scrollWidth:Object(r.c)(I,{dependencies:["scrollMinX","scrollMaxX"]}),height:Object(o.b)(0),width:Object(o.b)(0),canScrollVertically:Object(o.b)({readOnly:!0,dependencies:["scrollHeight","height"],get:Object.assign(function(){return this.scrollHeight>this.height},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])>i.internalGet(this,t[1+n])}})}),canScrollHorizontally:Object(o.b)({readOnly:!0,dependencies:["scrollWidth","width"],get:Object.assign(function(){return this.scrollWidth>this.width},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])>i.internalGet(this,t[1+n])}})}),handleScroll:function(e){var t=this.scrollX,n=this.scrollY,i=e.deltaX,r=e.deltaY,a=(i>0?this.scrollMaxX-this.width:this.scrollMinX)-t,o=(r>0?this.scrollMaxY-this.height:this.scrollMinY)-n,s=e.consumeX(a),c=e.consumeY(o);this.attemptScrollByForEvent(s,c,e)},attemptScrollBy:function(e,t){this.stopMomentumScroll();var n=this._attemptScrollBy(e,t);return this.didScrollBy&&this.didScrollBy(e,t),n},attemptScrollByForEvent:function(e,t,n){n.isMomentumScroll||this.stopMomentumScroll();var i=this._attemptScrollBy(e,t);return this.didScrollBy&&this.didScrollBy(e,t,n),i},_attemptScrollBy:function(e,t){var n=this.scrollX,i=n+e;e=(i=S(i,this.scrollMinX,this.scrollMaxX,this.width))-n;var r=this.scrollY,a=r+t;return t=(a=S(a,this.scrollMinY,this.scrollMaxY,this.height))-r,(e||t)&&this._scrollBy(e,t),0!==e||0!==t},validateScrollPosition:function(){var e=0;if(!this._s_isValidatingScrollPosition){this._s_isValidatingScrollPosition=!0;for(var t=!1;this._attemptScrollBy(0,0);)if(t=!0,e++>10){d.b.warn("Could not validate scroll position.Minimums: "+this.scrollMinX+","+this.scrollMinY+".Maximums: "+this.scrollMaxX+","+this.scrollMaxY+".Current: "+this.scrollX+", "+this.scrollY);break}return this._s_isValidatingScrollPosition=!1,t}},scrollBy:function(e,t){this.stopMomentumScroll(),this._internalScrollBy(e,t)},_internalScrollBy:function(e,t){this.canScrollHorizontally||(e=0),this.canScrollVertically||(t=0),this._scrollBy(e,t),this.didScrollBy&&this.didScrollBy(e,t)},_scrollBy:function(e,t){e&&(this.scrollX+=e),t&&(this.scrollY+=t)},didScrollBy:null,pageUp:function(){this.attemptScrollBy(0,-this.height)},pageDown:function(){this.attemptScrollBy(0,this.height)},pageLeft:function(){this.attemptScrollBy(-this.width,0)},pageRight:function(){this.attemptScrollBy(this.width,0)},scrollTo:function(e,t){var n=0;void 0!==e&&(e/=100,n=this.scrollX,n=this.scrollWidth*e+this.scrollMinX-n);var i=0;void 0!==t&&(t/=100,i=this.scrollY,i=this.scrollHeight*t+this.scrollMinY-i),this.attemptScrollBy(n,i)},viewport:Object(o.b)({strong:!0,defaultValue:Object(a.c)(c.a)}),_updateViewport:Object(s.h)("viewport","scrollX","scrollY","width","height",function(e,t,n,i,r){e.beginBatchSet().set("x",t).set("y",n).set("width",i).set("height",r).end()}),scrollToRect:function(e){var t=this.viewport,n=0;e.isLeftOf(t)?n=e.x-t.x:e.isRightOf(t)&&(n=e.right-t.right);var i=0;e.isAbove(t)?i=e.y-t.y:e.isBelow(t)&&(i=e.bottom-t.bottom),this.attemptScrollBy(n,i)},hasMomentum:Object(o.b)({readOnly:!0,get:function(){return 0!==this._momentumRAF}}),_xAnimation:null,_yAnimation:null,_previousTimestamp:NaN,_momentumRAF:0,beginMomentumScroll:function(e){var t=this._previousTimestamp=performance.now(),n=e.x,i=e.y;this.canScrollHorizontally&&(this._xAnimation=new h.a({initialTimestamp:t,initialVelocity:Math.abs(n),direction:n<0?-1:1})),this.canScrollVertically&&(this._yAnimation=new h.a({initialTimestamp:t,initialVelocity:Math.abs(i),direction:i<0?-1:1})),this._momentumRAF=Object(l.a)(Object(u.a)(this._momentumTick,this)),this.propertyChanged("hasMomentum")},stopMomentumScroll:function(){var e=this._momentumRAF;0!==e&&(cancelAnimationFrame(e),this._momentumRAF=0,this.propertyChanged("hasMomentum"))},_getAnimationDelta:function(e,t,n,i,r,a){var o=e.positionDelta(t,n),s=i+o,c=S(s,0,r,a),l=e.velocityAtTime(n),u=s-c;return e instanceof h.a&&0!==u?[o,new p.a({initialPosition:u,initialOffset:u,initialTimestamp:n,initialVelocity:l})]:Math.abs(l)<=.01?[c-s,null]:[o,e]},_momentumTick:function(){var e=this._xAnimation,t=this._yAnimation,n=void 0,i=void 0,r=this.width,a=this.height,o=this.normalizedX,s=this.normalizedY,c=this.normalizedMaxX,d=this.normalizedMaxY,h=this._previousTimestamp,p=performance.now();this._previousTimestamp=p;var f=0;if(this.canScrollHorizontally){var m=this._getAnimationDelta(e,h,p,o,c,r);f=m[0],n=m[1]}var g=0;if(this.canScrollVertically){var b=this._getAnimationDelta(t,h,p,s,d,a);g=b[0],i=b[1]}this._internalScrollBy(f,g),n||i?this._momentumRAF=Object(l.a)(Object(u.a)(this._momentumTick,this)):(this._momentumRAF=0,this.propertyChanged("hasMomentum")),n&&(this._xAnimation=n),i&&(this._yAnimation=i)},__superMap:{_$Zk$init:"init",_$ig$gestureRecognizerShouldReceive:"gestureRecognizerShouldReceive",_$uE$gestureRecognizerShouldRequireFailureOf:"gestureRecognizerShouldRequireFailureOf",_$2ZR$dispose:"dispose"}};function S(e,t,n,i){var r=Math.min(e,n-i);return Math.max(r,t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(862),r=function(e){return window.requestAnimationFrame(Object(i.a)(e))}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(836),r=n(833);function a(e){if(!e)return!0;if(Object(i.a)(e)||Object(r.a)(e))return!e.length;if(e._isCwCollection)return!e.length;for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(94),r=n(830),a=n(880),o=n(287),s={mixinDependencies:[i.a],connect:r.a.define(),disconnect:r.a.define(),isDisconnected:a.a.define(),incomingMessage:o.a.define(),outgoingMessage:o.a.define(),send:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(98),r=n(863),a=n(390).a.extend({outgoingWindow:Object(i.b)({readOnly:!0,get:function(){var e=window.parent;return e?{actualOutgoingWindow:e,postMessage:function(e,t){var n=this.actualOutgoingWindow;if(n.postMessage)return n.postMessage(e,t);r.b.warn("ParentWindowChannel: postMessage of "+e+" to detached iframe at "+t+" was ignored")}}:null}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ParentWindowChannel"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(862);function r(e,t){for(var n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];return setInterval.apply(void 0,[Object(i.a)(e),t].concat(r))}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i={CONTINUE:100,SWITCHING_PROTOCOLS:101,OK:200,CREATED:201,ACCEPTED:202,NON_AUTHORITATIVE_INFO:203,NO_CONTENT:204,RESET_CONTENT:205,PARTIAL_CONTENT:206,MULTI_STATUS:207,MULTIPLE_CHOICES:300,MOVED_PERMANENTLY:301,FOUND:302,SEE_OTHER:303,NOT_MODIFIED:304,USE_PROXY:305,TEMP_REDIRECT:307,BAD_REQUEST:400,UNAUTHORIZED:401,FORBIDDEN:403,NOT_FOUND:404,METHOD_NOT_ALLOWED:405,NOT_ACCEPTABLE:406,PROXY_AUTH_REQUIRED:407,REQUEST_TIMEOUT:408,CONFLICT:409,GONE:410,LENGTH_REQUIRED:411,PRECONDITION_FAILED:412,REQUEST_ENTITY_TOO_LARGE:413,REQUEST_URI_TOO_LONG:414,UNSUPPORTED_MEDIA_TYPE:415,REQUESTED_RANGE_NOT_SATISFIABLE:416,EXPECTATION_FAILED:417,PRECONDITION_REQUIRED:428,TOO_MANY_REQUESTS:429,HEADER_FIELDS_TOO_LARGE:431,INTERNAL_SERVER_ERROR:500,NOT_IMPLEMENTED:501,BAD_GATEWAY:502,SERVICE_UNAVAILABLE:503,GATEWAY_TIMEOUT:504,HTTP_VERSION_NOT_SUPPORTED:505,NETWORK_AUTHENTICATION_REQUIRED:511}},function(e,t,n){"use strict";function i(e,t,n){return n!==e.get(t)&&e.set(t,n),e}n.d(t,"a",function(){return i})},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__127.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__129.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__124.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__122.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__121.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__25.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__24.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__17.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__18.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__31.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__29.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__30.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__33.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__28.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__32.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__26.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__27.png"},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(81),r=n(78),a=n(98),o={mixinDependencies:[r.b],errors:Object(a.b)(),validate:function(e){var t,n,r,a,o,s=this.getMetadataByType(i.a),c=Object.keys(s),l=!0;e&&(c=Array.isArray(e)?e:[e]);var u={};for(t in s)if(s.hasOwnProperty(t)&&-1!==c.indexOf(t)){if(!(r=(n=s[t]).validators))continue;for(o=0;o<r.length;o++)(a=r[o]).validate(n.getForObject(this),t,this)||(void 0===u[t]&&(u[t]=[]),u[t].push(a.message),l=!1)}return this.errors=u,l}}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(81),r=n(235).a.extend({message:"Validation.InvalidPattern",pattern:Object(i.d)({type:RegExp,defaultValue:/.*/i}),validate:function(e){return this.get("pattern").test(e)},staticMembers:{__QUALIFIED_CLASS_NAME__:"PatternValidator"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return c});var i=n(878),r=n(877),a=n(98),o=n(78),s=n(904),c=r.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"canvas",classes:["cw-spinner-view"],styles:{height:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"size",attributes:{},unit:"px",property:"height"},width:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"size",attributes:{},unit:"px",property:"width"},display:{type:"STYLEOUTLET",bindingtype:"IFBINDING",name:"isVisible",truevalue:"",falsevalue:"none",attributes:{},unit:null,property:"display"}},attributes:{title:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"tooltip",attributes:{},attribute:"title"}}}},className:"cw-ui-spinner-view",__QUALIFIED_CLASS_NAME__:"SpinnerView"},size:Object(a.b)(32),color:"#000000",image:Object(a.b)({set:function(e){if("string"==typeof e){var t=new Image;return t.src=e,t}return e}}),tooltip:Object(a.b)(null),period:600,tickCount:12,tickReach:.54375,tickWidth:(12-90/255)/64,isVisible:Object(a.b)(!0),isAnimating:Object(a.b)({readOnly:!0,dependencies:["isVisible","isAttached"],get:Object.assign(function(){return this.isVisible&&this.isAttached},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])&&i.internalGet(this,t[1+n])}})}),drawStep:function(e){this._currentStep=e;var t=this._canvas,n=this._context,r=this.size*i.a.sharedInstance.devicePixelRatio;r!==t.width||r!==t.height?t.width=t.height=r:n.clearRect(0,0,r,r),this._backingSize=r,n.save(),n.translate(r/2,r/2),n.rotate(2*e*Math.PI/this.tickCount),this.image?this._drawImageContent():this._drawGeneratedContent(),n.restore()},drawTick:function(e,t,n){var i=this.tickReach*t/2,r=this.tickWidth*t/2;!function(e,t,n,i,r,a){a=Math.min(i/2,r/2,void 0===a?1/0:a),e.beginPath(),e.moveTo(t+a,n),e.arcTo(t+i,n,t+i,n+r,a),e.arcTo(t+i,n+r,t,n+r,a),e.arcTo(t,n+r,t,n,a),e.arcTo(t,n,t+i,n,a),e.closePath(),e.fill()}(e,-r/2,-t/2,r,i)},_tickOpacities:{12:[1,.90196,.76078,.65098,.54118,.43137,.38039,.32157,.25882,.21961,.2,.16863]},_animationFrameId:0,_backingSize:0,init:function(e){var t=arguments;this.__s._$28_$init.apply(this,t),this._canvas=this.element,this._context=this._canvas.getContext("2d")},dispose:function(){var e=arguments;cancelAnimationFrame(this._animationFrameId),this.__s._$2D7$dispose.apply(this,e)},_startOrStopAnimation:Object(o.h)("isAnimating",function(e){if(e){if(this._animStartTime)return;this._animStartTime=Date.now(),this.drawStep(0),this._tick()}else this._animStartTime=null,cancelAnimationFrame(this._animationFrameId),this._animationFrameId=null,this.isInitialized&&this.drawStep(0)}),_tick:function(){if(this.isAnimating){this._animationFrameId=Object(s.a)(this._tick.bind(this));var e=this.tickCount,t=this.period/e,n=((Date.now()-this._animStartTime)/t|0)%e;n!==this._currentStep&&this.drawStep(n)}},_drawImageContent:function(){var e=this.image,t=this._context,n=this._backingSize;t.drawImage(e,-n/2,-n/2,n,n)},_drawGeneratedContent:function(){var e=this._context,t=this._backingSize,n=this.tickCount;e.fillStyle=this.color;for(var i=0;i<n;i++)e.globalAlpha=this._opacityForTickOfCount(i,n),this.drawTick(e,t),e.rotate(-2*Math.PI/n);e.globalAlpha=1},_opacityForTickOfCount:function(e,t){var n=this._tickOpacities[t];if(n)return n[e];var i=2/t,r=e/(t-1),a=Math.pow(r,.6),o=.7*(.5-.5*Math.cos(a*Math.PI))+.3*a;return o*i+1*(1-o)},__superMap:{_$28_$init:"init",_$2D7$dispose:"dispose"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(892),r=n(869),a=n(863),o=n(98),s=n(78),c=n(390).a.extend({iframe:Object(o.b)({set:function(e,t){return this._previousIFrame=t,e},didChange:function(e){var t=this._previousIFrame,n=this._iframeDidLoad;if(t&&e!==t&&(Object(i.a)(t,"load",n),this._iframeDidLoad=null),e&&!this.outgoingWindow){var a=this._iframeDidLoad=function(){this._iframeIsLoaded(),Object(i.a)(e,"load",this._iframeDidLoad),this._iframeDidLoad=null}.bind(this);Object(r.a)(e,"load",a)}}}),outgoingWindow:Object(o.b)({dependencies:["iframe","_iframeIsLoaded"],readOnly:!0,get:function(){var e=this.getPath("iframe.contentWindow");return e?{actualOutgoingWindow:e,postMessage:function(e,t){var n=this.actualOutgoingWindow;if(n.postMessage)return n.postMessage(e,t);a.b.warn("ChildWindowChannel: postMessage of "+e+" to detached iframe at "+t+" was ignored")}}:null}}),_iframeDidLoad:null,_iframeIsLoaded:Object(s.i)(),_previousIFrame:null,staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildWindowChannel"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(391),r=n(89),a=r.b.extend(i.a,{changesClass:r.c,staticMembers:{__QUALIFIED_CLASS_NAME__:"StrongObservableArray"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(908),r=n(861),a=function(e,t){var n,a,o=t.delay||50,s=t.timeout||1e4,c=t.testString||"MMMMMMMIIIa%@!",l=t.testFontFamily||'"Comic Sans MS"',u=t.testFontSize||"300px",d=t.fail,h=t.success,p=t.complete,f=t.fontWeight;f=f?f+" ":"";var m=document.createElement("canvas").getContext("2d");m.font=""+f+u+" "+l;var g=m.measureText(c).width;a=Object(i.a)(function(){m.font=""+f+u+' "'+e+'", '+l,m.measureText(c).width!==g&&0!==g&&(clearInterval(a),clearTimeout(n),h&&h(),p&&p(!0))},o),n=Object(r.a)(function(){clearInterval(a),d&&d(),p&&p(!1)},s)}},function(e,t,n){"use strict";n(0),n(17),n.d(t,"a",function(){return C});var i=n(98),r=n(936),a=n(78),o=n(107),s=n(142),c=n(879),l=n(871),u=n(935),d=n(543),h=n(819),p=n(832),f=n(838),m=n(849),g=n(81),b=n(86),v=n(545),_=n(542),y=n(73),C=l.a.extend(u.a,d.a,{staticMembers:{createCollection:function(e){Object(h.b)("CollectionViewController#createCollection called on a class with no implementation.")},updateCollection:function(e,t){Object(h.b)("CollectionViewController#updateCollection called on a class with no implementation.")},__QUALIFIED_CLASS_NAME__:"CollectionViewController"},viewClass:_.a,init:function(e){var t=arguments,n=this.layoutMetrics,r=n,a=this.layoutDelegate.LayoutMetricsClass;Object(p.a)(n)?n=a.create(n):Object(f.a)(n)||(n=a.create()),r!==n&&(this.layoutMetrics=n),this.__s._$2RX$init.apply(this,t),n=this.layoutMetrics;var o=[],s=[],c=this._previousLayoutMetrics;for(var l in n.getMetadataByType(i.a))s.push(l),c[l]=n[l],o.push("layoutMetrics."+l);this._layoutMetricsKeys=s,o.push("_updateWhenContentsChange"),this._layoutMetricsObserver=this.observe({inputs:o,notifyOnCreate:!1,callback:this._updateWhenLayoutMetricsChange})},_layoutMetricsKeys:null,_previousLayoutMetrics:Object(g.d)({strong:!0,defaultValue:Object(b.c)(Object)}),_changedKeys:Object(g.d)({strong:!0,defaultValue:Object(b.c)(r.a)}),_layoutMetricsObserver:null,_updateWhenLayoutMetricsChange:function(){var e=this._changedKeys;e.clear();for(var t=this._layoutMetricsKeys,n=t.length,i=this._previousLayoutMetrics,r=this.layoutMetrics,a=0;a<n;a++){var o=t[a],s=r[o];s!==i[o]&&(e.add(o),i[o]=s)}0!==e.size&&this.update(y.a.create({layoutMetricsChanged:e}))},viewportWidth:Object(i.b)(0),viewportHeight:Object(i.b)(0),layoutMetrics:Object(i.b)({strong:!0}),layoutController:Object(i.b)({strong:!0,defaultValue:Object(b.c)(v.a),downstreamBindings:{collection:"(owner).collection",viewportWidth:"(owner).viewportWidth",viewportHeight:"(owner).viewportHeight",layoutDelegate:"(owner).layoutDelegate",presenter:"(owner).presenter",layoutMetrics:"(owner).layoutMetrics"}}),_updateWhenContentsChange:Object(a.g)("collection.contentsDidChange","collection.handleProvider.handlesDidUpdate",function(e){e&&this.update(y.a.create({itemsChanges:e.context}))}),_updateWhenCollectionChanges:Object(a.g)("collection",function(e){this.update(y.a.create({collectionChanged:!0}))}),layoutDelegate:Object(i.b)({strong:!0}),contentSize:Object(i.b)({strong:!0,dependencies:["collection","collection.contentsDidChangeUntracked","layoutController.spaceAroundViewport"],readOnly:!0,get:Object.assign(function(){var e=this.layoutController,t=this.collection,n=this.layoutDelegate;if(e.visibleCells.length>0){var i=this.getPath("layoutController.spaceAroundViewport"),r=this.viewportWidth+i.left+i.right,a=this.viewportHeight+i.top+i.bottom;return o.a.create(r,a)}if(t&&t.length>0){var s=n.setUpFirstCell(e,t).retain(this,"CollectionViewController#contentSize: cell"),c=s.bottom+n.spaceBelowCell(e,s),l=o.a.create(s.width,c);return s.release(this,"CollectionViewController#contentSize: cell"),l}return o.a.create(0,0)},{__CW__getter:function(e,t,n,i){var r=this.layoutController,a=this.collection,s=this.layoutDelegate;if(r.visibleCells.length>0){var c=i.internalGetPath(this,t[2+n]),l=this.viewportWidth+c.left+c.right,u=this.viewportHeight+c.top+c.bottom;return o.a.create(l,u)}if(a&&a.length>0){var d=s.setUpFirstCell(r,a).retain(this,"CollectionViewController#contentSize: cell"),h=d.bottom+s.spaceBelowCell(r,d),p=o.a.create(d.width,h);return d.release(this,"CollectionViewController#contentSize: cell"),p}return o.a.create(0,0)}})}),presenter:Object(i.b)({strong:!0,downstreamBindings:{views:"(owner).view.itemViews",layoutMetrics:"(owner).layoutMetrics"}}),layoutContext:c.a.sharedInstance.window,_measureViewport:Object(a.h)({inputs:["isAttached","view.isAttached","layoutContext.width","layoutContext.height"],callback:function(e,t){e&&t?this.measureViewport():this.update(y.a.create({everythingChanged:!0}))}}),measureViewport:function(){if(this.isAttached){var e=this.view;if(e){var t=e.element,n=1,i=1;t&&(n=t.offsetWidth,i=t.offsetHeight);var r=this.viewportWidth,a=this.viewportHeight;r===n&&a===i||(this.beginBatchSet().set("viewportWidth",n).set("viewportHeight",i).end(),n>0&&i>0&&(this._changedWhileHidden?(this.update(y.a.create({everythingChanged:!0})),this._changedWhileHidden=!1):this.update(y.a.create({sizeChangedBy:o.a.create({width:n-r,height:i-a})})),this.updateScrollBounds()))}}},collection:Object(i.b)({strong:!0}),update:function(e){if(this.isViewLoaded){var t=this.viewportWidth,n=this.viewportHeight;if(0!==n&&0!==t){var i=this.view;i.height=n,i.width=t,this.layoutController.update(e)}else this._changedWhileHidden=!0}},_changedWhileHidden:!1,_update:function(){Object(m.b)(this.update,arguments,this)},updateScrollBounds:Object(a.h)("layoutController.spaceAroundViewport.left","layoutController.spaceAroundViewport.top","layoutController.spaceAroundViewport.right","layoutController.spaceAroundViewport.bottom",function(e,t,n,i){if(void 0!==e&&void 0!==n&&void 0!==t&&void 0!==i){var r=this.viewportHeight,a=-e,o=n+this.viewportWidth,s=-t,c=i+r;this.view.beginBatchSet().set("scrollMinX",a).set("scrollMaxX",o).set("scrollMinY",s).set("scrollMaxY",c).end()}}),scrollBy:function(e,t){var n=y.a.create();n.movedBy=s.a.create(e,t),this.update(n)},didScroll:function(e,t){this.scrollBy(-e,-t)},showItem:function(e,t,n){this.layoutController.showItem(e,t,n)},scrollToItem:function(e){this.layoutController.scrollToItem(e)},scrollToHandle:function(e){this.layoutController.scrollToHandle(e)},__superMap:{_$2RX$init:"init"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(78),r=n(98),a=n(106),o=n(86),s={mixinDependencies:[i.b],layoutContext:Object(r.b)({strong:!0,type:a.b,defaultValue:Object(o.c)(a.a)})}},function(e,t,n){"use strict";n.d(t,"a",function(){return p});var i=n(818),r=n(855),a=n(829),o=n(86),s=n(81),c=n(823),l=n(841),u=n(78),d=n(544),h=n(98),p=i.a.extend(r.a,a.a,u.b,{init:function(){var e=arguments;this.__s._$Hb$init.apply(this,e),this._previousSerializer=this.serializer},_map:Object(o.c)(Object),length:Object(s.d)({readOnly:!0,defaultValue:0}),size:Object(s.d)({readOnly:!0,get:function(){return this.length}}),encodedAdd:function(e){var t=Object(c.b)(e),n=this._map;return!n.hasOwnProperty(t)&&(n[t]=e,this._length++,!0)},encodedRemove:function(e){var t=Object(c.b)(e),n=this._map;return!!n.hasOwnProperty(t)&&(delete n[t],this._length--,!0)},clear:function(){var e=this._map;for(var t in e)e.hasOwnProperty(t)&&delete e[t];this._length=0},has:function(){return this.contains.apply(this,arguments)},encodedContains:function(e){var t=Object(c.b)(e);return this._map.hasOwnProperty(t)},iteratorClass:Object(s.d)({readOnly:!0,defaultValue:d.a}),encodedToArray:function(){var e=this._map;return Object.keys(e).map(function(t){return e[t]})},clone:function(){return this.constructor.create({serializer:this.serializer,_map:Object(l.a)(this._map),length:this.length})},serializer:Object(h.b)(),_previousSerializer:null,_reencodeItemsWhenSerializerChanges:Object(u.h)({inputs:["serializer"],notifyOnCreate:!1,callback:function(e){var t=this._previousSerializer;if(t!==e){var n=this.encodedToArray();t&&(n=n.map(function(e){return t.decode(e)})),this.clear();var i=n,r=Array.isArray(i),a=0;for(i=r?i:i[Symbol.iterator]();;){var o;if(r){if(a>=i.length)break;o=i[a++]}else{if((a=i.next()).done)break;o=a.value}var s=o;this.add(s)}}this._previousSerializer=e}}),__superMap:{_$Hb$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CoreSet"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(81),r=n(392).a.extend({value:Object(i.d)({get:function(){return this.key.value}}),key:Object(i.d)({strong:!0}),handle:Object(i.d)({get:function(){return this.key}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ItemCell"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return a});var i=n(548),r=n(82),a=i.a.extend({itemViewDidMove:function(e,t){var n=e.element.style,i=t.width,a=t.height,o=t.x,s=t.y;Object(r.d)(n,o,s),n.width=i+"px",n.height=a+"px"},itemViewDidExit:function(e){var t=e.element.style;Object(r.d)(t,-1e4,-1e4)},staticMembers:{__QUALIFIED_CLASS_NAME__:"AbsolutelyPositionedPresenter"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(92).a.extend({topForCell:function(e,t){var n=e.layoutMetrics;return t.handle.position*(n.rowHeight+n.rowSpacing)+n.topPadding+n.topInset-n.hideableTopHeight},verticalScan:1024,horizontalScan:1024,estimateCellAtDistance:function(e,t,n,i,r){var a=e.layoutMetrics,o=n.handle,s=o.position,c=Math.round(r/(a.rowHeight+a.rowSpacing))+s;c<0&&(c=0);var l=t.length;c>=l&&(c=l-1),o=o.at(c);var u=this.cellForHandle(o).retain(),d=this.topForCell(e,n)-n.y;return this.layOutCellInDirection(e,u,1,this.topForCell(e,u)-d,1,this.leftForCell(e,u)),u.autorelease()},_findCellForItem:function(e,t,n,i){var r=n.find(function(e){return e.handle.value===i});if(r)return r.retain();var a=t.indexOf(i);if(-1===a)return null;var o=t.startHandle.at(a);return this.cellForHandle(o).retain()},spaceBelowCell:function(e,t){var n=e.layoutMetrics,i=t.handle;return(i.maximumPosition-i.position)*(n.rowHeight+n.rowSpacing)+n.bottomPadding-n.hideableBottomHeight},staticMembers:{__QUALIFIED_CLASS_NAME__:"IndexedListLayoutDelegate"}})},function(e,t,n){"use strict";n(0),n(12),n(17),n(18),n.d(t,"a",function(){return h});var i=n(292),r=n(82),a=n(104),o=n(86),s=n(98),c=n(938),l=n(934),u=n(939),d=n(941),h=l.a.extend({viewClass:Object(a.b)({additionalClassNames:Object(a.b)(["cw-list-view"]),mixinDependencies:[i.a]}),view:Object(s.b)({downstreamBindings:{topInset:"(owner).layoutMetrics.topInset"}}),layoutDelegate:Object(o.c)(u.a),collection:Object(s.b)(),presenter:Object(s.b)({defaultValue:Object(o.c)(c.a.extend({itemViewDidMove:function(e,t){var n=e.element.style,i=t.width,a=t.height,o=t.x,s=t.y;Object(r.d)(n,o,s),n.width=i===this.owner.viewportWidth?"100%":i+"px",n.height=a+"px"}})),downstreamBindings:{itemViewClass:"(owner).itemViewClass"}}),itemViewClass:Object(s.b)({readOnly:!0,defaultValue:d.a}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ListViewController"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return a}),n(18);var i=n(877),r=n(98),a=i.a.extend({additionalClassNames:["cw-list-item-view"],content:Object(r.b)(),layout:Object(r.b)(),layoutMetrics:Object(r.b)(),staticMembers:{className:"cw-ui-collections-list-item-view",__QUALIFIED_CLASS_NAME__:"ListItemView"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(873),r=n(224),a=n(903),o=n(98),s={mixinDependencies:[i.a,r.b],staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isSelected",truevalue:"cw-selected",falsevalue:"cw-not-selected",attributes:{}}],attributes:{"aria-selected":{type:"ATTRIBUTEOUTLET",bindingtype:"IFBINDING",name:"isSelected",truevalue:"true",attributes:{},attribute:"aria-selected"}}}}},isFocusable:!0,tabIndex:-1,scrollView:Object(o.b)({get:function(){for(var e=this;null!==e&&!e.instanceOf(a.a);)e=e.parent;return e}}),gestureRecognizerShouldReceive:function(e){var t=arguments,n=this.scrollView;return(!n||!n.hasMomentum)&&this.__s._$QB$gestureRecognizerShouldReceive.apply(this,t)},__superMap:{_$QB$gestureRecognizerShouldReceive:"gestureRecognizerShouldReceive"}}},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n(0),n(21),n(20),n.d(t,"a",function(){return s}),n(35);var i=n(877),r=n(86),a=n(98),o=n(143),s=i.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"popoverView"}],classes:["cw-modal"]}},className:"cw-ui-modal-arrow-popover-view",__QUALIFIED_CLASS_NAME__:"ModalArrowPopoverView"},layout:Object(a.b)(),anchorLayout:Object(a.b)(),arrowLength:Object(a.b)(),arrowWidth:Object(a.b)(),arrowAlignment:Object(a.b)(),verticalAlignment:Object(a.b)(),horizontalAlignment:Object(a.b)(),contentView:Object(a.b)(),popoverView:Object(a.b)({defaultValue:Object(r.c)(o.b),type:o.b,downstreamBindings:{layout:"(owner).layout",anchorLayout:"(owner).anchorLayout",arrowLength:"(owner).arrowLength",arrowWidth:"(owner).arrowWidth",contentView:"(owner).contentView",arrowAlignment:"(owner).arrowAlignment",verticalAlignment:"(owner).verticalAlignment",horizontalAlignment:"(owner).horizontalAlignment"}}),pointerDown:function(e){var t=e.targetView.element;this.popoverView.element.contains(t)?this.sendEvent("modalContentWasClicked",this):this.sendEvent("modalBackgroundWasClicked",this)}})},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return i});var i=n(877).a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"value",attributes:{}}],classes:["cw-label-view"]}},className:"cw-ui-label-view",__QUALIFIED_CLASS_NAME__:"LabelView"}})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";n.d(t,"a",function(){return r}),n.d(t,"b",function(){return a});var i=[[4352,4607],[11904,12031],[12032,12255],[12288,12351],[12352,12447],[12448,12543],[12544,12591],[12592,12687],[12688,12703],[12704,12735],[12800,13055],[13056,13311],[13312,19893],[19968,40959],[40960,42127],[42128,42191],[44032,55203],[63744,64255],[65072,65103]],r=function(e){var t=i,n=void 0;if(!e)return!1;for(var r=0,a=t.length;r<a;++r)if(e>=(n=t[r])[0]&&e<=n[1])return!0;return!1},a=function(e){if(0===(e=e.trim()).length)return!1;for(var t=0,n=e.length-1;t<=n;)if(!r(e.charCodeAt(t++))||!r(e.charCodeAt(n--)))return!1;return!0}},function(e,t){e.exports='<svg viewBox="0 0 18 24" xmlns="http://www.w3.org/2000/svg">\n    <path stroke="none" d="M16.33 14.1c-.93-.87-1.41-1.95-1.42-3.26-.01-1.68.75-2.99 2.29-3.92-.86-1.23-2.16-1.91-3.88-2.04-.64-.05-1.41.08-2.33.41-.97.36-1.55.54-1.72.54-.23 0-.74-.15-1.55-.45-.81-.3-1.45-.45-1.95-.45-.9.01-1.75.25-2.52.71-.78.46-1.4 1.09-1.86 1.89C.8 8.5.5 9.69.5 11.06c0 1.2.22 2.44.66 3.72.41 1.18.93 2.22 1.57 3.12.59.84 1.09 1.43 1.48 1.78.62.58 1.24.85 1.86.83.41-.01.95-.15 1.61-.42.66-.27 1.28-.4 1.86-.4.55 0 1.16.13 1.81.4.66.27 1.22.4 1.69.4.65-.01 1.26-.28 1.82-.8.37-.32.84-.89 1.42-1.71.628-.9 1.12-1.887 1.46-2.93-.51-.24-.98-.55-1.41-.95zM12.32 3.28c.75-.89 1.12-1.84 1.12-2.87 0-.14-.01-.27-.02-.41-.52.03-1.07.18-1.66.47-.58.29-1.07.65-1.45 1.09-.76.86-1.19 1.91-1.19 2.9 0 .14.01.27.02.39 1.19.09 2.28-.52 3.18-1.57z" />\n</svg>\n'},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__118.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__117.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__116.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__115.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__114.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__113.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__112.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__110.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__109.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__108.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__111.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__107.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__106.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__105.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__104.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__103.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__102.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__101.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__100.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__99.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__98.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__97.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__96.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__95.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__94.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__93.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__92.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__91.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__90.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__89.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__88.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__87.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__86.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__85.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__84.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__83.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__82.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__81.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__80.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__79.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__78.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__77.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__76.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__75.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__74.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__73.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__72.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__71.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__70.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__69.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__68.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__67.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__66.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__65.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__64.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__63.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__62.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__61.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__60.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__59.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__58.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__57.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__56.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__55.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__54.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__53.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__52.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__51.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__50.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__49.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__48.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__47.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__46.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__45.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__44.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__43.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__42.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__41.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__40.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__39.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__38.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__37.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__36.png"},function(e,t){e.exports="/system/cloudos2/1918Hotfix2/es-mx/r$__139.png"},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="44" viewBox="0 0 16 44"><path d="M8.02 16.23c-.73 0-1.86-.83-3.05-.8-1.57.02-3.01.91-3.82 2.32-1.63 2.83-.42 7.01 1.17 9.31.78 1.12 1.7 2.38 2.92 2.34 1.17-.05 1.61-.76 3.03-.76 1.41 0 1.81.76 3.05.73 1.26-.02 2.06-1.14 2.83-2.27.89-1.3 1.26-2.56 1.28-2.63-.03-.01-2.45-.94-2.48-3.74-.02-2.34 1.91-3.46 2-3.51-1.1-1.61-2.79-1.79-3.38-1.83-1.54-.12-2.83.84-3.55.84zm2.6-2.36c.65-.78 1.08-1.87.96-2.95-.93.04-2.05.62-2.72 1.4-.6.69-1.12 1.8-.98 2.86 1.03.08 2.09-.53 2.74-1.31"/></svg>'},,function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=function(){function e(t,n,i,r){if(function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),!t)throw new Error("[ApplicationCrashInfo] No application identifier specified");if(!n)throw new Error("[ApplicationCrashInfo] No localized application name specified");if(!i)throw new Error("[ApplicationCrashInfo] No radar component id specified");if(!r)throw new Error("[ApplicationCrashInfo] No build info specified");this._applicationIdentifier=t,this._localizedApplicationName=n,this._radarComponentId=i,this._buildInfo=r}return i(e,[{key:"applicationIdentifier",get:function(){return this._applicationIdentifier}},{key:"localizedApplicationName",get:function(){return this._localizedApplicationName}},{key:"radarComponentId",get:function(){return this._radarComponentId}},{key:"buildInfo",get:function(){return this._buildInfo}}]),e}()},function(e,t,n){"use strict";n(1),n(0),n(14),n(12),n(5),n(8),n(2),n(24),n(25),n(16),n.d(t,"a",function(){return o});var i=n(427),r=n(279),a=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),o=function(){function e(t){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this._hostingApplicationCrashInfo=t}return e.prototype.exceptionHandler=function(e){var t=Object(r.a)(e);t.type="UNHANDLED_EXCEPTION",i.a.showCrashReporter(t,this.hostingApplicationCrashInfo,void 0,this.isAppleInternal,!0)},a(e,[{key:"hostingApplicationCrashInfo",get:function(){return this._hostingApplicationCrashInfo}},{key:"isExceptionHandlingEnabled",get:function(){return!0}},{key:"isExceptionHandlingFatal",get:function(){return!1}},{key:"isAppleInternal",get:function(){return this._isAppleInternal},set:function(e){this._isAppleInternal=e}}]),e}()},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return u}),n.d(t,"b",function(){return d});var i=n(1043),r=n(1044),a=n(1045),o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},s=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),c=void 0,l=667,u=function(){function t(n,s){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this),s||(s=e),n||(n=s.navigator.userAgent);var c=function(e,t){if("string"!=typeof e)throw new TypeError("A user agent string is required");if("object"!==(void 0===t?"undefined":o(t)))throw new TypeError("A browser window instance is required");var n=void 0;return/ipad/i.test(e)?n=i.a.IOS:/ipod/i.test(e)?n=i.a.IOS:/iphone/i.test(e)?n=i.a.IOS:/android/i.test(e)?n=i.a.ANDROID:/mac/i.test(e)&&!/like mac/i.test(e)?n="ontouchstart"in t||"createTouch"in t.document?i.a.IOS:i.a.MAC:/windows/i.test(e)?n=i.a.WINDOWS:/\bcros\b/i.test(e)?n=i.a.CHROMEOS:/\blinux\b/i.test(e)&&(n=i.a.LINUX),n}(n,s),u=function(e){return e===i.a.IOS||e===i.a.ANDROID?a.a.TOUCH:a.a.MOUSE}(c),d=function(e,t){if(e!==a.a.MOUSE&&e!==a.a.TOUCH)throw new TypeError("A valid interaction mode is required");if("object"!==(void 0===t?"undefined":o(t)))throw new TypeError("A browser window instance is required");var n=void 0;e===a.a.MOUSE?n=r.a.DESKTOP:n=Math.min(t.screen.width,t.screen.height)>l?r.a.TABLET:r.a.PHONE;return n}(u,s);this._current=c,this._primaryInteractionMode=u,this._deviceType=d}return s(t,[{key:"current",get:function(){return this._current}},{key:"primaryInteractionMode",get:function(){return this._primaryInteractionMode}},{key:"deviceType",get:function(){return this._deviceType}},{key:"isiOS",get:function(){return this._current===i.a.IOS}},{key:"isiPad",get:function(){return this._current===i.a.IOS&&this._deviceType===r.a.TABLET}},{key:"isiPhoneOriPod",get:function(){return this._current===i.a.IOS&&this._deviceType===r.a.PHONE}},{key:"isAndroid",get:function(){return this._current===i.a.ANDROID}},{key:"isWindows",get:function(){return this._current===i.a.WINDOWS}},{key:"isMac",get:function(){return this._current===i.a.MAC}}],[{key:"sharedInstance",get:function(){return c||(c=new t),c}}]),t}();function d(){var t=e.document,n=t.head,i="width=device-width, initial-scale=1, viewport-fit=cover",r=e.document.querySelector('meta[name="viewport"]');r?r.setAttribute("content",i):((r=t.createElement("meta")).setAttribute("name","viewport"),r.setAttribute("content",i),n.appendChild(r))}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({IOS:"IOS",ANDROID:"ANDROID",WINDOWS:"WINDOWS",MAC:"MAC",LINUX:"LINUX",CHROMEOS:"CHROMEOS"})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({PHONE:"PHONE",TABLET:"TABLET",DESKTOP:"DESKTOP"})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({MOUSE:"MOUSE",TOUCH:"TOUCH"})},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(818),r=n(81),a=n(859),o=n(852),s=i.a.extend({staticMembers:{sharedInstance:r.d({type:s,readOnly:!0,get:function(){var e=this._statSessionInstance;return e||(e=this._statSessionInstance=s.create()),e}}),_statSessionInstance:r.d({strong:!0,type:s}),__QUALIFIED_CLASS_NAME__:"TelemetrySession"},identifier:r.d({type:String,readOnly:!0,get:function(){return this._sessionIdentifier}}),init:function(){this.__s._$Rv$init.call(this),this._setSessionIdentifier(),this._startTimer(48e4)},_startTimer:function(e){(this._timer=a.a.create({delay:e,target:this,action:"_setSessionIdentifier",timesToFire:1/0})).start()},_timer:r.d({type:a.a,strong:!0}),_sessionIdentifier:r.d({type:String}),_setSessionIdentifier:function(){this._sessionIdentifier=o.a()},__superMap:{_$Rv$init:"init"}})},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return r}),n.d(t,"c",function(){return a}),n.d(t,"a",function(){return s}),n.d(t,"d",function(){return c});var i=n(82);function r(){e.scrollTo(0,0)}function a(t){t&&r();var n=e.document.body.classList;t?n.add("disable-scroll"):n.remove("disable-scroll")}n(16);var o="fix-scrolled-view";function s(e){var t=e.element,n=t.getBoundingClientRect().y;i.c(e.element,{top:n+"px"}),t.classList.add(o)}function c(e){var t=e.element;i.c(e.element,{top:""}),t.classList.remove(o)}}).call(this,n(31))},function(e,t,n){"use strict";(function(e){n(1),n(0),n(2),n.d(t,"a",function(){return _});var i=n(81),r=n(98),a=n(87),o=n(100),s=n(127),c=n(1065),l=n(1058),u=n(1068),d=n(1131),h=n(1066),p=n(400),f=n(1069),m=n(1070),g=n(1067),b=n(1045),v=n(568),_=d.a.extend({mixinDependencies:[c.a],staticMembers:{main:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t={defaultApplicationClass:_,defaultDelegateClass:h.a,defaultDelegateClassProtocol:p.a};Object(v.a)(e,t)},__QUALIFIED_CLASS_NAME__:"UIApplication"},disableTouchScrolling:i.d({type:Boolean,defaultValue:!1}),uiState:r.b({readOnly:!0,binding:a.c("_uiState")}),delegate:i.d({type:p.a}),run:function(){var e=this,t=arguments;return this.__s._$2Sh$run.apply(this,t).then(function(){e.parentProcessReference||e.invokeLater(function(){return e._transitionRootApplicationToActiveForeground()})})},configureApplication:function(){var e=this,t=arguments;return this.__s._$2ih$configureApplication.apply(this,t).then(function(){return e._configureUIForInteractionMode()})},stop:function(){var e=arguments;return this._uiState=g.a.NONE,this.__s._$2sv$stop.apply(this,e)},didBecomeActive:function(){Object(l.b)(this.processState,l.a.RUNNING),Object(g.b)(this.uiState,g.a.INACTIVE_FOREGROUND),this._uiState=g.a.ACTIVE_FOREGROUND,this.delegate.applicationDidBecomeActive(this)},willResignActive:function(){Object(l.b)(this.processState,l.a.RUNNING),Object(g.b)(this.uiState,g.a.ACTIVE_FOREGROUND),this.delegate.applicationWillResignActive(this),this._uiState=g.a.INACTIVE_FOREGROUND},willEnterForeground:function(){var e=this;Object(l.b)(this.processState,l.a.RUNNING),Object(g.b)(this.uiState,g.a.NONE,g.a.BACKGROUND),this.invokeLater(function(){return o.a.resolve().then(function(){return e.delegate.applicationWillEnterForeground(e)}).then(function(){return e._uiState=g.a.INACTIVE_FOREGROUND}).then(function(){return e._notifyParentThatProcessIsReadyToBeDisplayedIfNeeded()})})},didEnterBackground:function(){Object(l.b)(this.processState,l.a.RUNNING),Object(g.b)(this.uiState,g.a.NONE,g.a.INACTIVE_FOREGROUND),this._uiState=g.a.BACKGROUND,this.delegate.applicationDidEnterBackground(this)},didReceiveSyntheticBrowserEvent:function(e){},_uiState:r.b({type:g.a,defaultValue:g.a.NONE}),_createParentProcessReference:function(e){var t=arguments,n=this.__s._$4Io$_createParentProcessReference.apply(this,t);return n.createMessagingChannel(c.a,this,u.a),n},_configureUIForInteractionMode:function(){var t=this.primaryInteractionMode;t===b.a.TOUCH?this._configureUIForTouchInteractionMode():this._configureUIForMouseInteractionMode(),s.b("data-primary-interaction-mode",t.toLowerCase(),e.document.documentElement)},_configureUIForTouchInteractionMode:function(){var e=this.disableTouchScrolling;this.Initializers.push(f.a),e&&this.Initializers.push(m.a)},_configureUIForMouseInteractionMode:function(){},_transitionRootApplicationToActiveForeground:function(){var e=this,t=this.listen("uiState",function(){e.uiState===g.a.INACTIVE_FOREGROUND&&(t.disconnect(),e.invokeLater(function(){return e.didBecomeActive()}))});this.willEnterForeground()},_notifyParentThatProcessIsReadyToBeDisplayedIfNeeded:function(){var e=this;Object(l.b)(this.processState,l.a.RUNNING),Object(g.b)(this.uiState,g.a.INACTIVE_FOREGROUND);var t=this.parentProcessReference;if(t&&t.isConnected)return t.remoteProxy.isReadyToBeDisplayed().then(function(t){return e.terminateIfMessagingResponseError(t)})},__superMap:{_$2Sh$run:"run",_$2ih$configureApplication:"configureApplication",_$2sv$stop:"stop",_$4Io$_createParentProcessReference:"_createParentProcessReference"}})}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingToChildProtocol",version:.1,beginLaunching:i.a.define(),hostingStateDidChange:i.a.define(),openItems:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(94),r={mixinDependencies:[i.a],name:i.b.define(),version:i.b.define()}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return u});var i=n(818),r=n(81),a=n(279),o=n(828),s=n(1052),c=n(1054),l=n(1053),u=i.a.extend({status:r.d({type:s.a,defaultValue:s.a.NONE}),isOK:r.d({readOnly:!0,get:function(){return this.status===s.a.OK}}),isDisconnected:r.d({type:Boolean,readOnly:!0,get:function(){return this.status===s.a.DISCONNECTED}}),isCanceled:r.d({type:Boolean,readOnly:!0,get:function(){return this.status===s.a.CANCELED}}),isTimeout:r.d({type:Boolean,readOnly:!0,get:function(){return this.status===s.a.TIMEOUT}}),data:r.d(),error:r.d(),staticMembers:{createWithOptionalData:function(e){return u.create({status:s.a.OK,data:e})},createFromError:function(t){var n=a.a(t);return n?(n.buildInfo=e.__CW_BUILD_INFO,o.a(t,Error)||(n.message=JSON.stringify(t),n.stack=(new Error).stack)):n={message:"No error specified",stack:(new Error).stack},u.create({status:function(e){var t=s.a.ERROR;return o.a(e,Error)?e.isMessagingError&&"MessagingArgumentError"===e.name&&(t=s.a.BAD_REQUEST):t=s.a.UNDEFINED_ERROR_TYPE,t}(t),error:n})},deserialize:function(e){if(!e)throw new l.a("[MessagingResponse] no serialized data to deserialize");var t=u.create();t.status=s.a.getItemForValue(e.status);var n=e.data;n&&(t.data=n);var i=e.error;return i&&(t.error=i),d(t),t},__QUALIFIED_CLASS_NAME__:"MessagingResponse"},serialize:function(){d(this);var e={status:this.status.value},t=this.data;t&&(e.data=t);var n=this.error;return n&&(e.error=n),e}});function d(e){var t=e.status,n=e.error;if(t===s.a.NONE)throw new c.a("[MessagingResponse] status was never set");if(n&&(t===s.a.OK||t===s.a.NONE))throw new c.a("[MessagingResponse] error can not be set if the status is OK or NONE")}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(95),r=Object(i.b)("MessagingResponseStatus",{NONE:"NONE",OK:"OK",DISCONNECTED:"DISCONNECTED",CANCELED:"CANCELED",BAD_REQUEST:"BAD_REQUEST",TIMEOUT:"TIMEOUT",ERROR:"ERROR",UNDEFINED_ERROR_TYPE:"UNDEFINED_ERROR_TYPE"})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){function t(n){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return i.name="MessagingArgumentError",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n(1054).a)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=function(e){function t(n){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return i.name="MessagingError",i.isMessagingError=!0,i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error)},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({USER_INITIATED:"USER_INITIATED",UNCAUGHT_EXCEPTION:"UNCAUGHT_EXCEPTION",LAUNCH_DEPENDENCY_UNAVAILABLE:"LAUNCH_DEPENDENCY_UNAVAILABLE",CANNOT_LOAD_STARTUP_DATA:"CANNOT_LOAD_STARTUP_DATA",TIMEOUT:"TIMEOUT",DISCONNECTED:"DISCONNECTED"})},function(e,t,n){"use strict";n.d(t,"a",function(){return l}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return d});var i=n(879),r=n(832),a=n(858),o="(unknown function)",s="(anonymous function)",c=i.a.sharedInstance;function l(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=r.a(e)?a.a(e):{},i=new Error;return n.calleeStack=u(i.stack,t),n}function u(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,n=void 0;if(e){var i=t;(c.isChrome||c.isEdge||c.isIE)&&i++;var r=e.split("\n");i<r.length&&(n=r.splice(i).join("\n"))}return n}function d(e,t,n){for(var i=new Array,r=t;r<n;r++)i.push(h(e.stack,r));return i}function h(e){var t,n=u(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:1);if(n){var i=n.split("\n")[0].trim();if(c.isChrome)return t=i.match(/^at\s+(.+)\s+\(/),Array.isArray(t)&&t[1]||s;if(c.isEdge||c.isIE)return function(e){var t=i.match(/^at\s+(.+)\s+\(/);return Array.isArray(t)&&t[1]||o}();if(c.isSafari)return function(e){var t=i.match(/^(.+)@/);return Array.isArray(t)&&t[1]||s}();if(c.isFirefox)return function(e){var t=i.match(/^(.+)@/);return Array.isArray(t)&&t[1]||s}()}return o}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return u});var i=n(831),r=n(819),a=n(837),o=n(905),s=n(861),c=n(870),l=n(862),u={invokeLater:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;i.a(e)||r.b("A method to invoke Function must be specified"),(!a.a(t)||t<0)&&r.b("millisToWaitToInvoke must be a number >= 0"),n&&o.a(n)&&r.b("When provided, optional methodToInvokeIdentifier must be a String with a length > 0");var u=this._scheduledInvokeLaterMethods;u||(u=this._scheduledInvokeLaterMethods=new Map);var d=n||e.toString();u.has(d)&&r.b("An invokeLater has already been scheduled for "+d);var h=s.a(function(){var t=void 0;u.delete(d),t=n?e(n):e(),c.a(t)&&t.catch(l.a(function(e){throw e}))},t);u.set(d,h)},isInvokeLaterScheduled:function(e){var t=this._getScheduledInvokeLaterMethodKeyWithValidation(e);return this._scheduledInvokeLaterMethods.has(t)},cancelInvokeLater:function(t){var n=this._getScheduledInvokeLaterMethodKeyWithValidation(t),i=this._scheduledInvokeLaterMethods,o=i.get(n);a.a(o)||r.b("No invokeLater scheduled matching the methodToInvokeOrMethodToInvokeIdentifier"),e.clearTimeout(o),i.delete(n)},cancelInvokeLaterMethods:function(){var t=this._scheduledInvokeLaterMethods;t&&(t.forEach(function(t){return e.clearTimeout(t)}),t.clear(),this._scheduledInvokeLaterMethods=void 0)},_getScheduledInvokeLaterMethodKeyWithValidation:function(e){var t=void 0;return this._scheduledInvokeLaterMethods||r.b("Invalid state scheduledInvokeLaterMethods is undefined"),i.a(e)?t=e.toString():o.a(e)?r.b("methodToInvokeOrMethodToInvokeIdentifier must be a non-empty String or a Function"):t=e,t},_scheduledInvokeLaterMethods:void 0}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s});var i=n(95),r=n(324),a=i.b("ProcessState",{NONE:"NONE",LOADING:"LOADING",LOADED:"LOADED",RUNNING:"RUNNING",UNLOADING:"UNLOADING",UNLOADED:"UNLOADED",TERMINATED:"TERMINATED"});function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.b.apply(void 0,[a,e].concat(n))}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.a.apply(void 0,[a,e].concat(n))}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return I});var i=n(818),r=n(81),a=n(906),o=n(819),s=n(100),c=n(833),l=n(389),u=n(86),d=n(822),h=n(861),p=n(831),f=n(296),m=n(1053),g=n(1060),b=n(1051),v=n(1052),_=n(566),y=n(1061),C=n(565),I=i.a.extend({channel:r.d({type:a.a}),connectionTimeout:r.d({type:Number,defaultValue:5e3}),init:function(e,t){if(this.__s._$2fe$init.call(this),!Object(g.b)(e,a.a))throw new m.a("MessagingChannel - A CW.ChannelProtocol is required");this.channel=e,t&&(this.connectionTimeout=t)},setListener:function(e,t){if(!Object(g.b)(t,e))throw new m.a("MessagingChannel: The specified protocol class target does not implement specified protocol");this._listenerProtocolMetadata=f.a.create(e,t)},setConnection:function(e,t){this._connectionProtocolMetadata=f.a.create(e,t)},start:function(){var e=this._listenerProtocolMetadata,t=this._connectionProtocolMetadata;if(!e&&!t)throw new m.a("Messaging channel has not been configured");var n=this.channel,i=this.connectionTimeout;e&&this._configureListener(n,e),t&&this._configureConnection(n,i,t)},stop:function(){var e=this._connection,t=this._connectionProtocolMetadata,n=this._connectionPendingPromises,i=this._listener,r=this._listenerProtocolMetadata;if(i&&(r||o.b("MessagingChannel listener exists without a corresponding protocol metadata"),this._unregisterListenerMethods(i,r),this._listener=void 0,this._listenerProtocolMetadata=void 0),e&&(t||o.b("MessagingChannel connection exists without a corresponding protocol metadata"),this._connection=void 0,this._connectionProtocolMetadata=void 0,this._connectionPendingPromises=void 0,n.size)){var a=Array.from(n),c=b.a.create({status:v.a.DISCONNECTED});return a.every(function(e){return e.resolve(c)}),y.a.every(a).then(function(e){return e&&e.length||0})}return s.a.resolve(0)},_constructRPCMethodName:function(e,t){if(!e)throw new m.a("MessagingUtils - no class name specified");if(!c.a(e))throw new m.a("MessagingUtils - class name specified is not a string");if(!t)throw new m.a("MessagingUtils - no method name specified");if(!c.a(t))throw new m.a("MessagingUtils - method name specified is not a string");return e+"-"+t},_createJsonRpcListener:function(e){if(!e)throw new m.a("MessagingChannel: _createJsonRpcListener - A CW.ChannelProtocol is required");return C.a.create({channel:e})},_createJsonRpcCaller:function(e){if(!e)throw new m.a("MessagingChannel: _createJsonRpcCaller - A CW.ChannelProtocol is required");return l.a.create({channel:e})},_listenerProtocolMetadata:r.d({type:f.a}),_listener:r.d({type:C.a,strong:!0}),_connectionProtocolMetadata:r.d({type:f.a}),_connection:r.d({type:l.a,strong:!0}),_connectionPendingPromises:u.c(Set),_configureListener:function(e,t){this._listener=this._setupJsonRpcListener(e,t)},_configureConnection:function(e,t,n){this._connection=this._setupJsonRpcCaller(e,t,n)},_setupJsonRpcCaller:function(t,n,i){var r=this,a=this._connectionPendingPromises,c=i.protocolName,l=i.protocolMethodNames,u=i.protocolTarget,p=d.a(u),f=this._connection=this._createJsonRpcCaller(t),m=function(t){var i=r._constructRPCMethodName(c,t);u[t]=function(){for(var l=arguments.length,u=Array(l),d=0;d<l;d++)u[d]=arguments[d];r._connection||o.b("["+p+" => OUTBOUND] MesssgingChannel has no connection --\x3e '"+c+"."+t+"'");var m=s.a.create();a.add(m),f.callRemoteProcedure.apply(f,[i].concat(u)).then(function(e){m.resolve(b.a.deserialize(e))}).catch(function(e){m.resolve(b.a.createFromError(e))});var g=h.a(function(){m.resolve(b.a.create({status:v.a.TIMEOUT}))},n);return m.finally(function(){e.clearTimeout(g),a.delete(m)}),m}},g=l,_=Array.isArray(g),y=0;for(g=_?g:g[Symbol.iterator]();;){var C;if(_){if(y>=g.length)break;C=g[y++]}else{if((y=g.next()).done)break;C=y.value}m(C)}return f},_setupJsonRpcListener:function(e,t){var n=t.protocolName,i=t.protocolMethodNames,r=t.protocolTarget,a=(d.a(r),this._listener=this._createJsonRpcListener(e)),o=Object(_.a)(r,i),s=i,c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var u;if(c){if(l>=s.length)break;u=s[l++]}else{if((l=s.next()).done)break;u=l.value}var h=u,f=this._constructRPCMethodName(n,h),g=o[h];if(!p.a(g))throw new m.a("Protocol method name "+h+" is not a Function");a.registerProcedure(f,o,h)}return a},_unregisterListenerMethods:function(e,t){var n=t.protocolName,i=t.protocolMethodNames,r=t.protocolTarget,a=(d.a(r),Object(_.a)(r,i)),s=i,c=Array.isArray(s),l=0;for(s=c?s:s[Symbol.iterator]();;){var u;if(c){if(l>=s.length)break;u=s[l++]}else{if((l=s.next()).done)break;u=l.value}var h=u,f=this._constructRPCMethodName(n,h),m=a[h];p.a(m)||o.b("Protocol method name "+h+" is not a Function"),e.unregisterProcedure(f)}},__superMap:{_$2fe$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MessagingChannel"}})}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"b",function(){return c}),n.d(t,"a",function(){return l});var i=n(831),r=n(179),a=n(840),o=n(836),s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};function c(e,t){return u(e,t)||function(e,t){return r.a(e)&&u(e.constructor,t)&&function(e,t){if("object"!==(void 0===e?"undefined":s(e)))return!1;var n=l(t),r=Array.isArray(n),a=0;for(n=r?n:n[Symbol.iterator]();;){var o;if(r){if(a>=n.length)break;o=n[a++]}else{if((a=n.next()).done)break;o=a.value}var c=o;if(!i.a(e[c]))return!1}return!0}(e,t)}(e,t)||function e(t,n){var i=!1;if(t&&n){var r=t.mixinDependencies;if(r&&r.length>0)if(r.includes(n))i=!0;else for(var a=0,o=r.length;a<o&&!(i=e(t,r[a]));a++);}return i}(e,t)}function l(e){if(null===(t=e)||"object"!==(void 0===t?"undefined":s(t))||!o.a(t.mixinDependencies))return null;var t,n=new Set;return function e(t,n){if(Object.entries(t).forEach(function(e){var t,i=e[0];(t=e[1].constructor)&&"RequiredMethod"===t.__QUALIFIED_CLASS_NAME__&&n.add(i)}),t.mixinDependencies)for(var i=t.mixinDependencies,r=0,a=i.length;r<a;r++)e(i[r],n)}(e,n),n}function u(e,t){return a.a(e)&&e.kindOf(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(828),r=n(100),a=function(){function e(){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this)}return e.every=function(e){Array.isArray(e)&&e.length&&e.every(function(e){return Object(i.a)(e,r.a)})||r.a.reject("An array containing one or more promises is required.");var t=0,n=e.length,a=r.a.create(),o=new Array;return e.forEach(function(e,i){e.then(function(e){return o[i]=e}).catch(function(e){return o[i]=e}).finally(function(){return++t===n&&a.resolve(o)})}),a},e}()},function(e,t,n){"use strict";(function(e){n.d(t,"b",function(){return o}),n.d(t,"a",function(){return s}),n.d(t,"c",function(){return c});var i=n(866),r=n(833),a=n(819);function o(){return e!==e.parent}function s(){if(o()){var t;return t=e.location!==e.parent.location?document.referrer:document.location.href,i.a.create(t).origin}return null}function c(t){r.a(t)||a.b("An url string is required"),e.location=t}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(279),r=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t,n,i){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this._postMessageTarget=t,this._postMessageTargetOrigin=n,this._buildInfo=i}return e.prototype.exceptionHandler=function(e){var t=Object.assign(Object(i.a)(e),{buildInfo:this._buildInfo}),n=this._createCrashMessage(t);this._postMessageTarget.postMessage(n,this._postMessageTargetOrigin)},e.prototype._createCrashMessage=function(e){var t={jsonrpc:"2.0",method:"MessagingFromChildProtocol-didEnd",params:["UNCAUGHT_EXCEPTION",e]};return JSON.stringify(t)},r(e,[{key:"isExceptionHandlingEnabled",get:function(){return!0}},{key:"isExceptionHandlingFatal",get:function(){return!0}}]),e}()},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=Object.freeze({USER_LAUNCH:"USER_LAUNCH",ITEMS_OPENED:"ITEMS_OPENED"})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingToUIChildProtocol",version:.1,didBecomeActive:i.a.define(),willResignActive:i.a.define(),willEnterForeground:i.a.define(),didEnterBackground:i.a.define(),didReceiveSyntheticBrowserEvent:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(400),r=n(567).a.extend({mixinDependencies:[i.a],applicationDidBecomeActive:function(e){},applicationWillResignActive:function(e){},applicationDidEnterBackground:function(e){},applicationWillEnterForeground:function(e){},staticMembers:{__QUALIFIED_CLASS_NAME__:"UIApplicationDelegate"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"c",function(){return o}),n.d(t,"b",function(){return s});var i=n(95),r=n(324),a=Object(i.b)("UIState",{NONE:"NONE",BACKGROUND:"BACKGROUND",INACTIVE_FOREGROUND:"INACTIVE_FOREGROUND",ACTIVE_FOREGROUND:"ACTIVE_FOREGROUND"});function o(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.b.apply(void 0,[a,e].concat(n))}function s(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return r.a.apply(void 0,[a,e].concat(n))}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MessagingFromUIChildProtocol",version:.2,isReadyToBeDisplayed:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(110),r=n(1042),a=i.a.extend({action:function(){Object(r.b)()},staticMembers:{__QUALIFIED_CLASS_NAME__:"MobileBrowserInitializer"}})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return l});var i=n(110),r=n(869),a=n(861),o=n(863),s=n(1062),c=n(1042),l=i.a.extend({action:function(){var t;t=!1,u&&(t={passive:!1,useCapture:!0}),r.a(document.body,"touchmove",function(e){return e.preventDefault()},t),c.a.sharedInstance.isiPhone&&!Object(s.b)()&&(d(),r.a(e,"resize",d),r.a(e,"orientationchange",function(){return a.a(d,400)}))},staticMembers:{__QUALIFIED_CLASS_NAME__:"DisableTouchScrollingInitializer"}}),u=function(){var t=!1;try{e.addEventListener("test",null,{get passive(){t=!0}})}catch(e){}return t}();function d(){c.a.sharedInstance.isiPhone&&e.innerHeight<e.innerWidth&&(o.b.debug("Adjusting scroll position for landscape orientation current scrollY: "+e.scrollY),e.scrollTo(0,1),a.a(function(){return e.scrollTo(0,0)},0))}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(81),r=n(828),a=n(819),o=n(833),s=n(832),c=n(100),l=n(178),u=n(295),d=n(1058),h=n(1064),p=n(1056),f=n(297),m=n(1049),g=n(1072),b=n(1164),v=u.a.extend({mixinDependencies:[f.a,b.a],isReadyToTerminate:i.d({readOnly:!0,type:Boolean,get:function(){return this._isReadyToTerminate}}),processId:i.d({readOnly:!0,type:String,get:function(){var e=this.processInfo;return e?e.processId:null}}),processInfo:i.d({type:Object}),delegate:i.d({type:g.a}),localProtocol:f.a,localProtocolTarget:i.d({readOnly:!0,type:f.a,get:function(){return this}}),remoteProtocol:m.a,messagingResponseErrorTerminationMethod:i.d({readOnly:!0,type:Function,defaultValue:function(){return this.terminateWithReasonAndInfo}}),run:function(e,t,n){var i=this;Object(d.b)(this.processState,d.a.LOADED);var o=this.processInfo,s=this.remoteProxy;r.a(e,Object)||a.b("Invalid session info"),r.a(t,Object)||a.b("Invalid host info"),r.a(n,Object)&&n.launchReason||a.b("Invalid launch options were passed to ChildProcessReference.run"),o.launchOptions=n,s.beginLaunching(e,t,o).then(function(e){return i.terminateIfMessagingResponseError(e)})},terminateWithReasonAndInfo:function(e,t){var n=this;return o.a(e)||a.b("terminateWithReasonAndInfo requires a reason as an argument"),t&&!s.a(t)&&a.b("terminateWithReasonAndInfo optional info argument should be a hash"),(this.isConnected?this.disconnect():c.a.resolve()).then(function(){n.isTerminated||(n._isReadyToTerminate=!0,n.terminate(),n.delegate.childProcessReferenceDidTerminate(n,e,t))})},isReadyToReceiveMessages:function(){var e=this;Object(d.b)(this.processState,d.a.LOADING),this._processState=d.a.LOADED;var t=this.delegate,n={launchReason:h.a.USER_LAUNCH};this.invokeLater(function(){return t.childProcessReferenceWillFinishLaunching(e,n)})},didFinishLaunching:function(){var e=this;Object(d.b)(this.processState,d.a.LOADED),this._processState=d.a.RUNNING;var t=this.delegate,n=this.processInfo.launchOptions;this.invokeLater(function(){return t.childProcessReferenceDidFinishLaunching(e,n)})},isReadyToTerminateDidChange:function(e){l.a(e)&&(this._isReadyToTerminate=e)},didEnd:function(e,t){var n=this;this.invokeLater(function(){n.terminateWithReasonAndInfo(e,Object(p.a)(t))})},reportNonFatalError:function(e,t){this.delegate.childProcessReferenceReportNonFatalError(this,e,t)},recordException:function(e){this.delegate.childProcessReferenceRecordException(this,e)},willUnload:function(e){this.delegate.childProcessReferenceWillUnload(this,e)},wantsReload:function(){var e=this;this._isReadyToTerminate=!0,this.invokeLater(function(){e.delegate.childProcessReferenceWantsReload(e)})},_processState:i.d({type:d.a,defaultValue:d.a.NONE,get:function(){return this._internal_processState},set:function(e){var t=this.delegate;return this._internal_processState=e,t&&t.childProcessReferenceStateDidChange(this,e),e}}),_isReadyToTerminate:i.d({type:Boolean,defaultValue:!0,get:function(){return this._internal_isReadyToTerminate},set:function(e){var t=this.delegate;this._internal_isReadyToTerminate!==e&&(this._internal_isReadyToTerminate=e,t&&t.childProcessReferenceIsReadyToTerminateDidChange(this,e))}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ChildProcessReference"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],childProcessReferenceWillFinishLaunching:r.a.define(),childProcessReferenceDidFinishLaunching:r.a.define(),childProcessReferenceWantsReload:r.a.define(),childProcessReferenceWillUnload:r.a.define(),childProcessReferenceReportNonFatalError:r.a.define(),childProcessReferenceRecordException:r.a.define(),childProcessReferenceDidTerminate:r.a.define(),childProcessReferenceIsReadyToTerminateDidChange:r.a.define(),childProcessReferenceStateDidChange:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return c});var i=n(818),r=n(81),a=n(819),o=n(1060),s=n(1050),c=i.a.extend({identifier:r.d({type:String}),name:r.d({type:String}),listenerProtocol:r.d({type:Object}),connectionProtocol:r.d({type:Object}),serviceInstanceClass:r.d(),init:function(e,t,n,i,r){this.__s._$HJ$init.call(this),e||a.b("ServiceRegistration: no identifier specified"),t||a.b("ServiceRegistration: no name specified"),n||a.b("ServiceRegistration: no serviceInstanceClass specified"),i||a.b("ServiceRegistration: no listener protocol specified"),Object(o.b)(i,s.a)||a.b("ServiceRegistration: listener protocol is not a valid MessagingProtocol"),this.identifier=e,this.name=t,this.serviceInstanceClass=n,this.listenerProtocol=i,this.connectionProtocol=r},__superMap:{_$HJ$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ServiceRegistration"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(81),r=n(821),a=n(295),o={processReference:i.d({type:a.a}),serviceWasRegistered:r.a}},function(e,t,n){"use strict";n(3),n.d(t,"b",function(){return f}),n.d(t,"a",function(){return m}),n.d(t,"c",function(){return g});var i=n(818),r=n(819),a=n(81),o=n(1076),s=n(402),c=n(1077),l=n(1053),u=n(1042),d=n(1046),h=n(1159),p=n(11),f="com.apple.icloud.cloudos.telemetry",m="Telemetry",g=i.a.extend({mixinDependencies:[o.a],init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h.a;this.__s._$Ll$init.call(this),e||r.b("TelemetryService: no telemetry client specified"),this._telemetryClient=e},recordStat:function(e,t,n,i,r){if(!e)throw new l.a("TelemetryService: recordStat: No application name specified");if(!t)throw new l.a("TelemetryService: recordStat: No mastering build number specified");if(!n)throw new l.a("TelemetryService: recordStat: No build number specified");if(!i)throw new l.a("TelemetryService: recordStat: No stat name specified");var a=p.a.masteringNumber,o=p.a.buildNumber,h=s.a.hostName,f=s.a.locale,m=d.a.sharedInstance,g=Object(c.a)(e,t,n,m.identifier,h,f,u.a.sharedInstance.primaryInteractionMode,i,r);g.cloudOSMasteringNumber=a,g.cloudOSBuildNumber=o,this._telemetryClient.recordStat(g)},_telemetryClient:a.d(),__superMap:{_$Ll$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"TelemetryService"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"TelemetryServiceProtocol",version:"0.0.1",recordStat:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(819);function r(e,t,n,r,a,o,s,c,l){e||i.b("createStat: no application name specified"),t||i.b("createStat: no mastering number specified"),n||i.b("createStat: no build number specified"),r||i.b("createStat: no stat session id specified"),a||i.b("createStat: no host name specified"),o||i.b("createStat: no browserLocale specified"),s||i.b("createStat: no primary interaction mode specified"),c||i.b("createStat: no stat name specified");var u=l||{};return u.appName=e,u.statName=c,u.masteringNumber=t,u.buildNumber=n,u.hostname=a,u.browserLocale=o,u.sessionID=r,u.primaryInteractionMode=s,u}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return d});var i=n(818),r=n(78),a=n(847),o=n(98),s=n(87),c=n(858),l=n(819),u=[{domain:"icloud.com.cn",countryCode:"CHN",dataUserDomain:"cn",iCloudLogo:"icloud.cn.logo"},{domain:"icloud.com",countryCode:void 0,iCloudLogo:"icloud.logo"}],d=i.a.extend(r.b,a.a,{staticMembers:{subDomains:Object.freeze({WWW:"www",BETA:"beta",FUTURE:"future",CARRY:"carry"}),__QUALIFIED_CLASS_NAME__:"DomainManager"},current:o.b({type:Object,readOnly:!0,binding:s.c("_current")}),setDomainFromCountryCode:function(e){for(var t=0;t<u.length;++t){var n=u[t];if(n.countryCode===e){if(this.current.countryCode!==e){var i=c.a(n),r=this._current,a=r.domain,o=r.subdomain;i.domain=a,i.subdomain=o,this._currentFromCountryCode=i}break}}},_currentFromCountryCode:o.b(),_current:o.b({type:Object,readOnly:!0,dependencies:["_currentFromCountryCode"],get:Object.assign(function(){var t=this._currentFromCountryCode;if(!t){var n=e.location.hostname.split("."),i=n.shift();if(-1===Object.values(d.subDomains).indexOf(i))return l.b("subdomain "+i+" is not supported"),null;for(var r=n.join("."),a=0;a<u.length;++a){var o=u[a];o.domain===r&&((t=c.a(o)).subdomain=i)}}return t},{__CW__getter:function(t,n,i,r){var a=r.internalGet(this,n[0+i]);if(!a){var o=e.location.hostname.split("."),s=o.shift();if(-1===Object.values(d.subDomains).indexOf(s))return l.b("subdomain "+s+" is not supported"),null;for(var h=o.join("."),p=0;p<u.length;++p){var f=u[p];f.domain===h&&((a=c.a(f)).subdomain=s)}}return a}})})})}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"b",function(){return l}),n.d(t,"c",function(){return u}),n.d(t,"d",function(){return d}),n.d(t,"a",function(){return h});var i=n(818),r=n(847),a=n(81),o=n(819),s=n(905),c=n(570);function l(e){return h.sharedInstance.hasWebService(e)}function u(e){return h.sharedInstance.isWebServiceActive(e)}function d(e,t){return h.sharedInstance.urlForServiceName(e,t)}var h=i.a.extend({mixinDependencies:[r.a],configurationProvider:a.d({type:c.a}),webServices:a.d({readOnly:!0,type:Map,get:function(){var e=this.configurationProvider;return e||o.b("[WebServicesConfiguration] No configuration provider found"),e?e.webServices:void 0}}),hasWebService:function(e){var t=this.webServices;return!!t&&!!p(t,e,"hasWebService",!1)},isWebServiceActive:function(e){return"active"===p(this.webServices,e,"isWebServiceActive").status},urlForServiceName:function(e,t){return p(this.webServices,e,"urlForServiceName").url+"/"+t},staticMembers:{__QUALIFIED_CLASS_NAME__:"WebServicesConfiguration"}});function p(e,t,n){var i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];e||o.b(n+": No services found"),s.a(t)&&o.b(n+": a serviceName must be specified");var r=e.get(t);return i&&!r&&o.b(n+": Service "+t+" was not found"),r}},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var i=n(95),r=n(818),a=n(81),o=n(819),s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},c=i.b("Status",{NOT_SET:"NOT_SET",SUCCESS:"SUCCESS",FAILURE:"FAILURE"}),l=i.b("TimingMode",{NOT_SET:"NOT_SET",MANUAL:"MANUAL",AUTOMATIC:"AUTOMATIC"});function u(e,t){return Math.max(0,Math.round(e/t)*t)}var d=e.performance&&e.performance.timing?e.performance.timing:{},h=r.a.extend({startTimestamp:a.d({type:Number}),endTimestamp:a.d({type:Number,defaultValue:void 0}),duration:a.d({get:function(){if(void 0!==this.startTimestamp)return this.endTimestamp-this.startTimestamp}}),statName:a.d({type:String}),additionalProperties:a.d({type:Object}),status:a.d({type:c,defaultValue:c.NOT_SET}),init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:d;this.__s._$uB$init.call(this),e||o.b("Stat: no stat name specified."),this.statName=e,this.additionalProperties=t,this._timing=n;var i=this._getTimeAndTimeZoneString(new Date),r=i.timeString,a=i.timezoneString;this.addAdditionalProperties({time:r,timezone:a})},addAdditionalProperties:function(e){return Object.assign(this.additionalProperties,e),this},time:function(){return this._timingMode=l.MANUAL,this.startTimestamp=Date.now(),this},timeFromProcessStart:function(){return this._timingMode=l.AUTOMATIC,this.startTimestamp=this._timing.domInteractive,this._processStartTimestamp=this._timing.navigationStart,this},end:function(){return this.endTimestamp=Date.now(),this},success:function(e){return this._finish(c.SUCCESS,e)},failure:function(e){return this._finish(c.FAILURE,e)},toJSON:function(){var e=this.status,t=this.additionalProperties,n=this.statName;e===c.SUCCESS?n+=".success":e===c.FAILURE&&(n+=".failure");var i=s({},t,{statName:n});return this._timingMode!==l.NOT_SET&&(this.endTimestamp||this.end(),i.duration=u(this.duration,10),this._timingMode===l.AUTOMATIC&&(i.totalDuration=u(this._totalDuration,10))),i},_finish:function(e,t){return this.status=e,this.addAdditionalProperties(t),null!==this._timingMode&&this.end(),this},_timingMode:a.d({type:l,defaultValue:l.NOT_SET}),_timing:a.d({type:Object}),_processStartTimestamp:a.d({type:Number}),_totalDuration:a.d({get:function(){if(void 0!==this._processStartTimestamp)return this.endTimestamp-this._processStartTimestamp}}),_getTimeAndTimeZoneString:function(e){var t=e.toString(),n=t+" ("+e.getTime()+")",i=t.match(/\(([a-zA-Z\s]*)\)/),r="UNKNOWN";return i&&(r=i[1]),{timeString:n,timezoneString:r}},__superMap:{_$uB$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Stat"}})}).call(this,n(31))},function(e,t,n){"use strict";n(1),n(0),n(5),n(8),n(2),n(65),n(3),n.d(t,"a",function(){return _});var i=n(818),r=n(908),a=n(81),o=n(863),s=n(866),c=n(100),l=n(838),u=n(91),d=n(80),h=n(861),p=n(110),f=n(1078),m=n(135),g=n(300),b=n(51),v=i.a.extend({init:function(){var e=arguments;this.createOrReuseAutoUpdateTimer(),this.__s._$p8$init.apply(this,e)},_autoUpdateTimerToken:-1,_autoUpdateTimerInterval:-1,createOrReuseAutoUpdateTimer:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:18e5,n=this._autoUpdateTimerToken;if(n){if(t===this._autoUpdateTimerInterval)return;clearInterval(n)}this._autoUpdateTimerInterval=t,this._autoUpdateTimerToken=r.a(function(){return e.checkVersion()},t)},_lastCheck:-1,versionUrl:a.d({readOnly:!0,get:function(){return"https://"+window.location.hostname+"/system/cloudos2/current/version.json"}}),checkVersion:function(){var e=this,t=Date.now(),n=this._autoUpdateTimerInterval;if(!(this._lastCheck+(n-1e4)>t)){this._lastCheck=t;var i=s.a.create(window.location).queryObject;if(i.autoUpdate)return o.b.warn("autoUpdate: Will simulate response since autoUpdate flag is set."),this.handleVersionResponse("override",parseInt(i.autoUpdate,10)),c.a.resolve();var r=this.versionUrl;return Object(b.a)(r,{method:"GET"}).then(function(t){return t.json().then(function(t){if(t){var n=t.buildNumber,i=t.autoUpdate;if(l.a(n)&&l.a(i))return void e.handleVersionResponse(n,parseInt(i,10))}o.b.warn("autoUpdate: malformed version.json")})},function(){return o.b.warn("autoUpdate: Could not fetch version.json")})}o.b.info("autoUpdate: Already checked "+(t-this._lastCheck)+"ms ago, ignoring")},_reloadAlert:a.d({strong:!0}),handleVersionResponse:function(e,t){var n=this;if(t!==g.UpdateAction.UPDATE_IGNORE)if(window.__CW_BUILD_INFO.buildNumber!==e)if(u.a.sharedInstance.getItem("didReloadToBuild")!==e){if(t===g.UpdateAction.UPDATE_PROMPT){o.b.debug("autoUpdate: Prompt the user to reload to "+e);var i=this._reloadAlert;if(i&&i.isAttached)return void o.b.info("autoUpdate: There is already an auto update alert pane showing, so ignoring request for a second one.");var r=f.a.sharedInstance.current.domain.replace("icloud","iCloud"),a={message:d.d("AutoUpdate.Title",{currentDomain:r}),description:d.d("AutoUpdate.Description"),primaryButton:{title:d.d("AutoUpdate.Reload"),target:this,action:"reloadToBuildNumber",context:e},alternateButton:{title:d.d("AutoUpdate.Later"),target:this,action:"reloadLater"}};this._reloadAlert=m.a.show(a)}t===g.UpdateAction.UPDATE_FORCE&&(o.b.debug("autoUpdate: Force the user to reload to "+e),this.reloadToBuildNumber(e)),t===g.UpdateAction.UPDATE_DELAYED_FORCE&&(o.b.debug("autoUpdate: Delay force the user to reload to "+e),h.a(function(){n.reloadToBuildNumber(e)},72e5))}else o.b.warn("autoUpdate: We already reloaded the user to try an update to "+e+", so will not do it again!");else o.b.debug("autoUpdate: Running latest build, "+e);else o.b.debug("autoUpdate: Update flag for "+e+" is UPDATE_IGNORE")},reloadLater:function(){var e=this._reloadAlert;e&&(e.hide(),this._reloadAlert=null)},reloadToBuildNumber:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:window;u.a.sharedInstance.setItem("didReloadToBuild",e),t.location.reload()},__superMap:{_$p8$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"AutoUpdateController"}}),_=p.a.extend({action:function(e){e.autoUpdateController=v.create()},staticMembers:{__QUALIFIED_CLASS_NAME__:"AutoUpdateInitializer"}})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return l});var i=n(819),r=n(99),a=n(1083),o=n(585),s=n(1130),c=n(1084),l=a.a.extend({mixinDependencies:[o.a],fetch:function(e,t){var n=s.a.create(e,t);return this.fetchRequest(n)},willSendRequest:function(t){this.__s._$RO$willSendRequest.call(this,t),t.timeRequestSent=e.performance.now(),this.handleWillSendReportingRequest(t)},didReceiveResponseForRequest:function(t,n){var i=this;t.timeResponseReceived=e.performance.now(),n.text().then(function(e){i.handleDidReceiveResponseForReportingRequest(t,n,e)})},handleWillSendReportingRequest:function(e){var t=this.dsid;t&&e.url.setQueryParameter("dsid",t),this.willSendReportingRequest(e)},handleDidReceiveResponseForReportingRequest:function(e,t,n){this._handleStat(e,t,n),d(t)&&this.handleSpecialResponseWasReceived(e,t,n),this._responseWasHandledForRequest(e,t)},willSendReportingRequest:function(e){},recordStat:function(e,t,n,i){},handleSpecialResponseWasReceived:function(e,t,n){e||i.b("[CloudOSUrlService]: handleSpecialResponseWasReceived: No request specified"),t||i.b("[CloudOSUrlService]: handleSpecialResponseWasReceived: No request specified");var r={timeTaken:e.duration},a=t.status;this.specialResponseWasReceived(a,n,r)},specialResponseWasReceived:function(e,t,n){},_handleStat:function(e,t,n){e||i.b("[CloudOSUrlService]: handleDidReceiveResponseForReportingRequest: No reporting request specified"),t||i.b("[CloudOSUrlService]: handleDidReceiveResponseForReportingRequest: No response specified");var a=e.url,o=e.method,s=e.reportingMethod,l=e.duration,u=e.state,h=e.reportingPathname,p=null,f=t.status;(function(e,t){var n=t.status;return e.shouldReportFailure&&function(e){var t=Object(c.b)(e);return 421!==e&&(t===c.a.NONE||t===c.a.REQUEST_ERROR||t===c.a.SERVER_ERROR)}(n)||e.shouldReportSuccess&&function(e){return Object(c.b)(e)===c.a.SUCCESS}(n)||d(t)})(e,t)&&(p={httpMethod:s?s+" VIA "+o:o,statusCode:f,hostname:a.hostname,clientTiming:l,net_uncompressedResponseSize:n?n.length:null,timedOut:u===r.b.TIMEDOUT,urlPath:h||a.pathname}),this.recordStat(p,f,a.toString(),n)},_responseWasHandledForRequest:function(e,t){},__superMap:{_$RO$willSendRequest:"willSendRequest"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ReportingURLConnection"}}),u=[330,401,421,423,503];function d(e){var t=e.status;return-1!==u.indexOf(t)}}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return s});var i=n(81),r=n(819),a=n(1157),o=n(585),s=a.a.extend({mixinDependencies:[o.a],clientId:i.d({type:String}),masteringNumber:i.d({type:String}),buildNumber:i.d({type:String}),init:function(e,t,n){this.__s._$av$init.call(this),e||r.b("[CloudOSURLFetchService] no client id specified"),t||r.b("[CloudOSURLFetchService] no mastering number specified"),n||r.b("[CloudOSURLFetchService] no build number specified"),this.clientId=e,this.masteringNumber=t,this.buildNumber=n},willSendRequest:function(e){var t=e.url,n=this.clientId,i=this.masteringNumber;c(t,"clientBuildNumber",this.buildNumber),c(t,"clientMasteringNumber",i),c(t,"clientId",n)},__superMap:{_$av$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CoreOSURLConnection"}});function c(e,t,n){e.setQueryParameter(t,n)}},function(e,t,n){"use strict";n.d(t,"a",function(){return i}),n.d(t,"b",function(){return r});var i=n(95).b("HttpStatusClass",{NONE:"0",SUCCESS:"2",REDIRECT:"3",REQUEST_ERROR:"4",SERVER_ERROR:"5"});function r(e){(!e||e<200||e>599)&&(e=0);var t=e.toString()[0];return i.getItemForValue(t)}},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(81),r={staticMembers:{createSharedInstance:function(){return this.create()},mixinWasApplied:function(e){var t=arguments;e===r&&(this.registerMetadata("_internalSharedInstance",i.d({type:this})),this.registerMetadata("sharedInstance",i.d({type:this,readOnly:!0,get:function(){var e=this._internalSharedInstance;return e||(e=this._internalSharedInstance=this.createSharedInstance()),e}}))),this.__s._$US$mixinWasApplied.apply(this,t)},__superMap:{_$US$mixinWasApplied:"mixinWasApplied"}}}},function(e,t,n){"use strict";n.d(t,"a",function(){return u});var i=n(818),r=n(81),a=n(819),o=n(840),s=n(864),c=n(91),l=n(1160),u=i.a.extend({value:r.d({type:l.a}),init:function(e,t,n,i){this.__s._$Hi$init.call(this),e||a.b("[Store] Missing key"),t||a.b("[Store] Missing namespace"),n||a.b("[Store] Missing storage manager"),o.a(i)&&i.hasMixin(l.a)||a.b("[Store] Requires serializable object class");var r=void 0,c=n.getItem(e,t);c&&(r=s.a.sharedInstance.decode(c)),this.value=i.deserialize(r||{}),this._key=e,this._namespace=t,this._storageManager=n},clear:function(){var e=this.value,t=e.getMetadataByType(r.a);for(var n in t){var i=t[n],a=i.key,o=i.serialization;o&&o.ignore||(e[a]=void 0)}var s=this._key,c=this._namespace;this._storageManager.removeItem(s,c)},save:function(){var e=this.value.serialize(),t=s.a.sharedInstance.encode(e),n=this._key,i=this._namespace;return this._storageManager.setItem(n,t,i)},_key:r.d({type:String}),_namespace:r.d({type:String}),_storageManager:r.d({type:c.c}),__superMap:{_$Hi$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PersistentStore"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(78),a=n(98),o=n(81),s=n(905),c=n(1160),l=i.a.extend(r.b,{mixinDependencies:[c.a],staticMembers:{displayNameForComponents:function(e){var t,n=e.givenName,i=e.familyName,r=e.emailAddress,a=e.phoneNumber,o=e.nickname,s=e.companyName,c=o||n;return c&&i&&(t=c+" "+i),d(t)||(t=d(c)||d(i)||d(r)||d(a)||d(s)),t},__QUALIFIED_CLASS_NAME__:"AuthenticatedUser"},dsid:a.b({type:String}),alternateDSID:a.b({type:String,serialization:{propertyName:"aDsID"}}),firstName:a.b({type:String}),lastName:a.b({type:String}),fullName:a.b({type:String}),appleId:a.b({type:String}),statusCode:a.b({type:Number}),appleIdEntries:a.b({type:Array}),isManagedAppleID:a.b({type:Boolean}),brMigrated:o.d({type:Boolean}),tantorMigrated:o.d({type:Boolean}),completedAuthenticationStep:a.b({type:Number}),totalAuthenticationSteps:a.b({type:Number}),isAuthenticated:a.b({dependencies:["completedAuthenticationStep","totalAuthenticationSteps"],type:Boolean,readOnly:!0,get:function(){var e=this.completedAuthenticationStep,t=this.totalAuthenticationSteps;return e>0&&e===t},serialization:{ignore:!0}}),isMAIDAccount:a.b({dependencies:["isManagedAppleID"],readOnly:!0,type:Boolean,get:Object.assign(function(){return this.isManagedAppleID},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])}}),serialization:{ignore:!0}}),isiCloudLiteAccount:a.b({dependencies:["statusCode"],readOnly:!0,type:Boolean,get:Object.assign(function(){return 4===this.statusCode},{__CW__getter:function(e,t,n,i){return 4===i.internalGet(this,t[0+n])}}),serialization:{ignore:!0}}),hasPhoneNumberAsAppleId:a.b({dependencies:["appleIdEntries"],readOnly:!0,type:Boolean,get:Object.assign(function(){return u(this.appleIdEntries,"PHONE_NUMBER")},{__CW__getter:function(e,t,n,i){return u(i.internalGet(this,t[0+n]),"PHONE_NUMBER")}}),serialization:{ignore:!0}}),hasEmailAddressAsAppleId:a.b({dependencies:["appleIdEntries"],readOnly:!0,type:Boolean,get:Object.assign(function(){return u(this.appleIdEntries,"EMAIL")},{__CW__getter:function(e,t,n,i){return u(i.internalGet(this,t[0+n]),"EMAIL")}}),serialization:{ignore:!0}}),accountType:a.b({type:String})});function u(e,t){if(s.a(e))return!1;var n=e.find(function(e){return e.isPrimary});return!!n&&n.type===t}function d(e){return e&&!/^\s*$/.test(e)?e:""}},function(e,t,n){"use strict";n.d(t,"a",function(){return a}),n.d(t,"b",function(){return o});var i=n(95),r=n(81),a=i.b("OperationStatus",{UNKNOWN:"UNKNOWN",SUCCESS:"SUCCESS",CANCELED:"CANCELED",ERROR:"ERROR"}),o={status:r.d({type:a,defaultValue:a.UNKNOWN}),error:r.d(),isOK:r.d({type:Boolean,readOnly:!0,get:function(){return this.status===a.SUCCESS}}),isCanceled:r.d({type:Boolean,readOnly:!0,get:function(){return this.status===a.CANCELED}}),isError:r.d({type:Boolean,readOnly:!0,get:function(){return this.status===a.ERROR}})}},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(95).b("AppleIdAccountType",{UNKNOWN:"UNKNOWN",SA:"SA",HSA1:"HSA1",HSA2:"HSA2",MANAGED:"MANAGED"})},function(e,t,n){"use strict";n.d(t,"a",function(){return o});var i=n(818),r=n(81),a=n(1088),o=i.a.extend({mixinDependencies:[a.b],data:r.d(),staticMembers:{__QUALIFIED_CLASS_NAME__:"OperationResponse"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return d});var i=n(818),r=n(81),a=n(1160),o=i.a.extend({mixinDependencies:[a.a],mediaKey:r.d({type:String}),displayLabel:r.d({type:String}),displayColor:r.d({type:String}),usageInBytes:r.d({type:Number}),staticMembers:{__QUALIFIED_CLASS_NAME__:"StorageQuotaMedium"}}),s=i.a.extend({mixinDependencies:[a.a],appleId:r.d({type:String}),dsid:r.d({type:Number}),id:r.d({type:String}),firstName:r.d({type:String}),fullName:r.d({type:String}),lastName:r.d({type:String}),usageInBytes:r.d({type:Number}),staticMembers:{__QUALIFIED_CLASS_NAME__:"FamilyMemberStorageQuota"}}),c=i.a.extend({mixinDependencies:[a.a],mediaKey:r.d({type:String}),displayLabel:r.d({type:String}),displayColor:r.d({type:String}),usageInBytes:r.d({type:Number}),familyMembers:r.d({type:Array,serialization:{collectionObjectType:s}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"FamilyStorageQuota"}}),l=i.a.extend({mixinDependencies:[a.a],compStorageInBytes:r.d({type:Number}),usedStorageInBytes:r.d({type:Number}),totalStorageInBytes:r.d({type:Number}),commerceStorageInBytes:r.d({type:Number}),staticMembers:{__QUALIFIED_CLASS_NAME__:"StorageUsageInfo"}}),u=i.a.extend({mixinDependencies:[a.a],overQuota:r.d({type:Boolean}),haveMaxQuotaTier:r.d({type:Boolean}),almostFull:r.d({type:Boolean,serialization:{propertyName:"almost-full"}}),paidQuota:r.d({type:Boolean}),staticMembers:{__QUALIFIED_CLASS_NAME__:"StorageQuotaStatus"}}),d=i.a.extend({mixinDependencies:[a.a],storageUsageByMedia:r.d({type:Array,serialization:{collectionObjectType:o}}),storageUsageInfo:r.d({type:l}),quotaStatus:r.d({type:u}),familyStorageUsageInfo:r.d({type:c}),staticMembers:{__QUALIFIED_CLASS_NAME__:"StorageQuota"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return v});var i=n(879),r=n(818),a=n(78),o=n(81),s=n(861),c=n(869),l=n(381),u=n(904),d=n(844),h=n(1042),p=n(1044),f=n(576),m=n(1093),g=n(1085),b=h.a.sharedInstance.deviceType===p.a.TABLET&&i.a.sharedInstance.isSafari,v=r.a.extend(a.b,{mixinDependencies:[g.a],delegate:o.d({type:f.a}),sizeClassHorizontal:o.d({type:m.a,readOnly:!0,defaultValue:function(){return this._currentSizeClasses.sizeClassHorizontal}}),sizeClassVertical:o.d({type:m.a,readOnly:!0,defaultValue:function(){return this._currentSizeClasses.sizeClassVertical}}),visualViewport:o.d({type:Object,readOnly:!0,defaultValue:null}),startWatchingForChanges:function(){var e=this,t=this._browserWindow;t&&s.a(function(){t.observe("height","width",e._browserWindowSizeDidChange.bind(e));var n=window.visualViewport;if(n){var i=e._handleViewportChange.bind(e);c.a(n,"resize",i),c.a(n,"scroll",i)}},0)},_browserWindow:o.d({type:l.a,get:function(){return i.a.getPath("sharedInstance.window")}}),_browserWindowSizeDidChange:function(e,t){var n=this._calculateSizeClasses(t,e),i=n.sizeClassHorizontal,r=n.sizeClassVertical,a=this.delegate;i===this.sizeClassHorizontal&&r===this.sizeClassVertical||(this._sizeClassHorizontal=i,this._sizeClassVertical=r,a&&a.sizeClassDidChange(this)),a&&a.browserSizeDidChange&&a.browserSizeDidChange(this),b&&this._sustainBrowserSizeSurveillance()},_sustainBrowserSizeSurveillance:function(){this.hasOwnProperty("_recheckBrowserSize")||(this._recheckBrowserSize=this._recheckBrowserSize.bind(this)),cancelAnimationFrame(this._browserSizeSurveillanceTimeout),this._browserSizeSurveillanceEndTime=performance.now()+1500,this._browserSizeSurveillanceTimeout=u.a(this._recheckBrowserSize)},_recheckBrowserSize:function(){d.a.pause(),i.a.sharedInstance.window.updateDimensions(),d.a.resume(),cancelAnimationFrame(this._browserSizeSurveillanceTimeout),performance.now()<this._browserSizeSurveillanceEndTime&&(this._browserSizeSurveillanceTimeout=u.a(this._recheckBrowserSize))},_calculateSizeClasses:function(e,t){var n=m.a.REGULAR,i=m.a.REGULAR;return e<=667&&(n=m.a.COMPACT),t<=480&&(i=m.a.COMPACT),{sizeClassHorizontal:n,sizeClassVertical:i}},_currentSizeClasses:o.d({type:Object,readOnly:!0,get:function(){var e=this._browserWindow,t=e.width,n=e.height;return this._calculateSizeClasses(t,n)}}),_handleViewportChange:function(){var e=window.visualViewport;this._visualViewport=e?{offsetLeft:e.offsetLeft,offsetTop:e.offsetTop,pageLeft:e.pageLeft,pageTop:e.pageTop,width:e.width,height:e.height,scale:e.scale}:null;var t=this.delegate;t&&t.visualViewportDidChange(this)},staticMembers:{__QUALIFIED_CLASS_NAME__:"BrowserWindowController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return i});var i=n(95).b("SizeClass",{COMPACT:"COMPACT",REGULAR:"REGULAR"})},function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return h});var i=n(818),r=n(863),a=n(819),o=n(866),s=n(200),c=n(858),l=n(835),u=n(1095),d=(n(4),e.IntlPolyfill),h=i.a.extend({_region:null,_cachedNumberInstances:{},_cachedDateTimeInstances:{},_pendingRegionsToRegister:{},_is12HourTimeForRegions:{},localeMap:null,SHORT_DATE:{month:"numeric",day:"numeric",year:"numeric"},MEDIUM_DATE:{month:"short",day:"numeric",year:"numeric"},LONG_DATE:{month:"long",day:"numeric",year:"numeric"},FULL_DATE:{weekday:"long",month:"long",day:"numeric",year:"numeric"},SHORT_TIME:{hour:"numeric",minute:"numeric"},MEDIUM_TIME:{hour:"numeric",minute:"numeric",second:"numeric"},LONG_TIME:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},FULL_TIME:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"long"},registerRegionFormat:function(e){if(e&&d){d.__disableRegExpRestore();var t=e.locale.toLowerCase();this._region=t,this._pendingRegionsToRegister[t]=e}else r.b.info("No Intl polyfill or region rules. Skipping RegionFormatter initialization.")},loadFormattingRules:function(e,t,n){e.validate()||a.b("Invalid hostInfo",e.errors);var i=this.localeMap;i&&t in i&&(t=i[t]);var r=o.a.create(e.urlString),c=s.a.create(e.requestProperties);n||(n={});var l=n.fallbackRegionFormat||"en-us",d="maxRetries"in n?n.maxRetries:3,h=r.pathname;"/"!==h.charAt(h.length-1)&&(r.pathname=h+"/");var p=this._getISOnameForRegion(t);return r.pathname=r.pathname+p+".json",c.url=r,c.send().then(function(e){var n=e.body;return this.registerRegionFormat(n),u.a.create({regionFormat:t,formattingRules:n})}.bind(this)).catch(function(i){var r=t.split("-"),a=l;if(404===i.status&&t!==l&&r.length>1&&(r.pop(),a=r.join("-")),d>0)return a===l&&(n.maxRetries=d-1),this.loadFormattingRules(e,a,n);throw new Error("Cannot load region formatting rules from host.")}.bind(this))},getNumberFormatter:function(e){d||a.b("Cannot use Intl without polyfill."),this._registerPendingRegionFormats();var t=this._getCacheKeyForOptions(e),n=this._cachedNumberInstances[t];return n||(n=new d.NumberFormat(this._region,e),this._cachedNumberInstances[t]=n),n},getDateTimeFormatter:function(e){d||a.b("Cannot use Intl without polyfill."),this._registerPendingRegionFormats();var t=this._getCacheKeyForOptions(e),n=this._cachedDateTimeInstances[t];return n||(n=new d.DateTimeFormat(this._region,e),this._cachedDateTimeInstances[t]=n),n},is12HourTime:function(e){this._registerPendingRegionFormats();var t=e?e.toLowerCase():this._region;return this._is12HourTimeForRegions[t]},_registerPendingRegionFormats:function(){for(var e=this._pendingRegionsToRegister,t=Object.keys(e),n=0;n<t.length;n++){var i=e[t[n]];d.__addLocaleData(c.a(i));var r=i.locale.toLowerCase();this._is12HourTimeForRegions[r]=i.date.hour12,delete this._pendingRegionsToRegister[r]}},_getCacheKeyForOptions:function(e){return e?this._region+":"+l.a(e):this._region+":default"},_getISOnameForRegion:function(e){var t="",n=e?e.split("-"):["en","us"];return t=n[0].toLowerCase(),n.length>2?(t+="-"+this._capitalizeFirstLetter(n[1]),t+="-"+n[2].toUpperCase()):n.length>1&&(t+=n[1].length>2?"-"+this._capitalizeFirstLetter(n[1]):"-"+n[1].toUpperCase()),t},_capitalizeFirstLetter:function(e){var t=e.toLowerCase();return t.charAt(0).toUpperCase()+t.slice(1)},staticMembers:{__QUALIFIED_CLASS_NAME__:"RegionFormatter"}}).create({localeMap:{no:"nb","no-no":"nb-no"}})}).call(this,n(31))},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(818),r=n(375),a=i.a.extend(r.a,{regionFormat:"",formattingRules:{},serializedProperties:["regionFormat","formattingRules"],toString:function(){return this.serialize()},staticMembers:{__QUALIFIED_CLASS_NAME__:"Response"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(819),r=n(100),a=function(e){e||i.b("CKPromise must be called with a resolver function.");var t=r.a.create();return e(t.resolve.bind(t),t.reject.bind(t)),t};a.all=function(e){return r.a.all(e)},a.race=function(e){return r.a.race(e)},a.reject=function(e){return r.a.reject(e)},a.resolve=function(e){return r.a.resolve(e)}},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(81),a=n(819),o=n(1080),s=n(1159),c=n(206),l=i.a.extend({containerIdentifier:r.d({type:String,readOnly:!0,get:function(){return this._cloudKitContainerIdentifier}}),partition:r.d({type:String,readOnly:!0,get:function(){return this._cloudKitPartition}}),init:function(e,t,n){this.__s._$CV$init.call(this),e||a.b("[CloudKitJSInstance] No cloud kit instance specified"),t||a.b("[CloudKitJSInstance] No container identifier specified"),n||a.b("[CloudKitJSInstance] No partition specified"),this._cloudKitContainerIdentifier=t,this._cloudKitPartition=n,this._cloudKitInstance=e},resolveShortGUID:function(e){e||a.b("No short guid specified to resolve");var t=this._cloudKitInstance.getDefaultContainer(),n=o.a.create("resolveShortGUID").time();return t.fetchRecordInfos([e]).then(function(e){var t=c.a.createFromResponse(e);return t.isOK?s.b.sharedInstance.recordStat(n.success()):s.b.sharedInstance.recordStat(n.failure({errorCode:t.errorCode})),t}).catch(function(e){var t=e&&e.ckErrorCode?c.a.createFromResponse({hasErrors:!0,errors:[e]}):c.a.createFromError(e);return s.b.sharedInstance.recordStat(n.failure({errorCode:t.errorCode})),t})},acceptShortGUID:function(e){e||a.b("No short guid specified to resolve");var t=this._cloudKitInstance.getDefaultContainer(),n=o.a.create("acceptShortGUID").time();return t.acceptShares({value:e}).then(function(e){var t=c.a.createFromResponse(e);return t.isOK?s.b.sharedInstance.recordStat(n.success()):s.b.sharedInstance.recordStat(n.failure({errorCode:t.errorCode})),t}).catch(function(e){var t=e&&e.ckErrorCode?c.a.createFromResponse({hasErrors:!0,errors:[e]}):c.a.createFromError(e);return s.b.sharedInstance.recordStat(n.failure({errorCode:t.errorCode})),t})},_cloudKitInstance:r.d(),_cloudKitContainerIdentifier:r.d({type:String}),_cloudKitPartition:r.d({type:String}),__superMap:{_$CV$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudKitJSInstance"}})},function(e,t,n){"use strict";n(6),n.d(t,"a",function(){return c});var i=n(81),r=n(86),a=n(243),o=n(411),s=n(1099),c={transitioningDelegate:i.d({type:o.a,defaultValue:r.c(s.a)}),transitionCoordinator:i.d({type:a.a})}},function(e,t,n){"use strict";n(6),n.d(t,"a",function(){return o});var i=n(818),r=n(242),a=n(411),o=i.a.extend({mixinDependencies:[a.a],animationControllerForPresentedViewController:function(e,t,n){return r.a.create()},animationControllerForDismissedViewController:function(e){return r.a.create()},interactionControllerForPresentation:function(e){},interactionControllerForDismissal:function(e){},presentationControllerForPresentedViewController:function(e,t,n){},staticMembers:{__QUALIFIED_CLASS_NAME__:"DefaultTransitioningDelegate"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],animateTransition:r.a.define(),animationEnded:r.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return s}),n.d(t,"d",function(){return c}),n.d(t,"b",function(){return l}),n.d(t,"c",function(){return u});var i=n(82),r=(n(6),0),a=10,o="visually-hidden";function s(e){e.element.classList.add(o)}function c(e){e.element.classList.remove(o)}function l(e){i.c(e.element,{"z-index":a})}function u(e){i.c(e.element,{"z-index":r})}},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return d});var i=n(818),r=n(81),a=n(871),o=n(828),s=n(819),c=n(877),l=n(821),u=n(1103),d=i.a.extend({presentedViewController:r.d({type:a.a}),presentingViewController:r.d({type:a.a}),containerView:r.d({type:u.a}),init:function(e,t,n){this.__s._$S6$init.call(this),o.a(e,a.a)||s.b("[PresentationController] Missing presentedViewController"),t&&!o.a(t,a.a)&&s.b("[PresentationController] Invalid presentingViewController"),n&&!o.a(n,c.a)&&s.b("[PresentationController] Invalid containerView"),this._presentedViewController=e,this._presentingViewController=t,this._containerView=n},presentationTransitionWillBegin:l.a,presentationTransitionDidEnd:l.a,dismissalTransitionWillBegin:l.a,dismissalTransitionDidEnd:l.a,__superMap:{_$S6$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PresentationController"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return o});var i=n(877),r=n(98),a=n(932),o=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"   "},{type:"MULTIVIEWOUTLET",tagname:"views",name:"childViews",classes:["child-views"]}]},__QUALIFIED_CLASS_NAME__:"MultiChildView"},childViews:r.b({strong:!0,type:a.a})})},function(e,t,n){"use strict";n(0),n(6),n.d(t,"a",function(){return h});var i=n(81),r=n(104),a=n(819),o=n(242),s=n(243),c=n(1102),l=n(1163),u=n(1158),d=n(1101),h=(n(19),u.a.extend({presentationController:i.d({type:c.a}),viewClass:r.b({additionalClassNames:r.b(["single-presenter-view"])}),showViewController:function(e){return this.presentContentViewController(e,!0)},insertViewController:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.presentedViewController;if(this._childViewControllers.includes(e)||(this.addViewController(e),t||Object(d.a)(e.view)),t){n&&Object(d.a)(n.view),Object(d.d)(e.view),e.presentingViewController=this;var i=this.getTransitioningDelegateForPresentedViewController(e);this.presentationController=i.presentationControllerForPresentedViewController(e,this,this),this._presentedViewController=e}},presentationTransitionWillBegin:function(e){var t=arguments,n=this.__s._$xI$presentationTransitionWillBegin.apply(this,t),i=this.presentationController;return i&&(n=n.then(function(){return i.dismissalTransitionWillBegin()})),n},presentationTransitionDidEnd:function(e){var t=arguments,n=this.__s._$19L$presentationTransitionDidEnd.apply(this,t),i=!e.transitionWasCancelled,r=this.presentationController;return r&&(n=n.then(function(){return r.dismissalTransitionDidEnd(i)})),i&&(this.presentationController=e.presentationController),n},removeViewController:function(e){var t=arguments;return e===this.presentedViewController&&(this.presentationController=void 0),this.__s._$1Wg$removeViewController.apply(this,t)},getTransitionContextForPresentedViewController:function(e,t){var n=e,i=this.presentedViewController,r=this.view,a=this.getTransitioningDelegateForPresentedViewController(e),c=t&&a.animationControllerForPresentedViewController(n,i,this)||o.a.create(),u=a.interactionControllerForPresentation(c),d=a.presentationControllerForPresentedViewController(n,i,this),h=s.a.create();return l.a.create(i,n,r,c,u,d,h,t)},getTransitionContextForDismissedViewController:function(e,t){a.b("[SinglePresenterViewController] Unexpected dismissal transition.")},__superMap:{_$xI$presentationTransitionWillBegin:"presentationTransitionWillBegin",_$19L$presentationTransitionDidEnd:"presentationTransitionDidEnd",_$1Wg$removeViewController:"removeViewController"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SinglePresenterViewController"}}))},function(e,t,n){"use strict";n(0),n(5),n(3),n.d(t,"a",function(){return f});var i=n(871),r=n(98),a=n(877),o=n(87),s=n(80),c=n(81),l=n(86),u=n(898),d=n(876),h=n(78),p=(n(357),n(26)),f=i.a.extend({dismissalPromise:void 0,wasTermsUpdatePerformed:r.b(),dismiss:function(){this.dismissalPromise.resolve()},viewClass:a.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"titleText",attributes:{}}],classes:["title-text"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"descriptionText",attributes:{}}],classes:["description-text"]},{type:"VIEWOUTLET",tagname:"view",name:"button"}],classes:["content"]}],classes:["terms-and-conditions-success-confirmation-view"]}},viewController:r.b(),wasTermsUpdatePerformed:r.b(o.c("viewController.wasTermsUpdatePerformed")),titleText:s.d("CloudOS.TermsAndConditions.SuccessConfirmation.Title"),descriptionText:r.b({readOnly:!0,dependencies:["wasTermsUpdatePerformed"],get:Object.assign(function(){switch(p.a.sharedInstance.needsGameCenterTermsFlow+2*this.wasTermsUpdatePerformed){case 0:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.UpToDate.Description");case 1:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.GameCenter.UpToDate.Description");case 2:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.Description");case 3:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.GameCenter.Description")}},{__CW__getter:function(e,t,n,i){switch(p.a.sharedInstance.needsGameCenterTermsFlow+2*i.internalGet(this,t[0+n])){case 0:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.UpToDate.Description");case 1:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.GameCenter.UpToDate.Description");case 2:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.Description");case 3:return s.d("CloudOS.TermsAndConditions.SuccessConfirmation.GameCenter.Description")}}})}),button:c.d({strong:!0,defaultValue:l.c(u.a.extend({title:s.d("CloudOS.Button.OK.Title"),action:"dismiss"}))}),keyDown:function(e){var t=e.keyCode;t!==d.a.ENTER&&t!==d.a.ESC||this.button.element.classList.add("dismissal-key-down")},keyUp:function(e){var t=e.keyCode;t!==d.a.ENTER&&t!==d.a.ESC||this.button.triggerButtonAction(),this.button.element.classList.remove("dismissal-key-down")},isFocusable:!0,_obtainFocusOnAttachment:h.h("isAttached",function(){this.isAttached&&this.focus()})}),staticMembers:{__QUALIFIED_CLASS_NAME__:"TermsAndConditionsSuccessConfirmationViewController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],appleIdWillStart:r.a.define(),appleIdStepDidComplete:r.a.define(),appleIdDidFinish:r.a.define(),appleIdModeWillChange:r.a.define(),appleIdModeDidChange:r.a.define(),appleIdRepairDidStart:r.a.define(),appleIdDidCancel:r.a.define(),appleIdDidFail:r.a.define(),appleIdError:r.a.define()}},function(e,t,n){"use strict";(function(e){n(0),n(22),n.d(t,"c",function(){return T}),n.d(t,"a",function(){return D}),n.d(t,"b",function(){return L}),n.d(t,"d",function(){return N});var i=n(95),r=n(871),a=n(98),o=n(81),s=n(819),c=n(866),l=n(863),u=n(861),d=n(822),h=n(818),p=n(931),f=n(86),m=n(1059),g=n(1089),b=n(607),v=n(1108),_=n(1106),y=n(183),C=n(1109),I=n(419),w=n(420),S=n(598),A=n(1135),O=n(596),E=i.b("AppleIdError",{TIMEOUT:"Timeout loading authentication",INVALID_DATA:"Invalid data received",DID_NOT_LOAD:"Authentication did not load"}),T=i.b("AppleIdUITheme",{LITE:"lite",DARK:"dark"}),D=i.b("AppleIdRememberMeCheckBoxTitle",{KEEP_ME_SIGNED_IN:"keep-me-signed-in",REMEMBER_ME:"remember-me"}),L=i.b("AppleIdUIMode",{UNKNOWN:"UNKNOWN",REPAIR:"REPAIR",HSA1:"HSA1",HSA2:"HSA2",INTERSTITIAL:"INTERSTITIAL",SIGNIN:"SIGNIN",MANAGED:"MANAGED"}),N=r.a.extend({mixinDependencies:[I.a,O.a],viewClass:v.a,view:a.b({downstreamBindings:{src:"(owner).appleIdUrl",isHidden:"(owner).isHidden",frameClassName:"(owner).frameClassName"}}),frameClassName:a.b({type:String,defaultValue:"apple-id-frame-view"}),delegate:o.d({type:_.a}),isHidden:a.b({type:Boolean}),appleIdUrl:a.b({type:String,readOnly:!0,dependencies:["_configuredAppleIdUrl"],get:Object.assign(function(){return this._configuredAppleIdUrl},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])}})}),locale:o.d({type:String,set:function(e){var t=this._appleIdUrlBase;t.setQueryParameter("locale",e),this._setAppleIdUrl(t)},get:function(){return this._appleIdUrlBase.getQueryParameter("locale")}}),appleIdUIMode:o.d({readOnly:!0,type:L,get:function(){return this._currentAppleIdUIMode}}),isiForgotLinkVisible:o.d({type:Boolean}),isCreateLinkVisible:o.d({type:Boolean}),isRememberMeLinkVisible:o.d({type:Boolean}),appleIdRememberMeCheckBoxTitle:o.d({type:D,defaultValue:D.KEEP_ME_SIGNED_IN}),signInLabel:o.d({type:String}),uiTheme:o.d({type:T,defaultValue:T.DARK}),defaultAccountNameAutoFillDomain:o.d({type:String}),logoImageSource:o.d({type:String}),logoImageWidth:o.d({type:Number}),accountName:o.d({type:String}),forceCRAuth:o.d({type:Boolean}),skipTrustBrowserStep:o.d({type:Boolean}),pauseBetweenSteps:o.d({type:Boolean,defaultValue:!1}),_serviceKey:o.d({readOnly:!0,type:String,get:function(){var e=this._appleIdUrlBase.getQueryParameter("widgetKey"),t=this._appleIdUrlBase.getQueryParameter("client_id");return e||t}}),trustTokens:o.d({type:Array}),appName:o.d({type:String}),init:function(e){this.__s._$2eE$init.call(this),e||s.b("[AppleIdViewController] no url specified"),this._appleIdUrlBase=c.a.create(e),this._messagingFromAppleIdViewProxy=w.a.create(this,I.a,this._appleIdViewProxy);var t,n=((t=e)||s.b("[AppleIdViewController] originFromUrl: No url specified"),c.a.create(t).origin);this._createWindowChannel(n),this._startTimer()},authorizationDidStart:function(e){l.b.debug("[AuthenticationViewController] authorizationDidStart"),this._stopTimer(),this.view.isHidden=!0,this.delegate.appleIdWillStart(this)},authorizationDidComplete:function(e){l.b.debug("[AuthenticationViewController] authorizationDidComplete",e);var t=e.grant_code,n=y.a.create({delegateMethodTarget:this.delegate,delegateMethodName:"appleIdDidFinish",clearsMessage:"appleIdStepDidComplete",delegateMethodArguments:[this,void 0,void 0,{dsGrantCode:t},void 0,void 0,void 0]});this._messageProcessor.enqueue(n)},authorizationDidFail:function(){l.b.debug("[AuthenticationViewController] authorizationDidFail"),this.view.isHidden=!1},authorizationDidCancel:function(){l.b.debug("[AuthenticationViewController] authorizationDidCancel"),this.view.isHidden=!1},continueAuthentication:function(){this.pauseBetweenSteps&&this._appleIdViewProxy.resume2FA()},receivePingRequest:function(e,t){l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] [receivePingRequest] Next message ["+t+"]"),this._messagingFromAppleIdViewProxy.protocolMessageForIdentifier(e).nextMessageToBeReceived=t},ready:function(e,t){l.b.debug("[AppleIdViewController] ["+Date.now()+"] "+this.appleIdUrl),l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] [ready] message ["+JSON.stringify(t)+"]"),this.view.isHidden=!1},config:function(e){l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] config");var t=this._configHash,n=this.delegate;l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] Using config hash: "+JSON.stringify(t)),this._appleIdViewProxy.configPayload(e,t),n.appleIdWillStart(this),this._stopTimer()},passwordAuthDone:function(e,t,n){var i=n.accountName,r=n.session,a=n.accountCountry,o=n.accountType,s=this._authenticatingAppleIdAccountType=g.a.getItemForValue(o)||g.a.UNKNOWN,c=this.delegate,l=this._completedAuthenticationStep;if(t){var u=this._totalNumberOfAuthenticationSteps=function(e){return function(e){return e===g.a.MANAGED||e===g.a.HSA1||e===g.a.HSA2}(e)?2:1}(s),d=y.a.create({preceedingMessageExpiry:new Date(Date.now()+1e3),delegateMethodTarget:this.delegate,delegateMethodName:"appleIdStepDidComplete",delegateMethodIsAsync:!0,delegateMethodArguments:[this,i,s,{dsWebAuthToken:r},a,l,u]});this._messageProcessor.enqueue(d)}else{var h=n.result,p=h.code,f=h.data,m=f.code,b=f.message;c.appleIdDidFail(this,i,p,m,b)}},complete:function(e,t){var n=this._authenticatingAppleIdAccountType,i=this._completedAuthenticationStep,r=this._totalNumberOfAuthenticationSteps,a=t.accountName,o=t.session,s=t.accountCountry,c=t.rememberMe,l=t.trustToken;if(r>1&&1===i){this._completedAuthenticationStep++;var u=y.a.create({delegateMethodTarget:this.delegate,delegateMethodName:"appleIdStepDidComplete",delegateMethodIsAsync:!0,delegateMethodArguments:[this,a,n,{dsWebAuthToken:o},s,this._completedAuthenticationStep,r]});this._messageProcessor.enqueue(u)}var d=y.a.create({delegateMethodTarget:this.delegate,delegateMethodName:"appleIdDidFinish",clearsMessage:"appleIdStepDidComplete",delegateMethodArguments:[this,a,n,{dsWebAuthToken:o},s,c,l]});this._messageProcessor.enqueue(d)},repairDidStart:function(e){l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] repairDidStart");var t=y.a.create({preceedsMessage:"appleIdStepDidComplete",delegateMethodTarget:this.delegate,delegateMethodName:"appleIdRepairDidStart",delegateMethodArguments:[this]});this._messageProcessor.enqueue(t)},authDidCancel:function(e,t){l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] authDidCancel - errorObject: ["+JSON.stringify(t)+"]"),this.delegate.appleIdDidCancel(this)},authFailedToLoad:function(e,t){l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] authFailedToLoad - errorObject: ["+JSON.stringify(t)+"]"),this._stopTimer(),this._notifyErrorDelegate(E.DID_NOT_LOAD)},authWidgetWillChangeFlow:function(e,t){var n=t.to,i=L.getItemForValue(n)||L.UNKNOWN,r=i===L.HSA1||i===L.HSA2||i===L.MANAGED;l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] authWidgetWillChangeFlow ["+i.value+"] - message: ["+JSON.stringify(t)+"]");var a=y.a.create({preceedsMessage:i===L.REPAIR?"appleIdStepDidComplete":void 0,clearsMessage:r?"appleIdStepDidComplete":void 0,delegateMethodTarget:this.delegate,delegateMethodName:"appleIdModeWillChange",delegateMethodArguments:[this,i]});this._messageProcessor.enqueue(a)},authWidgetDidChangeFlow:function(e,t){var n=t.to,i=this._currentAppleIdUIMode=L.getItemForValue(n)||L.UNKNOWN;l.b.debug("[AppleIdViewController] ["+Date.now()+"] ["+e+"] authWidgetDidChangeFlow ["+i.value+"] - message: ["+JSON.stringify(t)+"]");var r=y.a.create({preceedsMessage:i===L.REPAIR?"appleIdStepDidComplete":void 0,delegateMethodTarget:this.delegate,delegateMethodName:"appleIdModeDidChange",delegateMethodArguments:[this,i]});this._messageProcessor.enqueue(r)},_timer:o.d({type:Number}),_startTimer:function(){var e=this;this._timer&&s.b("[AuthenticationViewController] existing timer is set"),this._timer=u.a(function(){return e._appleIdHasTimedOut()},45e3)},_stopTimer:function(){e.clearTimeout(this._timer),this._timer=void 0},_appleIdHasTimedOut:function(){this._notifyErrorDelegate(E.TIMEOUT),this._messagingChannel&&this._messagingChannel.stop()},_authenticatingAppleIdAccountType:o.d({type:g.a}),_completedAuthenticationStep:o.d({type:Number,defaultValue:1}),_totalNumberOfAuthenticationSteps:o.d({type:Number}),_currentAppleIdUIMode:o.d({type:L,defaultValue:L.SIGNIN}),_appleIdUrlBase:o.d({type:c.a}),_configuredAppleIdUrl:a.b({type:String}),_setAppleIdUrl:function(e){this._configuredAppleIdUrl=e.href},_appleIdViewProxy:o.d({defaultValue:function(){var e=d.a(this);return h.a.extend({staticMembers:{__QUALIFIED_CLASS_NAME__:e+".remoteProxy"}}).create()}}),_configHash:o.d({readOnly:!0,get:function(){return{data:this._dataHash}}}),_featuresHash:o.d({readyOnly:!0,type:Object,get:function(){return{rememberMe:this.isRememberMeLinkVisible,createLink:this.isCreateLinkVisible,iForgotLink:this.isiForgotLinkVisible,pause2FA:this.pauseBetweenSteps,skipTrustBrowserStep:this.skipTrustBrowserStep}}}),_logoHash:o.d({readyOnly:!0,get:function(){var e=void 0,t=this.logoImageSource,n=this.logoImageWidth;return t&&n&&(e={src:t,width:n+"px"}),e}}),_dataHash:o.d({readyOnly:!0,type:Object,get:function(){var e=this._featuresHash,t=this.uiTheme,n=this._logoHash,i=this.appleIdRememberMeCheckBoxTitle,r=this.accountName,a=this.forceCRAuth,o={features:e};return M(this,o,"signInLabel"),M(this,o,"_serviceKey","serviceKey"),M(this,o,"defaultAccountNameAutoFillDomain"),o.trustTokens=this.trustTokens||[],o.rememberMeLabel=i.value,o.theme=t.value,o.waitAnimationOnAuthComplete=!1,n&&(this.appName?(M(this,o,"appName"),o.logo=void 0):o.logo=n),r&&(o.accountName=r),a&&(o.forceCRAuth=a),o}}),_messagingChannel:o.d({type:m.a}),_createWindowChannel:function(e){var t=p.a.create({iframe:this.view.appleIdUIFrameView,remoteOrigin:e}),n=this._messagingChannel=b.a.extend({prefix:"pmrpc.",responseMethods:S.a.responseMethods}).create(t);n.setListener(I.a,this),n.setConnection(S.a,this._appleIdViewProxy),n.start();var i=A.a.create(t);i.setListener(O.a,this),i.start()},_messagingFromAppleIdViewProxy:o.d({type:w.a}),_notifyErrorDelegate:function(e){var t=this.delegate;t&&t.appleIdError(this,e,{authenticationMessages:this._messagingFromAppleIdViewProxy.protocolMessages})},_messageProcessor:f.c(C.a),__superMap:{_$2eE$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"AppleIdViewController"}});function M(e,t,n,i){var r=e[n];r&&(t[i||n]=r)}}).call(this,n(31))},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return a});var i=n(597),r=(n(22),n(98)),a=i.a.extend({id:"auth-frame",title:"Apple Id Sign-In",frameClassName:r.b(),staticMembers:{__QUALIFIED_CLASS_NAME__:"AppleIdView"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return h});var i=n(95),r=n(818),a=n(819),o=n(863),s=n(86),c=n(81),l=n(861),u=n(100),d=i.b("MessageState",{UNKNOWN:"UNKNOWN",PENDING:"PENDING",CLEARED:"CLEARED",RUNNING:"RUNNING"}),h=r.a.extend({enqueue:function(e){e||a.b("[AuthenticationMessageProcessor] enqueue: No pending message to queue");var t=void 0,n=e.preceedsMessage,i=e.preceedingMessageExpiry,r=e.clearsMessage,s=e.delegateMethodName;return o.b.debug("[AuthenticationMessageProcessor] ["+s+"] enqueue"),n?(o.b.debug("[AuthenticationMessageProcessor] ["+s+"] enqueue - preceeds message "+n),this._cancelPendingMessageTimer(n),t=this._insertMessageBefore(e,n),this._processNextItemInQueue()):i?(o.b.debug("[AuthenticationMessageProcessor] ["+s+"] enqueue - pending message"),t=this._queuePendingMessage(e)):r?(o.b.debug("[AuthenticationMessageProcessor] ["+s+"] enqueue - clears message "+r),t=this._queueMessage(e),this._clearPendingMessage(r),this._processNextItemInQueue()):(o.b.debug("[AuthenticationMessageProcessor] ["+s+"] enqueue"),t=this._queueMessage(e)),t},_queue:s.c([]),_pendingMessage:s.c(Map),_pendingProcessQueueItemTimer:c.d(),_processNextItemInQueue:function(){var e=this;this._pendingProcessQueueItemTimer?o.b.debug("[AuthenticationMessageProcessor] _processNextItemInQueue - already pending"):this._pendingProcessQueueItemTimer=l.a(function(){o.b.debug("[AuthenticationMessageProcessor] _processNextItemInQueue"),e._pendingProcessQueueItemTimer=void 0;var t=e._queue,n=e._peekQueue();if(n){var i=n.message,r=n.promise,a=e._pendingMessageState(i.delegateMethodName),s=!a||a===d.CLEARED;o.b.debug("[AuthenticationMessageProcessor] _processNextItemInQueue: checking if the "+i.delegateMethodName+" should be processed ["+s+"] for state ["+a+"]"),s?(o.b.debug("[AuthenticationMessageProcessor] _processNextItemInQueue: processing "+i.delegateMethodName),e._processMessageAction(i,r),t.length>0?(o.b.debug("[AuthenticationMessageProcessor] _processNextItemInQueue - continuing"),e._processNextItemInQueue()):o.b.debug("[AuthenticationMessageProcessor] _processNextItemInQueue - no more items")):o.b.debug("[AuthenticationMessageProcessor] _processNextItemInQueue: skipping "+i.delegateMethodName)}})},_processMessageAction:function(e,t){var n=this,i=e.delegateMethodTarget,r=e.delegateMethodName,s=e.delegateMethodArguments,c=e.delegateMethodIsAsync,l=e.preceedingMessageExpiry;o.b.debug("[AuthenticationMessageProcessor]  ["+e.delegateMethodName+"] _processMessageAction, [async: "+c+"]"),l&&this._setPendingMessageState(r,d.RUNNING);var u=i[r];u||a.b("[AuthenticationMessageProcessor] No delegate method found for "+r);var h=u.apply(i,s);c&&h?(o.b.debug("[AuthenticationMessageProcessor]  ["+e.delegateMethodName+"] _processMessageAction promise returned"),h.then(function(){o.b.debug("[AuthenticationMessageProcessor]  ["+e.delegateMethodName+"] _processMessageAction promise FINISHED"),t.resolve(),l&&n._removePendingMessage(r),n._popQueue(),n._processNextItemInQueue()})):(o.b.debug("[AuthenticationMessageProcessor]  ["+e.delegateMethodName+"] _processMessageAction nothing returned"),t.resolve(),l&&this._removePendingMessage(r),this._popQueue())},_cancelPendingMessageTimer:function(e){var t=this._pendingMessage.get(e);if(t){var n=t.timer;t.timer&&(clearTimeout(n),t.timer=void 0)}},_insertMessageBefore:function(e,t){for(var n=this._queue,i=0,r=0,a=0,o=n.length;a<o;a++,++r)if(n[a].message.delegateMethodName===t){i=a;break}return r===n.length?this._queueMessage(e):this._insertMessageAtIndex(e,i)},_queuePendingMessage:function(e){var t=this;e||a.b("[AuthenticationMessageProcessor] _queuePendingMessage: No pending message to queue");var n=e.preceedingMessageExpiry,i=e.delegateMethodName;n||a.b("[AuthenticationMessageProcessor] _queuePendingMessage: No preceeding message expiry"),i||a.b("[AuthenticationMessageProcessor] _queuePendingMessage: No delegate method name");var r=this._pendingMessageState(i);if(o.b.debug("[AuthenticationMessageProcessor]  ["+i+"] _queuePendingMessage ["+r+"]"),!r||r!==d.CLEARED&&r!==d.PENDING){o.b.debug("[AuthenticationMessageProcessor]  ["+i+"] _queuePendingMessage - starting timer");var s=n.getTime()-Date.now(),c=l.a(function(){o.b.debug("[AuthenticationMessageProcessor]  ["+i+"] _queuePendingMessage - pending message timer tick"),t._cancelPendingMessageTimer(i),t._pendingMessage.get(i).state=d.COPMLETE,t._processNextItemInQueue()},s);this._pendingMessage.set(i,{message:e,timer:c,state:d.PENDING})}else o.b.debug("[AuthenticationMessageProcessor]  ["+i+"] _queuePendingMessage - cleared, no timer set"),this._processNextItemInQueue();return this._queueMessage(e)},_queueMessage:function(e){e||a.b("[AuthenticationMessageProcessor] _queueMessage: No pending message to queue");var t=this._queue,n=u.a.create();return t.push({message:e,promise:n}),n},_insertMessageAtIndex:function(e,t){var n=this._queue,i=u.a.create();return n.splice(t,0,{message:e,promise:i}),i},_clearPendingMessage:function(e){this._cancelPendingMessageTimer(e),this._setPendingMessageState(e,d.CLEARED)},_setPendingMessageState:function(e,t){var n=this._pendingMessage.get(e);if(n){var i=n.state?n.state.value:"undefined";o.b.debug("[AuthenticationMessageProcessor]  ["+e+"] Setting State from "+i+" -> "+t.value),n.state=t}else this._pendingMessage.set(e,{state:t})},_removePendingMessage:function(e){this._cancelPendingMessageTimer(e),this._pendingMessage.delete(e)},_peekQueue:function(){return this._queue[0]},_popQueue:function(){return this._queue.shift()},_pendingMessageState:function(e){var t=void 0,n=this._pendingMessage.get(e);return n&&(t=n.state),t},staticMembers:{__QUALIFIED_CLASS_NAME__:"AuthenticationMessageProcessor"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"AuthenticationServiceFromChildProtocol",version:"1.0.0",authenticateUser:i.a.define(),unauthenticateUser:i.a.define(),reauthenticateUser:i.a.define(),retrieveSession:i.a.define()}},function(e,t,n){"use strict";n.d(t,"a",function(){return a});var i=n(94),r=n(830),a={mixinDependencies:[i.a],createAccountWillStart:r.a.define(),createAccountCompleted:r.a.define(),createAccountError:r.a.define(),createAccountPasswordChange:r.a.define(),createAccountCanceled:r.a.define(),createAccountResize:r.a.define(),createAccountCreateAlert:r.a.define(),createAccountUpdateAlert:r.a.define(),createAccountHideAlert:r.a.define(),createAccountIsAlertVisible:r.a.define()}},function(e,t,n){"use strict";(function(e){n(0),n(28),n.d(t,"a",function(){return I});var i=n(95),r=n(871),a=n(98),o=n(81),s=n(866),c=n(819),l=n(863),u=n(861),d=n(822),h=n(818),p=n(931),f=n(1059),m=n(607),g=n(1113),b=n(1111),v=n(313),_=n(420),y=n(600),C=i.b("CreateAccountError",{TIMEOUT:"Timeout loading authentication",INVALID_DATA:"Invalid data received",DID_NOT_LOAD:"Authentication did not load"}),I=r.a.extend({mixinDependencies:[v.a],viewClass:g.a,view:a.b({downstreamBindings:{src:"(owner).createAccountUrl"}}),delegate:o.d({type:b.a}),createAccountUrl:a.b({type:String,readOnly:!0,dependencies:["_createAccountUrlBase","locale"],get:Object.assign(function(){var e=this._createAccountUrlBase;if(e){if(this.locale){var t=s.a.create(this._createAccountUrlBase.href);return t.setQueryParameter("locale",this.locale),t.href}return e.href}return""},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);if(r){if(i.internalGet(this,t[1+n])){var a=s.a.create(i.internalGet(this,t[0+n]).href);return a.setQueryParameter("locale",i.internalGet(this,t[1+n])),a.href}return r.href}return""}})}),locale:a.b({type:String}),init:function(e){this.__s._$r5$init.call(this),e||c.b("[CreateAccountViewController] no url specified"),this._createAccountUrlBase=s.a.create(e),this._messagingFromCreateAccountViewProxy=_.a.create(this,v.a,this._createAcccountViewProxy);var t,n=((t=e)||c.b("[CreateAccountViewController] originFromUrl: No url specified"),s.a.create(t).origin);this._createWindowChannel(n),this._startTimer()},receivePingRequest:function(e,t){this._messagingFromCreateAccountViewProxy.protocolMessageForIdentifier(e).nextMessageToBeReceived=t},ready:function(e){this.delegate.createAccountWillStart()},getConfig:function(e){l.b.debug("[CreateAccountViewController] ["+Date.now()+"] ["+e+"] config");var t=this._configHash;l.b.debug("[CreateAccountViewController] ["+Date.now()+"] ["+e+"] Using config hash: "+JSON.stringify(t)),this._createAcccountViewProxy.configPayload(e,t),this._stopTimer()},completed:function(e,t){"boolean"!=typeof t||t?this.delegate.createAccountCompleted(this,t):this._notifyErrorDelegate(C.INVALID_DATA)},createAlert:function(e,t){var n=this.delegate.createAccountCreateAlert(this,t);this._createAcccountViewProxy.alertGUID(e,n)},updateAlert:function(e,t,n){this.delegate.createAccountUpdateAlert(this,t,n)},hideAlert:function(e,t){this.delegate.createAccountHideAlert(this,t)},isAlertVisible:function(e,t){var n=this.delegate.createAccountIsAlertVisible(this,t);this._createAcccountViewProxy.isAlertVisible(e,n)},exit:function(e,t){t&&t.error?this._notifyErrorDelegate(t.error):this.delegate.createAccountCanceled(this)},passwordChanged:function(e){this.delegate.createAccountPasswordChange(this)},resize:function(e,t){this.delegate.createAccountResize(this,t)},alertButtonClicked:function(e,t,n){this._createAcccountViewProxy.alertButtonClicked(e,t,n)},_timer:o.d({type:Number}),_startTimer:function(){var e=this;this._timer&&c.b("[AuthenticationViewController] existing timer is set"),this._timer=u.a(function(){return e._createAccountHasTimedOut()},45e3)},_stopTimer:function(){e.clearTimeout(this._timer),this._timer=void 0},_createAccountHasTimedOut:function(){this.delegate&&this._notifyErrorDelegate(C.TIMEOUT),this._messagingChannel&&this._messagingChannel.stop()},_createAccountUrlBase:a.b({type:s.a}),_createAcccountViewProxy:o.d({defaultValue:function(){var e=d.a(this);return h.a.extend({staticMembers:{__QUALIFIED_CLASS_NAME__:e+".remoteProxy"}}).create()}}),_configHash:o.d({readOnly:!0,get:function(){return{language:this.locale,customAlerts:!0}}}),_messagingChannel:o.d({type:f.a}),_createWindowChannel:function(e){var t=p.a.create({iframe:this.view.appleIdUIFrameView,remoteOrigin:e}),n=this._messagingChannel=m.a.extend({prefix:"AppleID.",responseMethods:y.a.responseMethods}).create(t);n.setListener(v.a,this),n.setConnection(y.a,this._createAcccountViewProxy),n.start()},_messagingFromCreateAccountViewProtocol:o.d({type:v.a}),_notifyErrorDelegate:function(e){e||c.b("Need to provide status");var t=this.delegate;t&&t.createAccountError(this,e,{createAccountMessages:this._messagingFromCreateAccountViewProxy.protocolMessages})},__superMap:{_$r5$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CreateAccountViewController"}})}).call(this,n(31))},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return r});var i=n(597),r=(n(28),i.a.extend({id:"create-account-frame",title:"Create Apple ID",frameClassName:"create-account-frame-view",staticMembers:{__QUALIFIED_CLASS_NAME__:"CreateAccountView"}}))},function(e,t,n){"use strict";n.d(t,"a",function(){return l});var i=n(818),r=n(78),a=n(98),o=n(80),s=n(819),c=n(1156),l=i.a.extend({mixinDependencies:[r.b],locKey:a.b({type:String}),options:a.b({type:Object}),value:Object(c.a)({readOnly:!0,dependencies:["locKey","options"],get:function(){var e=this.locKey,t=this.options;return o.d(e,t)}}),init:function(e,t){this.__s._$Jo$init.call(this),e||s.b("[ObservableLocalizedString] Missing loc key"),this.locKey=e,this.options=t},__superMap:{_$Jo$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ObservableLocalizedString"}})},function(e,t,n){"use strict";n(0),n.d(t,"a",function(){return l});var i=n(877),r=n(899),a=n(104),o=n(98),s=n(948),c=n(244),l=(n(10),i.a.extend({mixinDependencies:[r.a],staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"VIEWOUTLET",tagname:"view",name:"labelView"},{type:"VIEWOUTLET",tagname:"view",name:"symbolView"}],classes:["cw-button"]}},__QUALIFIED_CLASS_NAME__:"SymbolButton"},additionalClassNames:a.b(["symbol-button"]),layoutMode:o.b("layoutBox"),labelView:o.b({readOnly:!0,strong:!0,type:s.a,get:function(){return s.a.create({value:this.bindingFor("title")})}}),symbolView:o.b({readOnly:!0,strong:!0,type:i.a,get:function(){return i.a.extend(c.a).create({additionalClassNames:a.b(["symbol-view"]),desiredFontSize:this.bindingFor("desiredFontSize"),layoutMode:this.bindingFor("layoutMode"),otherSymbolProps:this.bindingFor("otherSymbolProps"),symbolMetadata:this.bindingFor("symbolMetadata")})}}),desiredFontSize:o.b(),otherSymbolProps:o.b(),symbolMetadata:o.b(),title:o.b()}))},function(e,t,n){"use strict";(function(e){n(0),n(5),n.d(t,"a",function(){return c}),n.d(t,"b",function(){return u}),n.d(t,"c",function(){return d});var i=n(98),r=n(866),a=n(898),o=n(244),s=n(601),c={action:"navigateToExternalURL",context:i.b({readOnly:!0,dependencies:["externalURL"],get:Object.assign(function(){return r.a.create(this.externalURL)},{__CW__getter:function(e,t,n,i){return r.a.create(i.internalGet(this,t[0+n]))}})}),externalURL:i.b(),navigateToExternalURL:function(){e.top.open().location.href=this.externalURL}},l=a.a.extend(c,{staticMembers:{__QUALIFIED_CLASS_NAME__:"ExternalURLButton"}}),u=l.extend({mixinDependencies:[s.a],staticMembers:{__QUALIFIED_CLASS_NAME__:"ExternalURLSvgIconButton"}}),d=l.extend({mixinDependencies:[o.a],staticMembers:{__QUALIFIED_CLASS_NAME__:"ExternalURLSymbolButton"}})}).call(this,n(31))},function(e,t,n){"use strict";n(0),n(176),n.d(t,"a",function(){return o});var i=n(98),r=n(80),a=n(316),o=n(431).a.extend({viewClass:a.a,view:i.b({type:a.a,downstreamBindings:{contentTitle:"(owner).contentTitle",contentDescription:"(owner).contentDescription",additonalContentDescription:"(owner).additonalContentDescription"}}),contentTitle:i.b({type:String,dependencies:["data"],readOnly:!0,get:function(){var e=this.data;if(e)return e.phoneNumber?r.d("CloudOS.OutOfNetworkAcceptance.TextMessageSent.Title"):r.d("CloudOS.OutOfNetworkAcceptance.EmailSent.Title")}}),contentDescription:i.b({type:String,dependencies:["data"],readOnly:!0,get:function(){var e=this.data;if(e)return e.phoneNumber?r.d("CloudOS.OutOfNetworkAcceptance.TextMessageSent.Description",{phoneNumber:e.phoneNumber}):r.d("CloudOS.OutOfNetworkAcceptance.EmailSent.Description")}}),additonalContentDescription:i.b({type:String,dependencies:["data"],readOnly:!0,get:function(){var e=this.data;if(e)return e.phoneNumber?r.d("CloudOS.OutOfNetworkAcceptance.TextMessageSent.AdditionalDescription"):""}}),navigationHeaderTitle:i.b({type:String,defaultValue:r.d("CloudOS.OutOfNetworkAcceptance.VerifyAccess.Title")}),primaryButtonTitle:i.b({type:String,defaultValue:r.d("CloudOS.OutOfNetworkAcceptance.DoneButton.Title")}),data:i.b({}),staticMembers:{__QUALIFIED_CLASS_NAME__:"EmailOrMessageSentViewController"}})},function(e,t,n){"use strict";n.d(t,"a",function(){return r});var i=n(830),r={mixinDependencies:[n(1050).a],name:"MeCardServiceFromChildProtocol",version:"1.0.0",fetchMeCard:i.a.define(),deleteMeCardPhoto:i.a.define(),storeMeCardPhoto:i.a.define()}},function(e,t,n){"use strict";(function(e){n(1),n(0),n(5),n(2),n(7),n(15),n(4),n(3),n(6),n(33),n(13),n(58),n(60),n(191),n.d(t,"a",function(){return D});var i=n(877),r=n(86),a=n(81),o=n(98),s=n(846),c=n(78),l=n(80),u=n(835),d=n(861),h=n(904),p=n(948),f=n(100),m=n(561),g=n(879),b=n(891),v=n(1044),_=n(1045),y=n(1093),C=n(1165),I=(n(217),n(161)),w=n(248),S=n(131),A=n(424),O=n(11),E=n(1092),T=function(){function e(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),D=i.a.extend(S.a,{staticMembers:{template:{type:"ELEMENT",tagname:"div",classes:["springboard-view"]},__QUALIFIED_CLASS_NAME__:"SpringboardView"},layoutsAndTimes:r.c(Array),isAnimationDisabled:a.d({get:function(){return this._animationDisabledCount>0}}),appSwitcherView:o.b({type:i.a}),profileSummaryView:o.b({type:i.a}),learnMoreDetailView:o.b({type:A.a,defaultValue:r.c(A.a)}),size:o.b({type:I.c}),laidOutContentPropertyPaths:{avatar:"profileSummaryView.meCardPhotoView",greeting:"profileSummaryView.greetingLabelView",accountSettings:"profileSummaryView.settingsLinkView",appIcon:"appIconViewsByAppName",learnMoreDetailLabel:"learnMoreDetailView"},lastSeenViewsByLayoutItemKey:a.d(function(){return new R}),_animationDisabledCount:0,disableLayoutAnimations:function(){this._animationDisabledCount++},enableLayoutAnimations:function(){this._animationDisabledCount--},displayElements:function(){this.shouldLayOutElements=!0},appIconViewsByAppName:o.b({readOnly:!0,dependencies:["appSwitcherView.childViews","appSwitcherView.childViews.contentsDidChangeUntracked"],get:Object.assign(function(){var e={},t=this.getPath("appSwitcherView.childViews");if(!t||!t.length)return e;var n=t,i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var o=a;o&&(e[o.getPath("content.applicationIdentifier")]=o)}return e},{__CW__getter:function(e,t,n,i){var r={},a=i.internalGetPath(this,t[0+n]);if(!a||!a.length)return r;var o=a,s=Array.isArray(o),c=0;for(o=s?o:o[Symbol.iterator]();;){var l;if(s){if(c>=o.length)break;l=o[c++]}else{if((c=o.next()).done)break;l=c.value}var u=l;u&&(r[u.getPath("content.applicationIdentifier")]=u)}return r}})}),appNames:o.b({readOnly:!0,dependencies:["appIconViewsByAppName"],get:Object.assign(function(){return Object.keys(this.appIconViewsByAppName)},{__CW__getter:function(e,t,n,i){return Object.keys(i.internalGet(this,t[0+n]))}})}),shouldLayOutElements:o.b({type:Boolean,defaultValue:!1}),nonScrollingAvailableContentWidth:o.b(),nonScrollingAvailableContentHeight:o.b(),availableContentAreaDidChange:function(e){s.a.begin().setIfChanged(this,"nonScrollingAvailableContentWidth",e.width).setIfChanged(this,"nonScrollingAvailableContentHeight",e.height).end()},_ignoreLearnMoreDetailText:a.d({type:Boolean,readOnly:!0,get:function(){var e=O.a.deviceType,t=E.a.sharedInstance,n=t.sizeClassHorizontal,i=t.sizeClassVertical,r=n===y.a.COMPACT||i===y.a.COMPACT;return!(e===v.a.PHONE||r&&e===v.a.TABLET)}}),_maintainLayoutObserver:c.h("isAttached","shouldLayOutElements","nonScrollingAvailableContentWidth","nonScrollingAvailableContentHeight","appNames","profileSummaryView.greetingLabelView.value","profileSummaryView.settingsLinkView.settingsLinkText","learnMoreDetailView.value",l.a.sharedInstance.bindingFor("isRTL"),function(){var e;this.hasOwnProperty("_maintainLayoutObserver")||(this._maintainLayoutObserver=this._maintainLayoutObserver.bind(this)),L.then((e=this._maintainLayout).bind.apply(e,[this].concat(Array.prototype.slice.call(arguments),[this._layoutIgnoranceToken=Math.random()])))}),_maintainLayout:function(e,t,n,i,r,a,o,s,c,l){if(l===this._layoutIgnoranceToken&&e&&t&&!this.isDisposed){var d=x(n,i,r,a,o,this._ignoreLearnMoreDetailText,s,c),h=this.layoutsAndTimes,p=d._reconstructionArguments,f=h[0];if(!f||u.a(p,N)!==u.a(f._reconstructionArguments,N)){this.isAnimationDisabled&&(h.length=0);var m=performance.now(),g=m+250;f&&(f.departureStartTime=m,f.departureEndTime=g),h.unshift({_reconstructionArguments:p,departureStartTime:void 0,departureEndTime:void 0,arrivalStartTime:m,arrivalEndTime:h.length?g:m})}this._ensureApplicationOfOrAnimationTowardMostRecentLayout(),this.size=I.c.SMALL}},_filterLatsRelevantForTime:function(e,t){return e.filter(function(e){return e.arrivalStartTime<=t&&e.arrivalEndTime>=t||e.departureStartTime<=t&&e.departureEndTime>=t||!e.departureStartTime||!e.departureEndTime})},_ensureApplicationOfOrAnimationTowardMostRecentLayout:function(){var e=this.layoutsAndTimes;clearTimeout(this._nextFrameTimeout),cancelAnimationFrame(this._nextFrameTimeout);var t=performance.now(),n=this._filterLatsRelevantForTime(e,t);e.length=0,e.push.apply(e,n),e[0]&&(e[1]?(this.hasOwnProperty("_doNextFrame")||(this._doNextFrame=this._doNextFrame.bind(this)),this._doNextFrame("avoidRescheduling"),g.a.sharedInstance.isChrome&&b.a.application.primaryInteractionMode===_.a.MOUSE?(this._nextFrameTimeout=d.a(this._doNextFrame,100,void 0,!0),this._chromeDelayBeginTime=performance.now()):this._nextFrameTimeout=h.a(this._doNextFrame)):this._applyLayout(x.apply(void 0,[this.nonScrollingAvailableContentWidth,this.nonScrollingAvailableContentHeight].concat(e[0]._reconstructionArguments))))},_doNextFrame:function(e,t){clearTimeout(this._nextFrameTimeout),cancelAnimationFrame(this._nextFrameTimeout);var n=performance.now();if(t){var i=n-this._chromeDelayBeginTime,r=this.layoutsAndTimes,a=Array.isArray(r),o=0;for(r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var c=s;c.arrivalEndTime+=i,c.arrivalStartTime+=i,c.departureEndTime+=i,c.departureStartTime+=i}}var l=this._filterLatsRelevantForTime(this.layoutsAndTimes,n);this._applyLayout(this._getNestedWeightedAverageLayoutAtTime(l,n)),"avoidRescheduling"!==e&&l.length>=2&&(this._nextFrameTimeout=h.a(this._doNextFrame))},_getNestedWeightedAverageLayoutAtTime:function(e,t){var n=[this.nonScrollingAvailableContentWidth,this.nonScrollingAvailableContentHeight];if(1===e.length)return x.apply(void 0,n.concat(e[0]._reconstructionArguments));for(var i,r=void 0,a=e.length-2;a>=0;a--){var o=e[a+1],s=e[a],c=(i=(t-s.arrivalStartTime)/(s.arrivalEndTime-s.arrivalStartTime),.5-.5*Math.cos(i*Math.PI));r=this._getWeightedAverageOfTwoLayouts(c,x.apply(void 0,n.concat(s._reconstructionArguments)),r||x.apply(void 0,n.concat(o._reconstructionArguments)))}return r},_getWeightedAverageOfTwoLayouts:function(e,t,n){var i=e,r=1-i,a={},o=new Set([].concat(Object.keys(t),Object.keys(n))),s=Array.isArray(o),c=0;for(o=s?o:o[Symbol.iterator]();;){var l;if(s){if(c>=o.length)break;l=o[c++]}else{if((c=o.next()).done)break;l=c.value}var u=l;if("_"!==u[0]){var d=t[u]||n[u],h=n[u]||t[u],p=!!t[u],f=!!n[u],m=a[u]=new(d||h).constructor,g=d._isForText?1:i,b=1-g;m._isForText=d._isForText,m.parentRect=d.parentRect,m.x=d.x*i+r*h.x,m.y=d.y*i+r*h.y,m.width=d.width*g+b*h.width,m.height=d.height*g+b*h.height,m.originX=d.originX*i+r*h.originX,m.originY=d.originY*i+r*h.originY,m.parentOriginX=d.parentOriginX*i+r*h.parentOriginX,m.parentOriginY=d.parentOriginY*i+r*h.parentOriginY,m.parentAnchorX=d.parentAnchorX*i+r*h.parentAnchorX,m.parentAnchorY=d.parentAnchorY*i+r*h.parentAnchorY,m.existence=(p?d.existence:0)*i+r*(f?h.existence:0)}}return a},_applyLayout:function(e){var t=new Set,n=-1/0,i=1/0;for(var r in e)if("_"!==r[0]){var a=e[r],o=void 0,s=r.indexOf("."),c=(o=-1===s?this.laidOutContentPropertyPaths[r]:this.laidOutContentPropertyPaths[r.substring(0,s)]+r.substring(s))&&this.getPath(o);c?this.lastSeenViewsByLayoutItemKey.set(r,c):c=this.lastSeenViewsByLayoutItemKey.get(r);var l=o&&this.getPath(o.substring(0,o.lastIndexOf(".")));if(l===this.appIconViewsByAppName&&(l=this.appSwitcherView),a&&c){var u=this.layOutItemWithLayoutRect(a,c,l||this,t),d=u.topY,h=u.bottomY;i=Math.min(i,d),n=Math.max(n,h)}}for(var p,f=this.element,m=Array.from(f.childNodes),g=0;p=m[g];g++)t.has(p)||p.classList.contains("bootstrap-mock-springboard-view")||f.removeChild(p);f.style.height=n+Math.min(i,.005*this.nonScrollingAvailableContentWidth)+"px"},layOutItemWithLayoutRect:function(e,t,n,i){var r={topY:e.absY,bottomY:e.absY+e.height},a=t.element,o=a.style;if(a.parentNode!==this.element&&(this.element.appendChild(a),t.parent=this,t.nextResponder=n),o.textAlign=e.originX<1/3?"left":e.originX<2/3?"center":"right",i.add(a),"function"==typeof t.doLayout)return t.doLayout(e),r;o.position="absolute",o.margin="0",o.left=o.top="0";var s=t.style.translateDevicePixels(e.absX,e.absY),c=e.width,l=e.height,u=.75*Math.sqrt(Math.min(142,this.nonScrollingAvailableContentWidth/1e3*45+33)/50)+.25;if(t.instanceOf(C.a))o.width=o.height="100px",t.iconWidth=100,t.iconHeight=100,s.scale(c/100,l/100),"0 0"!==a.style.transformOrigin&&(a.style.transformOrigin="0 0");else if(t.instanceOf(w.a)){var d=13*u/15;o.width=Math.ceil(c)+"px",o.height=Math.ceil(l)+"px",s.translate(c*(d-1)*(.5-e.originX),l*(d-1)*(.5-e.originY)).scale(d,d)}else t.instanceOf(p.a)?(o.width=Math.ceil(c)+"px",o.height=Math.ceil(l)+"px",s.translate(c*(u-1)*(.5-e.originX),0).scale(u,u)):t.instanceOf(A.a)?(o.width=Math.ceil(c)+"px",o.height=Math.ceil(l)+"px",s.scale(u,u)):(o.width=Math.ceil(c)+"px",o.height=Math.ceil(l)+"px");var h=e.existence;return h<1&&s.scale(h,h),o.opacity=h<1?h:"",r}}),L=f.a.resolve(),N=999,M={},P=void 0;function x(t,n){var i;P!==(P=1e9*t+n)&&m.a(M);var r=u.a(arguments,N);return M[r]||(M[r]=(i=e).calculateSpringboardViewLayout.apply(i,arguments))}var R=function(){function e(){!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this),this._map=arguments.length?new Map(arguments[0]):new Map;var t=this.values(),n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}F(r)}}return e.prototype.set=function(e,t){var n=this.get(e);F(t);var i=this._map.set(e,t);return j(n),i},e.prototype.delete=function(e){var t=this.get(e),n=this._map.delete(e);return j(t),n},e.prototype.clear=function(){var e=Array.from(this.values());this._map.clear();for(var t=0,n=e.length;t<n;t++)j(e[t])},e.prototype.entries=function(){var e;return(e=this._map).entries.apply(e,arguments)},e.prototype.forEach=function(){var e;return(e=this._map).forEach.apply(e,arguments)},e.prototype.get=function(){var e;return(e=this._map).get.apply(e,arguments)},e.prototype.has=function(){var e;return(e=this._map).has.apply(e,arguments)},e.prototype.keys=function(){var e;return(e=this._map).keys.apply(e,arguments)},e.prototype.values=function(){var e;return(e=this._map).values.apply(e,arguments)},T(e,[{key:"size",get:function(){return this._map.size}}]),e}();function j(e){e&&"function"==typeof e.release&&e.release()}function F(e){e&&"function"==typeof e.retain&&e.retain()}R.prototype[Symbol.iterator]=function(){var e;return(e=this._map).entries.apply(e,arguments)}}).call(this,n(31))},function(e,t,n){"use strict";n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(33),n(13),n(58),n.d(t,"a",function(){return g});var i=n(877),r=n(873),a=n(224),o=n(98),s=n(80),c=n(889),l=n(878),u=n(78),d=n(82),h=n(102),p=n(133),f=n(210),m=n(161),g=(n(152),i.a.extend({mixinDependencies:[r.a,a.b],staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"appIconView"}],name:"iconContainerElement",classes:["icon-container"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"badgeCountText",attributes:{}}],name:"badgeCountElement",classes:["badge-count-label"],styles:{display:{type:"STYLEOUTLET",bindingtype:"IFBINDING",name:"badgeCountText",truevalue:"",falsevalue:"none",attributes:{},unit:null,property:"display"}}},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"content.title",attributes:{}},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"subtitleText",attributes:{}}],classes:["subtitle-label"],styles:{display:{type:"STYLEOUTLET",bindingtype:"IFBINDING",name:"subtitleText",truevalue:"",falsevalue:"none",attributes:{},unit:null,property:"display"}}}],name:"titleElement",classes:["title-label"]},{type:"ELEMENT",tagname:"ui-activity-indicator",children:[{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"},{type:"ELEMENT",tagname:"ui-spinner-nib"}],name:"spinnerElement",classes:["standard"]},{type:"ELEMENT",tagname:"div",name:"lockedIconElement",classes:["locked-icon"]},{type:"ELEMENT",tagname:"div",name:"warningIconElement",classes:["warning-icon"]}],classes:["scalable-app-switcher-item-view",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"content.isLoading",truevalue:"loading",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"content.isLocked",truevalue:"locked",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isDisabled",truevalue:"disabled",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"_tapGR.willGestureSucceed",truevalue:"pointer-active",attributes:{}}],attributes:{role:"button","aria-label":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"content.title",attributes:{},attribute:"aria-label"}}},__QUALIFIED_CLASS_NAME__:"ScalableAppSwitcherItemView"},content:o.b({type:m.a,strong:!1}),subtitleText:o.b({readOnly:!0,dependencies:["isDisabled"],get:Object.assign(function(){return this.isDisabled?s.d("CloudOS.AppSwitcherItemView.Offline"):""},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?s.d("CloudOS.AppSwitcherItemView.Offline"):""}})}),isDisabled:o.b({readOnly:!0,dependencies:["content.isDisabled","content.missingRequiredServices"],get:Object.assign(function(){return this.getPath("content.isDisabled")&&!c.a(this.getPath("content.missingRequiredServices"),["mail"])},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])&&!c.a(i.internalGetPath(this,t[1+n]),["mail"])}})}),appIconView:o.b({readOnly:!0,type:p.a,dependencies:["content"],get:Object.assign(function(){return"calendar"===this.content.applicationIdentifier?f.a.create(142):p.a.create({iconSrc:this.content.bindingFor("iconSrc")})},{__CW__getter:function(e,t,n,i){return"calendar"===i.internalGet(this,t[0+n]).applicationIdentifier?f.a.create(142):p.a.create({iconSrc:i.internalGet(this,t[0+n]).bindingFor("iconSrc")})}})}),badgeCountText:o.b({readOnly:!0,dependencies:["content.badgeCount","content.isLocked","content.badgeCount"],get:Object.assign(function(){var e=this.getPath("content.isLocked")?0:this.getPath("content.badgeCount");return e?e>9999?s.d("CloudOS.AppIcon.Badge.LargeNumber",{badgeCount:9999}):String(e):""},{__CW__getter:function(e,t,n,i){var r=i.internalGetPath(this,t[1+n])?0:i.internalGetPath(this,t[0+n]);return r?r>9999?s.d("CloudOS.AppIcon.Badge.LargeNumber",{badgeCount:9999}):String(r):""}})}),dpr:o.b(l.a.sharedInstance.bindingFor("devicePixelRatio")),isRTL:o.b(s.a.sharedInstance.bindingFor("isRTL")),init:function(){var e=arguments;this.__s._$19y$init.apply(this,e),this.addGestureRecognizer(this._tapGR=this._tapGRClass.create({delegate:this}))},prepareItemView:function(){return this.appIconView.prepareIcon()},_redoLayoutForEnvironmentChanges:u.h("dpr","isRTL",function(){this.doLayout()}),doLayout:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this._previousLayoutRect;if(!this.isDisposed&&e){this._previousLayoutRect=e;var t=s.a.sharedInstance.isRTL,n=e.width,i=this.style,r=this.appIconView,a=this.iconContainerElement,o=this.badgeCountElement,c=this.titleElement,l=this.spinnerElement,u=this.lockedIconElement,h=this.warningIconElement,p=this.dpr;i.translateDevicePixels(e.absX+n/2,e.absY+n/2).scale(e.existence).set("opacity",1===e.existence?"":e.existence);var f=r.naturalWidth/p,m=r.naturalHeight/p;d.c(a).set("width",f).set("height",m).translate("-50%","-50%").scale(n/f,n/m);var g=((n-50)/92*7+13)/20;d.c(c).translateX("-50%").scale(g,g).translateY(n/2).translateY(20);var b=(n/50*9+6)/30,v=8*Math.max(0,Math.min(1,(n-90)/52));d.c(o).translate(t?"0%":"-100%","-50%").translateX(40*(t?-1:1)/2).translate((t?-1:1)*n/2,-n/2).translate((t?1:-1)*v,v).scale(b,b);var _=((n-50)/92*8+24)/32;d.c(l).translate("-50%","-50%").scale(_,_);for(var y=((n-50)/92*20+20)/40,C=8*Math.max(0,Math.min(1,(n-20)/70)),I=[d.c(u),d.c(h)],w=0;w<I.length;w++)I[w].translate("-50%","-50%").translate((t?-1:1)*n/2,n/2).translate((t?1:-1)*C,-C).scale(y,y)}},_tapGR:o.b({strong:!0}),_tapGRClass:a.a.extend(u.b,{event:"_tapGestureWasRecognized",shouldAllowMovementOutsideTarget:!0,willGestureSucceed:o.b()}),_tapGestureWasRecognized:function(e){e===this._tapGR&&e.state===h.b.Ended&&this.sendEvent("appSwitcherDidSelectItem",this.content)},__superMap:{_$19y$init:"init"}}))},function(e,t,n){"use strict";n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),n.d(t,"a",function(){return a});var i=n(401),r=n(112),a=i.a.extend({shouldRegisterService:function(e,t){return r.a.shouldRegisterServiceForProcess(e,t)},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSServiceManager"}})},function(e,t,n){"use strict";(function(e){n(1),n(0),n(8),n(20),n(21),n(2),n.d(t,"a",function(){return b});var i=n(877),r=n(98),a=n(87),o=n(103),s=n(891),c=n(876),l=n(93),u=n(83),d=n(104),h=n(78),p=n(879),f=n(86),m=n(106),g=(n(153),i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"popoverView"}]},__QUALIFIED_CLASS_NAME__:"PopoverModalView"},layout:r.b(),anchorLayout:r.b(),arrowLength:r.b(),arrowWidth:r.b(),arrowAlignment:r.b(),verticalAlignment:r.b(),horizontalAlignment:r.b(),popoverView:r.b({downstreamBindings:{layout:"(owner).layout",anchorLayout:"(owner).anchorLayout",arrowLength:"(owner).arrowLength",arrowWidth:"(owner).arrowWidth",arrowAlignment:"(owner).arrowAlignment",verticalAlignment:"(owner).verticalAlignment",horizontalAlignment:"(owner).horizontalAlignment"}}),contentView:r.b(a.c("popoverView.contentView")),pointerDown:function(t){var n=this.element.style.display;this.element.style.display="none";var i=e.document.elementFromPoint(t.clientX,t.clientY),r=o.a.create({type:"pointerMove",target:i,nativeEvent:t});return s.a.application.rootResponder.dispatchEvent(r),this.element.style.display=n,this.sendEvent("hidePopover"),!0},keyUp:function(e){e.which===c.a.ESC&&this.sendEvent("hidePopover")}})),b=l.c.extend({allowedLayouts:[u.b,u.a,u.d],isAlignmentRequired:!1,resolutionStrategy:l.a,arrowLength:13,arrowWidth:29,insetFromWindow:30,viewClass:d.b({additionalClassNames:d.b(["popover-view"]),pointerDown:function(){return!0}}),updateLayout:function(){this.propertyChanged("anchor")},createView:function(){var e=arguments,t=this.__s._$vX$createView.apply(this,e);return t.style.set("transform-origin","50% 0"),g.create({popoverView:t})},pathToScaledView:"view.popoverView",show:function(){var e=arguments;this.__s._$ye$show.apply(this,e),this._shouldMeasure=!1},hidePopover:function(){return this.hide(),!0},_viewportDimensionObserver:h.h({inputs:[p.a.sharedInstance.window.bindingFor("height"),p.a.sharedInstance.window.bindingFor("width"),"anchor.isAttached"],callback:function(){this.getPath("anchor.isAttached")&&(this._shouldMeasure=!0,this._shouldMeasure=!1)}}),spaceLayout:f.c(m.a.extend({owner:r.b(),window:r.b(p.a.sharedInstance.window),x:r.b({readOnly:!0,dependencies:["window.x","owner"],get:Object.assign(function(){return this.getPath("window.x")+this.owner.insetFromWindow},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])+i.internalGet(this,t[1+n]).insetFromWindow}})}),y:r.b({readOnly:!0,dependencies:["window.y","owner"],get:Object.assign(function(){return this.getPath("window.y")+this.owner.insetFromWindow},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])+i.internalGet(this,t[1+n]).insetFromWindow}})}),width:r.b({readOnly:!0,dependencies:["window.width","owner"],get:Object.assign(function(){return this.getPath("window.width")-2*this.owner.insetFromWindow},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])-2*i.internalGet(this,t[1+n]).insetFromWindow}})}),height:r.b({readOnly:!0,dependencies:["window.height","owner"],get:Object.assign(function(){return this.getPath("window.height")-2*this.owner.insetFromWindow},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])-2*i.internalGet(this,t[1+n]).insetFromWindow}})})})),__superMap:{_$vX$createView:"createView",_$ye$show:"show"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PopoverViewController"}})}).call(this,n(31))},function(e,t,n){"use strict";(function(e){n(0),n.d(t,"a",function(){return o});var i=n(877),r=n(82),a=n(78),o=(n(216),i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"childViews",classes:["child-views"]}],classes:["content"],name:"contentElement"},{type:"VIEWOUTLET",tagname:"view",name:"footerView"},{type:"VIEWOUTLET",tagname:"view",name:"toolbarView"}]},__QUALIFIED_CLASS_NAME__:"ContentContainerView"},setContentYOffset:function(e){if(this.isAttached){var t=this.toolbarView.element;r.c(t,{top:e+"px"});var n=t.getBoundingClientRect().height;r.c(this.contentElement,{"margin-top":n+"px"})}},_msvObserver:a.h("isAttached",function(e){e&&this._acquireMockSVElement()}),_acquireMockSVElement:function(){var t=e.bootstrapMockSpringboardViewElement;if(t){var n=t.parentNode?t.getBoundingClientRect():{x:0,y:0},i=n.x,r=n.y;t.parentNode&&t.parentNode.removeChild(t);var a=this.element.parentNode,o=a.getBoundingClientRect(),s=o.x,c=o.y;return t.style.zIndex=-1,t.style.left=i-s+"px",t.style.top=r-c+"px",a.appendChild(t),t}}}))}).call(this,n(31))},function(e,t,n){"use strict";var i=n(871),r=n(935),a=n(98),o=n(86),s=n(78),c=n(891),l=n(222),u=n(828),d=n(866),h=n(819),p=n(833),f=n(879),m=n(106),g=n(1045),b=n(11),v=n(26),_=n(403),y=n(23),C=n(185),I=n(81),w=n(104),S=n(82),A=n(1104),O=n(1163),E=n(1047),T=n(1099),D=n(818),L=n(825),N=n(821),M=n(100),P=n(1100),x=n(1101),R=n(38),j=n(303),F=(n(6),n(13),D.a.extend({mixinDependencies:[P.a],fadesInInitialView:!0,fadesOutFinalView:!0,animateTransition:function(e){var t=L.a(e,"fromViewController.view"),n=L.a(e,"toViewController.view");this[!t&&!n||!t&&n&&!this.fadesInInitialView||!n&&t&&!this.fadesOutFinalView?"_swapViews":"_fadeViews"](n,t,e).then(function(){e.completeTransition(!0)})},animationEnded:N.a,_fadeViews:function(e,t,n){return(t?Object(R.f)(t).then(function(){Object(x.a)(t),Object(R.h)(t)}):M.a.resolve()).then(function(){return n.transitionCoordinator.animateTo(1,j.a,n),Object(x.d)(e),Object(R.e)(e)}).then(function(){Object(R.h)(e)})},_swapViews:function(e,t,n){return t&&(Object(x.a)(t),Object(R.h)(t)),e&&(Object(x.d)(e),Object(R.h)(e)),n.transitionCoordinator.animateTo(1,0,n),M.a.resolve()},staticMembers:{__QUALIFIED_CLASS_NAME__:"FadeAndReplaceAnimationController"}})),V=(n(6),n(13),T.a.extend({animationControllerForPresentedViewController:function(e,t,n){return F.create()},animationControllerForDismissedViewController:function(e){return F.create()},staticMembers:{__QUALIFIED_CLASS_NAME__:"FadeAndReplaceTransitioningDelegate"}})),U=n(130),k=n(412),B=n(131),z=n(1123),W=n(1102),H=(n(0),n(19),n(6),W.a.extend({init:function(e,t,n){var i=arguments;this.__s._$Hx$init.apply(this,i),u.a(e,A.a)||h.b("[NestedPresentationController] Expected presenter")},presentationTransitionWillBegin:function(){var e=this.presentedViewController,t=e.presentationController,n=e.transitionCoordinator;if(t){var i=t.presentedViewController,r=t.presentingViewController;return i&&(i.transitionCoordinator=n),r&&(r.transitionCoordinator=n),t.presentationTransitionWillBegin()}},presentationTransitionDidEnd:function(e){var t=this.presentedViewController.presentationController;if(t){var n=t.presentedViewController,i=t.presentingViewController;return n&&(n.transitionCoordinator=void 0),i&&(i.transitionCoordinator=void 0),t.presentationTransitionDidEnd(e)}},dismissalTransitionWillBegin:function(){var e=this.presentedViewController,t=e.presentationController,n=e.transitionCoordinator;if(t){var i=t.presentedViewController,r=t.presentingViewController;return i&&(i.transitionCoordinator=n),r&&(r.transitionCoordinator=n),t.dismissalTransitionWillBegin()}},dismissalTransitionDidEnd:function(e){var t=this.presentedViewController.presentationController;if(t){var n=t.presentedViewController,i=t.presentingViewController;return n&&(n.transitionCoordinator=void 0),i&&(i.transitionCoordinator=void 0),t.dismissalTransitionDidEnd(e)}},__superMap:{_$Hx$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"NestedPresentationController"}})),$=n(413),G=(n(0),n(19),n(6),n(13),T.a.extend({animationControllerForPresentedViewController:function(e,t,n){return t?$.a.create({direction:$.b.SHRINK}):F.create({fadesInInitialView:!1})},presentationControllerForPresentedViewController:function(e,t,n){var i=n.view;return H.create(e,t,i)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ContentContainerTransitioningDelegate"}})),K=n(830),Q=n(602),q=(n(6),n(13),T.a.extend({isViewPersistent:K.a.define(),animationControllerForPresentedViewController:function(e,t,n){return this._cccacClass.create()},animationControllerForDismissedViewController:function(e){return this._cccacClass.create()},_cccacClass:I.d({defaultValue:function(){return Q.a.extend({isViewPersistent:this.isViewPersistent})}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ContentContainerChildrenTransitioningDelegate"}})),Y=(n(0),n(19),n(6),n(216),n(13),A.a.extend({mixinDependencies:[k.a,B.a],defaultTransitioningDelegate:o.c(q.extend({isViewPersistent:function(e){return e&&u.a(e.viewController,n(226).SpringboardViewController)}})),presentationStyle:U.a.SCROLLING_CONTENT,toolbarViewController:l.b({readOnly:!0,viewOutlet:"toolbarView"}),legalFooterViewController:l.b({readOnly:!0,viewOutlet:"footerView"}),transitioningDelegate:o.c(G),viewClass:z.a,insertViewController:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1];var t=arguments;this.__s._$oh$insertViewController.apply(this,t),this._passAvailableContentAreaToViewController(e)},presentationTransitionWillBegin:function(e){var t=this,n=arguments;return this.__s._$wW$presentationTransitionWillBegin.apply(this,n).then(function(){t._passAvailableContentAreaToViewController(e.toViewController)})},availableContentAreaDidChange:function(e){this.view.setContentYOffset(e.y),this._lastSeenAvailablePresentedViewControllerContentArea=m.a.create({x:e.x,y:e.y,width:e.width,height:e.height-(this.getPath("view.toolbarView.element.offsetHeight")||0)-(this.getPath("view.footerView.element.offsetHeight")||0)});var t=this.presentedViewController;t&&this._passAvailableContentAreaToViewController(t)},_passAvailableContentAreaToViewController:function(e){var t=this._lastSeenAvailablePresentedViewControllerContentArea;t&&u.a(e,B.a)&&e.availableContentAreaDidChange(t)},_lastSeenAvailablePresentedViewControllerContentArea:I.d({strong:!0}),__superMap:{_$oh$insertViewController:"insertViewController",_$wW$presentationTransitionWillBegin:"presentationTransitionWillBegin"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ContentContainerViewController"}})),X=(n(354),n(0),n(16),n(3),n(19),n(6),n(13),n(216),A.a.extend({mixinDependencies:[B.a],contentContainerViewController:a.b({type:Y,defaultValue:o.c(Y),downstreamBindings:{toolbarViewController:"(owner).toolbarViewController",legalFooterViewController:"(owner).legalFooterViewController"}}),defaultTransitioningDelegate:o.c(V),defaultPresentationStyle:I.d({type:U.a,defaultValue:U.a.CURRENT_CONTEXT}),toolbarViewController:a.b(),legalFooterViewController:a.b(),viewClass:w.b({additionalClassNames:w.b(["cloudos-presenter-view"])}),isContentContainerViewCurrentlyPresented:a.b({readOnly:!0,dependencies:["presentedViewController"],get:Object.assign(function(){return this.presentedViewController===this.contentContainerViewController},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])===this.contentContainerViewController}})}),didAttach:function(){var e=arguments;this.__s._$sC$didAttach.apply(this,e);var t=this.contentContainerViewController;this.insertViewController(t)},showViewController:function(e){var t=this._getPresentationStyleForViewController(e),n=this._getContainerForPresentationStyle(t);return n?this._showViewControllerInContainer(e,n):this.__s._$14y$showViewController.call(this,e)},insertViewController:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this._getPresentationStyleForViewController(e),i=this._getContainerForPresentationStyle(n);i?(i.insertViewController(e,t),this.__s._$1Fn$insertViewController.call(this,i,t)):this.__s._$1Fn$insertViewController.call(this,e,t)},presentationTransitionWillBegin:function(e){var t=arguments;return this._transitionContext=e,this.__s._$1QM$presentationTransitionWillBegin.apply(this,t).then(function(){Object(b.d)()})},presentationTransitionDidEnd:function(e){var t=arguments,n=this.__s._$1Yp$presentationTransitionDidEnd.apply(this,t);return e.transitionWasCancelled||this._updateBodyScrollForViewController(e.toViewController),this._transitionContext=void 0,n},availableContentAreaDidChange:function(e){if(this.isAttached){var t=this.view.element;S.c(t,{"margin-top":e.y+"px"})}for(var n=this._childViewControllers,i=0,r=n.length;i<r;i++){var a=n[i];u.a(a,B.a)&&a.availableContentAreaDidChange(e)}},_transitionContext:I.d({type:O.a,strong:!0}),_getContainerForPresentationStyle:function(e){switch(e){case U.a.CURRENT_CONTEXT:return this.contentContainerViewController;case U.a.FULLSCREEN:case U.a.SCROLLING_CONTENT:return;default:h.b("[CloudOSPresenterViewController] Unknown presentation style",{presentationStyle:e})}},_getPresentationStyleForViewController:function(e){return u.a(e,k.a)?e.presentationStyle:this.defaultPresentationStyle},_showViewControllerInContainer:function(e,t){u.a(t,A.a)||h.b("[CloudOSPresenterViewController] Invalid container",{containerViewController:t});var n=this._transitionContext;return n&&n.toViewController===t||this.presentedViewController===t?t.showViewController(e):(t.insertViewController(e,!0),this.__s._$14y$showViewController.call(this,t))},_updateBodyScrollForViewController:function(e){var t=this._getPresentationStyleForViewController(e)!==U.a.SCROLLING_CONTENT;Object(E.c)(t)},__superMap:{_$sC$didAttach:"didAttach",_$14y$showViewController:"showViewController",_$1Fn$insertViewController:"insertViewController",_$1QM$presentationTransitionWillBegin:"presentationTransitionWillBegin",_$1Yp$presentationTransitionDidEnd:"presentationTransitionDidEnd",_$2o4$_showViewControllerInContainer:"_showViewControllerInContainer"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSPresenterViewController"}})),J=n(80),Z=n(898),ee=n(1115),te=n(1116),ne=n(930),ie=(n(39),n(0),{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"}],classes:["cw-button",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isShowingSpinner",truevalue:"showing-spinner",attributes:{}}]}}},spinnerView:a.b({readOnly:!0,dependencies:["isShowingSpinner"],get:Object.assign(function(){if(this.isShowingSpinner)return ne.a.create({size:this.bindingFor("_spinnerSize")})},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n]))return ne.a.create({size:this.bindingFor("_spinnerSize")})}})}),isShowingSpinner:a.b(!1),_spinnerOffset:a.b({dependencies:["_widthOfSymbol","_spinnerSize"],readOnly:!0,get:Object.assign(function(){return this._widthOfSymbol/2-this._spinnerSize/2},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])/2-i.internalGet(this,t[1+n])/2}})}),_widthOfSymbol:a.b({dependencies:["isAttached"],readOnly:!0,get:Object.assign(function(){return this.isAttached?this.symbolView.element.offsetWidth:0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?this.symbolView.element.offsetWidth:0}})}),_setSpinnerOffset:s.h("spinnerView","_spinnerOffset",J.a.sharedInstance.bindingFor("isRTL"),function(e,t,n){e&&e.style.set(n?"left":"right",t).clear(n?"right":"left")}),_spinnerSize:a.b({dependencies:["desiredFontSize"],readOnly:!0,get:Object.assign(function(){return Math.round(1.25*this.desiredFontSize)},{__CW__getter:function(e,t,n,i){return Math.round(1.25*i.internalGet(this,t[0+n]))}})})}),re=n(1156),ae={name:"gear",svgPath:"M 63.7207 12.5488 C 64.9902 12.5488 66.2109 12.4023 67.5293 12.3047 L 70.3125 17.6758 C 70.8496 18.75 71.9238 19.3359 73.291 19.1406 C 74.5117 18.8965 75.3418 18.0176 75.5371 16.6992 L 76.3672 10.791 C 78.8086 10.1562 81.2012 9.22852 83.4961 8.20312 L 87.8906 12.1582 C 88.8184 13.0371 89.9902 13.2324 91.2109 12.5488 C 92.2852 11.9629 92.7246 10.791 92.4805 9.52148 L 91.2598 3.66211 C 93.3105 2.24609 95.3125 0.634766 97.1191 -1.17188 L 102.539 1.12305 C 103.76 1.61133 104.932 1.36719 105.859 0.244141 C 106.689 -0.634766 106.787 -1.9043 106.055 -2.97852 L 102.881 -8.05664 C 104.346 -10.1074 105.518 -12.3047 106.641 -14.6484 L 112.646 -14.3555 C 113.916 -14.3066 114.941 -14.9902 115.381 -16.2109 C 115.771 -17.4316 115.43 -18.6035 114.404 -19.3848 L 109.717 -23.0957 C 110.352 -25.4395 110.84 -27.9785 111.084 -30.6152 L 116.699 -32.373 C 117.969 -32.8125 118.701 -33.7402 118.701 -35.0586 C 118.701 -36.3281 117.969 -37.2559 116.699 -37.6953 L 111.084 -39.502 C 110.84 -42.1387 110.352 -44.5801 109.717 -46.9727 L 114.404 -50.7324 C 115.381 -51.4648 115.771 -52.5879 115.381 -53.8086 C 114.941 -55.0293 113.916 -55.7129 112.646 -55.6641 L 106.641 -55.4199 C 105.518 -57.7637 104.346 -59.9609 102.881 -62.0117 L 106.055 -67.0898 C 106.738 -68.1152 106.641 -69.3848 105.859 -70.2637 C 104.932 -71.3867 103.76 -71.6797 102.539 -71.1426 L 97.1191 -68.9453 C 95.3125 -70.6543 93.3105 -72.3145 91.2598 -73.7305 L 92.4805 -79.541 C 92.7246 -80.8594 92.2852 -82.0312 91.2109 -82.6172 C 89.9902 -83.252 88.8184 -83.1543 87.8906 -82.1777 L 83.4961 -78.3203 C 81.2012 -79.3457 78.8086 -80.1758 76.3672 -80.8594 L 75.5371 -86.7676 C 75.3418 -88.0371 74.4629 -88.9648 73.2422 -89.1602 C 71.9238 -89.3555 70.8496 -88.8184 70.3125 -87.7441 L 67.5293 -82.373 C 66.2109 -82.4707 64.9902 -82.5684 63.7207 -82.5684 C 62.4023 -82.5684 61.2305 -82.4707 59.9121 -82.373 L 57.0801 -87.7441 C 56.543 -88.8184 55.4688 -89.3555 54.1504 -89.1602 C 52.9297 -88.9648 52.0508 -88.0371 51.9043 -86.7676 L 51.0254 -80.9082 C 48.584 -80.1758 46.2402 -79.3457 43.8965 -78.3203 L 39.502 -82.1777 C 38.5742 -83.1543 37.4023 -83.252 36.1816 -82.6172 C 35.1074 -82.0312 34.668 -80.8594 34.9121 -79.541 L 36.1328 -73.7305 C 34.1309 -72.3145 32.0801 -70.6543 30.2734 -68.9453 L 24.8535 -71.1426 C 23.6328 -71.6797 22.5098 -71.3867 21.582 -70.2637 C 20.752 -69.3848 20.6543 -68.1152 21.3379 -67.1387 L 24.5117 -62.0117 C 23.0957 -59.9609 21.875 -57.7637 20.752 -55.4199 L 14.7949 -55.6641 C 13.5254 -55.7129 12.4512 -55.0293 12.0117 -53.8086 C 11.6211 -52.5879 11.9629 -51.4648 12.9883 -50.7324 L 17.6758 -46.9727 C 17.041 -44.5801 16.5527 -42.1387 16.4062 -39.502 L 10.6934 -37.6953 C 9.42383 -37.3047 8.74023 -36.377 8.74023 -35.0586 C 8.74023 -33.7402 9.42383 -32.8125 10.6934 -32.373 L 16.4062 -30.5664 C 16.5527 -27.9785 17.041 -25.4395 17.6758 -23.0957 L 12.9883 -19.3848 C 12.0117 -18.6035 11.6699 -17.4316 12.0117 -16.2109 C 12.4512 -14.9902 13.5254 -14.3066 14.7949 -14.3555 L 20.752 -14.6484 C 21.875 -12.3047 23.0957 -10.1074 24.5117 -8.05664 L 21.3379 -2.97852 C 20.6543 -1.9043 20.752 -0.634766 21.582 0.244141 C 22.5098 1.36719 23.6328 1.61133 24.8535 1.12305 L 30.2734 -1.17188 C 32.0801 0.634766 34.1309 2.24609 36.1328 3.66211 L 34.9121 9.52148 C 34.668 10.791 35.1074 11.9629 36.1816 12.5488 C 37.4023 13.2324 38.5742 13.0371 39.502 12.1582 L 43.8965 8.20312 C 46.2402 9.22852 48.584 10.1562 51.0254 10.791 L 51.9043 16.6992 C 52.0508 18.0176 52.9297 18.8965 54.1504 19.1406 C 55.4688 19.3359 56.543 18.75 57.0801 17.6758 L 59.9121 12.3047 C 61.1816 12.4023 62.4023 12.5488 63.7207 12.5488 Z M 75.9766 -38.1348 C 73.7305 -44.2871 69.1895 -47.6562 63.623 -47.6562 C 62.7441 -47.6562 61.8164 -47.5586 60.2051 -47.2168 L 46.1914 -71.1426 C 51.4648 -73.7305 57.373 -75.1465 63.7207 -75.1465 C 85.0098 -75.1465 101.709 -58.9844 103.271 -38.1348 Z M 24.0723 -35.0098 C 24.0723 -48.584 30.5176 -60.5469 40.5762 -67.7734 L 54.7363 -43.7012 C 52.0508 -40.9668 50.8301 -37.9883 50.8301 -34.8145 C 50.8301 -31.7383 52.002 -28.9062 54.6875 -26.0742 L 40.2832 -2.44141 C 30.3711 -9.7168 24.0723 -21.5332 24.0723 -35.0098 Z M 57.7637 -34.8633 C 57.7637 -38.1836 60.5469 -40.7715 63.7207 -40.7715 C 66.9922 -40.7715 69.7266 -38.1836 69.7266 -34.8633 C 69.7266 -31.5918 66.9922 -28.9062 63.7207 -28.9062 C 60.5469 -28.9062 57.7637 -31.5918 57.7637 -34.8633 Z M 63.7207 5.12695 C 57.2266 5.12695 51.1719 3.61328 45.8496 0.976562 L 60.2051 -22.5098 C 61.7188 -22.1191 62.7441 -22.0215 63.623 -22.0215 C 69.2383 -22.0215 73.7793 -25.4883 75.9766 -31.7871 L 103.223 -31.7871 C 101.66 -11.0352 85.0098 5.12695 63.7207 5.12695 Z",layoutBox:{viewBox:"0 0 212.646728515625 159.98291015625",width:212.646728515625,height:159.98291015625,translateX:42.60272705078114,translateY:115.221435546875,baseline:115.221435546875,capline:44.761474609375},glyphBox:{viewBox:"0 0 109.9608154296875 108.815673828125",width:109.9608154296875,height:108.815673828125,translateX:-8.74022949218761,translateY:89.6378173828125,baseline:89.6378173828125,capline:19.1778564453125}},oe={name:"questionmark.circle",svgPath:"M 58.5449 14.5508 C 85.791 14.5508 108.35 -8.00781 108.35 -35.2539 C 108.35 -62.4512 85.7422 -85.0586 58.4961 -85.0586 C 31.2988 -85.0586 8.74023 -62.4512 8.74023 -35.2539 C 8.74023 -8.00781 31.3477 14.5508 58.5449 14.5508 Z M 58.5449 6.25 C 35.498 6.25 17.0898 -12.207 17.0898 -35.2539 C 17.0898 -58.252 35.4492 -76.7578 58.4961 -76.7578 C 81.543 -76.7578 100 -58.252 100.049 -35.2539 C 100.098 -12.207 81.5918 6.25 58.5449 6.25 Z M 57.5195 -25.1465 C 60.0098 -25.1465 61.4746 -26.6602 61.4746 -28.6133 L 61.4746 -29.1992 C 61.4746 -31.9336 63.0859 -33.6426 66.4551 -35.8887 C 71.1914 -39.0137 74.5605 -41.8945 74.5605 -47.7051 C 74.5605 -55.8594 67.334 -60.2051 59.082 -60.2051 C 50.6836 -60.2051 45.166 -56.25 43.7988 -51.7578 C 43.5547 -50.9277 43.4082 -50.1465 43.4082 -49.3164 C 43.4082 -47.168 45.1172 -45.9473 46.7285 -45.9473 C 49.5117 -45.9473 49.9512 -47.4609 51.5137 -49.2676 C 53.125 -51.9531 55.4688 -53.5645 58.7402 -53.5645 C 63.1836 -53.5645 66.1133 -51.0742 66.1133 -47.3145 C 66.1133 -43.9941 64.0137 -42.3828 59.7656 -39.4531 C 56.25 -37.0117 53.6621 -34.4238 53.6621 -29.6387 L 53.6621 -29.0039 C 53.6621 -26.416 55.0293 -25.1465 57.5195 -25.1465 Z M 57.4219 -10.5469 C 60.2539 -10.5469 62.6953 -12.793 62.6953 -15.625 C 62.6953 -18.5059 60.3027 -20.7031 57.4219 -20.7031 C 54.541 -20.7031 52.1484 -18.457 52.1484 -15.625 C 52.1484 -12.8418 54.5898 -10.5469 57.4219 -10.5469 Z",layoutBox:{viewBox:"0 0 212.646728515625 159.98291015625",width:212.646728515625,height:159.98291015625,translateX:47.778210449218705,translateY:115.221435546875,baseline:115.221435546875,capline:44.761474609375},glyphBox:{viewBox:"0 0 99.6097412109375 99.6572265625",width:99.6097412109375,height:99.6572265625,translateX:-8.740283203125045,translateY:85.05859375,baseline:85.05859375,capline:14.5986328125}},se=n(101),ce=n(877),le=n(83),ue=n(897),de=n(89),he=n(95),pe=n(1093),fe=n(872),me=n(87),ge=n(107),be=(n(0),ce.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"message",attributes:{}}],classes:["popover-message",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"message",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"description",attributes:{}}],classes:["popover-description",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"description",truevalue:"",falsevalue:"cw-hidden",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"message",truevalue:"has-message",attributes:{}}]}],classes:["popover-text",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"_hasText",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]},{type:"MULTIVIEWOUTLET",tagname:"views",name:"buttons",classes:["buttons-container"]}]},__QUALIFIED_CLASS_NAME__:"PopoverWithButtonListContentView"},_measure:s.h({inputs:["isAttached","buttons","message","description"],callback:function(e){if(e){this.get("style").set("width","auto").set("height","auto");var t=this.element,n=this.desiredSize,i=t.getBoundingClientRect();n.set("width",Math.ceil(i.width)),n.set("height",Math.ceil(i.height)),this.get("style").set("width","").set("height","")}}}),desiredSize:a.b({strong:!0,defaultValue:o.c(ge.a,{width:"100%",height:"100%"})}),_hasText:a.b({readOnly:!0,dependencies:["message","description"],get:Object.assign(function(){return Boolean(this.message||this.description)},{__CW__getter:function(e,t,n,i){return Boolean(i.internalGet(this,t[0+n])||i.internalGet(this,t[1+n]))}})}),buttons:a.b(),message:a.b(),description:a.b()})),ve=(n(0),i.a.extend({viewClass:be,view:a.b({downstreamBindings:{buttons:"(owner).buttons",message:"(owner).message",description:"(owner).description"}}),buttons:a.b(),message:a.b(),description:a.b(),staticMembers:{__QUALIFIED_CLASS_NAME__:"PopoverWithButtonListContentController"}})),_e=n(1122),ye=(n(174),n(1),n(0),n(8),n(20),n(21),n(2),n(153),_e.a.extend(fe.a,{viewClass:w.b({additionalClassNames:w.b(["popover-with-button-list"])}),desiredSize:a.b({strong:!0,binding:me.c("contentController.view.desiredSize")}),contentController:a.b({defaultValue:o.c(ve),downstreamBindings:{buttons:"(owner).buttons",message:"(owner).message",description:"(owner).description"}}),buttons:a.b(),nextResponder:a.b(),message:a.b(),description:a.b(),buttonDidActivate:function(){this.hide()},_updatePopoverArrowClass:s.h({inputs:["isAttached"],callback:function(){if(this.isAttached){var e=this.view.popoverView,t=e.element.offsetWidth,n=e.arrowLeft,i=n+e.arrowWidth,r=e.arrowDirection,a=e.element.classList;a.remove("popover-arrow-up-right","popover-arrow-down-right","popover-arrow-up-left","popover-arrow-down-left"),t-i<5?"up"===r?a.add("popover-arrow-up-right"):"down"===r&&a.add("popover-arrow-down-right"):n<5&&("up"===r?a.add("popover-arrow-up-left"):"down"===r&&a.add("popover-arrow-down-left"))}}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"PopoverWithButtonList"}})),Ce=(n(192),n(1),n(0),n(5),n(8),n(20),n(21),n(2),n(174),n(153),D.a.extend(s.b,{staticMembers:{show:function(e){var t=Ce.create(e);return t.show(),t},__QUALIFIED_CLASS_NAME__:"ActionSheet"},alertViewController:a.b(se.b),buttons:a.b(),message:a.b({type:String}),description:a.b({type:String}),iconNames:a.b({type:Array}),anchor:a.b({type:ce.a}),alwaysRenderAsAlert:a.b(!1),renderAsAlertOnMouse:a.b(!1),additionalClassNames:a.b(),accessoryView:a.b(),popoverClass:a.b({defaultValue:ye}),primaryInteractionMode:a.b({type:String}),sizeClassHorizontal:a.b({type:pe.a}),sizeClassVertical:a.b({type:pe.a}),isAttached:a.b({readOnly:!0,dependencies:["isPopoverAttached","isAlertAttached"],get:Object.assign(function(){return Boolean(this.isPopoverAttached||this.isAlertAttached)},{__CW__getter:function(e,t,n,i){return Boolean(i.internalGet(this,t[0+n])||i.internalGet(this,t[1+n]))}})}),isPopoverAttached:a.b({readOnly:!0,dependencies:["_visiblePopover","_visiblePopover.isAttached"],get:Object.assign(function(){return Boolean(this._visiblePopover&&this._visiblePopover.isAttached)},{__CW__getter:function(e,t,n,i){return Boolean(i.internalGet(this,t[0+n])&&i.internalGetPath(this,t[1+n]))}})}),isAlertAttached:a.b({readOnly:!0,dependencies:["_visibleAlert","_visibleAlert.isAttached"],get:Object.assign(function(){return Boolean(this._visibleAlert&&this._visibleAlert.isAttached)},{__CW__getter:function(e,t,n,i){return Boolean(i.internalGet(this,t[0+n])&&i.internalGetPath(this,t[1+n]))}})}),show:function(){var e=this,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.buttons||h.b("Action sheet requires buttons"),this.buttons.forEach(function(t){t.isPrimary&&(e._primaryButtonForMouse=t),t.isAlternate&&(e._alternateButtonForMouse=t)}),this._shouldRenderAsPopover()?this._showPopover(t):this._showAlert(t)},hide:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this._hideViews(e)},_hideViews:function(e){this._hideAlert(e),this._hidePopover(e),this._resetButtonConfig()},_shouldRenderAsPopover:function(){var e=this.primaryInteractionMode,t=this.sizeClassHorizontal,n=this.sizeClassVertical,i=this.alwaysRenderAsAlert,r=this.renderAsAlertOnMouse,a=e===g.a.TOUCH,o=t===pe.a.COMPACT,s=n===pe.a.COMPACT;return!(i||a&&(o||s)||!a&&r)},_showPopover:function(e){var t=this,n=this.anchor,i=this.buttons,r=this.message,a=this.description,o=this.additionalClassNames,s=this;this._visiblePopover=this.popoverClass.extend({viewClass:w.b({additionalClassNames:w.b(o)}),hide:function(){var e=arguments;s._animationIsDisabled||s._togglePopoverAnimation(!0),this.__s._$26T$hide.apply(this,e)},__superMap:{_$26T$hide:"hide"}}).create({insetFromWindow:0,allowedLayouts:[le.a,le.d],buttons:this._configurePopoverButtons(i),message:r,description:a,anchor:n}),this._defaultPopoverAnimationDuration=this._visiblePopover.showDuration,this._togglePopoverAnimation(e),this._visiblePopover.show();var c=this._visiblePopover.observe("isAttached",function(e){e||(c.disconnect(),t._visiblePopover=void 0)})},_showAlert:function(e){var t=this,n=this.buttons,i=this.message,r=this.description,a=this.iconNames,o=this.primaryInteractionMode,s=this.additionalClassNames,c=this.accessoryView,l=this,u=o===g.a.TOUCH?this._configureAlertButtonsForTouch(n):this._configureAlertButtonsForMouse(n);this._visibleAlert=this.alertViewController.extend({viewClass:w.b({additionalClassNames:w.b(s),buttonDidActivate:function(){this.sendEvent("alertWillDismiss"),this.animateClosed()}}),dismissModalDialog:function(){var e=arguments;l._animationIsDisabled||l._toggleAlertAnimation(!0),this.__s._$2lB$dismissModalDialog.apply(this,e)},__superMap:{_$2lB$dismissModalDialog:"dismissModalDialog"}}).create({alertStyle:ue.a.ACTION_SHEET,message:i,description:r,iconNames:a,accessoryView:c,buttons:u}),this._toggleAlertAnimation(e),this._visibleAlert.show();var d=this._visibleAlert.observe("isAttached",function(e){e||(d.disconnect(),t._visibleAlert=void 0)})},_hidePopover:function(e){this.isPopoverAttached&&(this._togglePopoverAnimation(e),this._animationIsDisabled=!e,this._visiblePopover.hide(),this._animationIsDisabled=!1)},_hideAlert:function(e){this.isAlertAttached&&(this._toggleAlertAnimation(e),this._animationIsDisabled=!e,this._visibleAlert.hide(),this._animationIsDisabled=!1)},_togglePopoverAnimation:function(e){if(this._visiblePopover){var t=e?this._defaultPopoverAnimationDuration:0;this._visiblePopover.showDuration=t,this._visiblePopover.hideDuration=t}},_toggleAlertAnimation:function(e){if(this._visibleAlert){var t=this._visibleAlert.view.element;e?t.classList.remove("action-sheet-no-animation"):t.classList.add("action-sheet-no-animation")}},_configurePopoverButtons:function(e){var t=this;return de.b.create(e).filter(function(e){return!t._isCancelButton(e)})},_configureAlertButtonsForTouch:function(e){var t=this,n=-1,i=de.b.create(e).reverse().map(function(e,i){var r=t._isCancelButton(e);return e.isPrimary=r||void 0,e.isAlternate=void 0,r&&(n=i),e});return i.length>1&&n>=0&&0!==n&&i.move(n,0),i},_configureAlertButtonsForMouse:function(e){var t=this,n=void 0,i=de.b.create(e).map(function(i,r){return i===t._primaryButtonForMouse?i.isPrimary=!0:(i.isPrimary=void 0,2!==e.length&&i!==t._alternateButtonForMouse||(i.isAlternate=!0)),i.isAlternate&&(n=r),i});return i.length>1&&n>=0&&1!==n&&i.move(n,1),i},_resetButtonConfig:function(){var e=this;this.buttons.forEach(function(t){t.isPrimary=void 0,t.isAlternate=void 0,t===e._primaryButtonForMouse?t.isPrimary=!0:t===e._alternateButtonForMouse&&(t.isAlternate=!0)}),this._alternateButtonForMouse=void 0,this._primaryButtonForMouse=void 0},_isCancelButton:function(e){return Boolean("hide"===e.action||e.isCancel)},_updateRenderingMode:s.h({inputs:["primaryInteractionMode","sizeClassHorizontal","sizeClassVertical","alwaysRenderAsAlert","renderAsAlertOnMouse"],callback:function(){if(this._visibleAlert||this._visiblePopover){var e=this._shouldRenderAsPopover();e&&this.isAlertAttached?(this._hideAlert(!1),this._showPopover(!1)):!e&&this.isPopoverAttached&&(this._hidePopover(!1),this._showAlert(!1))}}}),_visiblePopover:a.b({strong:!0}),_visibleAlert:a.b({strong:!0}),_primaryButtonForMouse:void 0,_alternateButtonForMouse:void 0,cleanup:function(){var e=arguments;this._hideViews(!1),this.__s._$4yt$cleanup.apply(this,e)},__superMap:{_$4yt$cleanup:"cleanup"}})),Ie=he.b("LayoutAnchorPoint",{TOP_LEFT:"TOP_LEFT",TOP_RIGHT:"TOP_RIGHT",BOTTOM_LEFT:"BOTTOM_LEFT",BOTTOM_RIGHT:"BOTTOM_RIGHT"}),we=D.a.extend({mixinDependencies:[s.b],anchorPoint:a.b({type:Ie,defaultValue:Ie.TOP_LEFT}),initialLayout:a.b({type:m.a}),initialLayoutContext:a.b({type:m.a}),referenceLayoutContext:a.b({type:m.b}),targetLayout:a.b({type:m.a,readOnly:!0,dependencies:["anchorPoint","initialLayout","initialLayoutContext","referenceLayoutContext.x","referenceLayoutContext.y","referenceLayoutContext.width","referenceLayoutContext.height"],get:function(){var e=this.initialLayout,t=this.initialLayoutContext,n=this.anchorPoint,i=this.referenceLayoutContext,r=m.a.create(e);return r.x+=i.x-t.x,r.y+=i.y-t.y,n!==Ie.TOP_RIGHT&&n!==Ie.BOTTOM_RIGHT||(r.x+=i.width-t.width),n!==Ie.BOTTOM_LEFT&&n!==Ie.BOTTOM_RIGHT||(r.y+=i.height-t.height),r}}),setAnchorLayout:function(e){var t=this.referenceLayoutContext;e||h.b("[OffsetLayoutMeasurer] Requires an initial position"),t||h.b("[OffsetLayoutMeasurer] Requires a reference context"),this.initialLayout=m.a.create({x:e.x+t.x,y:e.y+t.y,width:e.width,height:e.height}),this.initialLayoutContext=m.a.create(t)},staticMembers:{__QUALIFIED_CLASS_NAME__:"OffsetLayoutMeasurer"}}),Se=Ce.extend({staticMembers:{show:function(e){var t=this.create(e);return t.show(),t},__QUALIFIED_CLASS_NAME__:"AnchorLayoutActionSheet"},anchorLayout:a.b({type:m.a}),anchorPoint:a.b({type:Ie,defaultValue:Ie.TOP_LEFT}),offsetLayoutMeasurer:a.b({type:we,defaultValue:o.c(we),downstreamBindings:{anchorPoint:"(owner).anchorPoint",referenceLayoutContext:"(owner).referenceLayoutContext"}}),popoverClass:w.b({anchor:a.b({defaultValue:o.c(ce.a)}),anchorLayoutMeasurer:a.b({downstreamBindings:{shouldMeasure:"(owner).shouldMeasureOverride"}}),shouldMeasureOverride:a.b({type:Boolean,defaultValue:!1})}),primaryInteractionMode:a.b(c.a.bindingFor("application.primaryInteractionMode")),referenceLayoutContext:a.b({type:m.b}),sizeClassVertical:a.b(c.a.bindingFor("application.sizeClassVertical")),sizeClassHorizontal:a.b(c.a.bindingFor("application.sizeClassHorizontal")),availableContentAreaDidChange:function(e){this.referenceLayoutContext=e},_showPopover:function(e){var t=arguments;this.__s._$7BC$_showPopover.apply(this,t);var n=this.anchorLayout,i=this.offsetLayoutMeasurer,r=this._visiblePopover;u.a(n,m.b)?(i.setAnchorLayout(n),r.bind("anchorLayout",i.bindingFor("targetLayout"))):r.shouldMeasureOverride=!0},__superMap:{_$7BC$_showPopover:"_showPopover"}}),Ae=n(36),Oe=n(29),Ee=n(129),Te=(n(218),n(1),n(0),n(5),n(8),n(20),n(21),n(2),n(7),n(39),n(10),n(4),n(3),n(6),n(192),n(174),n(153),n(13),J.a.sharedInstance.bindingFor("locale")),De=ee.a.extend({desiredFontSize:19,title:Object(re.a)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"AccountMenuSymbolButton"}}),Le=De.extend({mixinDependencies:[te.a],symbolMetadata:oe,title:"Alert.Help.Button.Title",staticMembers:{__QUALIFIED_CLASS_NAME__:"AccountMenuSymbolHelpButton"}}),Ne=De.extend(ie,{action:"showAccountSettings",symbolMetadata:ae,title:"CloudOS.Springboard.SettingsLink.Title",_applicationController:Oe.a.sharedInstance.getChildApplicationController(Ee.a.applicationInfo),_wasClicked:a.b(!1),_loadingObserver:s.h({inputs:["_applicationController.isLoading","_wasClicked"],callback:function(e,t){this.isDisabled=e,this.isShowingSpinner=e,t&&!e&&(this.target.hide(),this._wasClicked=!1)}}),buttonDidActivate:function(){this._wasClicked=!0},staticMembers:{__QUALIFIED_CLASS_NAME__:"SettingsButton"}}),Me=De.extend({mixinDependencies:[te.a],externalURL:"https://appleid.apple.com",symbolMetadata:ae,title:"CloudOS.AccountInfoMenuView.ManagedId.Title",staticMembers:{__QUALIFIED_CLASS_NAME__:"SettingsExternalButton"}}),Pe=De.extend({mixinDependencies:[te.a],action:"unauthenticateUser",symbolMetadata:{name:"lock.circle",svgPath:"M 58.5449 14.5508 C 85.791 14.5508 108.35 -8.00781 108.35 -35.2539 C 108.35 -62.4512 85.7422 -85.0586 58.4961 -85.0586 C 31.2988 -85.0586 8.74023 -62.4512 8.74023 -35.2539 C 8.74023 -8.00781 31.3477 14.5508 58.5449 14.5508 Z M 58.5449 6.25 C 35.498 6.25 17.0898 -12.207 17.0898 -35.2539 C 17.0898 -58.252 35.4492 -76.7578 58.4961 -76.7578 C 81.543 -76.7578 100 -58.252 100.049 -35.2539 C 100.098 -12.207 81.5918 6.25 58.5449 6.25 Z M 45.8496 -11.6699 L 71.2402 -11.6699 C 74.6094 -11.6699 76.2207 -13.3301 76.2207 -16.9922 L 76.2207 -36.5234 C 76.2207 -39.7461 75 -41.4062 72.4121 -41.7969 L 72.4121 -47.6074 C 72.4121 -57.1289 66.6504 -63.2812 58.5449 -63.2812 C 50.4395 -63.2812 44.6777 -57.1289 44.6777 -47.6074 L 44.6777 -41.748 C 42.0898 -41.3574 40.8691 -39.6973 40.8691 -36.5234 L 40.8691 -16.9922 C 40.8691 -13.3301 42.4805 -11.6699 45.8496 -11.6699 Z M 49.7559 -48.1445 C 49.7559 -54.2969 53.2715 -58.3496 58.5449 -58.3496 C 63.8184 -58.3496 67.334 -54.2969 67.334 -48.1445 L 67.334 -41.8457 L 49.7559 -41.8457 Z",layoutBox:{viewBox:"0 0 212.646728515625 159.98291015625",width:212.646728515625,height:159.98291015625,translateX:47.778210449218705,translateY:115.221435546875,baseline:115.221435546875,capline:44.761474609375},glyphBox:{viewBox:"0 0 99.6097412109375 99.6572265625",width:99.6097412109375,height:99.6572265625,translateX:-8.740283203125045,translateY:85.05859375,baseline:85.05859375,capline:14.5986328125}},title:"CloudOS.Authentication.SignOutButton.Title",staticMembers:{__QUALIFIED_CLASS_NAME__:"SignOutButton"}}),xe=Se.extend({additionalClassNames:w.b(["account-menu-action-sheet"]),anchorPoint:Ie.TOP_RIGHT,buttons:a.b({type:Array,readOnly:!0,dependencies:["helpButtons"],get:Object.assign(function(){var e=[];"settings"===Oe.a.sharedInstance.currentChildApplicationIdentifier||v.a.sharedInstance.isInCulDeSacMode||e.push(this.settingsButton);var t=this.helpButtons;return t&&t.length&&e.push.apply(e,t),e.push(this.signOutButton,Z.a.create({title:J.d("Alert.Cancel.Button.Title"),isCancel:!0})),e},{__CW__getter:function(e,t,n,i){var r=[];"settings"===Oe.a.sharedInstance.currentChildApplicationIdentifier||v.a.sharedInstance.isInCulDeSacMode||r.push(this.settingsButton);var a=i.internalGet(this,t[0+n]);return a&&a.length&&r.push.apply(r,a),r.push(this.signOutButton,Z.a.create({title:J.d("Alert.Cancel.Button.Title"),isCancel:!0})),r}})}),helpButtons:a.b({dependencies:[Te,"helpButtonConfigs"],readOnly:!0,type:Array,get:Object.assign(function(){return this.helpButtonConfigs.map(function(e){return Le.extend(e).create()})},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n]).map(function(e){return Le.extend(e).create()})}})}),helpButtonConfigs:a.b({type:Array}),settingsButton:a.b({readOnly:!0,strong:!0,get:function(){return this._createSettingsButtonInAccountMenu()}}),signOutButton:a.b({readOnly:!0,strong:!0,get:function(){return Pe.create({target:this})}}),showAccountSettings:function(){var e=Ee.a.identifier;Oe.a.sharedInstance.switchToApplication(e,this)},cancelSettings:function(){var e=Oe.a.sharedInstance,t=e.getChildApplicationController(Ee.a.applicationInfo);t.isLoading&&t.applicationContext.launchSource===this&&e.cancelCurrentLoadingApplication()},unauthenticateUser:function(){return y.a.sharedInstance.unauthenticateUser()},_createSettingsButtonInAccountMenu:function(){var e=Ee.a.identifier,t=Ae.a.sharedInstance.getConfiguration(e);return!t||t.isHidden?Me.create():Ne.create({target:this})},staticMembers:{__QUALIFIED_CLASS_NAME__:"AccountMenuActionSheet"}}),Re={mixinDependencies:[n(94).a],removeEnvironmentInformation:K.a.define()},je=(n(263),n(0),ce.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"environment",attributes:{}},{type:"ELEMENT",tagname:"span",children:[{type:"TEXT",data:" - "}]},{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"masteringNumber",attributes:{}}],classes:["environment-sash-label-view",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isHidden",truevalue:"view-hidden",attributes:{}}]},__QUALIFIED_CLASS_NAME__:"EnvironmentSashView"}})),Fe=(n(0),n(263),i.a.extend({viewClass:je,init:function(e,t){this.__s._$Ap$init.call(this),e||h.b("EnvironmentSashViewController: init: No environment specified"),t||h.b("EnvironmentSashViewController: init: No Mastering Number specified"),this.environment=e,this.masteringNumber=t},view:a.b({type:je,downstreamBindings:{environment:"(owner).environment",masteringNumber:"(owner).masteringNumber",isHidden:"(owner).isHidden"}}),environment:a.b({type:String}),masteringNumber:a.b({type:String}),isHidden:a.b({type:Boolean}),delegate:I.d({type:Re}),pointerDown:function(){var e=this.delegate;return e&&e.removeEnvironmentInformation(),!0},__superMap:{_$Ap$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EnvironmentSashViewController"}})),Ve=(n(356),n(0),ce.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"environmentSashView"},{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"bannerView"},{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"contentView"},{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"notificationView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isShowingErrorView",truevalue:"is-showing-error-view",attributes:{}}]},__QUALIFIED_CLASS_NAME__:"RootView"},isShowingErrorView:a.b({type:Boolean})})),Ue=n(53),ke=he.b("ApplicationToolbarTheme",{DARK:"DARK",LIGHT:"LIGHT"}),Be=(n(41),n(0),ce.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"leftView"},{type:"VIEWOUTLET",tagname:"view",name:"centerView"},{type:"VIEWOUTLET",tagname:"view",name:"rightView"}],classes:["toolbar-view",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"toolbarIsVisible",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]},__QUALIFIED_CLASS_NAME__:"ToolbarView"},init:function(){var e=arguments;this.__s._$8u$init.apply(this,e);var t=this.leftView,n=this.centerView,i=this.rightView;t&&t.element.classList.add("toolbar-left-view"),n&&n.element.classList.add("toolbar-center-view"),i&&i.element.classList.add("toolbar-right-view")},toolbarIsVisible:a.b(!0),leftView:a.b(),centerView:a.b(),rightView:a.b(),__superMap:{_$8u$init:"init"}})),ze=(n(48),n(0),n(41),Be.extend({additionalClassNames:w.b(["base-application-toolbar-view"]),theme:a.b({defaultValue:ke.LIGHT,type:ke,didChange:function(e){e===ke.DARK?(this.element.classList.remove("light-theme"),this.element.classList.add("dark-theme")):(this.element.classList.remove("dark-theme"),this.element.classList.add("light-theme"))}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseApplicationToolbarView"}})),We=(n(0),n(41),i.a.extend({viewClass:Be,staticMembers:{__QUALIFIED_CLASS_NAME__:"ToolbarViewController"}})),He=(n(0),n(48),n(41),We.extend({viewClass:ze,view:a.b({downstreamBindings:{theme:"(owner).theme"}}),theme:a.b(),staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseApplicationToolbarViewController"}})),$e=n(881),Ge=n(863),Ke=(n(47),n(0),n(5),n(1038)),Qe=te.b.extend({additionalClassNames:w.b(["apple-icon-button"]),externalURL:"https://www.apple.com",icon:a.b(Ke),staticMembers:{__QUALIFIED_CLASS_NAME__:"AppleIconButton"}}),qe=n(1078),Ye=n(244),Xe=(n(46),n(0),n(5),{"icloud.logo":{name:"icloud.logo",svgPath:"M1 3.9c0-1.4 1.2-2.6 2.6-2.6 1.4 0 2.6 1.1 2.6 2.5S5.1 6.4 3.7 6.4h-.1C2.2 6.5 1 5.3 1 3.9zm.4 5.8h4.5v22H1.4v-22zm8.8 6.9C10.2 7 15.7 1 24.1 1 31 1 36.2 5.2 37 11.5h-4.7c-.8-3.9-4.1-6.4-8.2-6.4-5.5 0-9.1 4.5-9.1 11.5s3.5 11.5 9.1 11.5c4.2 0 7.2-2.2 8.2-5.8H37c-1.2 6.2-5.9 9.9-12.9 9.9-8.5 0-13.9-6-13.9-15.6zM40.9 1.5h4.5v30.2h-4.5V1.5zm18.7 7.9c-6.4 0-10.5 4.4-10.5 11.3S53.2 32 59.6 32s10.5-4.3 10.5-11.3c0-6.9-4-11.3-10.5-11.3zm0 18.8c-3.7 0-5.9-2.8-5.9-7.6 0-4.7 2.2-7.6 5.9-7.6s5.9 2.8 5.9 7.6-2.2 7.6-5.9 7.6zm33 3.5h-4.4v-3.8h-.1c-1.3 2.6-3.5 4-6.9 4-4.8 0-7.8-3.1-7.8-8.1V9.7h4.5v13.2c0 3.3 1.6 5.1 4.7 5.1 3.3 0 5.3-2.3 5.3-5.7V9.7h4.5l.2 22zm19.8-30.2v11.8h-.1c-1.3-2.4-3.8-3.9-6.9-3.9-5.5 0-9.3 4.4-9.3 11.2s3.8 11.2 9.3 11.2c3.2 0 5.7-1.5 7-4h.1v3.7h4.4v-30h-4.5zm-5.8 26.6c-3.5 0-5.9-2.9-5.9-7.4s2.3-7.4 5.9-7.4c3.5 0 5.8 2.9 5.8 7.4.1 4.5-2.3 7.4-5.8 7.4z",layoutBox:{viewBox:"0 0 118 34",width:118,height:34,translateX:0,translateY:0,baseline:31.5,capline:0},glyphBox:{viewBox:"0 0 118 34",width:118,height:34,translateX:0,translateY:0,baseline:31.5,capline:0}},"icloud.cn.logo":{name:"icloud.cn.logo",svgPath:"M11.5,39.5v10.3h-1v-0.9H2.3v0.9h-1V39.5h4.6v-2.2h1v2.2H11.5z M2.3,43.6h3.6v-3.1H2.3V43.6z M2.3,47.9h3.6v-3.4H2.3V47.9z M7,40.4v3.1h3.6v-3.1H7z M7,47.9h3.6v-3.4H7V47.9z M26.8,41.9v1h-6.6c-1.3,2.6-2.4,4.3-3.3,5.4c2.5-0.1,5-0.3,7.4-0.7c-0.2-0.5-0.5-1-0.8-1.4c-0.3-0.5-0.6-0.9-0.9-1.4l0.8-0.5c0.6,0.9,1.2,1.9,1.7,2.7c0.5,0.8,0.9,1.6,1.3,2.4L25.6,50c-0.1-0.3-0.2-0.5-0.3-0.7c-0.1-0.3-0.3-0.5-0.4-0.7c-1.4,0.2-2.8,0.3-4.3,0.5l-4.7,0.4l-0.3-1c0.1,0,0.1,0,0.1-0.1c0-0.1,0.1-0.1,0.1-0.1c0.9-0.7,2.1-2.5,3.4-5.4h-4.6v-1L26.8,41.9L26.8,41.9z M25.6,38.1V39h-9.7v-0.9H25.6z M33.1,37.2h1.1v4.2h5.1v1h-5.1v5.8h6.2v1H28.2v-1h5L33.1,37.2L33.1,37.2z M47.9,41.9V41h-4v-2.8h4v-0.9h1v0.9h4V41h-4v0.9h5.6v0.9H42.4v-0.9C42.4,41.9,47.9,41.9,47.9,41.9z M49.1,45.2c-0.2,1.7-0.6,2.8-1.3,3.3c-0.7,0.6-2.4,1.1-5,1.3l-0.4-0.9c2.4-0.1,3.7-0.5,4.5-1.1c0.8-0.7,1.2-1.8,1.2-2.8L49.1,45.2zM52.8,47.5h-0.9v-3h-6.8v3.1h-0.9v-4.1h8.6L52.8,47.5z M47.9,39h-3v1.1h3V39z M49.4,47.4c0.9,0.3,1.8,0.5,2.7,0.8c0.8,0.3,1.6,0.6,2.4,0.9l-0.5,0.9c-1.6-0.8-3.3-1.4-5-1.9L49.4,47.4z M52,39h-3.1v1.1H52V39z M58.5,40.8c-0.1,0.7-0.2,1.4-0.4,2.1l-0.6,2l-0.9-0.3c0.3-0.6,0.5-1.3,0.6-2c0.2-0.7,0.3-1.4,0.4-2.1L58.5,40.8zM60.3,37.4v4.1c-0.1,3.7-0.9,6.5-2.6,8.3L57,49.2c1.6-1.6,2.4-4.1,2.4-7.6v-4.1L60.3,37.4z M61.3,40.9c0.3,0.5,0.5,1.1,0.8,1.7c0.3,0.6,0.5,1.1,0.7,1.8L62,44.7c-0.2-0.6-0.5-1.3-0.7-1.9c-0.2-0.6-0.5-1.1-0.8-1.6L61.3,40.9z M64.3,37.7v11.7h-0.9V37.7H64.3zM65.1,40.8l0.8,1.6c0.3,0.6,0.5,1.1,0.7,1.8l-0.8,0.4c-0.2-0.6-0.5-1.2-0.7-1.8c-0.2-0.6-0.5-1.1-0.8-1.6L65.1,40.8z M68,37.3v12.5h-0.9V37.3H68z M78.9,49.6h-2.4c-0.4,0-0.8-0.1-1.2-0.1c-0.3,0-0.6-0.1-0.9-0.2c-0.6-0.2-1.1-0.5-1.5-1c-0.2-0.2-0.3-0.3-0.5-0.3c-0.3,0-0.9,0.7-1.7,2l-0.7-0.7c0.5-0.9,1.2-1.6,2-2.2V43h-2v-1H73v5.1l0.1,0.1c0.1,0.1,0.1,0.1,0.1,0.1c0.3,0.4,0.7,0.7,1.1,0.9c0.6,0.2,1.2,0.4,1.8,0.3h4.5c0.7,0,1.2-0.1,1.6-0.1l-0.3,1h-3L78.9,49.6z M70.8,37.4c0.5,0.4,0.9,0.7,1.3,1.1c0.4,0.3,0.7,0.7,1.1,1.1l-0.7,0.7c-0.7-0.8-1.5-1.5-2.4-2.2L70.8,37.4z M82.1,41.2v0.9h-4.3c-0.4,1-0.7,1.9-1.1,2.6c-0.3,0.6-0.6,1.2-1,1.7c0.8-0.1,1.7-0.2,2.5-0.3c0.7-0.1,1.4-0.3,2-0.4c-0.2-0.4-0.3-0.8-0.5-1.1c-0.2-0.4-0.4-0.7-0.6-1.1l0.8-0.3c0.8,1.4,1.5,2.8,2,4.3L81,47.8c-0.1-0.2-0.1-0.4-0.2-0.7c-0.1-0.2-0.2-0.4-0.3-0.6c-0.9,0.2-1.8,0.4-2.7,0.5c-1,0.1-2.1,0.3-3.3,0.4l-0.3-0.9c0.6-0.2,1.4-1.7,2.5-4.3h-2.8v-0.9L82.1,41.2L82.1,41.2z M81.1,38v0.9h-6.3V38H81.1z M84.3,38.2h3.1v-0.9h0.9v0.9h3.7v-0.9h1v0.9h3.1v0.9H93v0.8h-1v-0.8h-3.7v0.8h-0.9v-0.8h-3.1V38.2z M95.7,40.5V43h-1v-1.8h-9.1V43h-0.9v-2.7L95.7,40.5L95.7,40.5z M94.9,46v3.8h-1v-0.5h-7.4v0.5h-0.9V46H94.9z M86.5,48.4h7.4v-1.7h-7.4V48.4z M86.8,42.3h6.8V45h-6.8V42.3z M92.7,44.3V43h-5v1.3H92.7z M1,3.9a2.7,2.7 0 1,0 5.4,0a2.7,2.7 0 1,0 -5.4,0z M1.4,9.7h4.5v22.2H1.4V9.7z M10,16.7C10,7.1,15.4,1,23.9,1C30.8,1,36,5.2,36.8,11.6H32c-0.8-3.8-4.2-6.6-8.3-6.4c-5.5,0-9.1,4.5-9.1,11.6s3.5,11.6,9.1,11.6c4.2,0,7.3-2.2,8.3-5.8h4.7c-1.2,6.3-6,10-12.9,10C15.4,32.4,10,26.4,10,16.7z M40.8,1.5h4.6v30.4h-4.5L40.8,1.5z M49,20.8c0-7,4.1-11.4,10.5-11.4S70,13.8,70,20.8s-4,11.4-10.5,11.4C53.1,32.2,49,27.8,49,20.8z M65.4,20.8c0-4.7-2.2-7.6-5.9-7.6s-5.9,2.8-5.9,7.6s2.2,7.6,5.9,7.6S65.4,25.7,65.4,20.8z M92.5,31.9h-4.3v-3.7h-0.1c-1.3,2.7-3.5,4-6.9,4c-4.8,0-7.8-3.1-7.8-8.3V9.7H78v13.4c0,3.3,1.6,5.2,4.7,5.2c3.3,0,5.3-2.3,5.3-5.8V9.7h4.5V31.9L92.5,31.9z M96.1,20.8c0-6.9,3.7-11.3,9.2-11.3c3.1,0,5.7,1.5,7,3.9h0.1v-12h4.5v30.4h-4.4v-3.8h-0.1c-1.3,2.6-3.8,4-7.1,4C99.8,32.1,96.1,27.6,96.1,20.8z M100.8,20.8c0,4.5,2.4,7.5,5.9,7.5c3.5,0,5.8-2.9,5.8-7.5s-2.4-7.4-5.8-7.4S100.8,16.3,100.8,20.8L100.8,20.8z",layoutBox:{viewBox:"0 0 118 50",width:118,height:50,translateX:0,translateY:0,baseline:31.5,capline:0},glyphBox:{viewBox:"0 0 118 50",width:118,height:50,translateX:0,translateY:0,baseline:31.5,capline:0}}}),Je=Z.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isCNAcct",truevalue:"cn",attributes:{}}]}},__QUALIFIED_CLASS_NAME__:"iCloudButton"},mixinDependencies:[Ye.a],additionalClassNames:w.b(["icloud-button"]),logoKey:a.b({readOnly:!0,dependencies:["_domainManager.current"],get:function(){return this.getPath("_domainManager.current.iCloudLogo")||"icloud.logo"}}),isCNAcct:a.b({readOnly:!0,type:Boolean,dependencies:["logoKey"],get:Object.assign(function(){return"icloud.cn.logo"===this.logoKey},{__CW__getter:function(e,t,n,i){return"icloud.cn.logo"===i.internalGet(this,t[0+n])}})}),symbolMetadata:a.b({readOnly:!0,dependencies:["logoKey"],get:Object.assign(function(){return Xe[this.logoKey]},{__CW__getter:function(e,t,n,i){return Xe[i.internalGet(this,t[0+n])]}})}),metadata:a.b({readOnly:!0,dependencies:["symbolMetadata","layoutMode"],get:Object.assign(function(){return this.symbolMetadata[this.layoutMode]},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])[i.internalGet(this,t[1+n])]}})}),_domainManager:a.b({readOnly:!0,defaultValue:function(){return qe.a.sharedInstance}})}),Ze=(n(0),n(5),n(46),n(47),ce.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"VIEWOUTLET",tagname:"view",name:"appleIconButtonView"},{type:"VIEWOUTLET",tagname:"view",name:"iCloudButtonView"}]}},__QUALIFIED_CLASS_NAME__:"CloudOSApplicationToolbarLeftView"},_appleIconButtonView:a.b({readOnly:!0,strong:!0,defaultValue:function(){return Qe.create()}}),appleIconButtonView:a.b({dependencies:["completedAuthenticationStep"],readOnly:!0,strong:!0,get:Object.assign(function(){return this.completedAuthenticationStep?null:this._appleIconButtonView},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?null:this._appleIconButtonView}})}),_iCloudButtonView:a.b({readOnly:!0,strong:!0,defaultValue:function(){return Je.create()}}),iCloudButtonView:a.b({dependencies:["completedAuthenticationStep"],readOnly:!0,get:Object.assign(function(){return this.completedAuthenticationStep?this._iCloudButtonView:null},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?this._iCloudButtonView:null}})}),completedAuthenticationStep:a.b(),_alignmentObserver:s.h("isAttached","completedAuthenticationStep",function(){if(this.isAttached){var e=this.iCloudButtonView;if(e)try{var t=e.element,n=t.querySelector("svg"),i=$e.a(this.element).height,r=this.iCloudButtonView.metadata,a=r.baseline-r.capline,o=$e.a(t).height,s=$e.a(n).height,c=o/r.height*a,l=i/2+c/2-((o-s)/2+c);S.c(t,{"align-self":"flex-start","margin-top":l})}catch(t){Ge.b.debug("iCloudLogo alignment error",t),S.c(e.element,{"align-self":"center","margin-top":1})}}})})),et=(n(43),n(0),n(5),te.c.extend({additionalClassNames:w.b(["help-button"]),externalURL:a.b(me.c("helpUrl")),helpUrl:a.b(),symbolMetadata:oe,layoutMode:"glyphBox",staticMembers:{__QUALIFIED_CLASS_NAME__:"HelpButton"}})),tt=n(899),nt=n(952),it=n(948),rt=n(1087),at=(n(40),n(0),ce.a.extend(Ye.a,{additionalClassNames:w.b(["chevron-view"]),layoutMode:"glyphBox",symbolMetadata:{name:"chevron.down",svgPath:"M 56.4453 -7.8125 C 58.5449 -7.8125 60.3516 -8.64258 61.9629 -10.2539 L 98.5352 -47.7539 C 99.8047 -49.0234 100.488 -50.5859 100.488 -52.4414 C 100.488 -56.25 97.4609 -59.2773 93.7012 -59.2773 C 91.8457 -59.2773 90.0879 -58.5449 88.7207 -57.1777 L 56.4941 -23.9746 L 24.2188 -57.1777 C 22.8516 -58.4961 21.1426 -59.2773 19.2383 -59.2773 C 15.4785 -59.2773 12.4512 -56.25 12.4512 -52.4414 C 12.4512 -50.5859 13.1348 -49.0234 14.4043 -47.7051 L 50.9766 -10.2539 C 52.6855 -8.59375 54.3945 -7.8125 56.4453 -7.8125 Z",layoutBox:{viewBox:"0 0 212.646728515625 159.98291015625",width:212.646728515625,height:159.98291015625,translateX:49.853710937499955,translateY:115.221435546875,baseline:115.221435546875,capline:44.761474609375},glyphBox:{viewBox:"0 0 88.036865234375 54.8349609375",width:88.036865234375,height:54.8349609375,translateX:-12.451220703125045,translateY:62.6474609375,baseline:62.6474609375,capline:-7.8125}},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChevronView"}})),ot=(tt.a,n(1),n(0),n(2),{primaryInteractionMode:a.b(c.a.bindingFor("application.primaryInteractionMode")),sizeClassHorizontal:a.b(c.a.bindingFor("application.sizeClassHorizontal")),sizeClassVertical:a.b(c.a.bindingFor("application.sizeClassVertical"))}),st=n(1165),ct=(n(42),n(1),n(0),n(2),n(40),n(15),ce.a.extend({mixinDependencies:[tt.a,ot],staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"userPhotoIconView"},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"userNameLabelView"}],classes:["user-label-container"]},{type:"VIEWOUTLET",tagname:"view",name:"chevron"}],classes:["user-name-with-chevron",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"shouldHideUserName",truevalue:"hide-user-name",attributes:{}}]},__QUALIFIED_CLASS_NAME__:"UserNameWithChevron"},shouldHideUserName:a.b({dependencies:[f.a.sharedInstance.window.bindingFor("width"),"userNameString","isAttached"],readOnly:!0,type:Boolean,get:Object.assign(function(){return!this.isAttached||this.parent.element.offsetWidth-(this.chevron&&this.chevron.element&&this.chevron.element.offsetWidth||0)-this.calculateWidthForUserName()<=0},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[2+n])||this.parent.element.offsetWidth-(this.chevron&&this.chevron.element&&this.chevron.element.offsetWidth||0)-this.calculateWidthForUserName()<=0}})}),calculateWidthForUserName:function(){var e=this.userNameLabelView.element;return e&&e.offsetWidth||0},user:a.b(),userNameString:a.b({readOnly:!0,dependencies:["user"],get:Object.assign(function(){var e=this.user||{},t=e.firstName,n=void 0===t?"":t,i=e.lastName,r=void 0===i?"":i,a=rt.a.displayNameForComponents({givenName:n}),o=rt.a.displayNameForComponents({givenName:n,familyName:r});return nt.b(o)?o:a},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n])||{},a=r.firstName,o=void 0===a?"":a,s=r.lastName,c=void 0===s?"":s,l=rt.a.displayNameForComponents({givenName:o}),u=rt.a.displayNameForComponents({givenName:o,familyName:c});return nt.b(u)?u:l}})}),userPhotoIconView:a.b({readOnly:!0,strong:!0,type:st.a,get:function(e){return st.a.create()}}),userNameLabelView:a.b({readOnly:!0,strong:!0,get:function(){return it.a.create({additionalClassNames:["user-name-label"],value:this.bindingFor("userNameString")})}}),chevron:a.b({readOnly:!0,strong:!0,get:function(){return at.create()}})})),lt=(n(1),n(0),n(5),n(2),n(40),n(15),n(42),n(43),n(4),n(3),ce.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"VIEWOUTLET",tagname:"view",name:"helpButtonView"},{type:"VIEWOUTLET",tagname:"view",name:"userNameWithChevronView"}]}},__QUALIFIED_CLASS_NAME__:"CloudOSApplicationToolbarRightView"},completedAuthenticationStep:a.b(),user:a.b(),_helpButtonView:a.b({readOnly:!0,dependencies:[],defaultValue:function(){return et.extend({helpUrl:Object(re.a)({readOnly:!0,get:function(){return Object(Ue.b)()}})}).create()}}),helpButtonView:a.b({dependencies:["completedAuthenticationStep"],readOnly:!0,get:Object.assign(function(){return this.completedAuthenticationStep?null:this._helpButtonView},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?null:this._helpButtonView}})}),_userNameWithChevronView:a.b({readOnly:!0,dependencies:[],defaultValue:function(){return ct.create({action:"userNameViewWasTapped"})},downstreamBindings:{user:"(owner).user"}}),userNameWithChevronView:a.b({dependencies:["completedAuthenticationStep"],readOnly:!0,get:Object.assign(function(){return this.completedAuthenticationStep?this._userNameWithChevronView:null},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?this._userNameWithChevronView:null}})}),userNameViewWasTapped:function(){this.sendEvent("showAccountMenu",this._userNameWithChevronView)}})),ut=(n(1),n(0),n(5),n(2),n(40),n(15),n(42),n(46),n(43),n(47),n(48),n(41),n(4),n(3),ze.extend({leftView:a.b({strong:!0,readOnly:!0,get:function(){return Ze.create()},downstreamBindings:{completedAuthenticationStep:"(owner).completedAuthenticationStep"}}),rightView:a.b({strong:!0,readOnly:!0,get:function(){return lt.create()},downstreamBindings:{completedAuthenticationStep:"(owner).completedAuthenticationStep",user:"(owner).user"}}),completedAuthenticationStep:a.b(),user:a.b(),staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSApplicationToolbarView"}})),dt=(n(1),n(0),n(5),n(8),n(20),n(21),n(2),n(7),n(40),n(15),n(42),n(46),n(43),n(47),n(39),n(10),n(48),n(41),n(4),n(3),n(6),n(13),n(218),n(192),n(174),n(153),He.extend({viewClass:ut,view:a.b({downstreamBindings:{completedAuthenticationStep:"(owner).completedAuthenticationStep",user:"(owner).user"}}),accountMenuActionSheet:a.b({type:xe,strong:!0,readOnly:!0,get:function(){return xe.create({popoverClass:w.b({hidePopover:function(){var e=arguments;this.__s._$MI$hidePopover.apply(this,e),this.delegate.popoverWillHide()},delegate:this,__superMap:{_$MI$hidePopover:"hidePopover"}})})}}),popoverWillHide:function(){this.accountMenuActionSheet.cancelSettings()},completedAuthenticationStep:a.b({binding:me.c("user.completedAuthenticationStep")}),theme:a.b(ke.DARK),showAccountMenu:function(e){var t=this.accountMenuActionSheet;t.anchor=e,t.helpButtonConfigs=[{externalURL:Object(Ue.b)()}],t.show()},user:a.b(),staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSApplicationToolbarViewController"}})),ht=n(93),pt=(n(1),n(0),n(8),n(20),n(21),n(2),{anchor:a.b({defaultValue:o.c(ce.a)}),anchorLayout:a.b({binding:null,readOnly:!0,dependencies:["relativeAnchorLayout","referenceLayoutContext"],get:function(){var e=this.relativeAnchorLayout,t=this.referenceLayoutContext;if(e){var n=t?t.x:0,i=t?t.y:0;return m.a.create({x:e.x+n,y:e.y+i,width:e.width,height:e.height})}}}),relativeAnchorLayout:a.b({type:m.b}),referenceLayoutContext:a.b({type:m.b}),showPopover:function(e){this.relativeAnchorLayout=e,this.show()},init:function(){var e=arguments;this.__s._$eO$init.apply(this,e),u.a(this,ht.c)||h.b("[AnchorLayoutPopoverSupport] Expected to be mixed into a popover")},_shouldMeasure:a.b({get:function(){return!1}}),__superMap:{_$eO$init:"init"}}),ft=n(945),mt=n(904),gt=(n(264),n(1),n(0),n(8),n(20),n(35),n(21),n(2),ht.c.extend({viewClass:ft.a.extend({additionalClassNames:w.b(["base-modal-arrow-popover-view"])}),modalBackgroundWasClicked:function(){this.hide()},updatePopoverSize:function(){var e=this;this.isAttached&&mt.a(function(){e._calculateSize()})},staticMembers:{__QUALIFIED_CLASS_NAME__:"BaseModalArrowPopoverViewController"}})),bt=n(248),vt=(n(1),n(0),n(5),n(2),n(7),n(4),n(3),n(6),n(60),n(13),ce.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"appSwitcherView"},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"settingsLinkView"}],classes:["links-section"]}],classes:["content-container"]}]},__QUALIFIED_CLASS_NAME__:"MiniAppSwitcherPopoverContentView"},settingsLinkView:a.b({type:bt.a,defaultValue:o.c(bt.a)})})),_t=n(606),yt=(n(1),n(0),n(5),n(2),n(7),n(4),n(3),n(6),n(60),n(13),n(33),n(58),n(71),i.a.extend({appSwitcherViewController:l.b({viewOutlet:"appSwitcherView",defaultValue:o.c(_t.a)}),viewClass:vt,prepareForDisplay:function(){return this.appSwitcherViewController.prepareForDisplay()},_resizeObserver:s.h("appSwitcherViewController.childViews","appSwitcherViewController.childViews.contentsDidChange",function(){this.sendEvent("updatePopoverSize")}),staticMembers:{__QUALIFIED_CLASS_NAME__:"MiniAppSwitcherPopoverContentViewController"}})),Ct=(n(355),n(1),n(0),n(5),n(8),n(20),n(35),n(21),n(2),n(264),n(7),n(4),n(3),n(6),n(33),n(13),n(58),n(71),n(60),gt.extend({mixinDependencies:[pt,B.a],allowedLayouts:[le.a],contentController:a.b({type:yt,defaultValue:o.c(yt)}),shouldAutosize:!0,modalBackgroundWasClicked:function(){var e=arguments;this.__s._$Ni$modalBackgroundWasClicked.apply(this,e),Oe.a.sharedInstance.cancelCurrentLoadingApplication()},viewClass:w.b({additionalClassNames:w.b(["mini-app-switcher-popover"])}),prepareForDisplay:function(){return this.contentController.prepareForDisplay()},availableContentAreaDidChange:function(e){this.referenceLayoutContext=e,this.updatePopoverSize()},__superMap:{_$Ni$modalBackgroundWasClicked:"modalBackgroundWasClicked"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MiniAppSwitcherPopoverViewController"}})),It=n(429),wt=n(430),St=n(1158),At=(n(0),n(6),St.a.extend({presentViewController:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.presentContentViewController(e,t)},dismissViewController:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.dismissContentViewController(e,t)},staticMembers:{__QUALIFIED_CLASS_NAME__:"NotificationPresenterViewController"}}));n(1),n(0),n(5),n(8),n(20),n(35),n(21),n(2),n(7),n(40),n(15),n(42),n(46),n(43),n(47),n(39),n(10),n(48),n(41),n(4),n(16),n(3),n(19),n(6),n(62),n(354),n(13),n(216),n(60),n(33),n(58),n(71),n(218),n(192),n(174),n(153),n(263),n(356),n(355),n(264),n(139),n(173),n(125),n.d(t,"a",function(){return Ot});var Ot=i.a.extend({mixinDependencies:[_.a,Re,B.a,r.a],viewClass:Ve,view:a.b({type:Ve,downstreamBindings:{isShowingErrorView:"(owner).isShowingErrorView"}}),toolbarViewController:a.b({readOnly:!0,strong:!0,defaultValue:o.c(dt),downstreamBindings:{user:"(owner).cloudOSUser.details"}}),legalFooterViewController:a.b({readOnly:!0,strong:!0,defaultValue:o.c(It.a),downstreamBindings:{isManagedAppleID:"(owner).cloudOSUser.details.isManagedAppleID",shouldShowCreateLink:"(owner).shouldShowCreateLinkInFooter"}}),shouldShowCreateLinkInFooter:a.b({readOnly:!0,type:Boolean,dependencies:["cloudOSUser.details.completedAuthenticationStep","accountCreateEnabledDidUpdate"],get:Object.assign(function(){var e=void 0,t=b.a.configuration.accountCreateEnabled;if(void 0!==t&&t){var n=this.getPath("cloudOSUser.details.completedAuthenticationStep");e=!n||n<1}else e=!1;return e},{__CW__getter:function(e,t,n,i){var r=void 0,a=b.a.configuration.accountCreateEnabled;if(void 0!==a&&a){var o=i.internalGetPath(this,t[0+n]);r=!o||o<1}else r=!1;return r}})}),accountCreateEnabledDidUpdate:s.i(),primaryInteractionMode:a.b({readOnly:!0,binding:c.a.bindingFor("application.primaryInteractionMode")}),cloudOSUser:a.b(y.a.bindingFor("sharedInstance.cloudOSUser")),authenticationState:a.b({readOnly:!0,binding:y.a.bindingFor("sharedInstance.authenticationState")}),accountMenuActionSheet:a.b({type:xe,strong:!0,readOnly:!0,get:function(){return xe.create()}}),appSwitcherPopoverViewController:a.b({type:Ct,strong:!0,readOnly:!0,get:function(){return Ct.create()}}),contentViewController:l.b({viewOutlet:"contentView",defaultValue:o.c(X),downstreamBindings:{toolbarViewController:"(owner).toolbarViewController",legalFooterViewController:"(owner).legalFooterViewController"}}),modalPresenterViewController:a.b({type:wt.a,defaultValue:o.c(wt.a)}),isShowingErrorView:a.b(!1),shouldHideEnvironmentInformation:a.b({readOnly:!0,dependencies:["cloudOSUser.details.completedAuthenticationStep","contentViewController.isContentContainerViewCurrentlyPresented"],get:Object.assign(function(){var e=this.getPath("cloudOSUser.details.completedAuthenticationStep"),t=this.getPath("contentViewController.isContentContainerViewCurrentlyPresented");return e>=1&&!t},{__CW__getter:function(e,t,n,i){var r=i.internalGetPath(this,t[0+n]),a=i.internalGetPath(this,t[1+n]);return r>=1&&!a}})}),displayEnvironmentInformation:function(e,t){this._environmentSashViewController||(this._environmentSashViewController=Fe.create(e,t),this._environmentSashViewController.delegate=this)},insertViewController:function(e){this.contentViewController.insertViewController(e)},presentViewController:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return this.modalPresenterViewController.presentViewController(e,t)},showViewController:function(e){return this.appSwitcherPopoverViewController.hide(),this.contentViewController.showViewController(e)},showAppSwitcher:function(e){if(!v.a.sharedInstance.isInCulDeSacMode){var t=this.appSwitcherPopoverViewController;t.prepareForDisplay().then(function(){t.showPopover(e)})}},navigateToExternalURL:function(e,t){u.a(e,d.a)||h.b("Invalid urlObject passed"),p.a(e.hostname)&&e.hostname.length||h.b("Invalid urlObject missing hostname");var n=t?"_self":"_blank";window.open(e.toString(),n)},unauthenticateUser:function(){y.a.sharedInstance.unauthenticateUser()},showBanner:function(e){this._bannerViewController=e,this._updateAvailableContentArea(this.layoutContext)},removeBanner:function(){this._bannerViewController=void 0,this._updateAvailableContentArea(this.layoutContext)},showNotification:function(e){this._notificationViewController.presentViewController(e)},removeNotification:function(e){return this._notificationViewController.dismissViewController(e)},openHelp:function(){var e=Object(Ue.b)(),t=void 0;this.primaryInteractionMode===g.a.MOUSE&&(t="height="+(f.a.sharedInstance.isChrome?705:675)+",width=875,location=0,status=0,scrollbars=0"),window.open(e,"help",t)},showAccountMenu:function(e,t){if(void 0===e.x&&void 0===e.y){var n=f.a.sharedInstance.window.width;e.y=2,e.x=n-75}var i=this.accountMenuActionSheet;i.anchorLayout=e,i.helpButtonConfigs=t,i.show()},localeDidChange:function(){this._updateAvailableContentArea(this.layoutContext)},availableContentAreaDidChange:function(e){this.layoutContext=e,this._updateAvailableContentArea(e)},configurationWasUpdated:function(e){this.accountCreateEnabledDidUpdate()},removeEnvironmentInformation:function(){this._environmentSashViewController=void 0},_bannerViewController:l.b({type:C.b,viewOutlet:"bannerView"}),_environmentSashViewController:l.b({strong:!0,type:Fe,viewOutlet:"environmentSashView",downstreamBindings:{isHidden:"(owner).shouldHideEnvironmentInformation"}}),_notificationViewController:l.b({type:At,viewOutlet:"notificationView",defaultValue:o.c(At)}),_updateAvailableContentArea:function(e){var t=m.a.create(e),n=this._bannerViewController;if(n){n.availableContentAreaDidChange(e);var i=n.layoutContext;t.y+=i.height,t.height-=i.height}this.legalFooterViewController.availableContentAreaDidChange(e),this.accountMenuActionSheet.availableContentAreaDidChange(t),this.appSwitcherPopoverViewController.availableContentAreaDidChange(t),this.contentViewController.availableContentAreaDidChange(t)},staticMembers:{__QUALIFIED_CLASS_NAME__:"RootViewController"}})},function(e,t,n){"use strict";var i=n(818),r=n(1073),a=n(1110),o=n(830),s=n(1050),c={mixinDependencies:[s.a],name:"AuthenticationServiceToChildProtocol",version:"0.0.1",authenticationStepDidComplete:o.a.define(),authenticationDidComplete:o.a.define(),authenticationDidCancel:o.a.define(),retrieveSessionDidComplete:o.a.define(),retrieveSessionDidCancel:o.a.define()},l={mixinDependencies:[s.a],name:"URLRequestServiceProtocol",version:.1,didReceiveSpecialResponse:o.a.define(),requestSent:o.a.define(),requestReceived:o.a.define()},u={mixinDependencies:[s.a],name:"HostApplicationServiceFromChildProtocol",version:"0.0.1",minimizeApplication:o.a.define(),switchToApplication:o.a.define(),showAccountSettings:o.a.define(),showAccountMenu:o.a.define(),updateShareGUID:o.a.define()},d={mixinDependencies:[s.a],name:"HostApplicationServiceToChildProtocol",version:"0.0.1",didReceiveRemoteNotification:o.a.define()},h=n(1118),p={mixinDependencies:[s.a],name:"MeCardServiceToChildProtocol",version:"1.0.0",didFetchMeCard:o.a.define(),didDeleteMeCardPhoto:o.a.define(),failedToDeleteMeCardPhoto:o.a.define(),didStoreMeCardPhoto:o.a.define(),failedToStoreMeCardPhoto:o.a.define()},f={mixinDependencies:[s.a],name:"QuotaServiceFromChildProtocol",version:"0.0.1",fetchStorageQuota:o.a.define()},m={mixinDependencies:[s.a],name:"QuotaServiceToChildProtocol",version:"0.0.1",didFetchStorageQuota:o.a.define(),failedToFetchStorageQuota:o.a.define()},g={mixinDependencies:[s.a],name:"LocaleServiceFromChildProtocol",version:"1.0.0",setLocale:o.a.define(),setSecondaryLocale:o.a.define(),setRegionFormat:o.a.define()},b={mixinDependencies:[s.a],name:"LocaleServiceToChildProtocol",version:"1.0.0",didSetLocale:o.a.define(),failedToSetLocale:o.a.define(),didSetSecondaryLocale:o.a.define(),failedToSetSecondaryLocale:o.a.define(),didSetRegionFormat:o.a.define(),failedToSetRegionFormat:o.a.define()},v=n(209),_=n(81),y=n(1053),C=n(410),I=(n(3),i.a.extend({mixinDependencies:[l],httpRequestReportingController:_.d({type:C.a,readOnly:!0}),init:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:C.a.sharedInstance;this.__s._$Mq$init.call(this),this._httpRequestReportingController=e},didReceiveSpecialResponse:function(e,t,n,i){this.httpRequestReportingController.handleSpecialResponse()},requestSent:function(e){},requestReceived:function(e,t,n,i,r){if(!e)throw new y.a("URLRequestService: requestReceived: no compatability context specified");if(!t)throw new y.a("URLRequestService: requestReceived: no statsHash specified");if(!i)throw new y.a("URLRequestService: requestReceived: no url specified");this.httpRequestReportingController.recordApplicationStat(e,t,n,i,r)},requestReceivedLegacy:function(e,t,n,i,r){if(!e)throw new y.a("URLRequestService: requestReceived: no compatability context specified");if(!t)throw new y.a("URLRequestService: requestReceived: no statsHash specified");if(!i)throw new y.a("URLRequestService: requestReceived: no url specified");this.httpRequestReportingController.recordLegacyApplicationStat(e,t,n,i,r)},__superMap:{_$Mq$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"URLRequestService"}})),w=n(106),S=n(891),A=n(1074),O=n(1054),E=n(129),T=n(29),D=(n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),i.a.extend({mixinDependencies:[u,A.a],minimizeApplication:function(){var e=w.a.create({width:1,height:1,x:73,y:33});S.a.application.showAppSwitcher(e)},switchToApplication:function(e){if(!e)throw new O.a("[HostService] No application identifier specified");T.a.sharedInstance.switchToApplication(e)},showAccountSettings:function(){this.switchToApplication(E.a.applicationInfo.authBagId)},showAccountMenu:function(e){var t=e.x,n=e.y,i=e.width,r=e.height,a=w.a.create({x:t,y:n,width:i,height:r}),o=this.processReference.applicationInfo.helpButtonConfigs;S.a.application.rootViewController.showAccountMenu(a,o)},updateShareGUID:function(e){var t="";e&&(t="#"+e);var n=this.processReference.applicationInfo;T.a.sharedInstance.replaceHistoryState(n,{},void 0,t)},staticMembers:{__QUALIFIED_CLASS_NAME__:"HostApplicationService"}})),L=n(319),N=n(852),M=n(113),P=n(11),x=n(67),R=(n(4),n(3),i.a.extend({mixinDependencies:[g,A.a],setLocale:function(e){var t=this,n=N.a(),i=this._preferencesController,r=i.accountPreferences;return r.locale=e,i.updateAccountPreferences(r).then(function(i){if(i.isOK){var a=r.regionFormat;t._localizationController.setCurrentLocaleAndRegionFormat(e,a)}else t.processReference.remoteProxy.failedToSetLocale(n)}),n},setSecondaryLocale:function(e){var t=this,n=N.a(),i=this._preferencesController,r=i.accountPreferences;return r.secondaryLocale=e,i.updateAccountPreferences(r).then(function(i){i.isOK?(P.a.secondaryLocale=e,t._localizationController.localeOrRegionFormatChanged()):t.processReference.remoteProxy.failedToSetSecondaryLocale(n)}),n},setRegionFormat:function(e){var t=this,n=N.a(),i=this._preferencesController,r=i.accountPreferences;return r.regionFormat=e,i.updateAccountPreferences(r).then(function(i){if(i.isOK){var r=P.a.locale;t._localizationController.setCurrentLocaleAndRegionFormat(r,e)}else t.processReference.remoteProxy.failedToSetRegionFormat(n)}),n},_localizationController:_.d({type:x.a,defaultValue:x.a.sharedInstance}),_preferencesController:_.d({type:M.a,defaultValue:M.a.sharedInstance}),staticMembers:{__QUALIFIED_CLASS_NAME__:"LocaleService"}})),j=n(182),F=(n(3),i.a.extend({mixinDependencies:[f,A.a],fetchStorageQuota:function(){var e=this;this._quotaController.refreshQuotaData().then(function(t){if(t.isOK){var n=t.data.serialize();e.processReference.remoteProxy.didFetchStorageQuota(n)}else e.processReference.remoteProxy.failedToFetchStorageQuota()})},_quotaController:_.d({type:j.a,defaultValue:j.a.sharedInstance}),staticMembers:{__QUALIFIED_CLASS_NAME__:"QuotaService"}})),V=n(112),U=n(305),k=n(26),B=n(36),z=(n(4),n(3),i.a.extend({mixinDependencies:[U.a,A.a],fetchAppUrl:function(e,t,n){var i=function(e){var t="",n=B.a.sharedInstance.getApplicationInfo(e);if(n){var i=P.a.protocol,r=P.a.locale,a=P.a.hostName,o=P.a.subDomain,s=k.a.sharedInstance.port;t=Object(P.b)(i,a,r,n.path,s,"index.html",o)}return t}(n);i&&this.processReference.remoteProxy.didFetchAppUrl(t,i)},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyAppUrlService"}})),W=n(306),H=n(863),$=i.a.extend({mixinDependencies:[W.a],resolveCKShortGUID:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=H.b).warn.apply(e,["Unhandled cloudos1 message: resolveCKShortGUID"].concat(n))},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyCloudKitResolutionService"}}),G=n(311),K=n(318),Q=n(414),q=n(425),Y=n(307),X=n(320),J=n(308),Z=n(819),ee=n(208),te=(n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),i.a.extend({mixinDependencies:[A.a,J.a],refreshAppPreferences:function(e){var t=this._preferencesController,n=this.processReference.applicationInfo.authBagId,i=ee.a.getAppPreferences([n],t);this.processReference.remoteProxy._cloudOSStateChange({appPreferences:i}),this.processReference.remoteProxy.appPreferencesDidChange()},setAccountPreference:function(e,t,n){var i=this._preferencesController,r=i.accountPreferences;return r&&r.getMetadata(t)||Z.b("[LegacyPreferencesService] Cannot set property on AccountPreferences object",{key:t,accountPreferences:r}),r[t]=n,i.updateAccountPreferences(r).then(function(e){if(e.isOK)if("locale"===t){var i=r.regionFormat;x.a.sharedInstance.setCurrentLocaleAndRegionFormat(n,i)}else if("secondaryLocale"===t)P.a.secondaryLocale=n,x.a.sharedInstance.localeOrRegionFormatChanged();else if("regionFormat"===t){var a=P.a.locale;x.a.sharedInstance.setCurrentLocaleAndRegionFormat(a,n)}})},setAppPreferences:function(e,t){var n=this,i=new Map;for(var r in t)i.set(r,t[r]);var a=this._preferencesController,o=this.processReference.applicationInfo.authBagId;return a.updatePreferences(o,i).then(function(e){if(e.isOK){var t=ee.a.getAppPreferences([o],a);n.processReference.remoteProxy._cloudOSStateChange({appPreferences:t}),n.processReference.remoteProxy.appPreferencesDidChange()}})},_preferencesController:_.d({type:M.a,defaultValue:M.a.sharedInstance}),staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyPreferencesService"}})),ne=n(309),ie=n(1088),re=(n(1),n(0),n(2),n(7),n(4),n(3),n(6),n(13),i.a.extend({mixinDependencies:[A.a,ne.a],refreshQuotaData:function(){var e=this;return j.a.sharedInstance.refreshQuotaData().then(function(t){if(t.status===ie.a.SUCCESS){var n=t.data,i=ee.a.getCloudOSStateWithQuota(n);e.processReference.remoteProxy._cloudOSStateChange(i),e.processReference.remoteProxy.quotaDataDidChange()}else e.processReference.remoteProxy.quotaDataFailedToLoad()})},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyQuotaService"}})),ae=n(415),oe=i.a.extend({mixinDependencies:[ae.a],loadRulesForRegions:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=H.b).warn.apply(e,["Unhandled cloudos1 message: loadRulesForRegions"].concat(n))},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyRegionFormatterService"}}),se=n(310),ce=n(407),le=(n(3),i.a.extend({mixinDependencies:[se.a,A.a],preferencesController:_.d({type:M.a,defaultValue:function(){return M.a.sharedInstance}}),_clearStartupInfo:function(){var e=this.processReference.applicationInfo.authBagId,t=this.preferencesController.accountPreferences;t.clearStartupInfoForApp(e),this.preferencesController.updateAccountPreferences(t)},setStartupInfo:function(e,t){if(t){var n=this.processReference.applicationInfo.authBagId,i=this.preferencesController.accountPreferences,r=ce.a.create(t),a=i.getStartupInfoForApp(n);r.isEqual(a)||(i.setStartupInfoForApp(n,r),this.preferencesController.updateAccountPreferences(i))}else this._clearStartupInfo()},setStartupUrl:function(e,t){t?this.setStartupInfo(e,{url:t}):this._clearStartupInfo()},startupDataIsLoaded:function(){for(var e,t=arguments.length,n=Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=H.b).warn.apply(e,["Unhandled cloudos1 message: startupDataIsLoaded"].concat(n))},staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyStartupInfoService"}})),ue=n(416),de=n(86),he=n(1042),pe=n(1046),fe=n(1077),me=n(1075),ge=(n(3),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}),be=i.a.extend({mixinDependencies:[ue.a,A.a],beginStat:function(e,t,n){var i=this.processReference.applicationInfo.applicationName,r=e.buildNumber,a=e.masteringNumber,o=P.a.hostName,s=P.a.locale,c=pe.a.sharedInstance,l=Object(fe.a)(i,a,r,c.identifier,o,s,he.a.sharedInstance.primaryInteractionMode,t,n);l.startTime=Date.now();var u=this._stats,d=u.get(i)||new Map;d.has(t)?H.b.warn("LegacyTelemetryService encountered duplicate stat",{applicationName:i,statName:t}):(d.set(t,l),u.set(i,d))},endStat:function(e,t,n){var i,r=this.processReference.applicationInfo.applicationName,a=e.buildNumber,o=e.masteringNumber,s=this._stats.get(r);if(s){var c=s.get(t);if(c){s.delete(t);var l=c.startTime,u=Date.now()-l;delete c.startTime;var d=ge(((i={masteringNumber:o,buildNumber:a}).duration=u,i),c,n);this._telemetryService.recordStat(d)}else H.b.warn("LegacyTelemetryService: Could not find stat",{applicationName:r,statName:t})}else H.b.warn("LegacyTelemetryService: Could not find stat for application",{applicationName:r})},recordStat:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=this.processReference.applicationInfo.applicationName;n.fullStatName=""+i+t,this._telemetryService.recordStat(i,e.masteringNumber,e.buildNumber,t,n)},recordApplicationMessage:function(e,t,n){this.recordStat(e,t,n)},didReceiveSpecialResponse:function(e,t,n,i){this._urlRequestService.didReceiveSpecialResponse(t,n,i)},requestSent:function(e){var t=ve(this.processReference.applicationInfo,e);this._urlRequestService.requestSent(t)},requestReceived:function(e,t,n,i,r){var a=ve(this.processReference.applicationInfo,e);this._urlRequestService.requestReceivedLegacy(a,t||{},n,i,r)},_stats:_.d({readOnly:!0,defaultValue:de.c(Map)}),_telemetryService:_.d({readOnly:!0,defaultValue:de.c(me.c)}),_urlRequestService:_.d({readOnly:!0,defaultValue:de.c(I)}),staticMembers:{__QUALIFIED_CLASS_NAME__:"LegacyTelemetryService"}});function ve(e,t){return{appName:e.applicationName,masteringNumber:t.masteringNumber,buildNumber:t.buildNumber}}var _e=n(423),ye=n(317);n(1),n(0),n(5),n(2),n(7),n(10),n(4),n(3),n(6),n(13),n(62),n.d(t,"a",function(){return Ce});var Ce=i.a.extend({staticMembers:{initialize:function(e){var t=r.a.create(v.b,v.a,v.c,a.a,c),n=r.a.create("com.apple.icloud.cloudos.urlRequestService","URL Request Service",I,l),i=r.a.create("com.apple.icloud.cloudos.hostApplicationService","Host Application Service",D,u,d),o=r.a.create(L.b,L.a,L.c,h.a,p),s=r.a.create("com.apple.icloud.cloudos.quotaService","Quota Service",F,f,m),_=r.a.create("com.apple.icloud.cloudos.localeService","Locale Service",R,g,b),y=V.a.create("com.apple.icloud.cloudos.legacyAppUrlService","Legacy App URL Service",z,U.a,U.b),C=V.a.create("com.apple.icloud.cloudos.legacyCloudKitResolutionService","Legacy CloudKit Resolution Service",$,W.a,W.b),w=V.a.create(q.b,q.a,q.c,Q.a),S=V.a.create(X.b,X.a,X.c,Y.a,Y.b),A=V.a.create("com.apple.icloud.cloudos.legacyPreferencesService","Legacy Preferences Service",te,J.a,J.b),O=V.a.create("com.apple.icloud.cloudos.legacyQuotaService","Legacy Quota Service",re,ne.a,ne.b),E=V.a.create("com.apple.icloud.cloudos.legacyRegionFormatter","Legacy RegionFormatter Service",oe,ae.a),T=V.a.create("com.apple.icloud.cloudos.legacyStartupInfoService","Legacy Startup Info Service",le,se.a,se.b),N=V.a.create("com.apple.icloud.cloudos.legacyTelemetryService","Legacy Telemetry Service",be,ue.a),M=V.a.create(K.b,K.a,K.c,G.a,G.b),P=V.a.create(ye.b,ye.a,ye.c,_e.a,_e.b);e.registerServices([t,n,i,o,_,s,y,C,w,S,A,E,O,T,N,M,P])},__QUALIFIED_CLASS_NAME__:"CloudOSServices"}})},function(e,t,n){"use strict";var i=n(100),r=n(861),a=n(891),o=n(80),s=n(933),c=n(1066),l=n(1159),u=n(1080),d=n(11),h=n(26),p=n(23),f=n(67),m=n(36),g=n(29),b=n(863),v=n(1078),_=n(1084),y=n(409),C=6e4,I=.01,w="blank.png",S="fonts/SFNSDisplay-Ultralight-Numbers.woff",A="fonts/HelveticaNeue-Light.svg";function O(e,t){var n=u.a.create(t).time();return Object(y.a)(e,{timeout:C}).then(function(e,t){switch(Object(_.b)(t.status)){case _.a.SUCCESS:case _.a.REDIRECT:e.success();break;case _.a.REQUEST_ERROR:case _.a.SERVER_ERROR:e.failure({status:t.status});break;case _.a.NONE:e.end({status:t.status})}l.b.sharedInstance.recordStat(e)}.bind(null,n))}var E=n(132),T=n(182),D=n(186),L=n(134),N=n(426),M=n(247),P=n(185),x=n(321),R=n(237),j=n(135),F=n(818),V=n(81),U=n(1045),k=n(1085),B=n(91),z=n(1160),W=n(1086),H=F.a.extend({mixinDependencies:[z.a],userIgnoredBrowserValue:V.d({type:Boolean}),staticMembers:{__QUALIFIED_CLASS_NAME__:"UserIgnoredBrowserWarningSessionValue"}}),$=W.a.extend({staticMembers:{storeForCurrentSession:function(){return this.create("userIgnoredBrowserWarning","iCloud",B.b.sharedInstance,H)},__QUALIFIED_CLASS_NAME__:"UserIgnoredBrowserWarningSessionStore"},value:V.d({type:H})}),G=(n(3),F.a.extend({mixinDependencies:[k.a],shouldDisplayMouseBrowserWarning:function(){if(d.a.primaryInteractionMode===U.a.MOUSE)return h.a.sharedInstance.isOnSupportedMouseDeviceWithWarningMode&&!this.userIgnoredBrowserValue},shouldDisplayTouchBrowserWarning:function(){if(d.a.primaryInteractionMode===U.a.TOUCH)return h.a.sharedInstance.isOnSupportedTouchDeviceWithWarningMode&&!this.userIgnoredBrowserValue},sessionStore:V.d({type:$,defaultValue:function(){return $.storeForCurrentSession()}}),userIgnoredBrowserValue:V.d({type:Boolean,get:function(){return this.sessionStore.value.userIgnoredBrowserValue},set:function(e){var t=this.sessionStore;t.value.userIgnoredBrowserValue=e,t.save()}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"SupportedBrowserController"}}));n(1),n(0),n(5),n(8),n(2),n(7),n(10),n(4),n(3),n(6),n(13),n(62),n(141),n(175),n(33),n(72),n(65),n.d(t,"a",function(){return K});var K=c.a.extend({applicationWillFinishLaunching:function(e,t){var n=e.applicationName,i=d.a.masteringNumber,r=d.a.buildNumber,a=d.a.hostName,o=d.a.session,s=Object(R.c)();return l.b.createSharedInstance(n,i,r,a,s,o),p.a.sharedInstance.delegate=e,d.a.configuration.delegate=e,h.a.sharedInstance.delegate=e,E.a.sharedInstance.delegate=e,g.a.sharedInstance.delegate=e,T.a.sharedInstance.delegate=e,D.a.sharedInstance.delegate=e,L.a.sharedInstance.delegate=e,N.a.sharedInstance.delegate=e,M.a.sharedInstance.delegate=e,x.a.sharedInstance.delegate=e,f.a.sharedInstance.setCurrentLocaleAndRegionFormat(s,s)},applicationDidFinishLaunching:function(e,t){var n,a,o,c=this;l.b.sharedInstance,n=window.matchMedia("(prefers-color-scheme: dark)").matches,a=u.a.create("didLaunch",{darkMode:n}).timeFromProcessStart(),l.b.sharedInstance.recordStat(a),o=u.a.create("fontDetection",{fontName:"SFNSText"}).time(),s.a("SFNSText",{success:function(){return o.success()},fail:function(){return o.failure()},complete:function(){return l.b.sharedInstance.recordStat(o)}});var p=h.a.sharedInstance,g=p.locale,_=p.banner,y=d.a.locale,C=i.a.resolve(),T=G.sharedInstance;T.shouldDisplayMouseBrowserWarning()?C=this._showWarningMessageForUnsupportedMouseBrowser():T.shouldDisplayTouchBrowserWarning()&&(C=this._showWarningMessageForUnsupportedTouchBrowser()),C.then(function(){return g?f.a.sharedInstance.setCurrentLocaleAndRegionFormat(g,y).then(function(t){e.launch(),t.isOK||c._startListeningForLocaleChange()}):(e.launch(),c._startListeningForLocaleChange()),_&&E.a.sharedInstance.displayBanner(_,_,"Learn More",e,P.a.LINK),r.a(function(){var e;e=v.a.sharedInstance.current.domain,i.a.resolve().then(function(){return O("https://www."+e+"/"+w,"AssetMeasurementiCloudCDN")}).then(function(){return O("https://www."+e+"/"+S,"AssetMeasurementiCloudCDNSmall")}).then(function(){if(t=I,Math.random()<t)return O("https://www."+e+"/"+A,"AssetMeasurementiCloudCDNLarge");var t}).catch(function(e){b.b.warn("Performance measurement failed.")})},1e4),m.a.sharedInstance.initialize()})},_startListeningForLocaleChange:function(){f.a.sharedInstance.listen("localeOrRegionFormatChanged",function(){a.a.application.localeDidChange()})},_showWarningMessageForUnsupportedMouseBrowser:function(){var e=i.a.create();return j.a.extend({message:o.d("Error.UnsupportedBrowser.Warning.Title"),description:o.d("Error.UnsupportedBrowser.Warning.Description"),primaryButton:{title:o.d("Error.UnsupportedBrowser.LearnMoreLink.Title"),action:"learnMoreLinkClicked"},learnMoreLinkClicked:function(){window.open(o.d("Error.UnsupportedBrowser.LearnMore.URL"))},shouldDismissOnPrimaryButtonClick:!1,alternateButton:{title:o.d("Error.UnsupportedBrowser.IgnoreButton.Title"),action:"cancel"},cancel:function(){G.sharedInstance.userIgnoredBrowserValue=!0,this.hide(),e.resolve()}}).show(),e},_showWarningMessageForUnsupportedTouchBrowser:function(){var e=i.a.create();return j.a.extend({message:o.d("Error.UnsupportedBrowser.TOUCH.Warning.Title"),description:o.d("Error.UnsupportedBrowser.TOUCH.Warning.Description"),primaryButton:{title:o.d("Error.UnsupportedBrowser.LearnMoreLink.Title"),action:"learnMoreLinkClicked"},learnMoreLinkClicked:function(){window.open(o.d("Error.UnsupportedBrowser.LearnMore.URL"))},shouldDismissOnPrimaryButtonClick:!1,alternateButton:{title:o.d("Error.UnsupportedBrowser.IgnoreButton.Title"),action:"cancel"},cancel:function(){G.sharedInstance.userIgnoredBrowserValue=!0,this.hide(),e.resolve()}}).show(),e},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSApplicationDelegate"}})},function(e,t,n){"use strict";var i=n(81),r=n(86),a=n(1048),o=n(828),s=n(819),c=n(863),l=n(818),u=n(831),d=n(100),h=n(1061),p=n(1051),f=n(295),m=l.a.extend({staticMembers:{every:function(e,t){return function(e,t){u.a(t)||s.b("The callback must be a function"),Array.isArray(e)||s.b("processReferenceOperations must be an Array");var n=e,i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}var c=a;o.a(c,m)||s.b("Must be an instance of ProcessReferenceRemoteOperation"),c.validate()}var l=new Map,f=new Map,g=new Array;if(0===e.length)return d.a.resolve(t(f,l));var b=e,v=Array.isArray(b),_=0;for(b=v?b:b[Symbol.iterator]();;){var y;if(v){if(_>=b.length)break;y=b[_++]}else{if((_=b.next()).done)break;y=_.value}var C=y,I=C.proxyMethod,w=C.params;g.push(I.apply(void 0,w))}return h.a.every(g).then(function(n){return n.forEach(function(t,n){o.a(t,p.a)&&t.isOK?f.set(e[n],t):l.set(e[n],t)}),t(f,l)})}(e,t)},__QUALIFIED_CLASS_NAME__:"ProcessReferenceRemoteOperation"},processReference:i.d({type:f.a}),proxyMethod:void 0,params:i.d({type:Array}),validate:function(){var e=this.processReference,t=this.proxyMethod;e||s.b("Required process reference value is not set"),t&&u.a(t)||s.b("Required process reference proxy method is not set")}}),g=n(1071),b=n(1049);n(833);var v=n(1058),_={mixinDependencies:[b.a],childProcessReferences:i.d({type:Set,readOnly:!0,defaultValue:function(){var e=this,t=new Set,n=t.add,i=t.delete;return t.add=function(i){o.a(i,g.a)||s.b("Can only add ChildProcessReference instances");var r=n.call(t,i);return e.childProcessReferenceWasAdded(i),r},t.delete=function(n){o.a(n,g.a)||s.b("Can only delete ChildProcessReference instances");var r=i.call(t,n);return r&&e.childProcessReferenceWasRemoved(n),r},t}}),childProcessReferenceWasAdded:function(e){},childProcessReferenceWasRemoved:function(e){},hostingStateDidChange:function(e,t){var n=new Array,i=this.childProcessReferences;(function(e,t){if(!(e&&e.constructor&&Array.isArray(e.constructor.ancestors)&&u.a(t)))return!1;var n=e.constructor.ancestors,i=Array.isArray(n),r=0;for(n=i?n:n[Symbol.iterator]();;){var a;if(i){if(r>=n.length)break;a=n[r++]}else{if((r=n.next()).done)break;a=r.value}if(a.prototype[t.name])return!0}return!1})(this,this.hostingStateDidChange)&&this.__s._$1Hq$hostingStateDidChange.call(this,e,t);var r=i,a=Array.isArray(r),o=0;for(r=a?r:r[Symbol.iterator]();;){var s;if(a){if(o>=r.length)break;s=r[o++]}else{if((o=r.next()).done)break;s=o.value}var l=s,d=l.processState,h=l.remoteProxy;if(Object(v.c)(d,v.a.RUNNING)){var p=m.create({processReference:l,proxyMethod:h.hostingStateDidChange,params:[e,t]});n.push(p)}}return m.every(n,function(e,t){t.forEach(function(e,t){if(t.processReference){var n=t.processReference.processId;n&&c.b.error('Child "'+n+'" hostingStateDidChange call failed')}})})},__superMap:{_$1Hq$hostingStateDidChange:"hostingStateDidChange"}},y=n(401),C=n(1073),I=n(1075),w=n(1076);n(1),n(0),n(2),n(3),n.d(t,"a",function(){return S});var S=a.a.extend({mixinDependencies:[_],run:function(){var e=arguments;return this._installServices(this._serviceManager),this.__s._$HW$run.apply(this,e)},childProcessReferenceWasAdded:function(e){this._serviceManager.attachServicesToProcessReference(e)},childProcessReferenceWasRemoved:function(e){this._serviceManager.removeServicesForProcessReference(e)},_serviceManager:i.d({type:y.a,defaultValue:r.c(y.a)}),_installServices:function(e){var t=C.a.create(I.b,I.a,I.c,w.a);e.registerServices([t])},__superMap:{_$HW$run:"run"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CoreOSApplication"}})},function(e,t,n){"use strict";var i=n(98),r=n(222),a=n(86),o=n(80),s=n(81),c=n(819),l=n(932),u=n(89),d=n(877),h=(n(268),n(0),d.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"contentDescription",attributes:{}}],classes:["content-desc"]},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"emailListView"}],classes:["content-email-view"]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"contentFooter",attributes:{}}],classes:["content-footer"]}]},__QUALIFIED_CLASS_NAME__:"SelectEmailOrPhoneView"},contentDescription:i.b({type:String}),oonEmailIds:i.b({type:String}),contentFooter:i.b({type:String})})),p=n(431),f=n(186),m=n(940),g=n(225),b=n(941),v=n(942),_=(n(0),n(12),n(18),n(17),m.a.extend({mixinDependencies:[g.b],itemViewClass:b.a.extend({mixinDependencies:[v.a],staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"oonParticipantAddress",attributes:{}}]}},oonParticipantAddress:i.b({dependencies:["content"],readOnly:!0,type:String,get:function(){var e=this.content;if(e){var t=e.phoneNumber,n=e.emailAddress;return t||n}}})}),rowHeight:30,didAttach:function(){this.__s._$I8$didAttach.call(this),this.selectItemAtIndex(0)},__superMap:{_$I8$didAttach:"didAttach"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EmailPhoneListViewController"}})),y=n(316),C=(n(0),n(176),p.a.extend({viewClass:y.a,view:i.b({type:y.a,downstreamBindings:{contentTitle:"(owner).contentTitle",contentDescription:"(owner).contentDescription",additonalContentDescription:"(owner).additonalContentDescription"}}),contentTitle:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.Error.Title")}),contentDescription:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.Error.Description")}),additonalContentDescription:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.Error.Description")}),navigationHeaderTitle:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.VerifyAccess.Title")}),primaryButtonTitle:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.DoneButton.Title")}),init:function(e,t,n){this.__s._$Zr$init.call(this),e||c.b("[EmailOrMessageNotSentViewController] No content title specified"),t||c.b("[EmailOrMessageNotSentViewController] No content description specified"),this.contentTitle=e,this.contentDescription=t,this.additonalContentDescription=n},__superMap:{_$Zr$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EmailOrMessageNotSentViewController"}})),I=n(1090),w=n(1088);n(0),n(12),n(18),n(17),n(268),n(4),n(3),n(176),n.d(t,"a",function(){return S});var S=p.a.extend({viewClass:h,view:i.b({type:h,downstreamBindings:{contentDescription:"(owner).contentDescription",contentFooter:"(owner).contentFooter"}}),emailListChildViewController:r.b({defaultValue:a.c(_),viewOutlet:"emailListView",downstreamBindings:{collection:"(owner).oonParticipantList"}}),contentDescription:i.b({dependencies:["oonParticipantList"],readOnly:!0,type:String,get:function(){var e=this.oonParticipantList,t=this._getModeOfCommunication(e);return o.d("CloudOS.OutOfNetworkAcceptance.VerifyAccessContent.Description",{modeOfCommunication:t})}}),contentFooter:i.b({type:String,dependencies:["oonParticipantList"],readOnly:!0,get:function(){var e=this.oonParticipantList,t=this._getModeOfCommunication(e);return o.d("CloudOS.OutOfNetworkAcceptance.VerifyAccessContent.FooterText",{modeOfCommunication:t})}}),shortGuid:i.b({type:String}),shareAcceptanceController:s.d({type:f.a}),init:function(e){this.__s._$lM$init.call(this),e||c.b("[SelectEmailOrPhoneViewController] - No shareAcceptanceController has been provided"),this.shareAcceptanceController=e;var t=e.currentShareRecord,n=t.shortGuid,i=t.outOfNetworkParticipantList;this.shortGuid=n,i&&(this.oonParticipantList=l.a.create(i))},oonParticipantList:i.b({type:u.b,strong:!0}),navigationHeaderTitle:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.VerifyAccess.Title")}),primaryButtonTitle:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.SendVerificationButton.Title")}),performPrimaryAction:function(){var e=this;return this.shareAcceptanceController.sendVerificationLink(this.shortGuid,this.emailListChildViewController.selectedItem.id).then(function(t){var n=t._jsonBody.vettingError;if(!n&&t.ok){var i=e.emailListChildViewController.selectedItem;return I.a.create({status:w.a.SUCCESS,data:i})}var r=o.d("CloudOS.OutOfNetworkAcceptance.Error.Title"),a=o.d("CloudOS.OutOfNetworkAcceptance.Error.Description");n&&e.emailListChildViewController.selectedItem.phoneNumber&&(a=o.d("CloudOS.OutOfNetworkAcceptance.PhoneVettedError.Description",{phoneNumber:e.emailListChildViewController.selectedItem.phoneNumber}));var s=C.create(r,a);return I.a.create({status:w.a.ERROR,error:t,data:s})})},primaryButtonDisabled:i.b({type:Boolean,readOnly:!0,dependencies:["emailListChildViewController.selectedItem"],get:Object.assign(function(){return!this.emailListChildViewController.selectedItem},{__CW__getter:function(e,t,n,i){return!i.internalGetPath(this,t[0+n])}})}),secondaryButtonTitle:i.b({type:String,defaultValue:o.d("CloudOS.OutOfNetworkAcceptance.CancelButton.Title")}),performSecondaryAction:function(){this.shareAcceptanceController.declineShare()},_getModeOfCommunication:function(e){var t=!1,n=!1;if(e&&e.length>0)for(var i=0;i<e.length;i++){var r=e.toArray()[i];t||!r.phoneNumber?n||!r.emailAddress||(n=!0):t=!0}return t&&n?o.d("EmailAddressOrPhoneNumber.Title"):t?o.d("PhoneNumber.Title"):o.d("EmailAddress.Title")},__superMap:{_$lM$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SelectEmailOrPhoneViewController"}})},function(e,t,n){"use strict";var i=n(104),r=n(81),a=n(86),o=n(100),s=n(80),c=n(1104),l=n(605),u=n(428),d=n(871),h=n(877),p=n(98),f=n(948),m=n(898),g=n(902),b=(n(221),n(1156)),v=(n(0),n(14),n(12),n(5),h.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",classes:["china-terms-logo"]},{type:"VIEWOUTLET",tagname:"view",name:"chinaTermsParagraphOneView"},{type:"VIEWOUTLET",tagname:"view",name:"chinaTermsParagraphTwoView"}]},__QUALIFIED_CLASS_NAME__:"ChinaTermsContentView"},chinaTermsParagraphOneView:p.b({defaultValue:a.c(f.a),downstreamBindings:{value:"(owner).chinaTermsParagraphOneLocTitle"}}),chinaTermsParagraphOneLocTitle:Object(b.b)("CloudOS.TermsAndConditions.ChinaTerms.Paragraph.One"),chinaTermsParagraphTwoView:p.b({defaultValue:a.c(f.a),downstreamBindings:{value:"(owner).chinaTermsParagraphTwoLocTitle"}}),chinaTermsParagraphTwoLocTitle:Object(b.b)("CloudOS.TermsAndConditions.ChinaTerms.Paragraph.Two")})),_=h.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"chinaTermsTitleView"}],classes:["china-terms-header-view"]},{type:"VIEWOUTLET",tagname:"view",name:"chinaTermsScrollView"},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"continueButton"}],classes:["china-terms-footer-view"]}]},__QUALIFIED_CLASS_NAME__:"ChinaTermsView"},chinaTermsTitleView:p.b({readOnly:!0,get:function(){return f.a.create({additionalClassNames:i.b(["china-header-title"])})},downstreamBindings:{value:"(owner).chinaTermsLocTitle"}}),chinaTermsLocTitle:Object(b.b)("CloudOS.TermsAndConditions.ChinaTerms.Title"),continueButton:p.b({readOnly:!0,type:m.a,get:function(){return m.a.create({action:"chinaTermsContinueButtonClicked"})},downstreamBindings:{title:"(owner).continueButtonLocTitle"}}),continueButtonLocTitle:Object(b.b)("CloudOS.TermsAndConditions.ContinueButton.Title"),chinaTermsScrollView:p.b({type:g.a,defaultValue:a.c(g.a,{additionalClassNames:i.b(["content-scroll-view"])}),downstreamBindings:{contentView:"(owner).contentView"}}),contentView:p.b({defaultValue:a.c(v)})}),y=(n(0),n(14),n(12),n(5),n(221),d.a.extend({viewClass:_,staticMembers:{__QUALIFIED_CLASS_NAME__:"ChinaTermsViewController"}})),C=n(135),I=n(591);n(358),n(1),n(0),n(14),n(12),n(5),n(8),n(2),n(19),n(6),n(125),n(13),n(221),n(65),n(195),n.d(t,"a",function(){return w});var w=c.a.extend({viewClass:i.b({additionalClassNames:i.b(["terms-and-conditions-container-view"])}),transitioningDelegate:r.d({defaultValue:a.c(l.a)}),displayTerms:function(e,t){return this._termsDetails=e,this._accountCountry=t,this._termsPromise=o.a.create(),"CHN"===t?this._showChinaInterstitialTermsView():this._showTermsAndConditionsView(),this._termsPromise},_showChinaInterstitialTermsView:function(){var e=y.create();this.showViewController(e)},_showTermsAndConditionsView:function(){var e=I.a.create(this._termsDetails,this._accountCountry);this.showViewController(e)},chinaTermsContinueButtonClicked:function(){this._showTermsAndConditionsView()},agreeButtonClicked:function(){var e=this;C.a.extend({message:s.d("CloudOS.TermsAndConditions.Title"),description:"CHN"===this._accountCountry?s.d("CloudOS.TermsAndConditions.ChinaTerms.Description"):s.d("CloudOS.TermsAndConditions.Description"),primaryButton:{title:s.d("CloudOS.TermsAndConditions.AgreeButton.Title"),action:"confirm"},confirm:function(){return e.acceptTerms()},alternateButton:{title:s.d("CloudOS.TermsAndConditions.CancelButton.Title")}}).show()},acceptTerms:function(){this._termsPromise.resolve()},_accountCountry:r.d({type:String}),_termsDetails:r.d({type:u.a}),_termsPromise:r.d({type:o.a}),staticMembers:{__QUALIFIED_CLASS_NAME__:"TermsAndConditionsContainerViewController"}})},function(e,t,n){"use strict";var i=n(81),r=n(819),a={timeRequestSent:i.d({type:Number,defaultValue:void 0}),timeResponseReceived:i.d({type:Number,defaultValue:void 0}),duration:i.d({type:Number,readOnly:!0,get:function(){return this._timeRequestSent||r.b("No request sent time set"),this._timeResponseReceived||r.b("No response time set"),this._timeResponseReceived-this._timeRequestSent}}),shouldReportSuccess:i.d({type:Boolean,defaultValue:!0}),shouldReportFailure:i.d({type:Boolean,defaultValue:!0}),reportingPathname:i.d({defaultValue:null}),reportingMethod:null},o=n(584).a.extend({init:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.hasOwnProperty("credentials")||t.hasOwnProperty("useCredentialsIfCrossOrigin")||(t.credentials="include"),this.__s._$Ew$init.call(this,e,t)},__superMap:{_$Ew$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CloudOSRequest"}});n.d(t,"a",function(){return s});var s=o.extend({mixinDependencies:[a],staticMembers:{__QUALIFIED_CLASS_NAME__:"URLReportingRequest"}})},function(e,t,n){"use strict";var i=n(891),r=n(832),a=n(819),o=n(81),s=n(98),c=n(87),l=n(86),u=n(852),d=n(100),h=n(862),p=n(871),f=n(906),m=n(907),g=n(1053),b=n(830),v=n(833),_=n(828),y=n(1060),C=n(1049),I=n(295),w=n(1058),S=n(297),A=I.a.extend({delegate:o.d({type:C.a}),localProtocol:C.a,localProtocolTarget:o.d({readOnly:!0,type:C.a,get:function(){return this.delegate}}),remoteProtocol:S.a,notifyChildApplicationIsReady:function(){var e=this;return Object(w.b)(this.processState,w.a.LOADING),this._processState=w.a.LOADED,this.remoteProxy.isReadyToReceiveMessages().then(function(t){return t.isOK&&(Object(w.b)(e.processState,w.a.LOADED),e._processState=w.a.RUNNING),t})},staticMembers:{__QUALIFIED_CLASS_NAME__:"ParentProcessReference"}}),O=n(1057),E=n(1164),T={mixinDependencies:[C.a,E.a,O.a],parentProcessReferenceClass:o.d({type:A.constructor,defaultValue:A}),parentProcessReferenceDelegate:o.d({type:C.a,defaultValue:function(){return this}}),parentProcessReference:o.d({type:A}),processState:o.d({readOnly:!0,type:w.a,get:function(){return this._processState}}),isStarted:o.d({readOnly:!0,type:Boolean,get:function(){return Object(w.c)(this.processState,w.a.LOADING,w.a.LOADED,w.a.RUNNING)}}),isTerminated:o.d({readOnly:!0,type:Boolean,get:function(){return Object(w.c)(this.processState,w.a.TERMINATED)}}),channel:o.d({type:f.a}),sessionInfo:o.d({type:Object,defaultValue:l.c(Object)}),hostInfo:o.d({type:Object,defaultValue:l.c(Object)}),processInfo:o.d({type:Object,defaultValue:l.c(Object)}),processId:o.d({type:String}),parentProcessId:o.d({type:String}),messagingResponseErrorTerminationMethod:o.d({readOnly:!0,type:Function,defaultValue:function(){return this.terminateWithReasonAndInfo}}),start:function(){var e=this;Object(w.b)(this.processState,w.a.NONE),this._processState=w.a.LOADING;var t=this.parentProcessReferenceClass,n=this.channel;if(t){Object(y.b)(n,f.a)||a.b("A CW.ChannelProtocol implementation is required");var i=this._createParentProcessReference(n);i.connect(),i.notifyChildApplicationIsReady().then(function(t){t.isOK?e._processState=w.a.LOADED:e.terminateIfMessagingResponseError(t)})}else this._processState=w.a.LOADED},run:b.a.define(),stop:function(){var e=this;Object(w.b)(this.processState,w.a.LOADING,w.a.LOADED,w.a.RUNNING),this._processState=w.a.UNLOADING,this.cancelInvokeLaterMethods();var t=this.parentProcessReference,n=d.a.resolve();return t&&(this.parentProcessReference=null,t.isConnected&&(n=n.then(function(){return t.disconnect()})),n=n.then(function(){return t.isTerminated||t.terminate()})),n.then(function(){return e._processState=w.a.UNLOADED})},terminate:function(){Object(w.b)(this.processState,w.a.UNLOADED),this._processState=w.a.TERMINATED,this.channel&&!this.channel.isDisconnected&&this.channel.disconnect(),this.processId=null,this.parentProcessId=null,this.hostInfo=null,this.sessionInfo=null,this.processInfo=null,this.channel=null},terminateWithReasonAndInfo:function(e,t){var n=this;v.a(e)||a.b("terminateWithReasonAndInfo requires a reason as an argument"),t&&!r.a(t)&&a.b("terminateWithReasonAndInfo optional info argument should be a hash");var i=this.parentProcessReference;return i&&i.isConnected&&i.remoteProxy.didEnd(e,t),(this.isStarted?this.stop():d.a.resolve()).then(function(){return n.isTerminated||n.terminate()})},beginLaunching:function(e,t,n){var i=this;if(Object(w.b)(this.processState,w.a.LOADED),this._updateHostingAndSessionInfo(e,t),!_.a(n,Object))throw new g.a("Invalid process info");if(!_.a(n.launchOptions,Object))throw new g.a("Invalid launchOptions");if(!n.launchOptions.launchReason)throw new g.a("Missing launchOptions.launchReason");n.launchOptions=Object.freeze(n.launchOptions),this.processInfo=Object.freeze(n),this.parentProcessId=n.parentProcessId,this.processId=n.processId,this.parentProcessReference&&(this.parentProcessReference.processId=n.parentProcessId),this.invokeLater(function(){return d.a.resolve().then(function(){return i.run()}).then(function(){return i._processState=w.a.RUNNING}).then(function(){return i._notifyParentThatProcessDidFinishLaunchingIfNeeded()})})},openItems:function(e){},hostingStateDidChange:function(e,t){Object(w.b)(this.processState,w.a.RUNNING),this._updateHostingAndSessionInfo(e,t)},_processState:o.d({type:w.a,defaultValue:w.a.NONE}),_createParentProcessReference:function(e){var t=this.parentProcessReferenceClass,n=this.parentProcessReferenceDelegate,i=this.parentProcessId;t&&n||a.b("A parentProcessReferenceClass and a parentProcessReferenceDelegate are required to create a ParentProcessReference.");var r=t.create({processId:i,delegate:n,channel:e});return this.parentProcessReference=r,r},_updateHostingAndSessionInfo:function(e,t){if(Object(w.b)(this.processState,w.a.LOADED,w.a.RUNNING),!_.a(e,Object))throw new g.a("Invalid session info");if(!_.a(t,Object))throw new g.a("Invalid host info");this.sessionInfo=Object.freeze(e),this.hostInfo=Object.freeze(t)},_notifyParentThatProcessDidFinishLaunchingIfNeeded:function(){var e=this;Object(w.b)(this.processState,w.a.RUNNING);var t=this.parentProcessReference;if(t&&t.isConnected)return t.remoteProxy.didFinishLaunching().then(function(t){return e.terminateIfMessagingResponseError(t)})}},D=n(1062),L=n(1064),N=n(1042),M=n(1045),P=n(567),x=n(298),R=n(568);n(1),n(0),n(2),n.d(t,"a",function(){return j});var j=i.a.extend({mixinDependencies:[T],staticMembers:{main:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};r.a(e)&&e.rootViewControllerClass&&a.b("ProcessKit Application is not intended for UI display");var t={defaultApplicationClass:j,defaultDelegateClass:P.a,defaultDelegateClassProtocol:x.a};Object(R.a)(e,t)},__QUALIFIED_CLASS_NAME__:"Application"},applicationName:o.d({type:String,readOnly:!0,get:function(){var e=this.processInfo;return e?e.processName:void 0}}),primaryInteractionMode:s.b({readOnly:!0,type:String,binding:c.c("_primaryInteractionMode")}),platformType:s.b({readOnly:!0,type:String,binding:c.c("_platformType")}),deviceType:s.b({readOnly:!0,type:String,binding:c.c("_deviceType")}),sessionInfo:s.b({type:Object,defaultValue:l.c(Object)}),hostInfo:s.b({type:Object,defaultValue:l.c(Object)}),processState:s.b({readOnly:!0,binding:c.c("_processState")}),delegate:o.d({type:x.a}),setup:function(){if(Object(w.b)(this.processState,w.a.NONE),Object(D.b)())this.channel=this._parentChannelProtocolClass.create({remoteOrigin:Object(D.a)()}),this.start();else{this.parentProcessReferenceClass=null,this.start();var e={primaryInteractionMode:N.a.sharedInstance.primaryInteractionMode,platformType:N.a.sharedInstance.current,deviceType:N.a.sharedInstance.deviceType},t={processId:u.a(),launchOptions:{launchReason:L.a.USER_LAUNCH}};this.beginLaunching({},e,t)}},run:function(){var e=this,t=this.delegate,n=this.processInfo.launchOptions;return d.a.resolve().then(function(){return e.configureApplication()}).then(function(){return t.applicationWillFinishLaunching(e,n)}).then(function(){return i.a.prototype.run.call(e)}).then(function(){return t.applicationDidFinishLaunching(e,n)}).catch(h.a(function(e){throw e}))},configureApplication:function(){Object(w.b)(this.processState,w.a.LOADED);var e=this.hostInfo,t=e.primaryInteractionMode,n=e.platformType,i=e.deviceType;if(!t||!Object.keys(M.a).includes(t))throw new g.a("hostInfo must include a valid primary interaction mode");return this._primaryInteractionMode=t,this._platformType=n,this._deviceType=i,d.a.resolve()},createMessagingChannel:function(e,t,n){var i=this.parentProcessReference;return i&&i.channel||a.b("Unable to connect to parent. Can not create MessagingChannel"),i.createMessagingChannel(e,t,n),i.remoteProxy},presentViewController:function(e){var t=this,n=arguments,r=void 0;if(this._paneManager)r=this.__s._$5Aq$presentViewController.apply(this,n);else{var a=i.a.prototype,o=a.Initializers,s=a.presentViewController;this.rootViewController=p.a,r=d.a.all(o.map(function(e){return e.create().run(t)})).then(function(){return s.call(t,e)})}return r},_processState:s.b({type:w.a,defaultValue:w.a.NONE}),_primaryInteractionMode:s.b({type:String}),_platformType:s.b({type:String}),_deviceType:s.b({type:String}),_parentChannelProtocolClass:o.d({type:f.a,defaultValue:m.a}),__superMap:{_$5Aq$presentViewController:"presentViewController"}})},function(e,t,n){"use strict";var i=n(871),r=n(98),a=n(863),o=n(104),s=n(823),c=n(81),l=n(222),u=n(1111),d=n(1112),h=n(11),p=n(877),f=n(930),m=n(86),g=(n(269),n(0),p.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"   "},{type:"ELEMENT",tagname:"div",children:[{type:"TEXT",data:"       "},{type:"VIEWOUTLET",tagname:"view",name:"createAccountView"},{type:"TEXT",data:"   "}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isSpinnerViewVisible",truevalue:"view-hidden",falsevalue:"view-visible",attributes:{}}]},{type:"TEXT",data:"   "},{type:"VIEWOUTLET",tagname:"view",name:"spinnerView"}]},__QUALIFIED_CLASS_NAME__:"ModalCreateAccountView"},isSpinnerViewVisible:r.b({type:Boolean}),spinnerColor:r.b({type:String,didChange:function(e){e&&(this.spinnerView.color=e)}}),spinnerView:r.b({strong:!0,readOnly:!0,type:f.a,defaultValue:m.c(f.a),downstreamBindings:{isVisible:"(owner).isSpinnerViewVisible"}})})),b=n(237),v=n(135),_=n(23),y=n(1080),C=n(1159);n(1),n(0),n(5),n(8),n(2),n(28),n(4),n(3),n(269),n(65),n.d(t,"a",function(){return I});var I=i.a.extend({mixinDependencies:[u.a],viewClass:g,view:r.b({type:g,downstreamBindings:{isSpinnerViewVisible:"(owner).isSpinnerViewVisible",spinnerColor:"(owner).spinnerColor"}}),isSpinnerViewVisible:r.b({type:Boolean}),spinnerColor:r.b({type:String}),init:function(e){this.__s._$Sb$init.call(this);var t=d.a.create(e);!function(e){e.locale=Object(b.b)(h.a.locale)}(t),this._createAccountViewController=t,this._createAccountViewController.delegate=this,this.isSpinnerViewVisible=!0},createAccountWillStart:function(e){a.b.debug("[ModalCreateAccountViewController] createAccountWillStart"),this.isSpinnerViewVisible=!1},createAccountCompleted:function(e,t){a.b.debug("[ModalCreateAccountViewController] createAccountCompleted"),this._recordStat("createAccountSuccess"),_.a.sharedInstance.createAccountCompleted(t),this.dismiss()},createAccountError:function(e,t,n){a.b.debug("[ModalCreateAccountViewController] createAccountError"),this._recordStat("createAccountFailure",function(e,t){var n={errorType:e.name,message:e.value};return t&&(n.info=t),n}(t,n)),this.dismiss()},createAccountPasswordChange:function(e){a.b.debug("[ModalCreateAccountViewController] createAccountPasswordChange"),this.dismiss()},createAccountCanceled:function(e){a.b.debug("[ModalCreateAccountViewController] createAccountCanceled"),_.a.sharedInstance.createAccountCanceled(),this.dismiss()},createAccountResize:function(e,t){a.b.debug("[ModalCreateAccountViewController] createAccountResize")},createAccountCreateAlert:function(e,t){var n=this;a.b.debug("[ModalCreateAccountViewController] createAccountCreateAlert");var i=void 0,r=void 0,c=t.buttons.map(function(t,n){return{title:t,triggerButtonAction:function(){return e.alertButtonClicked(r,n,t),i.hide(),!0},additionalClassNames:o.b(["alert-button-"+n])}});return i=v.a.show({message:t.title,description:t.description,buttons:c}),r=s.b(i),this._alerts[r]=i,i.observe("isAttached",function(e){e||delete n._alerts[r]}),r},createAccountUpdateAlert:function(e,t,n){a.b.debug("[ModalCreateAccountViewController] createAccountUpdateAlert");var i=this._alerts[t];i&&(n.title&&(i.message=n.title),n.description&&(i.description=n.description))},createAccountHideAlert:function(e,t){a.b.debug("[ModalCreateAccountViewController] createAccountHideAlert");var n=this._alerts[t];n&&n.hide()},createAccountIsAlertVisible:function(e,t){a.b.debug("[ModalCreateAccountViewController] createAccountIsAlertVisible");var n=!1,i=this._alerts[t];return i&&(n=i.isAttached),n},_alerts:c.d({defaultValue:{}}),_createAccountViewController:l.b({type:d.a,viewOutlet:"createAccountView"}),_recordStat:function(e,t){t||(t={});var n=y.a.create(e,t);C.b.sharedInstance.recordStat(n)},__superMap:{_$Sb$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ModalCreateAccountViewController"}})},function(e,t,n){"use strict";var i=n(95),r=n(871),a=n(98),o=n(80),s=n(908),c=n(81),l=n(100),u=n(1156),d=n(184),h=n(877),p=n(948),f=n(86),m=n(104),g=n(1161),b=n(1165),v=n(248),_=(n(138),n(1),n(0),n(5),n(2),n(7),n(15),n(4),n(3),n(6),n(60),n(13),h.a.extend({staticMembers:{__QUALIFIED_CLASS_NAME__:"ProfileSummaryView"},greetingLabelView:a.b({type:p.a,defaultValue:f.c(p.a,{additionalClassNames:m.b(["greeting-label"])}),downstreamBindings:{value:"(owner).greetingText"}}),greetingText:a.b({type:String}),meCardPhoto:a.b({type:g.a}),meCardPhotoSize:a.b({type:Number}),meCardPhotoView:a.b({type:b.a,defaultValue:f.c(b.a,{iconHeight:88,iconWidth:88}),downstreamBindings:{meCardPhoto:"(owner).meCardPhoto"}}),settingsLinkView:a.b({type:v.a,defaultValue:f.c(v.a)})})),y=n(315);n(1),n(0),n(5),n(2),n(7),n(15),n(4),n(3),n(6),n(138),n(60),n(13),n.d(t,"a",function(){return I});var C=i.b("TimeOfDay",{EARLY_MORNING:"0-6",MORNING:"6-12",AFTERNOON:"12-18",EVENING:"18-0"}),I=r.a.extend({cloudOSUser:a.b({type:d.a}),greetingText:Object(u.a)({readOnly:!0,dependencies:["_timeOfDay","cloudOSUser.details"],get:function(){var e=this._timeOfDay,t=this.cloudOSUser;if(e&&t&&t.details){var n=t.details,i=n.firstName,r=n.lastName,a=n.fullName;if(i||a)return o.d("CloudOS.Springboard.Greeting."+e.value,{firstName:i,lastName:r,fullName:a})}}}),viewClass:_,view:a.b({downstreamBindings:{greetingText:"(owner).greetingText",meCardPhoto:"(owner).cloudOSUser.photo"}}),didAttach:function(){var e=this,t=arguments;this.__s._$Vt$didAttach.apply(this,t),this._calculateTimeOfDay(),this._updateGreetingTimer=s.a(function(){return e._calculateTimeOfDay()},6e4)},didDetach:function(){var e=arguments;this.__s._$ZY$didDetach.apply(this,e),clearInterval(this._updateGreetingTimer)},prepareForDisplay:function(){var e=this._preloadMeCardPromise||this._preloadMeCardPhoto();return this._preloadMeCardPromise=e},_preloadMeCardPromise:c.d({type:l.a}),_timeOfDay:a.b({type:C}),_updateGreetingTimer:c.d({type:Number}),_calculateTimeOfDay:function(){var e,t=(new Date).getHours();e=t<6?C.EARLY_MORNING:t<12?C.MORNING:t<18?C.AFTERNOON:C.EVENING,this._timeOfDay=e},_preloadMeCardPhoto:function(){var e=this.cloudOSUser,t=e&&e.photo;return t?Object(y.a)(new Image,t.url,void 0,5e3):l.a.resolve()},__superMap:{_$Vt$didAttach:"didAttach",_$ZY$didDetach:"didDetach"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ProfileSummaryViewController"}})},function(e,t,n){"use strict";var i=n(828),r=n(1099),a=n(602),o=n(819),s=n(1102),c=n(1047),l=n(226),u=(n(1),n(0),n(5),n(2),n(16),n(7),n(15),n(4),n(3),n(6),n(138),n(60),n(13),n(152),n(33),n(58),n(71),s.a.extend({init:function(e,t,n){var r=arguments;this.__s._$Eg$init.apply(this,r),i.a(e,l.SpringboardViewController)||o.b("[SpringboardPresentationController] Expected springboard controller")},presentationTransitionWillBegin:function(){var e=this.presentedViewController;return e.animateToForeground(),e.prepareForDisplay()},presentationTransitionDidEnd:function(){this.presentedViewController.animationToForegroundDidEnd()},dismissalTransitionWillBegin:function(){var e=this.presentedViewController;e.animateToBackground(),Object(c.a)(e.view),Object(c.b)()},dismissalTransitionDidEnd:function(){Object(c.d)(this.presentedViewController.view),this.presentedViewController.animationToBackgroundDidEnd()},__superMap:{_$Eg$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SpringboardPresentationController"}}));n(1),n(0),n(5),n(2),n(16),n(7),n(15),n(4),n(3),n(6),n(13),n(138),n(60),n(152),n(33),n(58),n(71),n.d(t,"a",function(){return d});var d=r.a.extend({animationControllerForPresentedViewController:function(e,t,r){return a.a.extend({isViewPersistent:function(e){return e&&i.a(e.viewController,n(226).SpringboardViewController)}}).create()},presentationControllerForPresentedViewController:function(e,t,n){var i=n.view;return u.create(e,t,i)},staticMembers:{__QUALIFIED_CLASS_NAME__:"SpringboardTransitioningDelegate"}})},function(e,t,n){"use strict";var i=n(833),r=n(1059),a=n(1053),o={authorizationDidStart:"SOAuthorizationDidStart",authorizationDidComplete:"AppSSOTakeoverDidComplete",authorizationDidFail:"SOAuthorizationDidFail",authorizationDidCancel:"SOAuthorizationDidCancel"},s={SOAuthorizationDidStart:"authorizationDidStart",AppSSOTakeoverDidComplete:"authorizationDidComplete",SOAuthorizationDidFail:"authorizationDidFail",SOAuthorizationDidCancel:"authorizationDidCancel"},c=n(864).a.extend({encode:function(e){if(!Object(i.a)(e)&&e.method){var t=o[e.method];return"AppSSOTakeoverDidComplete"===t?e.params[0]:t}return e},decode:function(e){return Object(i.a)(e)?{jsonrpc:"2.0",id:"CW.JsonRpcMessageFormatterV2:1",method:s[e]}:{jsonrpc:"2.0",id:"CW.JsonRpcMessageFormatterV2:1",method:s[e.event],params:[e.authorization]}},staticMembers:{__QUALIFIED_CLASS_NAME__:"AuthorizationJsonSerializer"}});n.d(t,"a",function(){return l});var l=r.a.extend({_constructRPCMethodName:function(e,t){if(!t)throw new a.a("AuthWidgetMessagingChannel - no method name specified");if(!Object(i.a)(t))throw new a.a("AuthWidgetMessagingChannel - method name specified is not a string");return""+t},_createJsonRpcListener:function(e){var t=arguments,n=this.__s._$LA$_createJsonRpcListener.apply(this,t);return n.serializer=c.create(),n},_createJsonRpcCaller:function(e){var t=this.__s._$PF$_createJsonRpcCaller.call(this,e);return t.serializer=c.create(),t},__superMap:{_$LA$_createJsonRpcListener:"_createJsonRpcListener",_$PF$_createJsonRpcCaller:"_createJsonRpcCaller"},staticMembers:{__QUALIFIED_CLASS_NAME__:"AuthorizationMessagingChannel"}})},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){},function(e,t,n){"use strict";var i={};n.r(i),n.d(i,"AppInitializerProtocol",function(){return l.b}),n.d(i,"AppInitializer",function(){return l.a}),n.d(i,"Application",function(){return u.a}),n.d(i,"Config",function(){return S}),n.d(i,"ConfigProperty",function(){return _}),n.d(i,"CookieManager",function(){return E}),n.d(i,"AriaLiveRegionInitializer",function(){return T.a}),n.d(i,"DocumentElementInitializer",function(){return D.a}),n.d(i,"PaneManagerInitializer",function(){return L.a}),n.d(i,"RootElementInitializer",function(){return N.a}),n.d(i,"RootResponderInitializer",function(){return M.a}),n.d(i,"RootViewControllerInitializer",function(){return P.a}),n.d(i,"SpritePreloader",function(){return x.a}),n.d(i,"InteractionMode",function(){return R.a}),n.d(i,"PaneManager",function(){return j.a}),n.d(i,"PaneSupport",function(){return F.a}),n.d(i,"Browser",function(){return V.a}),n.d(i,"Device",function(){return U.a}),n.d(i,"FileAPI",function(){return k}),n.d(i,"Rendering",function(){return z}),n.d(i,"Scrolling",function(){return W.a}),n.d(i,"BrowserWindow",function(){return H.a}),n.d(i,"EventCapabilities",function(){return $.a}),n.d(i,"eventCapabilities",function(){return $.c}),n.d(i,"PointerEventClass",function(){return $.b}),n.d(i,"FileAPICapabilities",function(){return K}),n.d(i,"fileAPICapabilities",function(){return Q}),n.d(i,"fontDetector",function(){return q.a}),n.d(i,"LinkCapabilities",function(){return Y.a}),n.d(i,"linkCapabilities",function(){return Y.b}),n.d(i,"serializeObjectToElement",function(){return X.a}),n.d(i,"serializePropertyToElement",function(){return X.b}),n.d(i,"serializePlatformInfoToElement",function(){return J.a}),n.d(i,"StorageManager",function(){return f.c}),n.d(i,"LocalStorage",function(){return f.a}),n.d(i,"SessionStorage",function(){return f.b}),n.d(i,"CollectionView",function(){return Z.a}),n.d(i,"CollectionViewController",function(){return ee.a}),n.d(i,"CollectionCell",function(){return te.a}),n.d(i,"IndexSet",function(){return ne.a}),n.d(i,"IndexTracker",function(){return ie.a}),n.d(i,"InvalidationContext",function(){return re.a}),n.d(i,"ItemCell",function(){return ae.a}),n.d(i,"CollectionLayoutController",function(){return oe.a}),n.d(i,"SpaceAroundViewport",function(){return se.a}),n.d(i,"CollectionLayoutDelegateProtocol",function(){return ce.a}),n.d(i,"CollectionLayoutMetrics",function(){return le.a}),n.d(i,"AbsolutelyPositionedPresenter",function(){return ue.a}),n.d(i,"ItemViewPresenter",function(){return de.a}),n.d(i,"CollectionPresenterProtocol",function(){return he.a}),n.d(i,"Justification",function(){return pe.b}),n.d(i,"FlowLayoutDelegate",function(){return pe.a}),n.d(i,"LayoutDirection",function(){return pe.c}),n.d(i,"IndexedListLayoutDelegate",function(){return fe.a}),n.d(i,"ListPosition",function(){return me.c}),n.d(i,"ListLayoutMetrics",function(){return me.b}),n.d(i,"ListLayoutDelegate",function(){return me.a}),n.d(i,"ListViewController",function(){return ge.a}),n.d(i,"ListItemSelectionSupport",function(){return be.a}),n.d(i,"ListSelectionPresenterSupport",function(){return ve.a}),n.d(i,"ListSelectionSupport",function(){return ve.b}),n.d(i,"SelectInDirectionKeyDownHandlerSupport",function(){return _e.a}),n.d(i,"ListFooterView",function(){return Ce}),n.d(i,"ListHeaderView",function(){return Ie}),n.d(i,"ListItemView",function(){return we.a}),n.d(i,"CustomRowHeightSupport",function(){return Oe}),n.d(i,"FlatCollectionUpdateSupport",function(){return Te}),n.d(i,"SupplementaryViewPresenterSupport",function(){return Le}),n.d(i,"SupplementaryViewSupport",function(){return Ne}),n.d(i,"OutlineHandle",function(){return Ue}),n.d(i,"OutlineHandleProvider",function(){return We}),n.d(i,"OutlineExpansionDelegateProtocol",function(){return Ke}),n.d(i,"OutlineRootArrayProxy",function(){return tt}),n.d(i,"OutlineViewController",function(){return lt}),n.d(i,"OutlineViewExpansionDelegate",function(){return st}),n.d(i,"OutlineViewPresenter",function(){return ct}),n.d(i,"OutlineExpandableItemView",function(){return at}),n.d(i,"OutlineNonExpandableItemView",function(){return ot}),n.d(i,"OutlineToggleView",function(){return it}),n.d(i,"SectionHandleProtocol",function(){return dt}),n.d(i,"CollectionSectionLayoutSupport",function(){return De.a}),n.d(i,"SectionedCollectionAdapterProtocol",function(){return pt}),n.d(i,"SectionedHandleProtocol",function(){return ft}),n.d(i,"ListSectionHandle",function(){return Ct}),n.d(i,"SectionedListHandle",function(){return It}),n.d(i,"SectionedListAdapter",function(){return At}),n.d(i,"SectionedCollectionHandle",function(){return Dt}),n.d(i,"SectionedCollectionHandleProvider",function(){return Lt}),n.d(i,"SectionHandle",function(){return Mt}),n.d(i,"SectionHandleProvider",function(){return Pt}),n.d(i,"SectionedOrderedListAdapter",function(){return Vt}),n.d(i,"BaseSelectionController",function(){return kt.a}),n.d(i,"IdentitySelectionController",function(){return Bt}),n.d(i,"IndexedSelectionController",function(){return zt.a}),n.d(i,"IndexedSelectionDelegateProtocol",function(){return Wt.a}),n.d(i,"SelectionDelegateProtocol",function(){return Ht.a}),n.d(i,"SelectionDirections",function(){return $t.a}),n.d(i,"SelectionOperations",function(){return Gt.a}),n.d(i,"SelectionSupportProtocol",function(){return Kt.a}),n.d(i,"ModelStatus",function(){return Yt}),n.d(i,"LOADED",function(){return Xt}),n.d(i,"NOT_LOADED",function(){return Jt}),n.d(i,"LOADING",function(){return Zt}),n.d(i,"ERRORED",function(){return en}),n.d(i,"MIXED_STATE",function(){return tn}),n.d(i,"DataOperation",function(){return nn}),n.d(i,"LOAD",function(){return an}),n.d(i,"LIST",function(){return on}),n.d(i,"CREATE",function(){return cn}),n.d(i,"UPDATE",function(){return ln}),n.d(i,"DESTROY",function(){return un}),n.d(i,"BULK",function(){return dn}),n.d(i,"getModelClasses",function(){return pn}),n.d(i,"resetModelClasses",function(){return fn}),n.d(i,"getModelClassByName",function(){return gn}),n.d(i,"getModelClassMapping",function(){return bn}),n.d(i,"resetModelClassMapping",function(){return vn}),n.d(i,"getDataManager",function(){return yn}),n.d(i,"setDataManager",function(){return Cn}),n.d(i,"resetDataManager",function(){return In}),n.d(i,"resetAllData",function(){return wn}),n.d(i,"EmbeddedRelationshipArray",function(){return di}),n.d(i,"FastBulkLoadingSupport",function(){return _i}),n.d(i,"Model",function(){return ni}),n.d(i,"ModelProperty",function(){return ri}),n.d(i,"modelProperty",function(){return ui}),n.d(i,"ModelArray",function(){return Gn}),n.d(i,"ModelStoreIdSerializer",function(){return $n}),n.d(i,"OperationHandler",function(){return Si}),n.d(i,"findHandlerForOperationType",function(){return wi}),n.d(i,"RelationshipArray",function(){return fi}),n.d(i,"Relationship",function(){return mi}),n.d(i,"ToOneRelationshipProperty",function(){return gi}),n.d(i,"ToManyRelationshipProperty",function(){return bi}),n.d(i,"getClassForRelationshipType",function(){return vi}),n.d(i,"Branch",function(){return Ai}),n.d(i,"BranchingSupport",function(){return Ti}),n.d(i,"ChangeSet",function(){return Qn}),n.d(i,"DataChange",function(){return qn}),n.d(i,"DataManager",function(){return Gi}),n.d(i,"createDataManager",function(){return Qi}),n.d(i,"LoadStatus",function(){return Un}),n.d(i,"NetworkStatus",function(){return Vn}),n.d(i,"HardResetMergeStrategy",function(){return Oi}),n.d(i,"OverwriteMergeStrategy",function(){return Mi}),n.d(i,"Store",function(){return Yn}),n.d(i,"StoreStatus",function(){return Xn}),n.d(i,"ThreeWayChangeProtocol",function(){return tr}),n.d(i,"ThreeWayMergeDelegateProtocol",function(){return nr}),n.d(i,"ThreeWayMergeDelegateSupport",function(){return _r}),n.d(i,"MERGE_DIRECTION",function(){return rr}),n.d(i,"MERGE_FAILED_RESULT",function(){return ar}),n.d(i,"MERGE_TYPE",function(){return or}),n.d(i,"threeWayMerge",function(){return cr}),n.d(i,"ParallelTransactionProcessor",function(){return Wi}),n.d(i,"SerializedTransactionProcessor",function(){return Hi}),n.d(i,"Transaction",function(){return xi}),n.d(i,"TransactionList",function(){return Bi}),n.d(i,"TransactionProcessor",function(){return zi}),n.d(i,"_CacheableSupport",function(){return Rn}),n.d(i,"CoreEvent",function(){return yr.a}),n.d(i,"FocusEvent",function(){return Cr.a}),n.d(i,"CoreMouseEvent",function(){return Ir.a}),n.d(i,"PointerType",function(){return wr.b}),n.d(i,"PointerEvent",function(){return wr.a}),n.d(i,"WheelEvent",function(){return Sr.a}),n.d(i,"FocusLayerSupport",function(){return Ar.b}),n.d(i,"FocusLayer",function(){return Ar.a}),n.d(i,"FocusSupport",function(){return Or.a}),n.d(i,"ViewFocusSupport",function(){return Or.b}),n.d(i,"ButtonTapGestureRecognizerDelegate",function(){return Er.b}),n.d(i,"ButtonTapGestureRecognizer",function(){return Er.a}),n.d(i,"GestureRecognitionEventSequence",function(){return Tr.a}),n.d(i,"GestureRecognizerStates",function(){return Dr.b}),n.d(i,"GestureRecognizer",function(){return Dr.a}),n.d(i,"GestureRecognizerDelegate",function(){return Lr.a}),n.d(i,"VELOCITY_WINDOW_MS",function(){return Nr.b}),n.d(i,"PanGestureRecognizer",function(){return Nr.a}),n.d(i,"ModifierKeys",function(){return Mr.a}),n.d(i,"TapGestureRecognizer",function(){return Mr.b}),n.d(i,"continuousGestureRecognizerStateGenerator",function(){return Pr.a}),n.d(i,"discreteGestureRecognizerStateGenerator",function(){return xr.a}),n.d(i,"changeHandler",function(){return Rr.a}),n.d(i,"dragDropHandler",function(){return jr.a}),n.d(i,"focusHandler",function(){return Fr.a}),n.d(i,"HandlerGenerator",function(){return Vr.a}),n.d(i,"inputHandler",function(){return Ur.a}),n.d(i,"keyboardHandler",function(){return kr.a}),n.d(i,"mouseHandler",function(){return Br.a}),n.d(i,"pointerHandler",function(){return zr.a}),n.d(i,"touchHandler",function(){return Wr.b}),n.d(i,"clearAllTouchesHandler",function(){return Wr.a}),n.d(i,"wheelHandler",function(){return Hr.a}),n.d(i,"KeyCodes",function(){return $r.a}),n.d(i,"KeyManager",function(){return Gr.a}),n.d(i,"KeySequence",function(){return Kr.a}),n.d(i,"ResponderProtocol",function(){return Qr.a}),n.d(i,"ResponderSupport",function(){return qr.a}),n.d(i,"RootResponder",function(){return Yr.a}),n.d(i,"findViewForEvent",function(){return Yr.c}),n.d(i,"findViewForElement",function(){return Yr.b}),n.d(i,"sendEvent",function(){return Xr.a}),n.d(i,"supportedEvents",function(){return Jr.a}),n.d(i,"DateFormatter",function(){return Zr}),n.d(i,"Locale",function(){return r.a}),n.d(i,"addLocalizedValuesFor",function(){return r.b}),n.d(i,"loc",function(){return r.d}),n.d(i,"setLocale",function(){return r.e}),n.d(i,"getLocale",function(){return r.c}),n.d(i,"ChannelProtocol",function(){return ea.a}),n.d(i,"ChildWindowChannel",function(){return ta.a}),n.d(i,"ParentWindowChannel",function(){return na.a}),n.d(i,"WindowPostMessageChannel",function(){return ia.a}),n.d(i,"DownloadManager",function(){return ra.a}),n.d(i,"IFrameDownloader",function(){return aa.b}),n.d(i,"IFrameDownloadCompletionStatus",function(){return aa.a}),n.d(i,"LinkDownloader",function(){return oa.a}),n.d(i,"Message",function(){return sa.a}),n.d(i,"JsonRpcMessageFormatterProtocol",function(){return ca.a}),n.d(i,"JsonRpcBase",function(){return la.a}),n.d(i,"JsonRpcCaller",function(){return ua.a}),n.d(i,"JSON_RPC_ERROR",function(){return da.a}),n.d(i,"JsonRpcError",function(){return da.b}),n.d(i,"JsonRpcParseError",function(){return da.g}),n.d(i,"JsonRpcInvalidRequestError",function(){return da.e}),n.d(i,"JsonRpcMethodNotFoundError",function(){return da.f}),n.d(i,"JsonRpcInvalidParamsError",function(){return da.d}),n.d(i,"JsonRpcInternalError",function(){return da.c}),n.d(i,"JsonRpcListener",function(){return ha}),n.d(i,"JsonRpcMessageFormatterV2",function(){return va.a}),n.d(i,"RequestStatus",function(){return _a.b}),n.d(i,"HTTP",function(){return _a.a}),n.d(i,"NetworkProgress",function(){return ya.a}),n.d(i,"XHRBodySerializer",function(){return Ca.a}),n.d(i,"Request",function(){return Ia.a}),n.d(i,"Response",function(){return wa.a}),n.d(i,"HttpStatusCodes",function(){return Sa.a}),n.d(i,"BaseTransport",function(){return Aa.a}),n.d(i,"TransportProtocol",function(){return Oa.a}),n.d(i,"XHR",function(){return Ea.a}),n.d(i,"URL",function(){return Ta.a}),n.d(i,"MimeType",function(){return Da}),n.d(i,"FileValidator",function(){return La}),n.d(i,"UploadRequest",function(){return Na}),n.d(i,"hasSameOrigin",function(){return Ma.a}),n.d(i,"DataflowDebugger",function(){}),n.d(i,"DOMInjector",function(){return ja}),n.d(i,"EventGenerator",function(){return Ua}),n.d(i,"EventSimulator",function(){return qa}),n.d(i,"InputEvent",function(){return Wa}),n.d(i,"KeyEvent",function(){return Ha}),n.d(i,"PointerCycle",function(){return za}),n.d(i,"nativeEvent",function(){return $a}),n.d(i,"setUpBrowserEnvironment",function(){return Xa}),n.d(i,"AccessorProtocol",function(){return Ja.a}),n.d(i,"BaseMapIterator",function(){return Za.a}),n.d(i,"BidirectionalIteratorProtocol",function(){return eo.a}),n.d(i,"BidirectionallyIterableProtocol",function(){return to.a}),n.d(i,"CollectionProtocol",function(){return no.a}),n.d(i,"CoreArray",function(){return Kn.a}),n.d(i,"CoreMap",function(){return io.a}),n.d(i,"IterableProtocol",function(){return ro.a}),n.d(i,"IteratorProtocol",function(){return ao.a}),n.d(i,"LinkedList",function(){return uo}),n.d(i,"LinkedListIterator",function(){return co}),n.d(i,"ListProtocol",function(){return mt.a}),n.d(i,"MapEntryIterator",function(){return fo.a}),n.d(i,"MapKeyIterator",function(){return mo.a}),n.d(i,"MapValueIterator",function(){return go.a}),n.d(i,"MutatorIteratorProtocol",function(){return bo.a}),n.d(i,"NativeIteratorWrapper",function(){return vo.a}),n.d(i,"OrderedListIterator",function(){return so.a}),n.d(i,"OrderedListProtocol",function(){return Ri.a}),n.d(i,"RandomAccessIterableProtocol",function(){return _o.a}),n.d(i,"RandomAccessIteratorProtocol",function(){return yo.a}),n.d(i,"RollingArrayDelegateProtocol",function(){return Io}),n.d(i,"RollingArray",function(){return wo}),n.d(i,"StrongArray",function(){return Ao.a}),n.d(i,"StrongArraySupport",function(){return Oo.a}),n.d(i,"BatchSetterForNonObservableObject",function(){return Eo.a}),n.d(i,"NULL_WEAK_REFERENCE",function(){return Pn.b}),n.d(i,"Class",function(){return Pn.a}),n.d(i,"NonObservableBatchSetter",function(){return Pn.c}),n.d(i,"CloneableProtocol",function(){return kn.a}),n.d(i,"SimpleCloneableSupport",function(){return No}),n.d(i,"CoreObject",function(){return d.a}),n.d(i,"EnumGroup",function(){return Qt.a}),n.d(i,"createEnumGroup",function(){return Qt.b}),n.d(i,"EnumItem",function(){return En.a}),n.d(i,"createEnumItem",function(){return En.b}),n.d(i,"ExceptionHandlerDelegateProtocol",function(){return Mo.a}),n.d(i,"StaticExceptionHandlerDelegateProtocol",function(){return Mo.b}),n.d(i,"ITSELF",function(){return Po.a}),n.d(i,"Instance",function(){return ke.a}),n.d(i,"instance",function(){return ke.c}),n.d(i,"InstanceSupport",function(){return ke.b}),n.d(i,"Accumulator",function(){return Ae.a}),n.d(i,"accumulator",function(){return Ae.b}),n.d(i,"define",function(){return xe.c}),n.d(i,"Metadata",function(){return xe.a}),n.d(i,"MetadataSupport",function(){return xe.b}),n.d(i,"VALUE_SENTINEL",function(){return B.c}),n.d(i,"Property",function(){return B.a}),n.d(i,"property",function(){return B.d}),n.d(i,"PropertySupport",function(){return B.b}),n.d(i,"STRONG",function(){return Qe.a}),n.d(i,"WEAK",function(){return Qe.c}),n.d(i,"UNSAFE",function(){return Qe.b}),n.d(i,"retainValueIfNeeded",function(){return Qe.f}),n.d(i,"releaseValueIfNeeded",function(){return Qe.e}),n.d(i,"autoreleaseValueIfNeeded",function(){return Qe.d}),n.d(i,"weaklyReferenceValueIfNeeded",function(){return Qe.g}),n.d(i,"weaklyUnreferenceValueIfNeeded",function(){return Qe.h}),n.d(i,"union",function(){return xo.c}),n.d(i,"intersection",function(){return xo.b}),n.d(i,"_selectPropertyTypeCheck",function(){return xo.a}),n.d(i,"SubclassProperty",function(){return Fo}),n.d(i,"subclassProperty",function(){return Vo}),n.d(i,"SubclassFactorySupport",function(){return Uo}),n.d(i,"PromiseSupport",function(){return On.b}),n.d(i,"CorePromise",function(){return On.a}),n.d(i,"Abstract",function(){return ko.a}),n.d(i,"Protocol",function(){return He.a}),n.d(i,"Required",function(){return He.b}),n.d(i,"RequiredMetadata",function(){return Bo.a}),n.d(i,"RequiredMethod",function(){return $e.a}),n.d(i,"RequiredProperty",function(){return Pe.a}),n.d(i,"JSONSerializer",function(){return zo.a}),n.d(i,"SerializationSupport",function(){return Wo.a}),n.d(i,"SerializerProtocol",function(){return Wn.a}),n.d(i,"SharedInstance",function(){return h.a}),n.d(i,"SubclassFactoryProtocol",function(){return jo}),n.d(i,"BaseValidator",function(){return Ho.a}),n.d(i,"EmailValidator",function(){return Go}),n.d(i,"LengthValidator",function(){return Ko}),n.d(i,"NotEmptyValidator",function(){return Qo}),n.d(i,"PatternValidator",function(){return $o.a}),n.d(i,"RangeValidator",function(){return qo}),n.d(i,"ValidatorProtocol",function(){return Yo.a}),n.d(i,"_ObjectPool",function(){return Xo}),n.d(i,"_Poolable",function(){return Me.a}),n.d(i,"isCWClass",function(){return Li.a}),n.d(i,"isCoreObject",function(){return Jo.a}),n.d(i,"kindOf",function(){return Zo}),n.d(i,"ArrayChangeOperation",function(){return es.a}),n.d(i,"CoreSet",function(){return Tt.a}),n.d(i,"BaseBidirectionalHandleProvider",function(){return Be.a}),n.d(i,"BaseHandleProvider",function(){return ts.a}),n.d(i,"BaseRandomAccessHandleProvider",function(){return ns.a}),n.d(i,"BidirectionalHandleProtocol",function(){return Re.a}),n.d(i,"HandleProtocol",function(){return ut.a}),n.d(i,"HandleSupport",function(){return Ze.a}),n.d(i,"OrderedListHandle",function(){return Ot.a}),n.d(i,"OrderedListHandleProvider",function(){return Et.a}),n.d(i,"RandomAccessHandleProtocol",function(){return is.a}),n.d(i,"TreeHandle",function(){return Ve}),n.d(i,"TreeHandleDelegateSupport",function(){return Ge}),n.d(i,"TreeHandleProtocol",function(){return je}),n.d(i,"TreeHandleProvider",function(){return ze}),n.d(i,"ObservableArray",function(){return Ee.b}),n.d(i,"ArrayChangeList",function(){return Ee.a}),n.d(i,"StrongArrayChangeList",function(){return Ee.c}),n.d(i,"ObservableArrayIterator",function(){return rs.a}),n.d(i,"ObservableArrayProxy",function(){return Xe}),n.d(i,"ObservableCollectionIteratorProtocol",function(){return as.a}),n.d(i,"ObservableCollectionProtocol",function(){return os.a}),n.d(i,"OrderedSet",function(){return Vi}),n.d(i,"SetIterator",function(){return ss.a}),n.d(i,"StrongObservableArray",function(){return cs.a}),n.d(i,"TreeArrayProxy",function(){return et}),n.d(i,"BaseProcessor",function(){return ls.a}),n.d(i,"BatchSetter",function(){return us.a}),n.d(i,"BatchSetterForObject",function(){return ds.a}),n.d(i,"OWNER",function(){return Ye.b}),n.d(i,"Binding",function(){return Ye.a}),n.d(i,"binding",function(){return Ye.c}),n.d(i,"ChainedLookupNodeManager",function(){return hs.a}),n.d(i,"ChainedLookupRootNodeManager",function(){return hs.b}),n.d(i,"ChainedLookupTerminalNodeManager",function(){return hs.c}),n.d(i,"DownstreamChainedLookupTerminalNodeManager",function(){return hs.d}),n.d(i,"Dataflow",function(){return b.a}),n.d(i,"Point2DProtocol",function(){return ps.b}),n.d(i,"Point2D",function(){return ps.a}),n.d(i,"RectProtocol",function(){return fs.b}),n.d(i,"Rect",function(){return fs.a}),n.d(i,"SizeProtocol",function(){return Se.b}),n.d(i,"Size",function(){return Se.a}),n.d(i,"NodeManager",function(){return ms.a}),n.d(i,"DownstreamNodeManager",function(){return g.a}),n.d(i,"DownstreamStrongNodeManager",function(){return gs.b}),n.d(i,"DownstreamStrongComputedNodeManager",function(){return gs.a}),n.d(i,"BaseDownstreamStrongNodeManager",function(){return bs.a}),n.d(i,"DownstreamUnsafeNodeManager",function(){return vs.a}),n.d(i,"DownstreamWeakComputedNodeManager",function(){return _s.a}),n.d(i,"DownstreamWeakNodeManager",function(){return ys.a}),n.d(i,"NOT_SET",function(){return v.a}),n.d(i,"UpstreamNodeManager",function(){return v.b}),n.d(i,"UpstreamReadOnlyNodeManager",function(){return Cs.a}),n.d(i,"UpstreamReadOnlyStrongNodeManager",function(){return Is.a}),n.d(i,"UpstreamStrongNodeManager",function(){return ws.a}),n.d(i,"UpstreamWeakRootValueNodeManager",function(){return Ss.a}),n.d(i,"Observable",function(){return p.b}),n.d(i,"ObserverNodeManager",function(){return p.e}),n.d(i,"ObserverMetadata",function(){return p.d}),n.d(i,"Observer",function(){return p.c}),n.d(i,"Listener",function(){return p.a}),n.d(i,"observer",function(){return p.h}),n.d(i,"listener",function(){return p.g}),n.d(i,"SignalMetadata",function(){return p.f}),n.d(i,"signal",function(){return p.i}),n.d(i,"ObservableProperty",function(){return c.a}),n.d(i,"observableProperty",function(){return c.b}),n.d(i,"Processor",function(){return As}),n.d(i,"RequiredObservableProperty",function(){return ht.a}),n.d(i,"RequiredSignal",function(){return Os.a}),n.d(i,"OBSERVER_STATES",function(){return Es.a}),n.d(i,"SignalEvent",function(){return Es.b}),n.d(i,"TargetActionSupport",function(){return Ts.a}),n.d(i,"Timer",function(){return Ds.a}),n.d(i,"ValidationSupport",function(){return An.a}),n.d(i,"benchmark",function(){return Ls}),n.d(i,"init",function(){return Ns}),n.d(i,"VerticalAlignment",function(){return Ms.b}),n.d(i,"HorizontalAlignment",function(){return Ms.a}),n.d(i,"DOMLayoutMeasurer",function(){return Ps.a}),n.d(i,"DragOperation",function(){return xs}),n.d(i,"DragSourceProtocol",function(){return Fs}),n.d(i,"DragTargetProtocol",function(){return Vs}),n.d(i,"DragType",function(){return Rs}),n.d(i,"dragDataContainer",function(){return js}),n.d(i,"setDragImage",function(){return ks}),n.d(i,"LayoutContextSupport",function(){return Bs.a}),n.d(i,"LayoutMeasurer",function(){return zs.a}),n.d(i,"FadingScrollIndicatorSupport",function(){return qs}),n.d(i,"FadingScrollIndicator",function(){return $s}),n.d(i,"FadingHorizontalScrollIndicatorView",function(){return Gs}),n.d(i,"FadingVerticalScrollIndicatorView",function(){return Ks}),n.d(i,"ScrollEvent",function(){return Ys.a}),n.d(i,"ScrollIndicatorSupport",function(){return Qs.a}),n.d(i,"ScrollIndicatorView",function(){return Hs.b}),n.d(i,"VerticalScrollIndicatorView",function(){return Hs.c}),n.d(i,"HorizontalScrollIndicatorView",function(){return Hs.a}),n.d(i,"ScrollSupport",function(){return Xs.a}),n.d(i,"ScrollView",function(){return Js.a}),n.d(i,"KeyboardScrollViewControllerSupport",function(){return Zs.a}),n.d(i,"View",function(){return ye.a}),n.d(i,"ChildViewControllerProperty",function(){return xa.a}),n.d(i,"childViewControllerProperty",function(){return xa.b}),n.d(i,"ViewController",function(){return Pa.a}),n.d(i,"ArrowSupport",function(){return tc}),n.d(i,"ButtonSupport",function(){return nt.a}),n.d(i,"ControlSupport",function(){return cc.a}),n.d(i,"DOMSupport",function(){return lc.a}),n.d(i,"PointerActivationSupport",function(){return uc.a}),n.d(i,"RadioGroupSupport",function(){return dc}),n.d(i,"AttributeNodeSupport",function(){return hc.a}),n.d(i,"AttributeOutletSupport",function(){return pc.a}),n.d(i,"ClassNameOutletSupport",function(){return fc.a}),n.d(i,"_ElementHandler",function(){return mc.b}),n.d(i,"ElementSupport",function(){return mc.a}),n.d(i,"MultiViewOutletSupport",function(){return gc.a}),n.d(i,"StyleOutletSupport",function(){return bc.a}),n.d(i,"TemplateHandler",function(){return vc.a}),n.d(i,"TemplateSupport",function(){return _c.a}),n.d(i,"copyTemplate",function(){return _c.b}),n.d(i,"IPromiseIEscapedAllUserInput",function(){return yc.a}),n.d(i,"TextNodeOutletSupport",function(){return yc.b}),n.d(i,"TextNodeSupport",function(){return Cc.a}),n.d(i,"registerOutlet",function(){return Ic.c}),n.d(i,"getBindingCalculator",function(){return Ic.a}),n.d(i,"registerNode",function(){return Ic.b}),n.d(i,"ViewOutletSupport",function(){return wc.a}),n.d(i,"_SharedViewOutletSupport",function(){return Sc.a}),n.d(i,"measureElement",function(){return Ac.a}),n.d(i,"_allowedTransforms",function(){return ec.a}),n.d(i,"_testTransforms",function(){return ec.b}),n.d(i,"setStyle",function(){return ec.c}),n.d(i,"translateDevicePixels",function(){return ec.d}),n.d(i,"SelectAllKeyDownHandlerSupport",function(){return Oc.a}),n.d(i,"MenuDividerItem",function(){return Ec}),n.d(i,"MenuDividerItemCell",function(){return Tc}),n.d(i,"MenuItem",function(){return Dc}),n.d(i,"MenuListLayoutMetrics",function(){return Lc}),n.d(i,"MenuListViewController",function(){return Bc}),n.d(i,"MenuViewController",function(){return Gc}),n.d(i,"MenuArrowPopoverView",function(){return Kc}),n.d(i,"ModalMenuArrowPopoverView",function(){return Qc}),n.d(i,"DirectionalCollectionViewDelegateProtocol",function(){return qc}),n.d(i,"MenuDelegateProtocol",function(){return Mc}),n.d(i,"MenuDelegateSupport",function(){return Pc}),n.d(i,"Direction",function(){return Nc}),n.d(i,"MenuDividerItemView",function(){return xc}),n.d(i,"MenuItemView",function(){return jc}),n.d(i,"MenuListView",function(){return Vc}),n.d(i,"ScrollRepeaterButton",function(){return Fc}),n.d(i,"OnRightLayout",function(){return Hc.c}),n.d(i,"OnLeftLayout",function(){return Hc.b}),n.d(i,"OnTopLayout",function(){return Hc.d}),n.d(i,"OnBottomLayout",function(){return Hc.a}),n.d(i,"PopoverLayout",function(){return Yc.a}),n.d(i,"SplitLayout",function(){return Jc}),n.d(i,"AlertStyle",function(){return el.a}),n.d(i,"AlertContentController",function(){return tl.a}),n.d(i,"AlertViewController",function(){return tl.b}),n.d(i,"MasterDetailViewController",function(){return ul}),n.d(i,"ModalDialogViewController",function(){return dl.a}),n.d(i,"PopoverViewController",function(){return $c.c}),n.d(i,"BestFitLayoutStrategy",function(){return $c.a}),n.d(i,"FirstFitLayoutStrategy",function(){return $c.b}),n.d(i,"PopupViewController",function(){return hl.a}),n.d(i,"RadioGroupViewController",function(){return ml}),n.d(i,"ReorderableSimpleListViewController",function(){return gl}),n.d(i,"SimpleListViewController",function(){return fl}),n.d(i,"ModalContentSupport",function(){return vl.a}),n.d(i,"AXGrabToggleButton",function(){return yl}),n.d(i,"AlertContentView",function(){return Cl.a}),n.d(i,"AlertView",function(){return Cl.b}),n.d(i,"ArrowPopoverAlignment",function(){return zc.a}),n.d(i,"ArrowPopoverView",function(){return zc.b}),n.d(i,"Button",function(){return _l.a}),n.d(i,"CapacityMeterBarItemView",function(){return wl}),n.d(i,"CapacityMeterLegendItemView",function(){return Sl}),n.d(i,"CapacityMeterView",function(){return Ol}),n.d(i,"Checkbox",function(){return Dl}),n.d(i,"CircularProgressView",function(){return Ll}),n.d(i,"LabelView",function(){return Nl.a}),n.d(i,"MasterDetailView",function(){return ll}),n.d(i,"ModalArrowPopoverView",function(){return Wc.a}),n.d(i,"CSS_ANIMATION_DURATION",function(){return Ml.a}),n.d(i,"ModalDialog",function(){return Ml.b}),n.d(i,"PopoverView",function(){return Pl.a}),n.d(i,"PopupView",function(){return xl.a}),n.d(i,"ProgressView",function(){return Rl}),n.d(i,"RadioButton",function(){return pl}),n.d(i,"ResizeHandleView",function(){return nl}),n.d(i,"SVGView",function(){return jl}),n.d(i,"SearchField",function(){return kl}),n.d(i,"Segmented",function(){return zl}),n.d(i,"SelectView",function(){return Wl}),n.d(i,"SliderView",function(){return $l}),n.d(i,"SpinnerView",function(){return ql.a}),n.d(i,"SplitView",function(){return rl}),n.d(i,"_computeSplitViewSizes",function(){return cl}),n.d(i,"Switch",function(){return Yl}),n.d(i,"TextField",function(){return Fl}),n.d(i,"ToggleButton",function(){return Bl}),n.d(i,"TooltipContentView",function(){return Il}),n.d(i,"BaseAnimation",function(){return Xl.a}),n.d(i,"BounceAnimation",function(){return Jl.a}),n.d(i,"BasFrictionAnimation",function(){return Zl.a}),n.d(i,"CatesFrictionAnimation",function(){return tu}),n.d(i,"_binarySearchEngine",function(){return nu.a}),n.d(i,"appendArrays",function(){return Nn.a}),n.d(i,"argumentsAsTempArray",function(){return oo.a}),n.d(i,"binarySearch",function(){return iu}),n.d(i,"invertArray",function(){return Dn.a}),n.d(i,"overwriteArray",function(){return To.a}),n.d(i,"removeItemFromArray",function(){return ru.a}),n.d(i,"sliceArrayLike",function(){return au.a}),n.d(i,"unique",function(){return ou}),n.d(i,"Base64",function(){return su}),n.d(i,"isValidIdentifierName",function(){return fu}),n.d(i,"deepEqual",function(){return Tn.a}),n.d(i,"exists",function(){return Hn.a}),n.d(i,"isArrayLike",function(){return s.a}),n.d(i,"isBoolean",function(){return mu.a}),n.d(i,"isEmpty",function(){return zn.a}),n.d(i,"isFunction",function(){return Mn.a}),n.d(i,"isHash",function(){return a.a}),n.d(i,"isNumber",function(){return gu.a}),n.d(i,"isPrimitive",function(){return bu.a}),n.d(i,"isString",function(){return pi.a}),n.d(i,"isThenable",function(){return vu.a}),n.d(i,"copy",function(){return Bn.b}),n.d(i,"DONTCOPY",function(){return Bn.a}),n.d(i,"copyProperties",function(){return Do.a}),n.d(i,"deepCopy",function(){return Sn.a}),n.d(i,"shallowCopy",function(){return ka.a}),n.d(i,"_multiContext",function(){return _u.a}),n.d(i,"addEventListener",function(){return m.a}),n.d(i,"createExceptionInfo",function(){return yu.a}),n.d(i,"getErrorLineNumber",function(){return Cu.a}),n.d(i,"getExceptionHandlerWrapperIfWrapped",function(){return Iu.a}),n.d(i,"getTruncatedStack",function(){return wu.a}),n.d(i,"invokeWithAdditionalExceptionContext",function(){return Su}),n.d(i,"invokeWithExceptionHandler",function(){return Au.b}),n.d(i,"registerExceptionHandlerDelegate",function(){return Au.c}),n.d(i,"getCurrentExceptionHandlerDelegate",function(){return Au.a}),n.d(i,"removeEventListener",function(){return Tl.a}),n.d(i,"requestAnimationFrame",function(){return Ou.a}),n.d(i,"setInterval",function(){return Eu.a}),n.d(i,"setTimeout",function(){return Us.a}),n.d(i,"stringifyExceptionContext",function(){return Tu.a}),n.d(i,"wrapWithExceptionHandler",function(){return Du.a}),n.d(i,"FatalError",function(){return o.a}),n.d(i,"fatalError",function(){return o.b}),n.d(i,"IDENTITY",function(){return gt.a}),n.d(i,"NOOP",function(){return bt.a}),n.d(i,"bindFunction",function(){return El.a}),n.d(i,"getFullyQualifiedClassNameForObject",function(){return qt.a}),n.d(i,"guidFor",function(){return Ni.b}),n.d(i,"_resetGUIDs",function(){return Ni.a}),n.d(i,"guidForContents",function(){return Ro.a}),n.d(i,"Logger",function(){return ir.a}),n.d(i,"logger",function(){return ir.b}),n.d(i,"flooredMod",function(){return Lu}),n.d(i,"clearObject",function(){return Nu.a}),n.d(i,"diffObjects",function(){return Ln}),n.d(i,"get",function(){return Mu.a}),n.d(i,"getPath",function(){return Pu.a}),n.d(i,"invertObject",function(){return xu}),n.d(i,"iterateObject",function(){return Ru}),n.d(i,"keyFromPath",function(){return ju.a}),n.d(i,"merge",function(){return Fa.a}),n.d(i,"objectFromPath",function(){return Fu.a}),n.d(i,"set",function(){return Vu.a}),n.d(i,"setIfChanged",function(){return Ws.a}),n.d(i,"setOrDeleteValue",function(){return Uu.a}),n.d(i,"bytesToHumanizedFormat",function(){return ku.a}),n.d(i,"camelize",function(){return Hu}),n.d(i,"capitalize",function(){return $u.a}),n.d(i,"characterCodeIsCJK",function(){return Gu.a}),n.d(i,"stringIsCJK",function(){return Gu.b}),n.d(i,"escapeHTML",function(){return Rc.b}),n.d(i,"escapeAttribute",function(){return Rc.a}),n.d(i,"escapeRegExp",function(){return Rc.c}),n.d(i,"fmt",function(){return Ku.a}),n.d(i,"hyphenate",function(){return Qu.a}),n.d(i,"naturalComparator",function(){return rd}),n.d(i,"parsePath",function(){return ad.a}),n.d(i,"diacriticMappingTable",function(){return qu}),n.d(i,"removeDiacritics",function(){return Yu}),n.d(i,"utf16StringToCodePoints",function(){return od}),n.d(i,"utf8ArrayBufferToCodePoints",function(){return sd}),n.d(i,"notImplemented",function(){return cd}),n.d(i,"NotImplementedError",function(){return ld}),n.d(i,"throwNotImplemented",function(){return ud}),n.d(i,"createFlatArray",function(){return dd}),n.d(i,"createSequentialArray",function(){return hd}),n.d(i,"getInnerText",function(){return pd}),n.d(i,"isSpied",function(){return fd}),n.d(i,"netRetains",function(){return vd}),n.d(i,"netReleases",function(){return _d}),n.d(i,"netRetainsIfAny",function(){return yd}),n.d(i,"netReleasesIfAny",function(){return Cd}),n.d(i,"spyIfNecessary",function(){return gd}),n.d(i,"unspyIfNecessary",function(){return bd}),n.d(i,"stubSuper",function(){return Id}),n.d(i,"stubSuperIntoMockObject",function(){return wd}),n.d(i,"testValues",function(){return Sd}),n.d(i,"uuidBytes",function(){return Ad.a}),n.d(i,"uuidBytesToString",function(){return Od.a}),n.d(i,"uuidString",function(){return Ed.a}),n.d(i,"uuidStringsToBytes",function(){return Td}),n.d(i,"invokeWithAutoreleaseFrame",function(){return md.e}),n.d(i,"beginAutoreleaseFrame",function(){return md.c}),n.d(i,"endAutoreleaseFrame",function(){return md.d}),n.d(i,"autoreleaseObject",function(){return md.b}),n.d(i,"_releaseImmediately",function(){return md.a}),n.d(i,"instanceOf",function(){return qe.a}),n.d(i,"startFilteringErrors",function(){return Ld}),n.d(i,"startFilteringUnhandledRejections",function(){return Nd});var r=n(80),a=n(832),o=n(819),s=n(836),c=n(98),l=n(110),u=n(891),d=n(818),h=n(847),p=n(78),f=n(91),m=n(869),g=n(845),b=n(844),v=n(97),_=c.a.extend({staticMembers:{booleanProperty:function(e){return y.create(e)},numberProperty:function(e){return C.create(e)},stringProperty:function(e){return I.create(e)},enumProperty:function(e,t){return w.create(e,t)},__QUALIFIED_CLASS_NAME__:"ConfigProperty"},downstreamNodeManagerClass:g.a.extend({calculateValueForNode:function(e,t,n){if(n){var i=b.a.getStateIDForNode(t);i>0&&b.a.getValueForNode(i)}var r=e._config_debugValues[this.key];return void 0===r&&(r=this.get.call(e)),r},debugType:"Config"}),upstreamNodeManagerClass:v.b.extend({calculateValueForNode:function(e,t,n){var i,r=this.key;if(n){var a=b.a.getStateIDForNode(t);b.a.setStateDataForNode(void 0,t),b.a.getValueForNode(a)}void 0===(i=b.a.getStateDataForNode(t))?delete e._config_debugValues[r]:e._config_debugValues[r]=i},debugType:"Config"}),wasRegistered:function(){var e=arguments;this.__s._$vb$wasRegistered.apply(this,e),this.readOnly=!1},setInitialValueForObject:function(e,t,n){this.usesBuiltinGet?e._config_defaultValues[t]=n:e._config_defaultValues[t]=void 0},didChange:function(e){this.writeToSessionStorage&&this.writeToSessionStorage()},__superMap:{_$vb$wasRegistered:"wasRegistered"}}),y=_.extend({type:"boolean",configType:"boolean",parse:function(e){return"boolean"==typeof e?e:"true"===e},staticMembers:{__QUALIFIED_CLASS_NAME__:"BooleanConfigProperty"}}),C=_.extend({type:"number",configType:"number",parse:function(e){return e=parseFloat(e),isNaN(e)?void 0:e},staticMembers:{__QUALIFIED_CLASS_NAME__:"NumberConfigProperty"}}),I=_.extend({type:"string",configType:"string",parse:function(e){return e+""},staticMembers:{__QUALIFIED_CLASS_NAME__:"StringConfigProperty"}}),w=_.extend({configType:"enum",allowedValues:null,parse:function(e){if(""!==e){var t=this.allowedValues;if(t.indexOf(e)>-1)return e;Object(o.b)("Not a recognized value in enum: "+e,{value:e,allowedValues:t})}},init:function(e,t){1===arguments.length&&Object(a.a)(e)?this.__s._$1ZQ$init.call(this,e):(this.allowedValues=e,this.__s._$1ZQ$init.call(this,t))},__superMap:{_$1ZQ$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EnumConfigProperty"}}),S=d.a.extend(p.b,h.a,{staticMembers:{booleanProperty:_.booleanProperty,numberProperty:_.numberProperty,stringProperty:_.stringProperty,enumProperty:_.enumProperty,__QUALIFIED_CLASS_NAME__:"Config"},_config_debugValues:null,_config_urlValues:null,_config_defaultValues:null,_shouldWriteChangesToSessionStorage:!1,init:function(){this._config_defaultValues={},this._config_urlValues=Object.create(this._config_defaultValues),this._config_debugValues=Object.create(this._config_urlValues),this.__s._$1It$init.call(this),this.constructor===S?Object(o.b)("CW.Config cannot be instantiated directly, must subclass."):this.constructor.storageKey||Object(o.b)("Must define a `storageKey` static member for CW.Config subclasses."),this._computedStorageKey="Apple:Config:"+this.constructor.storageKey,A.call(this),function(){var e=O.getItem(this._computedStorageKey),t=this._config_defaultValues,n=!1;if(e)try{for(var i in e=JSON.parse(e))e.hasOwnProperty(i)&&t.hasOwnProperty(i)&&(this.set(i,e[i]),n=!0)}catch(e){}return n}.call(this)&&this.didLoadConfigFromSessionStorage(),this._shouldWriteChangesToSessionStorage=!0,Object(m.a)(window,"hashchange",A.bind(this))},didLoadConfigFromSessionStorage:function(){},setFromString:function(e,t){this.set(e,this.getMetadata(e).parse(t))},typeOf:function(e){return this.getMetadata(e).configType},dump:function(e){e||(e="");var t=this._config_debugValues,n=this._config_urlValues,i="",r="",a="",o=[],s=this.getMetadataByType(_);for(i in s)s.hasOwnProperty(i)&&(r=e+i+": ",a="",t.hasOwnProperty(i)&&(a+=this.getDebugValue(i)+" (Debug); "),n.hasOwnProperty(i)&&(a+=this.getURLValue(i)+" (URL); "),a+=this.getDefaultValue(i)+" (Default)",o.push(r+a));return o.join("\n")},getDefaultValue:function(e){return void 0!==this._config_defaultValues[e]?this._config_defaultValues[e]:this.getMetadata(e).getForObject(this,e)},setDefaultValue:function(e,t){this._config_defaultValues[e]=t,this.propertyChanged(e)},getURLValue:function(e){if(this._config_urlValues.hasOwnProperty(e))return this._config_urlValues[e]},getDebugValue:function(e){if(this._config_debugValues.hasOwnProperty(e))return this._config_debugValues[e]},clearDebugValues:function(){var e=this.getMetadataByType(_);for(var t in e)e.hasOwnProperty(t)&&this.set(t,void 0)},writeToSessionStorage:function(){this._shouldWriteChangesToSessionStorage&&this._computedStorageKey&&O.setItem(this._computedStorageKey,JSON.stringify(this._config_debugValues))},__superMap:{_$1It$init:"init"}});function A(){var e=function(e){var t={};if("#cw_config:"!==e.substr(0,"#cw_config:".length))return t;var n,i,r,a,o=(e=e.substr("#cw_config:".length)).split("&"),s=o.length;for(i=0;i<s;i++){var c=(n=o[i]).indexOf("=");c<0?(r=n,a="true"):(r=n.substr(0,c),a=n.substr(c+1)),r=decodeURIComponent(r),a=decodeURIComponent(a),t[r]=a}return t}(window.location.hash);for(var t in e)if(e.hasOwnProperty(t)){var n=e[t],i=this.getMetadata(t);i&&(void 0!==(n=i.parse(n))?this._config_urlValues[t]=n:delete this._config_urlValues[t],this.propertyChanged(t))}}var O=f.b.get("sharedInstance"),E=d.a.extend(h.a,{_cookieString:null,_cookiesObj:null,getCookies:function(){var e=document.cookie;if(this._cookieString===e)return this._cookiesObj;var t={};if(this._cookieString=e,e)for(var n=e.split(";"),i=0,r=n.length;i<r;i++){var a=n[i].split("="),o=a.shift().trim(),s=a.join("=").trim();t[o]=s}return this._cookiesObj=t},getCookie:function(e){return this.getCookies()[e]},removeCookie:function(e,t,n){var i=e+"=; expires=Thu, 01 Jan 1970 00:00:01 GMT";t&&(i=i+"; domain="+t),n&&(i=i+"; path="+n),document.cookie=i},removeCookies:function(e,t,n){var i,r;if(e instanceof Array)for(i=0,r=e.length;i<r;i++)this.removeCookie(e[i],t,n);else{var a=document.cookie.split(";");for(i=0,r=a.length;i<r;i++){var o=a[i],s=o.indexOf("="),c=s>-1?o.substr(0,s):o;e.test(c)&&this.removeCookie(c,t,n)}}},setCookie:function(e,t){var n=e+"="+t+";";document.cookie=n},staticMembers:{__QUALIFIED_CLASS_NAME__:"CookieManager"}}),T=n(533),D=n(896),L=n(521),N=n(288),M=n(289),P=n(387),x=n(532),R=n(234),j=n(522),F=n(890),V=n(879),U=n(878),k=d.a.extend(h.a,{isFormData:function(e){return e instanceof FormData&&void 0!==e},isBlob:function(e){return e instanceof Blob},isFile:function(e){return e instanceof File},isFileList:function(e){return e instanceof FileList},blobSlice:function(e,t,n,i){var r=Blob.prototype;return(r.slice||r.webKitSlice||r.mozSlice).call(e,t,n,i)},staticMembers:{__QUALIFIED_CLASS_NAME__:"FileAPI"}}),B=n(81),z=d.a.extend(h.a,{supportsSVG:Object(B.d)({readOnly:!0,get:function(){return!!document.createElementNS}}),supportsCanvas:Object(B.d)({readOnly:!0,get:function(){return!!document.createElement("canvas").getContext}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"Rendering"}}),W=n(894),H=n(381),$=n(88),G=!!(File&&FileReader&&FileList&&Blob),K=d.a.extend(h.a,{isSupported:G,staticMembers:{__QUALIFIED_CLASS_NAME__:"FileAPICapabilities"}}),Q=K.sharedInstance,q=n(933),Y=n(363),X=n(127),J=n(534),Z=n(542),ee=n(934),te=n(392),ne=n(111),ie=n(547),re=n(73),ae=n(937),oe=n(545),se=n(546),ce=n(393),le=n(394),ue=n(938),de=n(548),he=n(549),pe=n(274),fe=n(939),me=n(92),ge=n(940),be=n(942),ve=n(225),_e=n(553),ye=(n(481),n(877)),Ce=(n(0),ye.a.extend({staticMembers:{className:"cw-ui-collections-list-footer-view",__QUALIFIED_CLASS_NAME__:"ListFooterView"}})),Ie=(n(482),n(0),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isFloatingToTop",truevalue:"is-floating",attributes:{}}]}},className:"cw-ui-collections-list-header-view",__QUALIFIED_CLASS_NAME__:"ListHeaderView"}})),we=n(941),Se=n(107),Ae=n(104),Oe={setCustomHeightForItem:function(e,t){var n=this.collection.handleFor(e);return this.setCustomHeight(n,t)},setCustomHeight:function(e,t){var n=this.layoutDelegate.cellForHandle(e);-1===n.customHeight&&n.retain(this,"CustomRowHeightSupport: retaining cell with custom height"),n.customHeight=t,n.height=t;var i=re.a.create();i.invalidateItemAt(e),this.update(i)},layoutDelegate:Object(Ae.b)({cellClass:Object(Ae.b)({customHeight:-1,invalidate:function(){var e=arguments;-1!==this.customHeight&&this.handle.wasRemoved&&(this.release(this,"CustomRowHeightSupport: retaining cell with custom height"),this.customHeight=-1),this.__s._$Ws$invalidate.apply(this,e)},didEnterPool:function(){var e=arguments;this.customHeight=-1,this.__s._$Yc$didEnterPool.apply(this,e)},__superMap:{_$Ws$invalidate:"invalidate",_$Yc$didEnterPool:"didEnterPool"}}),sizeForItem:function(e,t){var n=arguments,i=t.customHeight;return-1!==i?Se.a.create({height:i,width:e.viewportWidth}):this.__s._$fp$sizeForItem.apply(this,n)},__superMap:{_$fp$sizeForItem:"sizeForItem"}})},Ee=n(89),Te={staticMembers:{createCollection:function(e){return Ee.b.create(e)},updateCollection:function(e,t){e.beginBatchedChanges();for(var n=0,i=t.length;n<i;n++)t[n]!==e.objectAt(n)&&e.setIndex(n,t[n]);t.length!==e.length&&(e.length=t.length),e.endBatchedChanges()}}},De=n(395),Le=(n(481),n(0),n(482),{headerViewClass:Object(c.b)(),footerViewClass:Object(c.b)(),itemViewDidMove:function(e,t){var n=arguments;"header"===t.cellType&&(e.isFloatingToTop=t.isFloatingToTop,e.element.style.clip="rect("+t.clipTop+"px auto auto auto)"),this.__s._$EI$itemViewDidMove.apply(this,n)},viewClassKeysByCellType:Object(Ae.b)({header:"headerViewClass",footer:"footerViewClass"}),__superMap:{_$EI$itemViewDidMove:"itemViewDidMove"}}),Ne={layoutDelegate:Object(Ae.b)(De.a),presenter:Object(c.b)({defaultValue:Object(Ae.b)(Le),downstreamBindings:{headerViewClass:"(owner).headerViewClass",footerViewClass:"(owner).footerViewClass"}}),_updateWhenContentsChange:Object(p.g)({inputs:["collection.contentsDidChange","collection._sectionsProxy.contentsDidChange","collection.sectionLengthsDidChange","collection._invalidateCacheOnSectionsContentsChange","collection.invalidateSectionLengthsOnContentsChange","collection._invalidateCacheOnSectionsChange","collection.handleProvider.handlesDidUpdate","collection._sectionsProxy.handleProvider.handlesDidUpdate","collection._sourceDidChange","collection._sectionsProxy._sourceDidChange"],callback:function(e,t,n,i,r,a,o,s,c){if(e||t||n||c){var l=e&&e.context,u=t&&t.context,d=n&&n.context,h=!!c;this.update(re.a.create({itemsChanges:l,sectionsChanges:u,invalidSections:d,collectionChanged:h,everythingChanged:!(l||u||d||h)}))}}}),headerViewClass:Object(c.b)(Ie),footerViewClass:Object(c.b)(Ce)},Me=n(824),Pe=n(856),xe=n(85),Re=n(887),je={mixinDependencies:[Re.a],nextSibling:Pe.a.define(),hasNextSibling:Pe.a.define(),previousSibling:Object(xe.c)(Pe.a),hasPreviousSibling:Object(xe.c)(Pe.a),parent:Object(xe.c)(Pe.a),hasParent:Object(xe.c)(Pe.a),firstChild:Object(xe.c)(Pe.a),hasFirstChild:Object(xe.c)(Pe.a),lastChild:Object(xe.c)(Pe.a),hasLastChild:Object(xe.c)(Pe.a)},Fe=d.a.extend(Me.a,je,{initFromPool:function(e,t,n,i,r){this._delegate=n,this._position=r,this._offset=i,this._wasRemoved=!1,this.__s._$8c$initFromPool.call(this,e,t)},encodedValue:Object(B.d)(),isRoot:Object(B.d)({readOnly:!0,defaultValue:!0}),parent:Object(B.d)({get:function(){return this.constructor.create(this.source,this._provider,this._delegate,this._offset-1,this._position)}}),hasParent:Object(B.d)({readOnly:!0,defaultValue:!1}),isValid:Object(B.d)({get:function(){return this._provider.sourceHasRootNode&&0===this._offset&&0===this._position}}),wasRemoved:Object(B.d)({readOnly:!0,defaultValue:!1}),previous:Object(B.d)({get:function(){var e=this;for(e=e.previousSibling;e.hasLastChild;)e=e.lastChild;return e}}),hasPrevious:Object(B.d)({get:function(){return 1===this._position&&0===this._offset||this.hasLastChild}}),next:Object(B.d)({get:function(){return this.firstChild}}),hasNext:Object(B.d)({get:function(){return-1===this._position&&0===this._offset||this.hasFirstChild}}),atDistance:function(e){for(var t=this;e>0;)t=t.next,e--;for(;e<0;)t=t.previous,e++;return t},hasHandleAtDistance:function(e){for(var t=this;e>0;)t=t.next,e--;for(;e<0;)t=t.previous,e++;return t.isValid},nextSibling:Object(B.d)({readOnly:!0,get:function(){return this.constructor.create(this.source,this._provider,this._delegate,this._offset,this._position+1)}}),hasNextSibling:Object(B.d)({readOnly:!0,defaultValue:!1}),previousSibling:Object(B.d)({readOnly:!0,get:function(){return this.constructor.create(this.source,this._provider,this._delegate,this._offset,this._position-1)}}),hasPreviousSibling:Object(B.d)({readOnly:!0,defaultValue:!1}),firstChild:Object(B.d)({get:function(){var e=this._provider,t=this.source.source.startHandle;return this.hasFirstChild?e.atNode(t,this):e.atNode(t,this,this._offset+1)}}),hasFirstChild:Object(B.d)({get:function(){var e=this.source.source;return 0===this._offset&&0===this._position&&e&&e.length>0}}),lastChild:Object(B.d)({get:function(){var e=this._provider,t=this.source.source.startHandle.end;return this.hasLastChild?e.atNode(t,this):e.atNode(t,this,this._offset+1)}}),hasLastChild:Object(B.d)({get:function(){var e=this.source.source;return 0===this._offset&&0===this._position&&e&&e.length>0}}),__superMap:{_$8c$initFromPool:"initFromPool"},staticMembers:{__QUALIFIED_CLASS_NAME__:"_RootNodeHandle"}}),Ve=d.a.extend(Me.a,je,{staticMembers:{RootTreeHandleClass:Fe,createWithRoot:function(e,t,n,i){return this.RootTreeHandleClass.create(e,t,n,i,0)},__QUALIFIED_CLASS_NAME__:"TreeHandle"},initFromPool:function(e,t,n,i,r,a){this._delegate=n,this._nodeHandle=i,this._parent=r.retain(),this._offset=a,this._wasRemoved=!1,this.__s._$1e4$initFromPool.call(this,e,t)},_offset:0,_nodeHandle:Object(B.d)({strong:!0}),value:Object(B.d)({get:function(){return 0===this._offset?this._nodeHandle.value:void 0},readOnly:!0}),encodedValue:Object(B.d)({get:function(){return 0===this._offset?this._nodeHandle.encodedValue:void 0},readOnly:!0}),isValid:Object(B.d)({get:function(){if(0!==this._offset)return!1;if(!this._nodeHandle.isValid)return!1;var e=this.parent;return!!e.isValid||!(!e.isRoot||this._provider.sourceHasRootNode)},readOnly:!0}),wasRemoved:Object(B.d)({get:function(){return!!this._wasRemoved||!!this._nodeHandle.wasRemoved||this.parent.wasRemoved}}),atDistance:function(e){for(var t=this;e>0;)t=t.next,e--;for(;e<0;)t=t.previous,e++;return t},hasHandleAtDistance:function(e){for(var t=this;e>0;)t=t.next,e--;for(;e<0;)t=t.previous,e++;return t.isValid},next:Object(B.d)({get:function(){if(this.hasFirstChild)return this.firstChild;for(var e=this;!e.hasNextSibling&&e.hasParent;)e=e.parent;return e.nextSibling}}),hasNext:Object(B.d)({get:function(){if(this.hasFirstChild)return!0;for(var e=this;!e.hasNextSibling&&e.hasParent;)e=e.parent;return e.hasNextSibling}}),previous:Object(B.d)({get:function(){if(this.hasPreviousSibling){var e=this;for(e=e.previousSibling;e.hasLastChild;)e=e.lastChild;return e}return this.parent}}),hasPrevious:Object(B.d)({get:function(){return!!this.hasPreviousSibling||!!this.hasLastChild||!!this.hasParent}}),nextSibling:Object(B.d)({get:function(){return 0!==this._offset?this:this._provider.atNode(this._nodeHandle.next,this.parent)}}),hasNextSibling:Object(B.d)({get:function(){return 0===this._offset&&this._nodeHandle.hasNext}}),previousSibling:Object(B.d)({get:function(){return 0!==this._offset?this:this._provider.atNode(this._nodeHandle.previous,this.parent)}}),hasPreviousSibling:Object(B.d)({get:function(){return 0===this._offset&&this._nodeHandle.hasPrevious}}),parent:Object(B.d)({readOnly:!0,strong:!0}),hasParent:Object(B.d)({get:function(){var e=this._offset;return!(1!==e||!this._nodeHandle.isValid)||0===e&&!(!this._provider.sourceHasRootNode&&this.parent.isRoot)}}),firstChild:Object(B.d)({get:function(){var e,t=this._nodeHandle,n=this._offset;return 0===n&&t.isValid&&(e=this._delegate.childrenForNode(t.value))&&e.length?t=e.startHandle:n++,this._provider.atNode(t,this,n)}}),hasFirstChild:Object(B.d)({get:function(){var e,t=this._nodeHandle;return 0===this._offset&&t.isValid&&(e=this._delegate.childrenForNode(t.value))&&e.length}}),lastChild:Object(B.d)({get:function(){var e,t=this._nodeHandle,n=this._offset;return 0===n&&t.isValid&&(e=this._delegate.childrenForNode(t.value))&&e.length?t=e.startHandle.end:n++,this._provider.atNode(t,this,n)}}),hasLastChild:Object(B.d)({get:function(){var e,t=this._nodeHandle;return 0===this._offset&&t.isValid&&(e=this._delegate.childrenForNode(t.value))&&e.length}}),isRoot:Object(B.d)({readOnly:!0,defaultValue:!1}),__superMap:{_$1e4$initFromPool:"initFromPool"}}),Ue=Ve.extend({delegate:Object(B.d)(),firstChild:Object(B.d)({get:function(){var e=this.isValid,t=this.delegate,n=this.value;if(e&&t.isItemExpanded(n))return this.__s._$BW$get.call(this);var i=this._provider,r=this._nodeHandle,a=this._offset;return i.atNode(r,this,a+1)},__superMap:{_$BW$get:"get"}}),hasFirstChild:Object(B.d)({get:function(){var e=this.isValid,t=this.delegate,n=this.value;return!(!e||!t.isItemExpanded(n))&&this.__s._$Hr$get.call(this)},__superMap:{_$Hr$get:"get"}}),lastChild:Object(B.d)({get:function(){var e=this.isValid,t=this.delegate,n=this.value;if(e&&t.isItemExpanded(n))return this.__s._$MO$get.call(this);var i=this._provider,r=this._nodeHandle,a=this._offset;return i.atNode(r,this,a+1)},__superMap:{_$MO$get:"get"}}),hasLastChild:Object(B.d)({get:function(){var e=this.isValid,t=this.delegate,n=this.value;return!(!e||!t.isItemExpanded(n))&&this.__s._$Si$get.call(this)},__superMap:{_$Si$get:"get"}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"OutlineHandle"}}),ke=n(86),Be=n(885),ze=Be.a.extend(p.b,{HandleClass:Ve,atNode:function(e,t,n){var i;return void 0===n&&(n=0),0===n&&(i=this.cachedHandleAt(e))?i:(i=this._createHandle(e,t,n),this._registerHandle(i),i.retain(this,"initial retain").autorelease(this,"initial retain"))},_previousSource:Object(B.d)({strong:!0}),handlesDidUpdate:Object(p.h)("source.source",function(e){var t,n,i,r,a=this._previousSource;if(a)for(n=a.length,t=0;t<n;t++)(i=a.handleProvider.cachedHandleAt(t))&&(r=this.cachedHandleAt(i))&&(r._wasRemoved=!0);if(e)for(n=e.length,t=0;t<n;t++)(i=e.handleProvider.cachedHandleAt(t))&&(r=this.cachedHandleAt(i))&&(r._wasRemoved=!1);this._previousSource=e}),rootHandle:Object(B.d)({get:function(){return this.atNode(this.source)}}),startHandle:Object(B.d)({get:function(){return this.sourceHasRootNode?this.rootHandle:this.rootHandle.firstChild}}),endHandle:Object(B.d)({get:function(){for(var e=this.rootHandle;e.hasLastChild;)e=e.lastChild;return e}}),_createHandle:function(e,t,n){var i=this.source,r=this.HandleClass,a=this.delegate;return e===i?r.createWithRoot(i,this,a,n):r.create(i,this,a,e,t,n)},cachedHandleAt:function(e){var t=this._handles.get(e);if(t)return t},sourceHasRootNode:!1,init:function(){var e=arguments;this.__s._$11K$init.apply(this,e),this.sourceHasRootNode=this.delegate.sourceHasRootNode(this.source)},_handles:Object(ke.c)(Map),_registerHandle:function(e){e.isValid&&(e.registerWeakReference(this,this._handleWasDisposed,e),this._handles.set(e._nodeHandle,e))},_handleWasDisposed:function(e){this._handles.delete(e._nodeHandle)},__superMap:{_$11K$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"TreeHandleProvider"}}),We=ze.extend({HandleClass:Ue,staticMembers:{__QUALIFIED_CLASS_NAME__:"OutlineHandleProvider"}}),He=n(94),$e=n(830),Ge={childrenKey:"children",childrenForNode:function(e,t){return e[this.childrenKey]},sourceHasRootNode:function(e){return!1}},Ke={mixinDependencies:[He.a,Ge],isItemExpandable:Object(xe.c)($e.a),isItemExpanded:Object(xe.c)($e.a),itemWasExpanded:Object(xe.c)($e.a),itemWasCollapsed:Object(xe.c)($e.a),itemWasRemoved:Object(xe.c)($e.a)},Qe=n(79),qe=n(828),Ye=n(87),Xe=Ee.b.extend({source:Object(c.b)(),serializer:Object(Ye.c)("source.serializer"),transformChangeset:null,staticMembers:{init:function(){var e=arguments;this.__s._$Pw$init.apply(this,e);var t=this.prototype.getMetadata("source").reference;t===Qe.c?Object(o.b)("ObservableArrayProxy may not have a weak reference to its source.",this):this.prototype._sourceIsStrongRef=t===Qe.a},__superMap:{_$Pw$init:"init"},__QUALIFIED_CLASS_NAME__:"ObservableArrayProxy"},_sourceIsStrongRef:!1,shouldDoPostInitProcessing:!1,_sourceDidChange:Object(p.h)("source",function(e){e&&!Object(qe.a)(e,Ee.b)&&Object(o.b)("Only a CW.ObservableArray can be used as the source for an observable array proxy.",{source:e});var t=this._sourceIsStrongRef;t&&e&&e.retain("ObservableArrayProxy cache reference");var n=this._lastSetSource,i=!!n&&!!n.get("length"),r=!!e&&!!e.get("length");if(this._lastSetSource=e,i||r){var a,s,c,l=this.get("_sourceChanges");if(n)for(s=(a=n.get("length"))-1;s>=0;s--)c=n.encodedObjectAt(s),l.recordRemoval(s,c);if(e)for(a=e.get("length"),s=0;s<a;s++)c=e.encodedObjectAt(s),l.recordInsertion(s,c);Je(this,l),l.clear(),t&&n&&n.release("ObservableArrayProxy cache reference")}}),_sourceChanges:Object(B.d)(function(){return new Ee.a(this)}),_lastSetSource:null,_sourceContentsDidChange:Object(p.h)("source.contentsDidChange",function(e){e&&Je(this,e.context)}),dispose:function(){var e=arguments;if(this._sourceIsStrongRef){var t=this._lastSetSource;t&&t.release("ObservableArrayProxy cache reference")}this._lastSetSource=null,this.__s._$1o6$dispose.apply(this,e)},__superMap:{_$1o6$dispose:"dispose"}});function Je(e,t){var n,i=!1;e.transformChangeset&&(n=e.transformChangeset(t))&&n!==t&&(i=!0,t=n),t.applyChanges(e),i&&t.clear()}var Ze=n(883),et=Xe.extend({HandleProviderClass:ze,handleProviderDelegate:Object(ke.c)(d.a.extend(Ge)),encodedHandleFor:function(e){return Ze.a.encodedHandleFor.call(this,e)},staticMembers:{__QUALIFIED_CLASS_NAME__:"TreeArrayProxy"}}),tt=et.extend({HandleProviderClass:We,staticMembers:{__QUALIFIED_CLASS_NAME__:"OutlineRootArrayProxy"}}),nt=n(899),it=(n(0),ye.a.extend(nt.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"svg",children:[{type:"ELEMENT",tagname:"polygon",namespace:"http://www.w3.org/2000/svg",attributes:{points:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"_points",attributes:{},attribute:"points"}}}],name:"_svg",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isExpanded",truevalue:"is-expanded",falsevalue:"is-collapsed",attributes:{}}],namespace:"http://www.w3.org/2000/svg",attributes:{width:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"width",attributes:{},attribute:"width"},height:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"height",attributes:{},attribute:"height"},"pointer-events":"none",version:"1.1",xlink:"http://www.w3.org/1999/xlink"}}]}},className:"cw-ui-collections-toggle-view",__QUALIFIED_CLASS_NAME__:"OutlineToggleView"},_points:Object(c.b)({readOnly:!0,dependencies:["height","width"],get:Object.assign(function(){var e=this.width;return rt(0,0,e,0,e/2,this.height)},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[1+n]);return rt(0,0,r,0,r/2,i.internalGet(this,t[0+n]))}})}),height:Object(c.b)(7),width:Object(c.b)(10),content:Object(c.b)(),isExpanded:Object(c.b)(!1),context:Object(Ye.c)("content"),action:Object(c.b)({readOnly:!0,dependencies:["isExpanded"],get:Object.assign(function(){return this.isExpanded?"__spi__userDidRequestItemCollapse":"__spi__userDidRequestItemExpand"},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?"__spi__userDidRequestItemCollapse":"__spi__userDidRequestItemExpand"}})}),_heightWidthObserver:Object(p.h)("height","width",function(){var e=this.height,t=this.width;this._svg.setAttribute("viewBox","0 0 "+t+" "+e)})}));function rt(e,t,n,i,r,a){return e+","+t+" "+n+","+i+" "+r+","+a}n(0),n(18);var at=we.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"toggleView"},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"contentView"}],classes:["outline-item-content-view"]}],classes:["outline-item-container"]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"_outlineLevelClassname",attributes:{}}]}},className:"cw-ui-collections-outline-expandable-item-view",__QUALIFIED_CLASS_NAME__:"OutlineExpandableItemView"},toggleView:Object(c.b)({defaultValue:Object(ke.c)(it),downstreamBindings:{isExpanded:"(owner).isExpanded",content:"(owner).content"}}),_outlineLevelClassname:Object(c.b)({readOnly:!0,dependencies:["level"],get:Object.assign(function(){return"outline-level-"+this.level},{__CW__getter:function(e,t,n,i){return"outline-level-"+i.internalGet(this,t[0+n])}})}),level:Object(c.b)(0),isExpanded:Object(c.b)(!1),isExpandable:Object(c.b)(!0),content:Object(c.b)(),contentView:Object(c.b)({defaultValue:Object(ke.c)(ye.a),downstreamBindings:{content:"(owner).content"}})}),ot=(n(0),n(18),we.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"contentView"}],classes:["outline-item-container"]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"_outlineLevelClassname",attributes:{}}]}},className:"cw-ui-collections-outline-non-expandable-item-view",__QUALIFIED_CLASS_NAME__:"OutlineNonExpandableItemView"},_outlineLevelClassname:Object(c.b)({readOnly:!0,dependencies:["level"],get:Object.assign(function(){return"outline-level-"+this.level},{__CW__getter:function(e,t,n,i){return"outline-level-"+i.internalGet(this,t[0+n])}})}),level:Object(c.b)(0),isExpandable:Object(c.b)(!1),content:Object(c.b)(),contentView:Object(c.b)({defaultValue:Object(ke.c)(ye.a),downstreamBindings:{content:"(owner).content"}})})),st=d.a.extend(Ke,p.b,{_expandedItems:Object(c.b)(Object(ke.c)(Set)),childrenKey:Object(c.b)(),isItemExpandable:function(e){var t=this.childrenKey;return e[t]&&e[t].length>0},isItemExpanded:function(e){return this._expandedItems.has(e)},itemWasExpanded:function(e){this._expandedItems.add(e)},itemWasCollapsed:function(e){this._expandedItems.delete(e)},itemWasRemoved:function(e){this._expandedItems.delete(e)},staticMembers:{__QUALIFIED_CLASS_NAME__:"OutlineViewExpansionDelegate"}}),ct=(n(0),ue.a.extend({expandableItemViewClass:Object(c.b)(ye.a),nonExpandableItemViewClass:Object(c.b)(ye.a),delegate:Object(c.b)(),itemViewClassForItem:function(e){var t=e.handle.value;return this.delegate.isItemExpandable(t)?this.expandableItemViewClass:this.nonExpandableItemViewClass},itemViewDidEnter:function(e,t){var n=arguments;this.__s._$Ne$itemViewDidEnter.apply(this,n);var i=t.handle,r=this._levelForHandle(i);e.set("level",r);var a=t.handle.value;this._setUpViewProperties(e,a)},itemViewDidMove:function(e,t){var n=arguments;this.__s._$S0$itemViewDidMove.apply(this,n);var i=t.handle,r=this._levelForHandle(i);e.set("level",r);var a=t.handle.value;this._setUpViewProperties(e,a)},_setUpViewProperties:function(e,t){var n=this.delegate;n.isItemExpandable(t)?(e.set("isExpandable",!0),n.isItemExpanded(t)?e.set("isExpanded",!0):e.set("isExpanded",!1)):(e.set("isExpandable",!1),e.set("isExpanded",!1))},_levelForHandle:function(e){for(var t=-1;e.isValid;)e=e.parent,t++;return t},__superMap:{_$Ne$itemViewDidEnter:"itemViewDidEnter",_$S0$itemViewDidMove:"itemViewDidMove"},staticMembers:{__QUALIFIED_CLASS_NAME__:"OutlineViewPresenter"}})),lt=(n(0),n(12),n(18),n(17),ge.a.extend({expandableItemViewClass:Object(c.b)({readOnly:!0,defaultValue:at}),nonExpandableItemViewClass:Object(c.b)({readOnly:!0,defaultValue:ot}),delegate:Object(c.b)({defaultValue:Object(ke.c)(st),downstreamBindings:{childrenKey:"(owner).childrenKey"}}),isItemExpandable:function(e){return this.delegate.isItemExpandable(e)},isItemExpanded:function(e){return this.delegate.isItemExpanded(e)},expandItem:function(e){this.delegate.itemWasExpanded(e),this.update()},collapseItem:function(e){this.delegate.itemWasCollapsed(e),this.update()},childrenKey:Object(c.b)("children"),collection:Object(c.b)({downstreamBindings:{handleProviderDelegate:"(owner).delegate"}}),layoutDelegate:Object(ke.c)(me.a),presenter:Object(c.b)({defaultValue:Object(ke.c)(ct),downstreamBindings:{expandableItemViewClass:"(owner).expandableItemViewClass",nonExpandableItemViewClass:"(owner).nonExpandableItemViewClass",delegate:"(owner).delegate"}}),__spi__userDidRequestItemExpand:function(e){return this.expandItem(e),!0},__spi__userDidRequestItemCollapse:function(e){return this.collapseItem(e),!0},staticMembers:{__QUALIFIED_CLASS_NAME__:"OutlineViewController"}})),ut=n(888),dt={mixinDependencies:[He.a,ut.a],firstItem:Pe.a.define(),lastItem:Pe.a.define()},ht=n(880),pt={mixinDependencies:[He.a],sections:ht.a.define()},ft={mixinDependencies:[He.a,ut.a],sectionHandle:Pe.a.define()},mt=n(855),gt=n(839),bt=n(821);function vt(e){return this._provider._proxyHandle(e)}var _t={previous:vt,next:vt,start:vt,end:vt,atDistance:vt},yt=(Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e})({mixinDependencies:[p.b,Re.a]},function(e,t,n){var i={},r=[e],a=new Set;i[t]=Object(c.b)({strong:!0});for(var s=void 0;s=r.shift();){var l=function(e,l){if("mixinDependencies"===e&&r.unshift.apply(r,l),e===t&&Object(o.b)("proxyKey collision proxying "+e+" on "+s),a.has(e))return"continue";var u=n[e]||gt.a;Object(qe.a)(l,$e.a)?i[e]=function(){var n;return u.call(this,(n=this[t])[e].apply(n,arguments))}:Object(qe.a)(l,Pe.a)?i[e]=Object(B.d)({get:function(){return u.call(this,this[t][e])},set:function(n){return this[t][e]=n}}):Object(qe.a)(l,ht.a)?(Object(o.b)("unable to generate proxy on "+e+" of observable property "+l.toString()),i[e]=Object(c.b)({dependencies:["proxyKey."+e],get:function(){return u.call(this,this[t][e])},set:function(n){return this[t][e]=n}})):Object(qe.a)(l,He.b)?Object(o.b)("unable to generate proxy on "+e+" of "+l.toString()):a.add(e)},u=Object.entries(s),d=Array.isArray(u),h=0;for(u=d?u:u[Symbol.iterator]();;){var p;if(d){if(h>=u.length)break;p=u[h++]}else{if((h=u.next()).done)break;p=h.value}var f=p;l(f[0],f[1])}}return i}(Re.a,"proxiedHandle",_t),{init:function(e,t,n){this.proxiedHandle=n,this.__s._$yY$init.call(this,e,t)},__superMap:{_$yY$init:"init"}}),Ct=d.a.extend(yt,dt,{firstItem:Object(B.d)({get:function(){var e=this._provider.source._itemSource;return e.handleProvider._proxyHandle(e.firstItemInSection(this.proxiedHandle))}}),lastItem:Object(B.d)({get:function(){var e=this._provider.source._itemSource;return e.handleProvider._proxyHandle(e.lastItemInSection(this.proxiedHandle))}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ListSectionHandle"}}),It=d.a.extend(yt,ft,{sectionHandle:Object(B.d)({get:function(){return this._provider.source._sectionsProxy.handleProvider._proxyHandle(this.source.sectionForNode(this.proxiedHandle))}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"SectionedListHandle"}}),wt=Be.a.extend(p.b,{endHandle:Object(B.d)({get:function(){return this._proxyHandle(this.proxiedHandleProvider.endHandle)}}),startHandle:Object(B.d)({get:function(){return this._proxyHandle(this.proxiedHandleProvider.startHandle)}}),HandleClass:null,at:function(){var e;return this._proxyHandle((e=this.proxiedHandleProvider).at.apply(e,arguments))},_proxyHandle:function(e){var t=this._handleMap,n=t.get(e);if(n)return n;var i=this.source,r=this.HandleClass.create(i,this,e);return t.set(e,r),r.registerWeakReference(this,this._handleWasDisposed,r),r},_handleWasDisposed:function(e){this._handleMap.delete(e.proxiedHandle)},_handleMap:Object(ke.c)(Map),proxiedHandleProvider:Object(c.b)({dependencies:["source.source.handleProvider"],readOnly:!0,get:Object.assign(function(){return this.source.source.handleProvider},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])}})}),handlesDidUpdate:Object(p.g)("source.source",bt.a),staticMembers:{__QUALIFIED_CLASS_NAME__:"ListProxyHandleProvider"}}),St=d.a.extend(p.b,mt.a,Ze.a,{HandleProviderClass:wt,source:Object(c.b)({strong:!0}),contentsDidChange:Object(p.g)("source",bt.a),contentsDidChangeUntracked:Object(p.g)("source",bt.a),_sourceDidChange:Object(p.g)("source",bt.a),iteratorClass:Object(B.d)({get:function(){return this.source.iteratorClass}}),length:Object(B.d)({get:function(){return this.source.length}}),encodedAdd:function(){var e;return(e=this.source).encodedAdd.apply(e,arguments)},encodedRemove:function(){var e;return(e=this.source).encodedAdd.apply(e,arguments)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ListProxy"}}),At=St.extend(pt,{sectionForNode:$e.a.define(),firstItemInSection:$e.a.define(),lastItemInSection:$e.a.define(),sections:Object(c.b)({strong:!0}),_sectionsProxy:Object(c.b)({strong:!0,defaultValue:Object(ke.c)(St.extend({HandleProviderClass:Object(Ae.b)({HandleClass:Ct}),_itemSource:Object(c.b)()})),downstreamBindings:{source:"(owner).sections",_itemSource:"(owner)"}}),HandleProviderClass:Object(Ae.b)({HandleClass:It}),sectionLengthsDidChange:Object(p.i)(),_invalidateCacheOnSectionsChange:Object(p.i)(),invalidateSectionLengthsOnContentsChange:Object(p.i)(),_invalidateCacheOnSectionsContentsChange:Object(p.i)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"SectionedListAdapter"}}),Ot=n(886),Et=n(884),Tt=n(936),Dt=Ot.a.extend(ft,{_cachedSectionHandle:Object(B.d)({strong:!0}),sectionHandle:Object(B.d)({readOnly:!0,get:function(){var e=this._cachedSectionHandle;if(e)return e;var t=this.position,n=this.source._sectionsProxy.handleProvider;if(!this.isValid)return n.at(-1);var i=this.source,r=i.sections.binarySearch(Ut,i,t),a=n.at(r);return a._registerCache(this),this._cachedSectionHandle=a,a}}),_clearSectionCache:function(){var e=this._cachedSectionHandle;e&&(e._unregisterCache(this),this._cachedSectionHandle=null)},_sectionDidChange:function(){this._cachedSectionHandle=null},_applyRemove:function(){var e=arguments;this.__s._$bb$_applyRemove.apply(this,e),this.wasRemoved?this._cachedSectionHandle=this.sectionHandle:this._clearSectionCache()},_applyInsert:function(){var e=arguments;this.__s._$ha$_applyInsert.apply(this,e),this.wasRemoved?this._cachedSectionHandle=this.sectionHandle:this._clearSectionCache()},cleanup:function(){this._clearSectionCache(),this.__s._$o7$cleanup.call(this)},__superMap:{_$bb$_applyRemove:"_applyRemove",_$ha$_applyInsert:"_applyInsert",_$o7$cleanup:"cleanup"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SectionedCollectionHandle"}}),Lt=Et.a.extend({HandleClass:Dt,staticMembers:{__QUALIFIED_CLASS_NAME__:"SectionedCollectionHandleProvider"}});function Nt(e){e._sectionDidChange()}var Mt=Ot.a.extend(dt,{_handleCache:Object(ke.c)(Set),_registerCache:function(e){this._handleCache.add(e)},_unregisterCache:function(e){this._handleCache.delete(e)},_flushCaches:function(){var e=this._handleCache;e.forEach(Nt),e.clear()},_handleRemove:function(){this._flushCaches()},cleanup:function(){this._flushCaches(),this.__s._$10d$cleanup.call(this)},_invalidItem:function(){var e=this.source.adapter.handleProvider.at(-1);return e._cachedSectionHandle=this,e},firstItem:Object(B.d)({readOnly:!0,get:function(){var e=this.source.adapter;if(!this.isValid)return this._invalidItem();var t=e._indicesForSection(this.value,this.position);return t.endIndex<t.startIndex?this._invalidItem():e.handleProvider.at(t.startIndex)}}),lastItem:Object(B.d)({readOnly:!0,get:function(){var e=this.source.adapter;if(!this.isValid)return this._invalidItem();var t=e._indicesForSection(this.value,this.position);return t.endIndex<t.startIndex?this._invalidItem():e.handleProvider.at(t.endIndex)}}),__superMap:{_$10d$cleanup:"cleanup"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SectionHandle"}}),Pt=Et.a.extend({HandleClass:Mt,staticMembers:{__QUALIFIED_CLASS_NAME__:"SectionHandleProvider"}}),xt=[];function Rt(e){xt.push(e)}var jt=Xe.extend({HandleProviderClass:Pt,adapter:Object(c.b)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"UnsafeSectionsProxy"}}),Ft=jt.extend({source:Object(c.b)({strong:!0}),staticMembers:{__QUALIFIED_CLASS_NAME__:"StrongSectionsProxy"}}),Vt=Ee.b.extend(pt,{staticMembers:{init:function(){var e=arguments;this.__s._$1ew$init.apply(this,e);var t=this.prototype,n=t.getMetadata("source").reference;n===Qe.c?Object(o.b)("SectionedOrderedListAdapter may not have a weak reference to its source.",this):t._sourceIsStrongRef=n===Qe.a;var i=t.getMetadata("sections").reference;i===Qe.c?Object(o.b)("SectionedOrderedListAdapter may not have a weak reference to its sections.",this):t._sectionsProxy=i===Qe.a?Ft:jt},__superMap:{_$1ew$init:"init"},__QUALIFIED_CLASS_NAME__:"SectionedOrderedListAdapter"},source:Object(c.b)(),objectAt:function(){var e=this.source;if(e)return e.objectAt.apply(e,arguments)},encodedObjectAt:function(){var e=this.source;if(e&&e.length)return e.encodedObjectAt.apply(e,arguments)},rawSplice:function(){var e=this.source;return e.rawSplice.apply(e,arguments)},_internalLength:Object(c.b)({get:function(){return this.source._internalLength}}),length:Object(c.b)({dependencies:[],writeDependencies:["source.length"],get:function(){var e=this.source;return e?e.length:0},set:Object.assign(function(e){return this.source.length=e,e},{__CW__setter:function(e,t,n,i,r){return n[0+i]=e,e}}),writeDependencySetPathMap:["true"]}),shallowCopy:function(){var e=this.source;return e?e.shallowCopy.apply(e,arguments):null},toJSON:function(){var e=this.source;return e?e.toJSON.apply(e,arguments):[]},push:function(){var e=this.source;return e.push.apply(e,arguments)},indexOf:function(){var e=this.source;return e?e.indexOf.apply(e,arguments):-1},serializer:Object(Ye.c)("source.serializer"),_proxyContentsDidChange:Object(p.g)("source.contentsDidChange",function(e){this.itemsWillChange();for(var t=this.changes,n=e.context,i=n.length,r=0;r<i;r++){var a=n[r],o=a.operation,s=a.index,c=a.encodedItem;o===Ee.b.REMOVE?t.recordRemoval(s,c):t.recordInsertion(s,c)}this.itemsDidChange()}),_lastSetSource:null,_sourceIsStrongRef:!1,_sourceDidChange:Object(p.h)("source",function(e){e&&!Object(qe.a)(e,Ee.b)&&Object(o.b)("Only a CW.ObservableArray can be used as the source for an observable array proxy.",{source:e}),e=e||null;var t=this._sourceIsStrongRef;t&&e&&e.retain(this,"SectionedOrderedListAdapter cache reference");var n=this._lastSetSource;if(e!==n){var i=!!n&&!!n.length,r=!!e&&!!e.length;if(this._lastSetSource=e,i||r){this.itemsWillChange();var a,s,c,l=this.changes;if(n)for(s=(a=n.length)-1;s>=0;s--)c=n.encodedObjectAt(s),l.recordRemoval(s,c);if(e)for(a=e.length,s=0;s<a;s++)c=e.encodedObjectAt(s),l.recordInsertion(s,c);this.itemsDidChange(),t&&n&&n.release(this,"SectionedOrderedListAdapter cache reference")}}}),HandleProviderClass:Lt,sections:Object(c.b)(),_sectionsProxy:Object(c.b)({downstreamBindings:{source:"(owner).sections",adapter:"(owner)"},strong:!0,defaultValue:Object(ke.c)(jt)}),_invalidateCacheOnSectionsChange:Object(p.h)("sections",function(e){for(var t=this._sectionIndexCache,n=0,i=t.length;n<i;n++){var r=t[n];r&&Rt(r)}t.length=0}),beginBatchedChanges:function(){var e=arguments;this._sectionsProxy.beginBatchedChanges(),this.__s._$42Y$beginBatchedChanges.apply(this,e)},endBatchedChanges:function(){var e=arguments;b.a.pause(),this._sectionsProxy.endBatchedChanges(),this.__s._$460$endBatchedChanges.apply(this,e),this.notifySectionLengthChangedIfNecessary(),b.a.resume()},invalidateSectionLengthsOnContentsChange:Object(p.g)({inputs:["contentsDidChange","_sectionsProxy.handleProvider.handlesDidUpdate","_sectionsProxy.contentsDidChange"],callback:function(e){e&&this.invalidateSectionLengths()}}),invalidateSectionLengths:function(){if(!this.invalidateSectionLengthsFiring){this.invalidateSectionLengthsFiring=!0;for(var e=this._sectionIndexCache,t=this._sectionsProxy,n=t.length,i=t.handleProvider,r=0;r<n;r++)this._invalidateSection(r,i,e),this._sectionLengthChanges.add(i.at(r).retain());this.invalidateSectionLengthsFiring=!1}},_invalidateCacheOnSectionsContentsChange:Object(p.g)("_sectionsProxy.contentsDidChange","_sectionsProxy.handleProvider.handlesDidUpdate",function(e){if(e&&!this._invalidateCacheOnSectionsContentsChangeFiring){this._invalidateCacheOnSectionsContentsChangeFiring=!0;for(var t=this._sectionIndexCache,n=this._sectionsProxy,i=n.length,r=n.handleProvider,a=0;a<i;a++)this._invalidateSection(a,r,t),this._sectionLengthChanges.add(r.at(a).retain());this.notifySectionLengthChangedIfNecessary(),this._invalidateCacheOnSectionsContentsChangeFiring=!1}}),_invalidateSection:function(e,t,n){var i=t.cachedHandleAt(e);i&&(i.retain(),i._flushCaches(),i.release());var r=n[e];r&&(Rt(r),n[e]=void 0)},sectionLength:$e.a.define(),sectionLengthChanged:function(e,t){var n=this.sections;void 0===t&&(t=n.indexOf(e));for(var i=this._sectionIndexCache,r=n.length,a=this._sectionsProxy.handleProvider,o=t;o<r;o++)this._invalidateSection(o,a,i);this._sectionLengthChanges.add(a.at(t).retain()),this.notifySectionLengthChangedIfNecessary()},notifySectionLengthChangedIfNecessary:function(){if(0===this._batchCount){var e=this._sectionLengthChanges;e.length&&!b.a.nodeIsDirty(this.downstreamNodes.sectionLengthsDidChange)&&this.sectionLengthsDidChange(e)}},_sectionLengthChanges:Object(B.d)({strong:!0,defaultValue:Object(ke.c)(Tt.a)}),_sectionIndexCache:Object(ke.c)(Array),_indicesForSection:function(e,t,n){n||(n=this._sectionIndexCache);var i,r=n[t];if(void 0!==r)return r;if(r=xt.pop()||{},0===t)i=0;else{var a=t-1;i=this._indicesForSection(this.sections.objectAt(a),a,n).endIndex+1}return r.startIndex=i,r.endIndex=i+this.sectionLength(e)-1,n[t]=r,r},sectionLengthsDidChange:Object(p.i)({didPropagate:function(){this._sectionLengthChanges.forEach(function(e){e.release()}),this._sectionLengthChanges.clear()}}),dispose:function(){var e=arguments;if(this._sourceIsStrongRef){var t=this._lastSetSource;t&&t.release(this,"SectionedOrderedListAdapter cache reference")}this._lastSetSource=null,this.__s._$5vI$dispose.apply(this,e)},__superMap:{_$42Y$beginBatchedChanges:"beginBatchedChanges",_$460$endBatchedChanges:"endBatchedChanges",_$5vI$dispose:"dispose"}});function Ut(e,t,n,i){var r=n._indicesForSection(e,t),a=r.startIndex,o=r.endIndex;return i<a?-1:i>o?1:0}var kt=n(397),Bt=kt.a.extend({_removedItems:Object(c.b)({strong:!0,defaultValue:Object(ke.c)(Tt.a),downstreamBindings:{serializer:"(owner).collection.serializer"}}),_updateActualSelectionSerializer:Object(p.h)("selection.serializer",function(e){this._selection.serializer=e}),_selection:null,selection:Object(c.b)({strong:!0,writeDependencies:["selectionDidChange","pivot"],downstreamBindings:{serializer:"(owner).collection.serializer"},defaultValue:Object(ke.c)(Tt.a),get:function(){var e=this._selection;if(e)return e.clone()},set:Object.assign(function(e){var t=this._selection,n=this.collection,i=this.getPath("collection.serializer");e?!t||e.serializer===t.serializer&&e.clone?e=e.clone():(t.clear(),e&&t.addEach(e),e=t):e=Tt.a.create({serializer:i});var r=Tt.a.create({serializer:i}),a=this.getPath("collection.length");if(!this.isEmptySelectionEnabled&&n&&a&&0===e.length)for(var o=n.startHandle;o.isValid&&!this.selectItemAtHandle(o,r);o=o.next);else for(var s=this.shouldStoreRemovedSelection,c=this.isMultipleSelectionEnabled,l=e.createIterator();l.isValid;l.moveToNext()){var u=l.encodedValue,d=n?n.encodedHandleFor(u).retain(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"):null,h=!1;if(d&&d.isValid?h=this.selectItemAtHandle(d,r):s&&r.encodedAdd(u),d&&d.release(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"),!c&&h)break}this._selection=r;var p=this._pivot,f=p;if((!p||!e.encodedContains(p.encodedValue))&&e.length>0)if(n){for(var m=e.createIterator(),g=void 0;m.isValid;)g=m.encodedValue,m.moveToNext();f=n.encodedHandleFor(g)}else f=null;return this.pivot=f,this.selectionDidChange=!0,e},{__CW__setter:function(e,t,n,i,r){var a=this._selection,o=this.collection,s=this.getPath("collection.serializer");e?!a||e.serializer===a.serializer&&e.clone?e=e.clone():(a.clear(),e&&a.addEach(e),e=a):e=Tt.a.create({serializer:s});var c=Tt.a.create({serializer:s}),l=this.getPath("collection.length");if(!this.isEmptySelectionEnabled&&o&&l&&0===e.length)for(var u=o.startHandle;u.isValid&&!this.selectItemAtHandle(u,c);u=u.next);else for(var d=this.shouldStoreRemovedSelection,h=this.isMultipleSelectionEnabled,p=e.createIterator();p.isValid;p.moveToNext()){var f=p.encodedValue,m=o?o.encodedHandleFor(f).retain(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"):null,g=!1;if(m&&m.isValid?g=this.selectItemAtHandle(m,c):d&&c.encodedAdd(f),m&&m.release(this,"IndexedSelectionController#selectedIndices: enforcing isMultipleSelectionEnabled"),!h&&g)break}this._selection=c;var b=this._pivot,v=b;if((!b||!e.encodedContains(b.encodedValue))&&e.length>0)if(o){for(var _=e.createIterator(),y=void 0;_.isValid;)y=_.encodedValue,_.moveToNext();v=o.encodedHandleFor(y)}else v=null;return n[1+i]=v,n[0+i]=!0,e}}),writeDependencySetPathMap:["false","false"]}),_maintainFlags:Object(p.h)({inputs:["delegate","isEmptySelectionEnabled","isMultipleSelectionEnabled"],callback:function(e){e&&(this.selection=this._selection)}}),shouldStoreRemovedSelection:Object(c.b)({readOnly:!0,defaultValue:!1}),updateSelectionForCollectionChange:function(e){if(!this.shouldStoreRemovedSelection){var t=this._selection,n=!1,i=e.itemsChanges;if(i){for(var r=this._removedItems,a=i.length,o=0;o<a;o++){var s=i[o],c=s.encodedItem;s.operation===Ee.b.REMOVE?(t.encodedContains(c)&&r.encodedAdd(c),t.encodedRemove(c)):r.encodedContains(c)&&(t.encodedAdd(c),r.encodedRemove(c))}r.length&&(n=!0,r.clear())}else if(e.collectionChanged)t.length&&(n=!0,t.clear());else if(e.everythingChanged&&t.length){var l=this.collection;t.clone().forEach(function(e){l.contains(e)||(t.remove(e),n=!0)})}0!==t.length||this.isEmptySelectionEnabled||(n=!0),n&&(this.selection=t)}},clearSelection:function(){this._selection.clear(),this.pivot=null},isItemAtHandleSelected:function(e){return this._selection.encodedContains(e.encodedValue)},selectItemAtHandle:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._selection,n=this.delegate;return!!n.selectionControllerShouldSelectItem(this,e)&&(t.encodedAdd(e.encodedValue),n.selectionControllerDidSelectItem(this,e),!0)},deselectItemAtHandle:function(e){var t=this._selection,n=null;if(t.encodedRemove(e.encodedValue),0!==t.length){var i=this.pivot;n=e===i?function(e,t){for(var n=e,i=e;n.isValid&&i.isValid;){if(n.isValid&&t(n=n.previous))return n;if(i.isValid&&t(i=i.next))return i}return n}(e,function(e){return t.encodedContains(e.encodedValue)}):i}return this.pivot=n,this.delegate.selectionControllerDidDeselectItem(this,e),!0},staticMembers:{__QUALIFIED_CLASS_NAME__:"IdentitySelectionController"}}),zt=n(554),Wt=n(555),Ht=n(396),$t=n(119),Gt=n(61),Kt=n(551),Qt=n(95),qt=n(822),Yt=Object(Qt.b)("STATUS",function(e){e("LOADED",function(e){e("RELOADING",function(e){e("QUEUED"),e("ACTIVE")})}),e("NOT_LOADED",function(e){e("LOADING",function(e){e("QUEUED"),e("ACTIVE")}),e("ERRORED"),e("MIXED_STATE")})}),Xt=Yt.LOADED,Jt=Yt.NOT_LOADED,Zt=Jt.LOADING,en=Jt.ERRORED,tn=Jt.MIXED_STATE,nn=Object(Qt.b)("ACTIONS",function(e){e("READ",function(e){e("LOAD"),e("LIST")}),e("WRITE",function(e){e("CREATE"),e("UPDATE"),e("DESTROY"),e("BULK")})}),rn=nn.READ,an=rn.LOAD,on=rn.LIST,sn=nn.WRITE,cn=sn.CREATE,ln=sn.UPDATE,un=sn.DESTROY,dn=sn.BULK,hn=[];function pn(){return hn}function fn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return hn=e}var mn={};function gn(e){if(void 0===mn[e])for(var t=0,n=hn.length;t<n;t++){var i=hn[t],r=Object(qt.a)(i);if(r===e){mn[r]=i;break}}return mn[e]}function bn(){return mn}function vn(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return mn=e}var _n=void 0;function yn(){return _n}function Cn(e){var t=_n;return e&&e.retain&&e.retain(),_n=e,t&&t.release&&t.release(),_n}function In(){Cn()}function wn(){In(),fn(),vn()}var Sn=n(858),An=n(928),On=n(100),En=n(96),Tn=n(889),Dn=n(181);function Ln(e,t,n){var i=void 0,r=void 0,a=void 0;if(e===t||!e&&!t)return!1;if(e&&!t)r=Object.keys(e);else if(!e&&t)a=Object.keys(t);else{var o=null,s=void 0;n&&(o=Object(Dn.a)(n));var c={},l=void 0,u=void 0,d=void 0,h=void 0;for(s in r=[],i=[],e)c[s]=!0,o&&o[s]||(l=Object.prototype.hasOwnProperty.call(e,s),u=e[s],d=Object.prototype.hasOwnProperty.call(t,s),h=t[s],!d&&l||void 0===h&&void 0!==u?r.push(s):Object(Tn.a)(u,h)||i.push(s));for(s in a=[],t)c[s]||a.push(s)}return!!(a&&0!==a.length||r&&0!==r.length||i&&0!==i.length)&&{updated:i||[],removed:r||[],added:a||[]}}var Nn=n(857),Mn=n(831),Pn=n(84),xn=Pn.a.extend({head:null,tail:null,length:0,insertBetween:function(e,t,n){return n&&t||Object(o.b)("_DoublyLinkedList: invalid insertion",{item:e,next:n,prev:t}),t._nextDoublyLinkedItem=e,e._previousDoublyLinkedItem=t,e._nextDoublyLinkedItem=n,e._owningDoublyLinkedList=this,n._previousDoublyLinkedItem=e,this.length++,e},remove:function(e){var t=e._previousDoublyLinkedItem,n=e._nextDoublyLinkedItem,i=this.head,r=this.tail;if(n&&t&&i&&r)return this.length--,e===i&&e===r?this.head=this.tail=null:(e===i?this.head=n:e===r&&(this.tail=t),n._previousDoublyLinkedItem=t,t._nextDoublyLinkedItem=n),e._nextDoublyLinkedItem=null,e._previousDoublyLinkedItem=null,e._owningDoublyLinkedList=null,e},push:function(e){return this.insertBetween(e,this.tail||e,this.head||e),this.tail=e,this.head||(this.head=e),this},pop:function(){return this.remove(this.tail)},unshift:function(e){return this.insertBetween(e,this.tail||e,this.head||e),this.head=e,this.tail||(this.tail=e),this},shift:function(){return this.remove(this.head)},staticMembers:{__QUALIFIED_CLASS_NAME__:"_DoublyLinkedList"}});xn.prototype.enqueue=xn.prototype.unshift,xn.prototype.dequeue=xn.prototype.pop;var Rn={mixinDependencies:[{_nextDoublyLinkedItem:null,_previousDoublyLinkedItem:null,_owningDoublyLinkedList:null}],staticMembers:{maxUnusedInstanceCount:200,shouldKeepInstanceAlive:function(e){return!0},shouldKeepFlushingCacheQueue:function(e){return e.length>this.maxUnusedInstanceCount},flushCacheQueue:function(){for(var e=this._keepaliveQueue;this.shouldKeepFlushingCacheQueue(e);){var t=e.dequeue();t._isInKeepaliveQueue=!1,t.release(this,Fn)}},_keepaliveQueue:null,init:function(){var e=arguments;this._keepaliveQueue=xn.create(),this.__s._$1qT$init.apply(this,e)},create:function(){var e=arguments,t=this.__s._$1xE$create.apply(this,e);return t.retain(this,jn),t},_enqueueInstanceForEviction:function(e){this.shouldKeepInstanceAlive(e)?(this._keepaliveQueue.enqueue(e),e.retain(this,Fn),e._isInKeepaliveQueue=!0,e.release(this,jn),this.flushCacheQueue()):e.release(this,jn)},_rescueInstanceFromEviction:function(e){return this._keepaliveQueue.remove(e),e._isInKeepaliveQueue=!1,e.retain(this,jn),e.release(this,Fn),e},__superMap:{_$1qT$init:"init",_$1xE$create:"create"}},_isInKeepaliveQueue:!1,retain:function(e,t){var n=arguments,i=this.__s._$2WC$retain.apply(this,n);return this._isInKeepaliveQueue&&e!==this.constructor&&t!==jn?this.constructor._rescueInstanceFromEviction(this):i},release:function(){var e=arguments,t=this.__s._$2hH$release.apply(this,e);return 1!==this._retainCount||this._isInKeepaliveQueue||this.constructor._enqueueInstanceForEviction(this),t},__superMap:{_$2WC$retain:"retain",_$2hH$release:"release"}},jn="CW._CacheableSupport self-reference: Not queued for eviction.",Fn="CW._CacheableSupport self-reference: queued for eviction.",Vn=Object(Qt.b)("STATUS",function(e){e("ACTIVE",function(e){e("QUEUED"),e("TRANSMITTING")}),e("IDLE")}),Un=Object(Qt.b)("LOAD_STATUS",function(e){e("NOT_LOADED"),e("LOADED"),e("ERRORED")}),kn=n(829),Bn=n(842),zn=n(905),Wn=n(865),Hn=n(838),$n=d.a.extend(p.b,Wn.a,{store:Object(c.b)(),modelClass:Object(c.b)(),encode:function(e){if(!Object(Hn.a)(e))return e;var t=this.store.constructor;return Object(qe.a)(e,ni)?t.getStoreIdForPrimaryKey(e.constructor,e.getPrimaryKey()):Object(a.a)(e)?t.getStoreIdForPrimaryKey(e.type,e.id):t.getStoreIdForPrimaryKey(this.modelClass,e)},decode:function(e){return Object(Hn.a)(e)?this.store.materializeModel(e):e},staticMembers:{__QUALIFIED_CLASS_NAME__:"ModelStoreIdSerializer"}}),Gn=Ee.b.extend(kn.a,{store:Object(B.d)(),modelClass:Object(B.d)(),loadObjectAt:function(e){var t=this.objectAt(e);return t?t.load():On.a.reject("No object at index: "+e)},loadAll:function(){for(var e=this,t=new Map,n=0,i=this.length;n<i;n++){var r=this.modelClassForObjectAt(n),a=t.get(r)||[];t.set(r,a),a.push(this.primaryKeyForObjectAt(n))}if(1===t.size){var o=t.entries().next().value,s=o[0],c=o[1];return s.load(c)}var l=[],u=t.entries(),d=Array.isArray(u),h=0;for(u=d?u:u[Symbol.iterator]();;){var p;if(d){if(h>=u.length)break;p=u[h++]}else{if((h=u.next()).done)break;p=h.value}var f=p,m=f[0],g=f[1];l.push(m.load(g))}return On.a.all(l).then(function(){return e})},storeIdForObjectAt:function(e){return this._array[e]},modelClassForObjectAt:function(e){var t=this.storeIdForObjectAt(e);return this.store.constructor.getModelClassForStoreId(t)},primaryKeyForObjectAt:function(e){var t=this.storeIdForObjectAt(e);return this.store.constructor.getPrimaryKeyForStoreId(t)},storeDataForObjectAt:function(e){var t=this.storeIdForObjectAt(e);return this.store.readData(t)},isObjectAtIndexMaterialized:function(e){var t=this.storeIdForObjectAt(e);return this.store.hasExistingModel(t)},storeIds:Object(c.b)({dependencies:["length"],readOnly:!0,get:function(){return Object(Bn.b)(this._array)}}),spliceStoreIds:function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];return this._array.splice.apply(this._array,arguments)},addEach:function(e){var t=arguments;if(!e||e.constructor!==Gn)return this.__s._$1cO$addEach.apply(this,t);if(this.constructor!==Gn)return this.__s._$1cO$addEach.apply(this,t);var n=e._array,i=this.length,r=n.length;this.itemsWillChange(),this.itemsWillBeInserted(i,r);var a=this._array;a.length+=r;for(var o=0;o<r;o++)a[o+i]=n[o];this.itemsWereInserted(i,r),this.itemsDidChange()},filter:function(e,t){e||Object(o.b)("CW.Data.ModelArray#filter: No filter function provided: %{modelArray}",{modelArray:this});var n=this.store;n||Object(o.b)("CW.Data.ModelArray#filter: Model arrays must be store backed to be filtered: %{modelArray}",{filterFunction:e,modelArray:this});for(var i=void 0,r=void 0,a=!0,s=[],c=0,l=this.length;c<l;c++){var u=this.storeIdForObjectAt(c),d=this.modelClassForObjectAt(c),h=this.store.getExistingModel(u),p=void 0;if(!h){p=(i=i||new Map).get(d);var f=this.storeDataForObjectAt(c);p||(p=d.create().retain(this,"filter: tempModel")),i.set(d,p),p.replaceData(f)}e.call(t,h||p,c,this)&&(s.push(u),r&&r!==d&&(a=!1),r=d)}if(i){var m=i.values(),g=Array.isArray(m),b=0;for(m=g?m:m[Symbol.iterator]();;){var v;if(g){if(b>=m.length)break;v=m[b++]}else{if((b=m.next()).done)break;v=b.value}v.release(this,"filter: tempModel")}}return this.constructor.createFromStoreIds(s,a?r:null,n)},clone:function(){return this.constructor.createFromStoreIds(this._array,this.modelClass,this.store)},serializer:Object(c.b)(function(){return $n.create({store:this.store,modelClass:this.modelClass})}),staticMembers:{createFromStoreIds:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments[1],n=arguments[2],i=this.create(void 0,t,n);return i._array=e.slice(),i},createFromIterable:function(e){var t=void 0,n=void 0,i=void 0,r=!0;if(Object(qe.a)(e,Gn))return e.clone();var a=e.map(function(e,a){var s=e._cwStore,c=e.constructor;i&&i!==c&&(r=!1),i=c,t=t||s,n=n||t.constructor,t!==s&&Object(o.b)("CW.Data.ModelArray.createFromIterable: Expected a model in "+t+" but found a model in "+s+" at index "+a);var l=e.getPrimaryKey();return n.getStoreIdForPrimaryKey(c,l)});return Array.isArray(a)||(a=a.toArray()),Object(zn.a)(a)&&Object(o.b)("CW.Data.ModelArray.createFromIterable: Cannot create from an empty iterable"),this.createFromStoreIds(a,r?i:null,t)},__QUALIFIED_CLASS_NAME__:"ModelArray"},init:function(e,t,n){this.modelClass=t,this.store=n||yn(),this.__s._$47l$init.call(this,e)},constructNewInstance:function(){return this.constructor.create([],this.modelClass,this.store)},indexOf:function(e){var t=this._array;return t?t.indexOf(e._cwStoreId):-1},__superMap:{_$1cO$addEach:"addEach",_$47l$init:"init"}}),Kn=n(853),Qn=Kn.a.extend({storeIds:Object(B.d)({readOnly:!0,get:function(){var e=this._storeIdsArray;if(!e){if(0===this.length)return;e=this._storeIdsArray=this.toArray().map(function(e){return e.storeId})}return e}}),models:Object(B.d)({readOnly:!0,get:function(){var e=this._modelArray;return e||(e=this._modelArray=Gn.createFromStoreIds(this.storeIds,null,yn())),e}}),operation:Object(B.d)({readOnly:!0,get:function(){var e=this.length;if(1===e)return this.objectAt(0).operation;if(e>1){var t=this._bulkOperation;return t||(t=this._bulkOperation={type:nn.WRITE.BULK,context:{changes:this}}),t}}}),merge:function(e){for(var t,n=e.createIterator().retain();t=n.value;)this.recordChange(t),n.moveToNext();return n.release(),this},recordChange:function(e){var t=e.storeId,n=this._changesByStoreId||(this._changesByStoreId={}),i=n[t];if(i>=0){var r=this.objectAt(i);this.setIndex(i,r.merge(e))}else this.push(e),n[t]=this.length-1,this._invalidateCaches();return e},getChangeForStoreId:function(e){var t=(this._changesByStoreId||(this._changesByStoreId={}))[e];if(t>=0)return this.objectAt(t)},removeChangeForStoreId:function(e){var t=this._changesByStoreId;if(t){var n=t[e];if(n>=0){var i=this.objectAt(n);for(var r in this.splice(n,1),delete t[e],this._invalidateCaches(),t){var a=t[r];a>n&&(t[r]=a-1)}return i}}},_modelArray:Object(B.d)({type:Gn}),_storeIdsArray:Object(B.d)({type:Array}),_invalidateCaches:function(){this._modelArray=null,this._storeIdsArray=null},staticMembers:{__QUALIFIED_CLASS_NAME__:"ChangeSet"}}),qn=d.a.extend({storeId:Object(B.d)({readOnly:!0}),originalData:Object(B.d)({readOnly:!0}),newData:Object(B.d)({readOnly:!0}),changeType:Object(B.d)({readOnly:!0,get:function(){var e=this._changeType;return e||(e=this.originalData?this.newData?nn.WRITE.UPDATE:nn.WRITE.DESTROY:nn.WRITE.CREATE,this._changeType=e),e}}),operation:Object(B.d)({readOnly:!0,get:function(){var e=this._operation;return e||(e=this._operation={type:this.modelClass,operation:{context:this,type:this.changeType}}),e}}),model:Object(B.d)({readOnly:!0,get:function(){return yn().materializeModel(this.storeId)}}),primaryKey:Object(B.d)({readOnly:!0,get:function(){return Yn.getPrimaryKeyForStoreId(this.storeId)}}),modelClass:Object(B.d)({readOnly:!0,get:function(){return Yn.getModelClassForStoreId(this.storeId)}}),diff:Object(B.d)({readOnly:!0,get:function(){return Ln(this.originalData,this.newData)}}),init:function(e,t,n,i){this.__s._$k5$init.call(this),this._storeId=e,this._originalData=t,this._newData=n,i&&(this._operation=i)},merge:function(e){return this.constructor.create(this.storeId,this.originalData,Object.assign(this.newData||{},e.newData))},reverse:function(){return this.constructor.create(this.storeId,Object.assign({},this.newData),Object.assign({},this.originalData))},__superMap:{_$k5$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DataChange"}}),Yn=d.a.extend(p.b,{staticMembers:{getStoreIdForPrimaryKey:function(e,t){return e||Object(o.b)("CW.Data.Store.getStoreIdForPrimaryKey: No model class provided.",{store:this}),t||Object(o.b)("CW.Data.Store.getStoreIdForPrimaryKey: No primary key provided.",{store:this,modelClass:e}),this.getPrimaryKeysToStoreIds(e)[t]||this.registerPrimaryKey(e,t)},setPrimaryKeyForStoreId:function(e,t){e||Object(o.b)("CW.Data.Store.setPrimaryKeyForStoreId: No storeId provided.",{store:this}),t||Object(o.b)("CW.Data.Store.setPrimaryKeyForStoreId: No primary key provided.",{store:this});var n=Yn.getModelClassForStoreId(e);n||Object(o.b)("CW.Data.Store.setPrimaryKeyForStoreId: No model class could be found for storeId: %{storeId}",{store:this,storeId:e}),this.registerPrimaryKey(n,t,e)},getModelClassForStoreId:function(e){return Yn.storeIdsToModelClass[e]},getPrimaryKeyForStoreId:function(e){return Yn.storeIdsToPrimaryKey[e]},getPrimaryKeysToStoreIds:function(e){var t=e.primaryKeysToStoreIds;if(!t){var n=this.modelClassToPrimaryKeysToStoreIds;(t=n.get(e))||(t={},n.set(e,t)),e.primaryKeysToStoreIds=t}return t},storeIdsToModelClass:{},storeIdsToPrimaryKey:{},modelClassToPrimaryKeysToStoreIds:new Map,resetStoreIds:function(){var e=this.storeIdsToModelClass,t=Object.values(e),n=Array.isArray(t),i=0;for(t=n?t:t[Symbol.iterator]();;){var r;if(n){if(i>=t.length)break;r=t[i++]}else{if((i=t.next()).done)break;r=i.value}r.primaryKeysToStoreIds=null}this.storeIdsToModelClass={},this.storeIdsToPrimaryKey={},this.modelClassToPrimaryKeysToStoreIds=new Map},registerPrimaryKey:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:++Jn,i=this.storeIdsToPrimaryKey,r=i[n];if(t===r)return n;var a=this.getPrimaryKeysToStoreIds(e);return a[t]=n,this.storeIdsToModelClass[n]=e,r&&delete a[r],i[n]=t,n},__QUALIFIED_CLASS_NAME__:"Store"},autocommit:!1,forkOnRead:!1,commit:function(){Object(o.b)("CW.Store#commit is not implemented. Only stores mixing in CW.DataManager may commit at this time.")},commitStoreIds:function(e){Object(o.b)("CW.Store#commitStoreIds is not implemented. Only stores mixing in CW.DataManager may commit at this time.")},commitPrimaryKeys:function(e,t){Object(o.b)("CW.Store#commitPrimaryKeys is not implemented. Only stores mixing in CW.DataManager may commit at this time.")},MergeStrategy:void 0,getStoreStatus:function(e,t){e||Object(o.b)("CW.Data.Store#getStoreStatus: No model class provided.",{store:this}),t||Object(o.b)("CW.Data.Store#getStoreStatus: No primary key provided.",{store:this,modelClass:e});var n=this.constructor.getStoreIdForPrimaryKey(e,t);if(this.isDataForked(n)){var i=Xn.DIRTY,r=this._changes,a=r&&r.getChangeForStoreId(n),s=a&&a.changeType;return s===nn.WRITE.CREATE?i.CREATED:s===nn.WRITE.UPDATE?i.UPDATED:s===nn.WRITE.DESTROY?i.DESTROYED:i.READ}return null===this.readData(n)?Xn.CLEAN.DESTROYED:Xn.CLEAN},getModel:function(e,t){e||Object(o.b)("CW.Data.Store#getModel: No model class provided.",{store:this}),t||Object(o.b)("CW.Data.Store#getModel: No primary key provided.",{store:this,modelClass:e});var n=this.constructor.getStoreIdForPrimaryKey(e,t);if(this.hasDataFor(n))return this.materializeModel(n)},getAllModels:function(e){var t=this;e||Object(o.b)("CW.Data.Store#getAllModels: No model class provided.",{store:this});var n=Array.from(Object.values(this.constructor.getPrimaryKeysToStoreIds(e))).filter(function(e){return t.hasDataFor(e)});return Gn.createFromStoreIds(n,e,this)},materializeModel:function(e){e||Object(o.b)("CW.Data.Store#materializedModel: No store ID provided.",{store:this});var t=this._materializedModels,n=t[e];if(!n&&this.hasDataFor(e)){var i=this.constructor.getModelClassForStoreId(e);i||Object(o.b)("CW.Data.Store#materializeModel: No model class defined for store ID: `"+e+"`",{store:this,storeId:e}),this.constructor.getPrimaryKeyForStoreId(e)||Object(o.b)("CW.Data.Store#materializeModel: No primary key defined for store ID: `"+e+"`",{store:this,modelClass:i,storeId:e}),n=i.createWithStore(this,e),t[e]=n}return n&&n.isPooled&&n.constructor.reclaim(n),n},getExistingModel:function(e){return this._materializedModels[e]},hasExistingModel:function(e){return!!this.getExistingModel(e)},linkModel:function(e,t,n){var i,r;e||Object(o.b)("CW.Data.Store#linkModel: No model provided.",{store:this}),t||(r=e.constructor,void 0!==(i=e.getPrimaryKey())&&null!==i||!n||(i=n[r.getDataKeyForKey(r.primaryKey)]),t=this.constructor.getStoreIdForPrimaryKey(r,i));var a=e._cwStore;if(a){if(a===this)return;Object(o.b)("CW.Data.Store#linkModel: Model has previously been linked to a store.",{store:this,storeId:t,model:e,primaryKey:i,previousStore:a,newStore:this})}this.hasDataFor(t)||(this.writeData(t,n||e.getDataHash()),delete e.__cwDataHash),e._cwStore=this;var s=this._materializedModels;s[t]&&Object(o.b)("CW.Data.Store#linkModel: Attempting to register model that already exists.",{store:this,storeId:t,modelClass:r,primaryKey:i,previousRegisteredModel:s[t],newRegisteredModel:e}),s[t]=e,e._cwStoreId=t},unlinkModel:function(e){e||Object(o.b)("CW.Data.Store#unlinkModel: No model provided.",{store:this}),e._cwStore=null;var t=this._materializedModels;t&&delete t[e._cwStoreId],e._cwStoreId=null},deleteModels:function(e,t){var n;if(Array.isArray(t))for(var i=0,r=t.length;i<r;i++){var a=t[i];n=this.constructor.getStoreIdForPrimaryKey(e,a),this.deleteData(n)}else n=this.constructor.getStoreIdForPrimaryKey(e,t),this.deleteData(n);this.dataDidChange()},dataDidChange:Object(p.i)(),didChangeDataForStoreIds:function(e){var t=this;if(e&&0!==e.length&&function(e){var t=e.downstreamNodes.dataDidChangeForPrimaryKeys;b.a.getChildrenIDs(t,Zn);var n=Zn.length>0;return Zn.length=0,n}(this)){var n=e.reduce(function(e,n){var i=t.constructor.getPrimaryKeyForStoreId(n),r=t.constructor.getModelClassForStoreId(n);return e.has(r)?e.get(r).add(i):e.set(r,new Set([i])),e},new Map);this.dataDidChangeForPrimaryKeys(n)}},dataDidChangeForPrimaryKeys:Object(p.i)(),readData:function(e){if(this.forkOnRead){this._forkIfNeeded(e);var t=this._materializedModels[e];t&&t.propertyChanged("storeStatus")}return this._dataHashes[e]},readDataForPrimaryKey:function(e,t){var n=this.constructor.getStoreIdForPrimaryKey(e,t);return this.readData(n)},readOriginalData:function(e){var t=this._originalDataHashes;if(t)return t[e]},willWriteData:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this._forkIfNeeded(e,t)},didWriteData:function(e){this.recordChangeToData(e),this.didChangeDataForStoreIds([e])},writeData:function(e,t){this.willWriteData(e,!1),this._dataHashes[e]=t,this.didWriteData(e)},writeDataForPrimaryKey:function(e,t,n){var i=this.constructor.getStoreIdForPrimaryKey(e,t);this.writeData(i,n)},writeDataProperty:function(e,t,n){var i=this._dataHashes;if(this.hasDataFor(e)){var r=i[e][t];if(Object(Tn.a)(r,n))return}this.willWriteData(e);var a=i[e];a||(a=i[e]={}),a[t]=n,this.didWriteData(e)},updateData:function(e,t){if(this.hasDataFor(e)){this.willWriteData(e);var n=this._dataHashes[e];for(var i in t)n[i]=t[i];this.didWriteData(e)}else this.writeData(e,t)},resetData:function(e){delete this._dataHashes[e];var t=this._originalDataHashes;t&&delete t[e],this._changes&&this._changes.removeChangeForStoreId(e),this.didChangeDataForStoreIds([e])},resetAllData:function(){for(var e=this._dataHashes,t=Object.keys(e),n=0,i=t.length;n<i;n++)delete e[t[n]];delete this._originalDataHashes,this.didChangeDataForStoreIds(t)},deleteData:function(e){return this.writeData(e,null)},hasDataFor:function(e){return!!this._dataHashes[e]},isDataForked:function(e){return this._dataHashes.hasOwnProperty(e)},_dataHashes:Object(ke.c)(Object),_materializedModels:Object(ke.c)(Object),_originalDataHashes:null,_autocommitOnChange:Object(p.h)("dataDidChange",function(){this.autocommit&&this._changes&&this._changes.length>0&&this.commit()}),_forkIfNeeded:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.isDataForked(e)){var n=this._dataHashes,i=n[e];return(this._originalDataHashes||(this._originalDataHashes={}))[e]=Object(Sn.a)(i),n[e]=i&&t?Object(Sn.a)(i):{},!0}return!1},recordChangeToData:function(e){if(!e)throw Object(o.b)("Recording changes in Store for non-existent storeId",{storeId:e});var t=this.readOriginalData(e),n=this.readData(e),i=qn.create(e,t,n);(this._changes||(this._changes=Qn.create())).recordChange(i);var r=this._materializedModels[e];return r&&r.propertyChanged("storeStatus"),i},_changes:null}),Xn=Object(Qt.b)("STATUS",function(e){e("CLEAN",function(e){e("DESTROYED")}),e("DIRTY",function(e){e("READ"),e("CREATED"),e("UPDATED"),e("DESTROYED")})}),Jn=0,Zn=[],ei="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ti=new Map,ni=d.a.extend(p.b,An.a,Rn,{staticMembers:{getStoreIdForPrimaryKey:function(e){return Yn.getStoreIdForPrimaryKey(this,e)},setPrimaryKeyForStoreId:function(e,t){return Yn.setPrimaryKeyForStoreId(e,t)},replacePrimaryKeyInStore:function(e,t){var n=this.getStoreIdForPrimaryKey(e);return this.setPrimaryKeyForStoreId(n,t)},primaryKeysToStoreIds:null,find:function(e,t){return e||Object(o.b)("CW.Data.Model.find: No primary key provided.",{modelClass:this}),(t=t||yn())||Object(o.b)("CW.Data.Model.find: No store provided and no Data Manager has been created.",{modelClass:this,primaryKey:e}),t.getModel(this,e)},findAll:function(e){return(e=e||yn())||Object(o.b)("CW.Data.Model.findAll: No store provided and no Data Manager has been created.",{modelClass:this}),e.getAllModels(this)},findByPrimaryKeys:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn(),i=n.constructor,r=e.map(function(e){return i.getStoreIdForPrimaryKey(t,e)});return Gn.createFromStoreIds(r,this,n)},findOrCreatePlaceholder:function(e,t){e||Object(o.b)("CW.Data.Model.findOrCreatePlaceholder: No primary key provided.",{modelClass:this});var n=this.find(e,t);return n||(n=this.createPlaceholder(e,t)),n},createFromDataHash:function(e,t,n){if(!e)return this.createWithStore(t,n);var i=Object(Sn.a)(e);return i[ii]=!0,this.create(i,t,n)},createWithStore:function(e,t){return this.create(null,e,t)},createPlaceholder:function(e,t){var n;e||Object(o.b)("CW.Data.Model.createPlaceholder: No primary key provided.",{modelClass:this});var i=yn();i||Object(o.b)("CW.Data.Model.createPlaceholder: No Data Manager has been created.",{modelClass:this,primaryKey:e});var r=((n={})[this.getDataKeyForKey(this.primaryKey)]=e,n);return i.loadData(this,r,!0),this.find(e,t||i)},createEmbedded:function(e,t,n){b.a.pause();var i=this.create();return i._cwParent=e,i._cwParentKey=t,i._cwParentIndex=n,i.retain(),b.a.resume(),i},hasMaterializedInstance:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:yn(),n=this.getStoreIdForPrimaryKey(e);return t.hasExistingModel(n)},performOperation:function(e,t){e||Object(o.b)("CW.Data.Model.performOperation: No operation name provided.",{modelClass:this,operationType:this,operationContext:t});var n=yn();return n||Object(o.b)("CW.Data.Model.performOperation: No Data Manager has been created.",{modelClass:this,operationType:this,operationName:e,operationContext:t}),n.performOperation({type:this,operation:{type:e,context:t||{}}})},load:function(e,t){e||Object(o.b)("CW.Data.Model.load: No primary key(s) provided.",{modelClass:this});var n,i,r=yn();if(r||Object(o.b)("CW.Data.Model.load: No Data Manager has been created.",{modelClass:this,primaryKey:e}),t)return this.performOperation(nn.READ.LOAD,{primaryKeys:e});if(Array.isArray(e)){for(var a,s,c=Gn.create(e,this),l=0,u=e.length;l<u;l++){var d=e[l];r.getNetworkStatus(this,d)!==Vn.IDLE&&(a=a||[],(i=r.getActiveTransactions(this,d))&&i.length>0)?a.push.apply(a,i):r.getLoadStatus(this,d)!==Un.LOADED&&(s=s||[]).push(d)}if(s){var h=this.performOperation(nn.READ.LOAD,{primaryKeys:s});(a=a||[]).push(h)}return n=On.a.create(),a?On.a.all(a).then(function(){n.resolve(c)},function(e){n.reject(e)}):(n.resolve(c),n)}return r.getNetworkStatus(this,e)!==Vn.IDLE&&(n=On.a.create(),(i=r.getActiveTransactions(this,e))&&i.length>0)?On.a.all(i).then(function(){n.resolve(this.find(e))}.bind(this),function(e){n.reject(e)}):r.getLoadStatus(this,e)===Un.LOADED?On.a.resolve(this.find(e)):this.performOperation(nn.READ.LOAD,{primaryKeys:e})},loadAll:function(){return this.performOperation(nn.READ.LIST)},destroy:function(e,t){e||Object(o.b)("CW.Data.Model.destroy: No primary key(s) provided.",{modelClass:this}),(t=t||yn())||Object(o.b)("CW.Data.Model.destroy: No store provided and no Data Manager has been created.",{modelClass:this,primaryKeys:e}),t.deleteModels(this,e)},getKeyForDataKey:function(e){e||Object(o.b)("CW.Data.Model.getKeyForDataKey: No data key provided.",{modelClass:this});var t=this.__cwDataKeyMap;return t&&t[e]||e},getDataKeyForKey:function(e){e||Object(o.b)("CW.Data.Model.getDataKeyForKey: No key provided.",{modelClass:this});var t=this.prototype.getMetadata(e);return t&&t.dataKey||e},primaryKey:null,init:function(){var e=arguments;this.__s._$6ox$init.apply(this,e),this.primaryKeysToStoreIds=null,pn().push(this)},_setKeyForDataKey:function(e,t){var n=this.__cwDataKeyMap;(n?this.hasOwnProperty("__cwDataKeyMap")?n:this.__cwDataKeyMap=Object.create(n):this.__cwDataKeyMap={})[t]=e},_registerDataActionHandler:function(e,t){ti.set(e,t)},__superMap:{_$6ox$init:"init"},__QUALIFIED_CLASS_NAME__:"Model"},networkStatus:Object(c.b)({get:function(){var e=this.getPrimaryKey();e||Object(o.b)("CW.Data.Model#networkStatus: No primary key.",{modelClass:this.constructor,model:this});var t=yn();return t||Object(o.b)("CW.Data.Model#networkStatus: No Data Manager has been created.",{modelClass:this.constructor,model:this,primaryKey:e}),t.getNetworkStatus(this.constructor,e)}}),loadStatus:Object(c.b)({get:function(){var e=this.getPrimaryKey();e||Object(o.b)("CW.Data.Model#loadStatus: No primary key.",{modelClass:this.constructor,model:this});var t=yn();return t||Object(o.b)("CW.Data.Model#loadStatus: No Data Manager has been created.",{modelClass:this.constructor,model:this,primaryKey:e}),t.getLoadStatus(this.constructor,e)}}),storeStatus:Object(c.b)({cacheable:!1,get:function(){var e=this.getPrimaryKey();e||Object(o.b)("CW.Data.Model#storeStatus: No primary key.",{modelClass:this.constructor,model:this});var t=this._cwStore;return t||Object(o.b)("CW.Data.Model#storeStatus: No store linked to model.",{modelClass:this.constructor,model:this,primaryKey:e}),t.getStoreStatus(this.constructor,e)}}),isStoreModel:Object(B.d)({readOnly:!0,get:function(){return!!this._cwStore}}),parentModel:Object(B.d)({readOnly:!0,get:function(){return this._cwParent}}),isEmbeddedModel:Object(B.d)({readOnly:!0,get:function(){return!!this.parentModel}}),embeddedKeyPathArray:Object(B.d)({readOnly:!0,get:function(){if(this.isEmbeddedModel){for(var e=[],t=this;t.isEmbeddedModel;)e=[t._cwParentKey],void 0!==t._cwParentIndex&&e.push(t._cwParentIndex),t=t._cwParent;return e}}}),embeddedKeyPath:Object(B.d)({readOnly:!0,get:function(){return this.embeddedKeyPathArray.join(".")}}),embeddedRoot:Object(B.d)({readOnly:!0,get:function(){for(var e=this;e.isEmbeddedModel;)e=e._cwParent;return e}}),hasDataForKey:function(e){var t=this.getDataHash();return t&&void 0!==t[e]},load:function(){var e=this.getPrimaryKey();return e||Object(o.b)("CW.Data.Model#load: No primary key.",{modelClass:this.constructor,model:this}),this.constructor.load(e)},reload:function(){var e=this.getPrimaryKey();return e||Object(o.b)("CW.Data.Model#reload: No primary key.",{modelClass:this.constructor,model:this}),this.constructor.load(e,!0)},save:function(){var e=this._cwStore;return e||Object(o.b)("CW.Data.Model#save: No store linked to model.",{modelClass:this.constructor,model:this,primaryKey:this.getPrimaryKey()}),e.commit()},saveWithoutRelated:function(){var e=this._cwStore;return e||Object(o.b)("CW.Data.Model#save: No store linked to model.",{modelClass:this.constructor,model:this,primaryKey:this.getPrimaryKey()}),e.commitStoreIds(this._cwStoreId)},reset:function(){this.isStoreModel||Object(o.b)("CW.Data.Model.reset: Cannot reset a non-store model.",{modelClass:this.constructor,model:this}),this._cwStore.resetData(this._cwStoreId)},destroy:function(){var e=this.getPrimaryKey();e||Object(o.b)("CW.Data.Model#destroy: No primary key.",{modelClass:this.constructor,model:this}),this.constructor.destroy(e,this._cwStore)},replaceData:function(e){var t=this.getDataHash(),n=this._cwStore;n?n.writeData(this._cwStoreId,e):this.__cwDataHash=e;var i=Ln(t,this.getDataHash());if(i){var r={diff:Ln(t,e),originalData:t,updatedData:this.getDataHash()},a=Object(Nn.a)([],i.added,i.removed,i.updated);this._notifyOnDataAction(a,r)}},updateData:function(e){var t=Object(Sn.a)(this.getDataHash()),n=this._cwStore;if(n)n.updateData(this._cwStoreId,e);else{var i=this.getDataHash();for(var r in e)i[r]=e[r]}var a=this.getDataHash(),o={diff:Ln(t,a),originalData:t,updatedData:a};this._notifyOnDataAction(Object.keys(e),o)},_notifyOnDataAction:function(e,t){b.a.pause();for(var n=this.constructor,i=0,r=e.length;i<r;i++){var a=n.getKeyForDataKey(e[i]),o=this.getMetadata(a);if(o){var s=ti.get(o.constructor);s?s(this,a,t):this.propertyChanged(a)}}b.a.resume()},toJSON:function(){return Object(Sn.a)(this.getDataHash())},_cwStore:null,_cwStoreId:null,_cwParent:null,_cwParentKey:null,getDataHash:function(){var e=this._cwParent;if(e){var t=this._cwParentKey,n=this._cwParentIndex,i=e.getDataHash();if(!i)return;return(i=i[t])&&void 0!==n&&(i=i[n]),i}var r=this._cwStore;return r?r.readData(this._cwStoreId):this.__cwDataHash||(this.__cwDataHash={})},getPrimaryKey:function(){var e=this.constructor.primaryKey;return e||Object(o.b)("CW.Data.Model#getPrimaryKey: No primary key property defined.",{modelClass:this.constructor,model:this}),this.get(e)},init:function(e,t,n){var i=void 0,r=void 0;if(e)if(e[ii])delete e[ii],i=e;else{var a=this.getMetadataByType(ri);for(var o in i={},r=Object(Sn.a)(e),a){var s=a[o],c=s.dataKey||o,l=r[o];void 0!==l&&(i[c]=s._encodeValue(this,c,l),delete r[o])}}t?this._cwStore||t.linkModel(this,n,i):this.__cwDataHash=i,this.__s._$D1R$init.call(this,r)},dispose:function(){var e=arguments,t=this._cwStore;t&&t.unlinkModel(this),this.__s._$D61$dispose.apply(this,e)},notifyOfDataChange:function(){var e;this.dataDidChange.apply(this,arguments),this.isEmbeddedModel&&(e=this._cwParent).notifyOfDataChange.apply(e,arguments)},propertyChanged:function(e){var t=this.getMetadata(e);if(t){var n=t.clearCachedValueForObject;n&&n.call(t,this,e),this.__s._$DJU$propertyChanged.call(this,e)}},dataDidLoad:Object(p.i)(),dataDidChange:Object(p.i)(),_dataDidChangeDidFire:Object(p.g)("dataDidChange",function(){var e=this._cwStore;e&&e.dataDidChange()}),__superMap:{_$D1R$init:"init",_$D61$dispose:"dispose",_$DJU$propertyChanged:"propertyChanged"}}),ii=Symbol("PURE_MODEL_DATA"),ri=c.a.extend({requiresSupport:ni,type:null,isPrimaryKey:!1,dataKey:null,encode:null,decode:null,setInitialValueForObject:function(e,t,n){var i=arguments;void 0!==n&&Object(o.b)("Initial values are not supported on ModelProperties: "+e+"#"+t,{object:e,key:t,initialValue:n}),this.__s._$Dzq$setInitialValueForObject.apply(this,i)},downstreamNodeManagerClass:g.a.extend({calculateValueForNode:function(e,t,n){if(n){var i=b.a.getStateIDForNode(t);b.a._sanitizeNodeID(i)>0&&b.a.getValueForNode(i)}var r=this.key,a=this.property,o=a.getRawValueForObject(e,r);return a._materializeValue(e,r,o)},isCacheable:!1}),upstreamNodeManagerClass:v.b.extend({calculateValueForNode:function(e,t,n){var i;if(n){var r=b.a.getStateIDForNode(t);(i=this.pullDataFromParent(t,r))===v.a&&(i=b.a.getDataForNode(t))}else i=b.a.getStateDataForNode(t);var a=this.key,o=this.property;return i!==o._getCachedValueForObject(e,a)&&(o.clearCachedValueForObject(e,a),i=o._encodeValue(e,a,i),o.setRawValueForObject(e,a,i)),i},notifyNode:function(e,t){var n=this.key,i=b.a.getDataForNode(t);e.dataDidChange(n,i)}}),init:function(e){var t=arguments;e&&void 0!==e.defaultValue&&(this._hadDefaultValue=!0,delete e.defaultValue),this.__s._$EaG$init.apply(this,t)},initializeNodeFlags:function(){var e=arguments;this.__s._$EbF$initializeNodeFlags.apply(this,e),this.upstreamNodeFlags|=b.a.PULL_ON_FLUSH|b.a.NOTIFY},setRawValueForObject:function(e,t,n){if(t=this.dataKey||t,e.isStoreModel)e._cwStore.writeDataProperty(e._cwStoreId,t,n);else if(e.isEmbeddedModel){for(var i=e._cwParent,r=i;r.isEmbeddedModel;)r=r._cwParent;var a=r._cwStore,s=r._cwStoreId;a&&a.willWriteData(s);var c=e.getDataHash();c||Object(o.b)("Can't write value for key to undefined data hash",{key:t,value:n,object:e,type:e.constructor}),c[t]=n,a&&a.didWriteData(s),i.notifyOfDataChange()}else{var l=e.getDataHash();l||Object(o.b)("Can't write value for key to undefined data hash",{key:t,value:n,object:e,type:e.constructor}),l[t]=n}return n},getRawValueForObject:function(e,t){var n,i=this.dataKey||t,r=e.getDataHash();return r&&(n=r[i]),void 0===n?null:n},_encodeValue:function(e,t,n){var i,r,a,s=e.__cwMaterializedValues,c=s&&s[t],l=Object(qe.a)(n,ni);return c&&l&&(function(e){var t=e._cwParent;t||Object(o.b)("CW.Data.Model#detachFromParent: Model is not attached to a parent.",{embeddedModel:e});var n=t.getDataHash(),i=e._cwParentKey;e.__cwDataHash=n[i],n[i]=null,e._cwParent=null,e._cwParentKey=null,e.release()}(c),this.clearCachedValueForObject(e,t)),l?(r=n,a=t,(i=e)||Object(o.b)("CW.Data.ModelProperty#attachToParent: No parent model provided.",{embeddedModel:r,parentKey:a}),r||Object(o.b)("CW.Data.ModelProperty#attachToParent: No embedded model provided.",{parentModel:i,parentKey:a}),a||Object(o.b)("CW.Data.ModelProperty#attachToParent: No parent key provided.",{parentModel:i,embeddedModel:r}),i.getDataHash()[a]=r.getDataHash(),r._cwParent=i,r._cwParentKey=a,delete r.__cwDataHash,r.retain(),this._setCachedValueForObject(e,t,n),n=n.getDataHash()):Object(qe.a)(n,En.a)&&(n=n.value),Object(Mn.a)(this.encode)&&(n=this.encode.call(e,n)),n&&n.toJSON?n.toJSON():n},_materializeValue:function(e,t,n){var i=this._getCachedValueForObject(e,t);if(void 0!==i)return i;var r=this.type,a=(Object(Mn.a)(this.decode)?this.decode:function(e,t){var n=String(e).toLowerCase();return e===Boolean||"boolean"===n?ai:e===String||"string"===n?oi:e===Array||"array"===n||e===Ee.b||"cw.observablearray"===n||t instanceof Array?si:e===Date||"date"===n?ci:Object(qe.a)(e,Qt.a)?li:gt.a}(r,n)).call(e,n,r),o=a!==n;if(Object(qe.a)(a,Ee.b)){var s=this.dataKey||t;a.listen("contentsDidChange",function(n){var i=e.getDataHash()[s];i||(i=e.getDataHash()[s]=[]),n.context.forEach(function(e){e.operation===Ee.b.INSERT?i.splice(e.index,0,e.item):i.splice(e.index,1)}),e.notifyOfDataChange(t,a)})}return o&&(this._setCachedValueForObject(e,t,a),a&&a.retain&&a.retain()),a},clearCachedValueForObject:function(e,t){var n=this._getCachedValueForObject(e,t);n&&n.release&&n.release(),e.__cwMaterializedValues&&delete e.__cwMaterializedValues[t]},_getCachedValueForObject:function(e,t){var n=e.__cwMaterializedValues;return n&&n[t]},_setCachedValueForObject:function(e,t,n){var i=e.__cwMaterializedValues;return i||(i=e.__cwMaterializedValues={}),i[t]=n},wasRegistered:function(e,t){var n=arguments,i=this.type;i&&(this.type=null),this.__s._$Gqn$wasRegistered.apply(this,n),i&&(this.type=i);var r=e.constructor,a=this.dataKey;if(a&&a!==t&&r._setKeyForDataKey(t,a),this.isPrimaryKey){var s=r.primaryKey;s&&s!==t&&Object(o.b)("CW.Data.ModelProperty#wasRegistered: Models cannot define multiple primary keys.",{existingPrimaryKey:s,newPrimaryKey:t,modelClass:r}),r.primaryKey=t}this._hadDefaultValue&&Object(o.b)("Default values are not supported on ModelProperties: "+e+"#"+t,{object:e,key:t})},_hadDefaultValue:!1,__superMap:{_$Dzq$setInitialValueForObject:"setInitialValueForObject",_$EaG$init:"init",_$EbF$initializeNodeFlags:"initializeNodeFlags",_$Gqn$wasRegistered:"wasRegistered"},staticMembers:{__QUALIFIED_CLASS_NAME__:"ModelProperty"}});function ai(e){return!!e}function oi(e){return null===e?null:void 0!==e?String(e):void 0}function si(e){return Ee.b.create(e)}function ci(e){return"string"==typeof e&&(e=Date.parse(e)),e?new Date(e):null}function li(e,t){return t.getItemForValue(e)}var ui=function(e){return"object"!==(void 0===e?"undefined":ei(e))&&(e={defaultValue:e}),ri.create(e)},di=Gn.extend({relatedObject:Object(B.d)(),relationshipKey:Object(B.d)(),_embeddedCache:Object(B.d)(),shouldDoPostInitProcessing:!1,hasBackingData:Object(B.d)({readOnly:!0,get:function(){var e=this.relatedObject;return!(!e||!e.getDataHash())}}),_array:Object(B.d)({get:function(){if(this.hasBackingData){var e=this.relatedObject,t=this.relationshipKey;return e.getDataHash()[t]}},set:function(e){if(this.hasBackingData)return this.relatedObject.getDataHash()[this.relationshipKey]=e,e}}),init:function(e,t,n){var i=t.relatedObject,r=t.relationshipKey,a=t.type,o=e&&e.length||0,s=this._embeddedCache=new Array(o),c=this;this.serializer={encode:function(e,t){return Object(qe.a)(e,ni)&&(e=e.getDataHash()),e},decode:function(e,t){if(!e)return e;if(void 0===t)return a.create(e);var n=s[t];if(void 0!==n)return n;var i=a.createEmbedded(c.relatedObject,c.relationshipKey,t);return s[t]=i,i}},this.__s._$1Fp$init.call(this,e,a,n),this.relatedObject=i,this.relationshipKey=r,this.listen("contentsDidChange",function(e){0!==e.context.length&&i.notifyOfDataChange()}),this.retain("Model#__cwMaterializedValues cache"),this.postInitProcessing()},postInitProcessing:function(){var e=this._array;if(e)for(var t,n,i=this._embeddedCache||(this._embeddedCache=[]),r=0,a=e.length;r<a;r++)t=e[r],Object(qe.a)(t,ni)&&(n=t.getDataHash(),t.isEmbeddedModel||this._embedModel(t,r),i[r]=t,e[r]=n)},constructNewInstance:function(){return Ee.b.create({serializer:this.serializer})},itemsWillChange:function(){var e=arguments;this._array||(this._array=[]),this.__s._$1rN$itemsWillChange.apply(this,e);var t=this.relatedObject.embeddedRoot;t.isStoreModel&&t._cwStore._forkIfNeeded(t._cwStoreId)},itemsDidChange:function(){var e=arguments;this.__s._$1wm$itemsDidChange.apply(this,e);var t=this.relatedObject.embeddedRoot;t.isStoreModel&&t._cwStore.recordChangeToData(t._cwStoreId)},itemsWillBeRemoved:function(e,t){var n=arguments;if(this.__s._$21X$itemsWillBeRemoved.apply(this,n),0!==t){for(var i=this._embeddedCache,r=e+t,a=e;a<r;a++){var o=i[a];o&&(o.__cwDataHash=Object(Sn.a)(o.getDataHash()),o._cwParent=o._cwParentKey=o._cwParentIndex=void 0)}i.splice(e,t)}},itemsWillBeInserted:function(e,t){var n=arguments;if(this.__s._$2Db$itemsWillBeInserted.apply(this,n),0!==t){var i=this._embeddedCache;hi[0]=e,hi[1]=0,i.splice.apply(i,hi),hi.length=2}},itemsWereRemoved:function(e,t){var n=arguments;if(this.__s._$2N5$itemsWereRemoved.apply(this,n),0!==t){var i=this._embeddedCache,r=this.relatedObject&&this.relatedObject.getDataHash(),a=r&&r[this.relationshipKey];if(a){var o,s,c,l=t;for(o=e,s=a.length;o<s;o++)(c=i[o])&&(c._cwParentIndex-=l)}}},itemsWereInserted:function(e,t){var n=arguments;if(this.__s._$2bH$itemsWereInserted.apply(this,n),0!==t){var i=this._embeddedCache,r=this.relatedObject,a=this.relationshipKey,o=r&&r.getDataHash(),s=o&&o[a];if(s)for(var c=s.length,l=e+t,u=void 0,d=e;d<c;d++)(u=i[d])&&(d<l?this._embedModel(u,d):u._cwParentIndex+=t)}},_embedModel:function(e,t){var n=e.parentModel;if(n&&n!==this.relatedObject&&Object(o.b)("Trying to embed a model that already has a different parent",{model:e,parent:n}),!n){n=this.relatedObject;var i=this.relationshipKey;e._cwParent=n,e._cwParentKey=i,e._cwParentIndex=t,e.__cwDataHash=void 0}return e},rawSplice:function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var a=arguments;return this._cacheValues.apply(this,i),this.__s._$3Ej$rawSplice.apply(this,a)},push:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=arguments;return this._cacheValues.apply(this,t),this.__s._$3G9$push.apply(this,i)},unshift:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=arguments;return this._cacheValues.apply(this,t),this.__s._$3Hd$unshift.apply(this,i)},insertAt:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];var r=arguments;return this._cacheValues.apply(this,n),this.__s._$3JE$insertAt.apply(this,r)},setIndex:function(e,t){var n=arguments;return this._cacheValues(t),this.__s._$3Ki$setIndex.apply(this,n)},_cacheValues:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=t.length;hi.length=i+2;for(var r=0;r<i;r++){var a=t[r];Object(qe.a)(a,ni)&&(hi[r+2]=a)}},filter:function(){Object(o.b)("Filter cannot be used safely on an embedded relationship array, use filterCloned instead.",{source:this})},filterCloned:function(e,t){var n=[],i=this.relatedObject,r=this.relationshipKey,a=i&&i.getDataHash(),o=a&&a[r];if(o)for(var s=this.modelClass,c=s.create(),l=0,u=o.length;l<u;l++){var d=o[l];c.replaceData(d),e.call(t,c,l,o)&&n.push(s.createFromDataHash(d))}return Ee.b.create(n)},indexOf:function(e){var t=this._array;return t&&Object(qe.a)(e,this.modelClass)?t.indexOf(e.getDataHash()):-1},isObjectAtIndexMaterialized:function(e){var t=this._embeddedCache;return t&&!!t[e]},__superMap:{_$1Fp$init:"init",_$1rN$itemsWillChange:"itemsWillChange",_$1wm$itemsDidChange:"itemsDidChange",_$21X$itemsWillBeRemoved:"itemsWillBeRemoved",_$2Db$itemsWillBeInserted:"itemsWillBeInserted",_$2N5$itemsWereRemoved:"itemsWereRemoved",_$2bH$itemsWereInserted:"itemsWereInserted",_$3Ej$rawSplice:"rawSplice",_$3G9$push:"push",_$3Hd$unshift:"unshift",_$3JE$insertAt:"insertAt",_$3Ki$setIndex:"setIndex"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EmbeddedRelationshipArray"}}),hi=[0,0],pi=n(833),fi=Gn.extend({relatedObject:Object(B.d)({weak:!0}),relationshipKey:Object(B.d)(),hasBackingData:Object(B.d)({readOnly:!0,get:function(){var e=this.relatedObject;return!(!e||!e.getDataHash())}}),_array:Object(B.d)({get:function(){if(this.hasBackingData){var e=this.relatedObject,t=this.relationshipKey;return e.getDataHash()[t]}},set:function(e){if(this.hasBackingData)return this.relatedObject.getDataHash()[this.relationshipKey]=e,e}}),_storeIdCache:Object(ke.c)(Map),serializer:function(){var e=this;return{encode:function(t){return Object(Hn.a)(t)?(Object(qe.a)(t,ni)?(t.constructor!==e.modelClass&&Object(o.b)("Invalid Model type %{type}, expected %{configured}",{type:t.constructor,configured:e.modelClass}),t=t.getPrimaryKey()):Object(a.a)(t)&&(t.hasOwnProperty("id")&&t.hasOwnProperty("type")||Object(o.b)("Foreign object tuple must contain keys 'id' and 'type'",{value:t})),t):t},decode:function(t){if(!Object(Hn.a)(t))return t;var n=e.storeIdForForeignObjectReference(t),i=e.store,r=i.materializeModel(n);if(r)return r;var a=i.constructor.getModelClassForStoreId(n),o=i.constructor.getPrimaryKeyForStoreId(n);return a.createPlaceholder(o,i)}}},shouldDoPostInitProcessing:!1,init:function(e,t,n){t&&t.type?t&&t.relationshipKey?t&&t.relatedObject||Object(o.b)("No relationship object provided in options",{options:t}):Object(o.b)("No relationship key provided in options",{options:t}):Object(o.b)("No model type provided in options",{options:t});var i=t.relationshipKey,r=t.relatedObject;this.__s._$1kd$init.call(this,e,t.type,n),this.relationshipKey=i,this.relatedObject=r;var a=r.__cwMaterializedValues;a||(a=r.__cwMaterializedValues={}),a[i]&&Object(o.b)("A CW.Data.RelationshipArray instance already exists for this relationship",{relatedObject:r,relationshipKey:i,cache:a}),a[i]=this,this.retain("Model#__cwMaterializedValues cache"),this.shouldDoPostInitProcessing=!0,this.postInitProcessing()},itemsWillChange:function(){var e=arguments;this._array||(this._array=[]),this.__s._$26k$itemsWillChange.apply(this,e),this.store&&this.store._forkIfNeeded(this.relatedObject._cwStoreId)},itemsDidChange:function(){var e=arguments;if(this.store){var t=this.relatedObject._cwStoreId;t&&this.store.recordChangeToData(t)}this.__s._$2FX$itemsDidChange.apply(this,e),this.relatedObject.notifyOfDataChange()},storeIdForForeignObjectReference:function(e){if(!Object(Hn.a)(e))return e;var t=this._storeIdCache.get(e);if(void 0===t){var n=e,i=this.modelClass;Object(a.a)(e)&&(n=e.id,i=e.type),t=Yn.getStoreIdForPrimaryKey(i,n),this._storeIdCache.set(e,t)}return t},storeIdForObjectAt:function(e){if(this._array){var t=this._array[e];return t&&this.storeIdForForeignObjectReference(t)}},storeIds:Object(c.b)({dependencies:["length"],readOnly:!0,get:function(){if(!this._array)return[];var e=this.storeIdForForeignObjectReference.bind(this);return this._array.map(e)}}),spliceStoreIds:function(e,t){for(var n=arguments.length,i=Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];for(var a=2,o=arguments.length;a<o;a++){var s=this.store.constructor.getPrimaryKeyForStoreId(arguments[a]),c=this.store.constructor.getModelClassForStoreId(s);c!==this.modelClass&&(s={id:s,type:c}),arguments[a]=s}return this._array||(this._array=[]),this._array.splice.apply(this._array,arguments)},objectAt:function(){var e=arguments;return this._array&&this.__s._$2x4$objectAt.apply(this,e)},encodedObjectAt:function(){var e=arguments;return this._array&&this.__s._$2ys$encodedObjectAt.apply(this,e)},constructNewInstance:function(){var e={relatedObject:this.relatedObject,relationshipKey:this.relationshipKey,type:this.modelClass};return this.constructor.create([],e,this.store)},filter:function(e,t){e||Object(o.b)("CW.Data.RelationshipArray#filter: No filter function provided: %{relationshipArray}",{relationshipArray:this});var n=this.store;n||Object(o.b)("CW.Data.RelationshipArray#filter: Model arrays must be store backed to be filtered: %{relationshipArray}",{filterFunction:e,relationshipArray:this});var i,r=this.modelClass;r||Object(o.b)("CW.Data.RelationshipArray#filter: No model class defined on model array: %{relationshipArray}",{filterFunction:e,relationshipArray:this,store:n});for(var a=[],s=0,c=this.length;s<c;s++){var l=this.storeIdForObjectAt(s),u=this.store.getExistingModel(l);if(!u){var d=this.storeDataForObjectAt(s);i||(i=r.create().retain(this,"filter: tempModel")),i.replaceData(d)}e.call(t,u||i,s,this)&&a.push(l)}return i&&i.release(this,"filter: tempModel"),Gn.createFromStoreIds(a,r,n)},indexOf:function(e){var t=this._array;return t&&Object(qe.a)(e,this.modelClass)?t.indexOf(e.getPrimaryKey()):-1},__superMap:{_$1kd$init:"init",_$26k$itemsWillChange:"itemsWillChange",_$2FX$itemsDidChange:"itemsDidChange",_$2x4$objectAt:"objectAt",_$2ys$encodedObjectAt:"encodedObjectAt"},staticMembers:{__QUALIFIED_CLASS_NAME__:"RelationshipArray"}}),mi={toOne:function(e){return gi.create(e)},toMany:function(e){return bi.create(e)}},gi=ri.extend({embedded:!1,_encodeValue:function(e,t,n){if(this.encode)return this.encode(n);var i=void 0;return Object(qe.a)(n,ni)?(i=n.constructor,this.embedded?((e.__cwMaterializedValues||(e.__cwMaterializedValues={}))[t]=n,n.retain(),n=n.toJSON()):n=n.getPrimaryKey()):i=Object(a.a)(n)&&n.type&&n.id?(n=n.id).type:this.type,i?(e.__relationshipTypes||(e.__relationshipTypes={}))[t]=i:Object(o.b)("CW.Data.ToOneRelationshipProperty#_encodeValue: Unable to determine type for: `"+n+"`."),n},getType:function(e,t){var n=e.__relationshipTypes;return n&&n[t]||this.type},hasMaterializedInstance:function(e,t){if(this.embedded)return!!this._getCachedValueForObject(e,t);var n=e._cwStore,i=vi(this.getType(e,t),e.constructor),r=e.getDataHash();if(!r)return!1;var a=r[this.dataKey||t];return i.hasMaterializedInstance(a,n)},_materializeValue:function(e,t,n){var i=e.__cwMaterializedValues,r=i&&i[t];if(r)return r;if(!n)return null;if(this.decode)return this.decode(n);var a=vi(this.getType(e,t),e.constructor);return a||Object(o.b)("CW.Data.ToOneRelationshipProperty#_materializeValue: Unable to determine model class for: `"+n+"`."),this.embedded?(i||(i=e.__cwMaterializedValues={}),i[t]=a.createEmbedded(e,this.dataKey||t)):a.findOrCreatePlaceholder(n,e._cwStore)},staticMembers:{__QUALIFIED_CLASS_NAME__:"ToOneRelationshipProperty"}}),bi=ri.extend({embedded:!1,upstreamNodeManagerClass:Object(Ae.b)({nodeWillFree:function(e){var t=e.__cwMaterializedValues,n=t&&t[this.key];n&&(Object(Qe.e)(n,e,"ToManyRelationshipProperty: releasing materialized RelationshipArray"),t[this.key]=null)}}),downstreamNodeManagerClass:g.a.extend({calculateValueForNode:function(e,t,n,i){n&&b.a._sanitizeNodeID(i)>0&&b.a.getValueForNode(i);var r=this.key,a=this.property.getRawValueForObject(e,r);return this.property._materializeValue(e,r,a)}}),_encodeValue:function(e,t,n){return n},_materializeValue:function(e,t,n){var i=e.__cwMaterializedValues||(e.__cwMaterializedValues={}),r=i[t];if(r)return r.hasBackingData?r:void 0;var o={type:vi(this.type,e.constructor),relatedObject:e,relationshipKey:this.dataKey||t},s=void 0;if(this.embedded)s=di.create(n,o);else{if(n&&n.length>0)for(var c=0,l=n.length;c<l;c++){var u=n[c];Object(qe.a)(u,ni)?n[c]=u.getPrimaryKey():Object(a.a)(u)&&u.id&&(n[c]=u.id)}s=fi.create(n,o,e._cwStore)}return i[t]=s,s.hasBackingData?s:void 0},clearCachedValueForObject:bt.a,strong:!0,staticMembers:{__QUALIFIED_CLASS_NAME__:"ToManyRelationshipProperty"}});function vi(e,t){var n=void 0;return e&&e.isClass?n=e:"(self)"===e||"self"===e?n=t:Object(pi.a)(e)&&(n=gn(e)),n||Object(o.b)("CW.Data.Relationship: Unable to compute class for relationship type: `"+e+"`."),n}ni._registerDataActionHandler(bi,function(e,t,n){var i=e[t];i.contentsDidChangeUntracked();var r=n.originalData[t]||[],a=n.updatedData[t]||[],o=Ee.a.fromArrays(r,a,i);i.contentsDidChange(o)});var _i={loadData:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];e||Object(o.b)("CW.Data.FastBulkLoadingSupport#loadData: No model class provided.",{dataManager:this,modelClass:e,dataHashes:t}),t||Object(o.b)('CW.Data."FastBulkLoadingSupport#loadData: No data hashes provided.',{dataManager:this,modelClass:e,dataHashes:t});var i=[];if(Array.isArray(t))for(var r=0,a=t.length;r<a;r++)i.push(yi(this,e,t[r],n,a));else i.push(yi(this,e,t,n,1));return this.didChangeDataForStoreIds(i),On.a.resolve(i)},persistenceDataDidUpdate:function(e){this.isDataForked(e)&&this.resetData(e)}};function yi(e,t,n,i,r){var a=function(e,t){var n=e.primaryKey;n||Object(o.b)("CW.Data.FastBulkLoadingSupport getPrimaryKeyFromData: Attempted to locate primary key on a model class that does not specify one.",{data:t,modelClass:e});var i=t[e.getDataKeyForKey(n)];return void 0!==i&&null!==i||Object(o.b)("CW.Data.FastBulkLoadingSupport getPrimaryKeyFromData: Data hash does not contain primary key field that was specified by the Model class: "+n+".",{data:t,modelClass:e}),i}(t,n),s=Yn.getStoreIdForPrimaryKey(t,a);i||(e._loadedStoreIds[s]=!0);var c=e._dataHashes[s],l=e.getExistingModel(s),u=l&&function(e,t,n){var i=Ln(t,n);if(!i)return null;if(i.updated&&i.updated.length)for(var r=e.constructor,a=0,o=i.updated.length;a<o;a++){var s=r.getKeyForDataKey(i.updated[a]);if(t[s]&&n[s]){var c=e.getMetadata(s);c&&Object(qe.a)(c,bi)&&Ci(e[s],t[s],n[s])}}return i}(l,c,n);if(i){var d=e._persistenceStore._dataHashes,h=d[s]||(d[s]={});for(var p in n)h[p]=n[p]}else e._persistenceStore._dataHashes[s]=n;return e.persistenceDataDidUpdate(s,u),u&&l&&(b.a.pause(),u.added.length>0&&Ii(l,u.added),u.updated.length>0&&Ii(l,u.updated),!i&&u.removed.length>0&&Ii(l,u.removed),l.propertyChanged("storeStatus"),l.propertyChanged("loadStatus"),l.dataDidLoad(),l._fastBulkDataDidLoad&&l._fastBulkDataDidLoad(n,i,r),b.a.resume()),s}function Ci(e,t,n){e.changes||(e.changes=e.changesClass.acquire(e));for(var i=e.changes,r=Math.min(t.length,n.length),a=0;a<r;a++)t[a]!==n[a]&&(i.recordRemoval(a,t[a]),i.recordInsertion(a,e.encode(n[a])));var o=t.length-n.length;if(o<0)for(var s=r,c=n.length;s<c;s++)i.recordInsertion(s,e.encode(n[s]));else if(o>0)for(var l=r,u=t.length;l<u;l++)i.recordRemoval(l,t[l])}function Ii(e,t){for(var n=e.constructor,i=0,r=t.length;i<r;i++){var a=n.getKeyForDataKey(t[i]),o=e.getMetadata(a);if(o)if(Object(qe.a)(o,bi)){var s=e[a];s.changes&&s.changes.length?s.notifyIfNecessary():e.propertyChanged(a)}else e.propertyChanged(a)}}function wi(e,t){if(e||Object(o.b)("findHandlerForOperationType must receive a type"),t)for(var n=0,i=t.length;n<i;n++){var r=t[n],a=r.handlesType;if(a===e||!a&&wi(e,r.nestedOperationHandlers))return r}}var Si=d.a.extend({handlerResolver:wi,handlesType:null,nestedOperationHandlers:null,action:function(e,t){var n=e&&e.operation;if(n){"function"!=typeof this.handlerResolver&&Object(o.b)("OperationHandler#handlerResolver must be a function",{operationHandler:this,handlerResolver:this.handlerResolver});var i=n.type,r=this.handlerResolver(i,this.get("nestedOperationHandlers"));return r||Object(o.b)("CW.Data.OperationHandler#action found no sub-handler to handle sub-operation: %{operationType} - %{subOperationType}",{subOperationType:n.type,operationType:e.type}),r.action(n,t)}},staticMembers:{__QUALIFIED_CLASS_NAME__:"OperationHandler"}}),Ai=d.a.extend({staticMembers:{transaction:function(e,t){return"function"==typeof e&&(t=t||this.get("store")||yn(),this.set("store",t.branch()),e.call(this,t)),this.__s._$lB$transaction.call(this)},__superMap:{_$lB$transaction:"transaction"},__QUALIFIED_CLASS_NAME__:"Branch"},store:null}),Oi=d.a.extend(h.a,{action:function(e,t){var n=t.get("storeId");return e.isDataForked(n)&&e.resetData(n),On.a.resolve()},staticMembers:{__QUALIFIED_CLASS_NAME__:"HardResetMergeStrategy"}}),Ei=["updated","added","removed"],Ti={MergeStrategy:Oi,branches:Object(ke.c)(Array),branch:function(e){(e=e||{}).parentStore=this,e._dataHashes=Object.create(this._dataHashes),e._revisions=Object.create(this._revisions);var t=Yn.create(e);return this.get("branches").push(t),t},willMerge:bt.a,didMerge:function(e){return e},merge:function(e){this.willMerge(e);var t,n,i=this.getPath("MergeStrategy.sharedInstance"),r=[];for(t=0,n=e.get("length");t<n;t++)r.push(i.action(this,e.objectAt(t)));this.notifyModels(e);var a=this.get("branches");for(t=0,n=a.length;t<n;t++)r.push(a[t].merge(e));var o=this;return On.a.all(r).then(function(){return o.didMerge(e)})},notifyModels:function(e){for(var t=0,n=e.get("length");t<n;t++)this.notifyModel(e.objectAt(t))},notifyModel:function(e){var t,n=this._materializedModels;if(n&&(t=n[e.get("storeId")])){var i=e.get("newData");if(!i)return;var r=e.get("diff");if(!r)return;var a,o,s=Di;for(s.length=0,a=0,o=Ei.length;a<o;a++)for(var c=r[Ei[a]],l=0,u=c.length;l<u;l++){var d=c[l],h=t.getKeyForDataKey(d);if(i.hasOwnProperty(d)){var p=t.get(h);if(Object(qe.a)(p,Kn.a)){var f=e.newData[d];if(f){var m=Object(Sn.a)(f);m.unshift(p.get("length")),m.unshift(0),p.splice.apply(p,m)}else{var g=t.getMetadata(h);g&&g.clearCachedValueForObject(t,h)}}var v=t.getMetadata(h);Object(qe.a)(v,ri)&&s.push(h)}}for(b.a.pause(),a=0;a<s.length;a++)t.propertyChanged(s[a]);b.a.resume(),s.length=0}}},Di=[],Li=n(840),Ni=n(823),Mi=d.a.extend(h.a,{action:function(e,t){var n=t.storeId;if(t.changeType===nn.WRITE.DESTROY)return e.deleteData.bind(e,n);var i=t.newData;for(var r in i)e.writeDataProperty(n,r,i[r]);return On.a.resolve()},staticMembers:{__QUALIFIED_CLASS_NAME__:"OverwriteMergeStrategy"}}),Pi=Object(Qt.b)("TRANSACTION_STATES",function(e){e("PENDING"),e("ACTIVE"),e("COMPLETED"),e("FAILED"),e("CANCELLED")}),xi=d.a.extend(Pi.toStaticMixin(),On.b,p.b,{operation:Object(B.d)(),subtransactions:Object(B.d)(),changes:Object(B.d)(),storeIds:Object(B.d)({readOnly:!0,get:function(){var e=this.changes;if(e)return e.storeIds;var t=this.operation,n=t&&t.type,i=t&&t.operation,r=i&&i.context,a=r&&r.primaryKeys;if(n&&Array.isArray(a)){for(var o=[],s=0,c=a.length;s<c;s++){var l=a[s];o.push(Yn.getStoreIdForPrimaryKey(n,l))}return o}return n&&a?[Yn.getStoreIdForPrimaryKey(n,a)]:void 0}}),status:Object(c.b)(Pi.PENDING),activate:function(){this.status=Pi.ACTIVE},complete:function(e){this.status=Pi.COMPLETED,this.resolve(e)},fail:function(e){this.status=Pi.FAILED,this.reject(e)},cancel:function(e){this.status=Pi.CANCELLED,this.reject(e)},toString:function(){for(var e=this.operation,t=e.type.toString();e=e.operation;)t+=": "+e.type.toString();return t},staticMembers:{__QUALIFIED_CLASS_NAME__:"Transaction"}}),Ri=n(854),ji={},Fi=[],Vi=Tt.a.extend(Ri.a,{_array:Object(ke.c)(Array),encodedRawSplice:function(e,t){var n,i,r,a=this._map,o=this._array,s=e+t;for(n=e;n<s;n++)i=o[n],delete a[Object(Ni.b)(i)];for(Fi.length=2,Fi[0]=e,Fi[1]=t,s=arguments.length,n=2;n<s;n++)i=arguments[n],r=Object(Ni.b)(i),a.hasOwnProperty(r)||(a[r]=e+Fi.length-2,Fi.push(i));return o.splice.apply(o,Fi)},encodedAdd:function(e){var t=Object(Ni.b)(e),n=this._map;return!n.hasOwnProperty(t)&&(n[t]=this._array.push(e)-1,!0)},encodedRemove:function(e){var t=Object(Ni.b)(e),n=this._map;if(!n.hasOwnProperty(t))return!1;var i=n[t];delete n[t];var r=this._array,a=r[i];if(!Object.is(a,e))for(var o=this.get("length"),s=0;s<o;s++){var c=r[s];if(Object.is(c,e)){i=s;break}}return r.splice(i,1),!0},encodedContains:function(e){return Tt.a.prototype.encodedContains.apply(this,arguments)},encodedObjectAt:function(e){return this._array[e]},length:Object(B.d)({readOnly:!1,get:Ui,set:function(e){e<0&&Object(o.b)("Invalid length %{length}. Must be a positive integer.",{length:e,object:this});var t=this.get("_internalLength"),n=t-e;n>0?this.splice(e,n):n<0&&this.splice(t,0,void 0)}}),_internalLength:Object(B.d)({readOnly:!0,get:Ui}),swap:function(e,t){var n=this.objectAt(t),i=this.objectAt(e);return this.setIndex(e,ji),this.setIndex(t,i),this.setIndex(e,n),this},staticMembers:{__QUALIFIED_CLASS_NAME__:"OrderedSet"}});function Ui(){return this._array.length}var ki,Bi=Vi.extend({transactions:Object(B.d)({get:function(){return this._array}}),add:function(e){var t=arguments;if(this.__s._$Ah$add.apply(this,t)){var n=e.storeIds;if(n)for(var i=this._storeIdSet,r=0,a=n.length;r<a;r++){var o=n[r],s=i[o];s||(s=i[o]=Tt.a.create()),s.add(e)}}},remove:function(e){var t=arguments;if(this.__s._$MP$remove.apply(this,t)){var n=e.storeIds;if(n)for(var i=this._storeIdSet,r=0,a=n.length;r<a;r++){var o=n[r],s=i[o];s&&(s.remove(e),0===s.length&&delete i[o])}}},containsStoreId:function(e){var t=this._storeIdSet;if(t.hasOwnProperty(e)){var n=t[e];return n&&n.length>0}return!1},getTransactionsForStoreId:function(e){var t=this._storeIdSet;if(t.hasOwnProperty(e)){var n=t[e];return n&&n.toArray()}},_storeIdSet:Object(ke.c)(Object),__superMap:{_$Ah$add:"add",_$MP$remove:"remove"},staticMembers:{__QUALIFIED_CLASS_NAME__:"TransactionList"}}),zi=d.a.extend({process:Object(xe.c)($e.a),addTransaction:function(e){return!this.supportsBulkTransactions&&this.isBulkTransaction(e)?this.addTransactions(this.splitTransaction(e)):(this._pendingTransactions.add(e),this._process(),e)},addTransactions:function(e){for(var t=0,n=e.length;t<n;t++)this._pendingTransactions.add(e[t]);return this._process(),e},sendTransaction:function(e){var t=yn();return t||Object(o.b)("No DataManager to receive transaction."),e.finally(this._transactionDidFinish.bind(this,e)).catch(bt.a),t.sendTransaction(e),this._transactionsSentDuringProcess.push(e),e},removeTransaction:function(e){return this._transactionsRemovedDuringProcess.push(e),e},cancelTransaction:function(e){return e.cancel(),this._transactionsRemovedDuringProcess.push(e),e},canSendTransaction:function(e){var t=Object(Ni.b)(e),n=this._transactionDependencies[t];if(n)for(var i=0,r=n.length;i<r;i++)if(n[i].status!==xi.COMPLETED)return!1;return!0},linkTransactions:function(e,t){var n=this._transactionDependencies,i=Object(Ni.b)(t),r=n[i];r||(r=n[i]=ki&&ki.pop()||[]),r.push(e)},splitTransaction:function(e){e.status===xi.ACTIVE&&Object(o.b)("CW.Data.TransactionProcessor#splitTransaction: Can not split a transaction that is already active.",{transaction:e});for(var t=e.changes,n=[],i=0,r=t.length;i<r;i++){var a=Qn.create();a.recordChange(t.objectAt(i));var s=xi.create({changes:a,operation:a.operation});n[i]=s}return On.a.all(n).then(function(t){e.complete(t)},function(t){e.fail(t)}),this._transactionsRemovedDuringProcess.push(e),n},splitTransactions:function(e){var t,n=e.length;if(1===n)t=this.splitTransaction(e[0]);else{t=[];for(var i=0;i<n;i++){var r=this.splitTransaction(e[i]);Object(Nn.a)(t,r)}}return t||null},supportsBulkTransactions:Object(B.d)(!0),isBulkTransaction:function(e){var t=e.operation;return t&&t.type===nn.WRITE.BULK},getNetworkStatus:function(e,t){e||Object(o.b)("CW.Data.TransactionProcessor#getNetworkStatus: No model class provided.",{dataManager:this}),t||Object(o.b)("CW.Data.TransactionProcessor#getNetworkStatus: No primary key provided.",{dataManager:this,modelClass:e});var n=Yn.getStoreIdForPrimaryKey(e,t);return this._activeTransactions.containsStoreId(n)?Vn.ACTIVE.TRANSMITTING:this._pendingTransactions.containsStoreId(n)?Vn.ACTIVE.QUEUED:Vn.IDLE},getActiveTransactions:function(e,t){e||Object(o.b)("CW.Data.TransactionProcessor#getActiveTransactions: No model class provided.",{dataManager:this}),t||Object(o.b)("CW.Data.TransactionProcessor#getActiveTransactions: No primary key provided.",{dataManager:this,modelClass:e});var n,i=Yn.getStoreIdForPrimaryKey(e,t),r=this._activeTransactions;r.containsStoreId(i)&&(n=r.getTransactionsForStoreId(i).slice(0));var a=this._pendingTransactions;return a.containsStoreId(i)&&(n=n||[]).push.apply(n,a.getTransactionsForStoreId(i)),n},_pendingTransactions:Object(ke.c)(Bi),_activeTransactions:Object(ke.c)(Bi),_transactionsSentDuringProcess:Object(ke.c)(Array),_transactionsRemovedDuringProcess:Object(ke.c)(Array),_transactionDependencies:Object(ke.c)(Object),_process:function(){if(!this._isProcessing){this._isProcessing=!0;var e=this._pendingTransactions,t=this._activeTransactions;this.process(e.transactions,t.transactions),this._isProcessing=!1;var n=this._transactionsSentDuringProcess,i=n.length;if(i>0){for(var r=0;r<i;r++){var a=n[r];e.remove(a),t.add(a)}n.length=0}var o=this._transactionsRemovedDuringProcess,s=o.length;if(s>0){for(var c=0;c<s;c++){var l=o[c];e.remove(l),t.remove(l)}o.length=0}}},_transactionDidFinish:function(e){this._activeTransactions.remove(e),function(e,t){var n=Object(Ni.b)(t),i=e[n];Array.isArray(i)&&(i.length=0,(ki||(ki=[])).push(i)),delete e[n]}(this._transactionDependencies,e),0!==this._pendingTransactions.length&&this._process()},staticMembers:{__QUALIFIED_CLASS_NAME__:"TransactionProcessor"}}),Wi=zi.extend({maximumActiveTransactions:6,prioritizeReads:!1,process:function(e,t){var n=this.maximumActiveTransactions-t.length;if(!(n<=0)){var i=void 0;if(this.prioritizeReads){i=[];for(var r=e.length,a=0;a<r&&i.length<n;a++){var o=e[a];o.isRead&&i.push(o)}for(var s=0;s<r&&i.length<n;s++){var c=e[s];c.isRead||i.push(c)}}else i=e.slice(0,n);for(var l=0,u=i.length;l<u;l++)this.sendTransaction(i[l])}},staticMembers:{__QUALIFIED_CLASS_NAME__:"ParallelTransactionProcessor"}}),Hi=Wi.extend({maximumActiveTransactions:1,prioritizeReads:!0,staticMembers:{__QUALIFIED_CLASS_NAME__:"SerializedTransactionProcessor"}}),$i=[],Gi={mixinDependencies:[p.b],loadData:function(e,t,n){e||Object(o.b)("CW.Data.DataManager#loadData: No model class provided.",{dataManager:this}),t||Object(o.b)("CW.Data.DataManager#loadData: No data hash provided.",{dataManager:this,modelClass:e});var i,r,a=Qn.create(),s=this._loadedStoreIds;if(Array.isArray(t))for(var c=0,l=t.length;c<l;c++)r=er(e,t[c]),i=Yn.getStoreIdForPrimaryKey(e,r),n||(s[i]=!0),a.recordChange(this.createChangeForDataItem(i,t[c],n));else r=er(e,t),i=Yn.getStoreIdForPrimaryKey(e,r),n||(s[i]=!0),a.recordChange(this.createChangeForDataItem(i,t,n));return this.merge(a).then(this.didLoadData.bind(this,a))},removeData:function(e,t){e||Object(o.b)("CW.Data.DataManager#removeData: No model class provided.",{dataManager:this}),t||Object(o.b)("CW.Data.DataManager#removeData: No primary key(s) provided.",{dataManager:this,modelClass:e});var n,i=Qn.create();if(Array.isArray(t))for(var r=0,a=t.length;r<a;r++)n=Yn.getStoreIdForPrimaryKey(e,t[r]),i.recordChange(this.createChangeForDataItem(n,null));else n=Yn.getStoreIdForPrimaryKey(e,t),i.recordChange(this.createChangeForDataItem(n,null));return this.merge(i).then(this.didRemoveData.bind(this,i))},didLoadData:function(e){return this.didChangeDataForStoreIds(e.storeIds),e},didRemoveData:function(e){return this.didChangeDataForStoreIds(e.storeIds),e},MergeStrategy:Oi,willMergeData:function(e){return e},didMergeData:function(e){return e},merge:function(e){var t,n,i=this,r=this.getPath("MergeStrategy.sharedInstance"),a=e.length;this.willMergeData(e);var o=[];for(n=0;n<a;n++)t=e.objectAt(n),o.push(r.action(this,t));for(n=0;n<a;n++)t=e.objectAt(n),this.notifyModel(t.storeId,Ji,t);return On.a.all(o).then(function(){return i.didMergeData(e)})},notifyModel:function(e,t){var n=this._materializedModels,i=n&&n[e];if(i){var r=arguments.length;$i.length=r+1-2;for(var a=2,o=1;a<r;a++,o++)$i[o]=arguments[a];var s=$i;s[0]=i,t.apply(this,s)}},getNetworkStatus:function(e,t){e||Object(o.b)("CW.Data.DataManager#getNetworkStatus: No model class provided.",{dataManager:this}),t||Object(o.b)("CW.Data.DataManager#getNetworkStatus: No primary key provided.",{dataManager:this,modelClass:e});var n=this.transactionProcessor;return n||Object(o.b)("CW.Data.DataManager#getNetworkStatus: No transaction processor defined.",{dataManager:this,modelClass:e,primaryKey:t}),n.getNetworkStatus(e,t)},getLoadStatus:function(e,t){e||Object(o.b)("CW.Data.DataManager#getLoadStatus: No model class provided.",{dataManager:this}),t||Object(o.b)("CW.Data.DataManager#getLoadStatus: No primary key provided.",{dataManager:this,modelClass:e});var n=Yn.getStoreIdForPrimaryKey(e,t);return this._loadedStoreIds[n]?Un.LOADED:Un.NOT_LOADED},transactionProcessor:Object(ke.c)(Hi),operationHandlers:Object(ke.c)(Array),getActiveTransactions:function(e,t){e||Object(o.b)("CW.Data.DataManager#getActiveTransactions: No model class provided.",{dataManager:this}),t||Object(o.b)("CW.Data.DataManager#getActiveTransactions: No primary key provided.",{dataManager:this,modelClass:e});var n=this.transactionProcessor;return n||Object(o.b)("CW.Data.DataManager#getActiveTransactions: No transaction processor defined.",{dataManager:this,modelClass:e,primaryKey:t}),n.getActiveTransactions(e,t)},performOperation:function(e,t){e||Object(o.b)("CW.Data.DataManager#performOperation: No operation provided.",{dataManager:this}),Object(pi.a)(e)&&(e={type:e}),t?e.context?Object(o.b)("CW.Data.DataManager#performOperation: Conflict with `context` parameter; `operation` already contains a `context`. You must only provide one context per operation.",{dataManager:this,operation:e}):e.context=t:t=e.context||{},Object(a.a)(t)||Object(o.b)("CW.Data.DataManager#performOperation: context must be of type: object.",{dataManager:this}),t.operation=e;var n=this.transactionProcessor;n||Object(o.b)("CW.Data.DataManager#performOperation: No transaction processor defined.");var i=xi.create(t),r=this._outstandingTransactions,s=Object(Ni.b)(i);return r[s]=i,i.finally(function(){delete r[s]}).catch(bt.a),n.addTransaction(i),i},commit:function(){var e,t=this._changes;if(this._changes=null,t&&t.length){e=this.performOperation(t.operation);for(var n=0,i=t.length;n<i;n++){var r=t.objectAt(n);this._commitChange(r)}}else(e=xi.create()).complete();return e},commitStoreIds:function(e){var t=this,n=this._changes;if(!n){var i=xi.create();return i.complete(),i}Array.isArray(e)||(e=[e]);var r=e.map(function(e){return n.removeChangeForStoreId(e)}).filter(Hn.a);if(0===r.length){var a=xi.create();return a.complete(),a}var o=r.reduce(function(e,t){return e.recordChange(t),e},Qn.create()),s=void 0;o.getPath("operation.context")||(s={changes:o});var c=this.performOperation(o.operation,s);return r.forEach(function(e){return t._commitChange(e)}),c},commitPrimaryKeys:function(e,t){var n;return n=Array.isArray(t)?t.map(function(t){return Yn.getStoreIdForPrimaryKey(e,t)}):Yn.getStoreIdForPrimaryKey(e,t),this.commitStoreIds(n)},findHandlerForOperation:function(e){return wi(e.type,this.operationHandlers)},sendTransaction:function(e){e||Object(o.b)("CW.Data.DataManager#sendTransaction: No transaction provided.",{dataManager:this}),e.status===xi.ACTIVE&&Object(o.b)("CW.Data.DataManager#sendTransaction: Transaction is already active.",{dataManager:this,transaction:e});var t=e.operation,n=this.findHandlerForOperation(t);if(n){e.activate();var i=e.changes;if(i)for(var r=0,a=i.length;r<a;r++){var s=i.objectAt(r);this.notifyModel(s.storeId,Zi)}n.action(t).then(function(t){if(Object(qe.a)(t,qn))this.notifyModel(t.storeId,Zi),t=t.model;else if(Object(qe.a)(t,Qn))if(1===t.length)t=t.objectAt(0).model,this.notifyModel(t.storeId,Zi);else{for(var n=0,i=t.length;n<i;n++){var r=t.objectAt(n);this.notifyModel(r.storeId,Zi)}t=t.models}e.complete(t)}.bind(this),function(t){e.fail(t)})}else{for(var c,l=Li.a,u=qt.a,d=[],h=t;h;)c=l(h.type)?u(h.type):String(h.type),d.push(c),h=h.operation;e.fail("No handler for operation: "+d.join(" > "))}},cancelAllTransactions:function(){this.cancelAllActiveTransactions(),this.cancelAllPendingTransactions()},cancelAllActiveTransactions:function(){Xi(this._outstandingTransactions,"cancel",xi.ACTIVE)},cancelAllPendingTransactions:function(){Xi(this._outstandingTransactions,"cancel",xi.PENDING)},failAllTransactions:function(){this.failAllActiveTransactions(),this.failAllPendingTransactions()},failAllActiveTransactions:function(){Xi(this._outstandingTransactions,"fail",xi.ACTIVE)},failAllPendingTransactions:function(){Xi(this._outstandingTransactions,"fail",xi.PENDING)},_outstandingTransactions:Object(ke.c)(Object),createChangeForDataItem:function(e,t){var n=Object(Sn.a)(this._persistenceStore.readData(e));if(t)for(var i in t)this._persistenceStore.writeDataProperty(e,i,t[i]);else this._persistenceStore.deleteData(e);return qn.create(e,n,t)},_loadedStoreIds:Object(ke.c)(Object),init:function(e){var t=arguments,n=yn();n&&Object(o.b)("CW.Data.DataManager#init: Data manager already exists. Only one data manager can be instantiated.",{existingDataManager:n,erroringDataManager:this}),Cn(this),this.__s._$8R0$init.apply(this,t),this._dataHashes=Object.create(this._persistenceStore._dataHashes)},_persistenceStore:Object(B.d)({readOnly:!0,defaultValue:function(){return Yn.create({MergeStrategy:Mi})}}),_commitChange:function(e){var t=e.storeId,n=e.newData,i=e.modelClass;this.notifyModel(t,Zi);var r=n&&er(i,n);null!==r&&void 0!==r&&r!==Yn.getPrimaryKeyForStoreId(t)&&Yn.setPrimaryKeyForStoreId(t,r)},__superMap:{_$8R0$init:"init"}},Ki=void 0;function Qi(e){return(Ki||(Ki=Yn.extend(Gi))).create(e)}var qi=["updated","added","removed"],Yi=[];function Xi(e,t,n){for(var i in e){var r=e[i];r.status===n&&r[t]()}}function Ji(e,t){var n=t.newData;if(n){var i=t.diff;if(i){var r=Yi;r.length=0;for(var a=t.modelClass,o=0,s=qi.length;o<s;o++)for(var c=i[qi[o]],l=0,u=c.length;l<u;l++){var d=c[l];if(n.hasOwnProperty(d)){var h=a.getKeyForDataKey(d),p=e.get(h),f=void 0;if(Object(qe.a)(p,Kn.a)){var m=Object(qe.a)(p,fi)||Object(qe.a)(p,di),g=n[d];if(g)if(m){var v=t.originalData,_=Ee.a.fromArrays(v&&v[d],g,e);p.contentsDidChange(_)}else{var y=Object(Sn.a)(g);y.unshift(p.length),y.unshift(0),p.splice.apply(p,y)}else f=e.getMetadata(h),Object(qe.a)(f,ri)&&f.clearCachedValueForObject(e,h)}f=f||e.getMetadata(h),Object(qe.a)(f,ri)&&r.push(h)}}b.a.pause();for(var C=0,I=r.length;C<I;C++)e.propertyChanged(r[C]);e.propertyChanged("loadStatus"),e.propertyChanged("networkStatus"),e.dataDidLoad(),b.a.resume(),r.length=0}}}function Zi(e){e.propertyChanged("networkStatus")}function er(e,t){var n=e.primaryKey;return n||Object(o.b)("CW.Data.DataManager#getPrimaryKeyFromData: Attempted to locate primary key on a model class that does not specify one.",{data:t,modelClass:e}),t[e.getDataKeyForKey(n)]}var tr={mixinDependencies:[He.a],baseValue:Pe.a.define(),direction:Pe.a.define(),key:Pe.a.define(),leftValue:Pe.a.define(),rightValue:Pe.a.define(),type:Pe.a.define()},nr={valueForChange:null,valueForChangeInChangeSets:null},ir=n(863),rr=Object(Qt.b)("MERGE_DIRECTION",["LEFT","RIGHT","BOTH"]),ar=Object(En.b)("MERGE_FAILED_RESULT"),or=Object(Qt.b)("MERGE_TYPE",["ADD","REMOVE","UPDATE","UPDATE_AND_REMOVE"]),sr=void 0;function cr(e,t,n,i,r){null==i&&((i=sr)||(i=sr=d.a.extend(_r).create()));var a=Ln(n,e),o=Ln(n,t),s=null!=i.valueForChangeInChangeSets,c=void 0,l=void 0,u=void 0;s&&(c={},l={},u={});var h=Object(Sn.a)(n),p=!1;return function(e,t,n,i,r,a,o,s,c,l,u){var d=!0;return a&&(d=gr(e,t,n,i,r,a,o,s,0,0,u)),d&&o&&(d=gr(e,t,n,i,r,o,a,s,0,0,u)),d}(e,t,n,i,h,a,o,c,0,0,r)&&function(e,t,n,i,r,a,o,s,c){var l=!0;return a&&(l=mr(e,t,n,i,r,a,o,s,c)),l&&o&&(l=mr(e,t,n,i,r,o,a,s,c)),l}(e,t,n,i,h,a,o,l,r)&&(p=function(e,t,n,i,r,a,o,s,c){var l=!0;return a&&(l=fr(e,t,n,i,r,a,o,s,c)),l&&o&&(l=fr(e,t,n,i,r,o,a,s,c)),l}(e,t,n,i,h,a,o,u,r)),p&&s&&(p=function(e,t,n,i,r,a){var o=!1;return pr(e,t,n,n,i,r,a)&&pr(e,t,i,n,i,r,a)&&(o=pr(e,t,r,n,i,r,a)),o}(i,h,c,l,u,r)),p?h:ar}var lr={baseValue:null,direction:null,key:null,leftValue:null,rightValue:null,type:null},ur="Failed to merge objects: ",dr="A value was rejected.",hr="The objects had logically impossible differences (e.g. left added a property that right claims to have removed).";function pr(e,t,n,i,r,a,o){for(var s=Object.keys(n),c=s.length-1;c>=0;c--){var l=n[s[c]],u=l.key,d=l.type,h=e.valueForChangeInChangeSets(l,i,r,a,o);if(h===ar)return ir.b.debug(ur+dr,{change:l,parentKeyPath:o}),!1;Array.isArray(t)?d===or.ADD?t.push(h):d===or.REMOVE||d===or.UPDATE_AND_REMOVE&&void 0===h?t.pop():t[u]=h:d===or.REMOVE||d===or.UPDATE_AND_REMOVE&&void 0===h?delete t[u]:t[u]=h}return!0}function fr(e,t,n,i,r,a,o,s,c){for(var l=a.added,u=l.length,d=0;d<u;d++){var h=l[d];if(o){if(o.updated.indexOf(h)>=0||o.removed.indexOf(h)>=0)return ir.b.debug(ur+hr,{checkingDiff:a,againstDiff:o,parentKeyPath:c}),!1;var p=o.added,f=p.indexOf(h);f>=0&&p.splice(f,1)}var m=br(or.ADD,i,e,t,n,h);if(null==i.valueForChangeInChangeSets){var g=i.valueForChange(m,c);if(g===ar)return ir.b.debug(ur+dr,{change:m,parentKeyPath:c}),!1;var b=Object(Sn.a)(g);Array.isArray(r)?r.push(b):r[h]=b}else s[h]=m}return!0}function mr(e,t,n,i,r,a,o,s,c){for(var l=a.removed,u=l.length,d=0;d<u;d++){var h=l[d];if(o){if(o.added.indexOf(h)>=0)return ir.b.debug(ur+hr,{checkingDiff:a,againstDiff:o,parentKeyPath:c}),!1;var p=o.removed,f=p.indexOf(h);f>=0&&p.splice(f,1)}var m=br(or.REMOVE,i,e,t,n,h);if(null==i.valueForChangeInChangeSets){var g=i.valueForChange(m,c);if(g===ar)return ir.b.debug(ur+dr,{change:m,parentKeyPath:c}),!1;void 0===g?Array.isArray(r)?r.pop():delete r[h]:r[h]=Object(Sn.a)(g)}else s[h]=m}return!0}function gr(e,t,n,i,r,a,o,s,c,l,u){for(var d=a.updated,h=d.length,p=0;p<h;p++){var f=d[p],m=!1;if(o){if(o.added.indexOf(f)>=0)return ir.b.debug(ur+hr,{checkingDiff:a,againstDiff:o,parentKeyPath:u}),!1;var g=o.removed,b=g.indexOf(f);b>=0&&(g.splice(b,1),m=!0);var v=o.updated,_=v.indexOf(f);_>=0&&v.splice(_,1)}var y=br(m?or.UPDATE_AND_REMOVE:or.UPDATE,i,e,t,n,f);if(null==i.valueForChangeInChangeSets){var C=i.valueForChange(y,u);if(C===ar)return ir.b.debug(ur+dr,{change:y,parentKeyPath:u}),!1;void 0===C?Array.isArray(r)?r.pop():delete r[f]:r[f]=Object(Sn.a)(C)}else s[f]=y}return!0}function br(e,t,n,i,r,a){var s=r[a],c=n[a],l=i[a],u=void 0,d=void 0;e===or.ADD?(u=void 0!==c,d=void 0!==l):e===or.REMOVE?(u=void 0===c||void 0,d=void 0===l||void 0):e===or.UPDATE?(u=!Object(Tn.a)(s,c),d=!Object(Tn.a)(s,l)):e===or.UPDATE_AND_REMOVE?u=d=!0:Object(o.b)("Unrecognized merge type: "+e);var h=void 0;return(h=null==t.valueForChangeInChangeSets?lr:{}).baseValue=s,h.direction=u&&d?rr.BOTH:u?rr.LEFT:rr.RIGHT,h.key=a,h.leftValue=c,h.rightValue=l,h.type=e,h}var vr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_r={valueForChange:function(e,t){if(e.type!==or.REMOVE){var n=e.direction;if(n===rr.RIGHT)return e.rightValue;if(n===rr.LEFT)return e.leftValue;var i=e.baseValue,r=e.leftValue,a=e.rightValue;return"object"===(void 0===i?"undefined":vr(i))&&e.type===or.UPDATE?cr(r,a,i,this,t?t+"."+e.key:e.key):Object(Tn.a)(r,a)?r:ar}}},yr=n(874),Cr=n(525),Ir=n(380),wr=n(103),Sr=n(893),Ar=n(277),Or=n(105),Er=n(224),Tr=n(201),Dr=n(102),Lr=n(873),Nr=n(223),Mr=n(156),Pr=n(388),xr=n(536),Rr=n(528),jr=n(527),Fr=n(524),Vr=n(233),Ur=n(526),kr=n(523),Br=n(531),zr=n(530),Wr=n(362),Hr=n(529),$r=n(876),Gr=n(283),Kr=n(231),Qr=n(378),qr=n(872),Yr=n(90),Xr=n(379),Jr=n(562);r.b(r.c(),{"Date.Quarter.StandAlone.Q4.Full":"4º trimestre","Date.Month.StandAlone.December.Abbreviated":"dic","Date.Month.Prepositional.December.Abbreviated":"dic","Date.Day.StandAlone.Tuesday.Abbreviated":"mar","Date.Day.StandAlone.Saturday.Abbreviated":"sáb","Date.Day.Tuesday.Full":"martes","Date.Month.Prepositional.September.Full":"Septiembre","Date.Month.StandAlone.November.Abbreviated":"nov","Date.Month.StandAlone.September.Letter":"s","Date.Month.StandAlone.January.Abbreviated":"ene","Date.Month.February.Abbreviated":"feb","Date.Day.Sunday.Letter":"d","Date.Month.Prepositional.November.Letter":"N","Date.Month.StandAlone.June.Letter":"j","Date.Month.StandAlone.March.Full":"marzo","Date.Quarter.StandAlone.Q2.Full":"2º trimestre","Date.Day.Monday.Abbreviated":"lun","Date.Era.BC.Full":"antes de Cristo","Date.Month.December.Full":"diciembre","Date.Month.June.Letter":"j","Date.Day.StandAlone.Thursday.Abbreviated":"jue","Date.Month.January.Full":"enero","Date.Day.Saturday.Full":"sábado","Date.Day.Sunday.Full":"domingo","Date.Quarter.Q2.Abbreviated":"T2","Date.Month.Prepositional.October.Abbreviated":"oct","Date.Month.August.Letter":"a","Date.Day.Thursday.Full":"jueves","Date.Day.StandAlone.Tuesday.Full":"martes","Date.Month.StandAlone.July.Full":"julio","Date.Month.March.Abbreviated":"mar","Date.Month.StandAlone.October.Abbreviated":"oct","Date.Day.Thursday.Letter":"j","Date.Month.StandAlone.June.Abbreviated":"jun","Date.Month.Prepositional.October.Letter":"O","Date.Month.StandAlone.May.Abbreviated":"may","Date.Day.StandAlone.Thursday.Letter":"R","Date.Month.September.Full":"septiembre","Date.Month.Prepositional.March.Full":"Marzo","Date.Month.Prepositional.June.Full":"Junio","AXGrabToggleButton.AriaLabel.Grabbed":"Utiliza las teclas de flecha para desplazarte. Presiona Return o Intro para confirmar o Escape para cancelar.","Date.Month.March.Letter":"m","Date.Period.PM":"p.m.","Date.Quarter.Q4.Abbreviated":"T4","Date.Month.April.Letter":"a","Date.Month.Prepositional.September.Letter":"S","Date.Month.Prepositional.December.Letter":"D","Date.Month.July.Full":"julio","Date.Day.StandAlone.Saturday.Letter":"s","Date.Month.April.Abbreviated":"abr","Date.Day.StandAlone.Friday.Full":"viernes","Date.Day.Saturday.Letter":"s","Date.Month.June.Abbreviated":"jun","Date.Day.StandAlone.Sunday.Full":"domingo","Date.Quarter.StandAlone.Q4.Abbreviated":"T4","Date.Month.November.Letter":"n","Date.Quarter.Q3.Full":"3º trimestre","Date.Day.Tuesday.Letter":"m","Date.Month.StandAlone.April.Abbreviated":"abr","Date.Month.Prepositional.March.Letter":"T","Date.Month.StandAlone.April.Letter":"a","Date.Day.StandAlone.Friday.Abbreviated":"vie","Date.Day.Friday.Letter":"v","Date.Month.June.Full":"junio","Date.Day.StandAlone.Sunday.Abbreviated":"dom","Date.Day.Wednesday.Letter":"m","Date.Month.StandAlone.June.Full":"junio","Date.Day.Wednesday.Full":"miércoles","Date.Period.AM":"a.m.","Date.Month.October.Full":"octubre","Date.Day.StandAlone.Thursday.Full":"jueves","Date.Day.Tuesday.Abbreviated":"mar","Date.Month.Prepositional.August.Full":"Agosto","Date.Month.Prepositional.November.Full":"Noviembre","Date.Quarter.Q1.Abbreviated":"T1","Date.Day.Sunday.Abbreviated":"dom","Date.Month.StandAlone.August.Letter":"a","Date.Month.September.Abbreviated":"sep","Date.Month.StandAlone.September.Abbreviated":"sep","Date.Month.StandAlone.October.Letter":"o","Date.Month.July.Abbreviated":"jul","Date.Month.Prepositional.May.Abbreviated":"may","Date.Month.StandAlone.April.Full":"abril","Date.Month.February.Full":"febrero","Date.Month.November.Full":"noviembre","Date.Month.Prepositional.November.Abbreviated":"nov","Date.Month.Prepositional.March.Abbreviated":"mar","Date.Month.Prepositional.April.Letter":"A","Date.Month.January.Letter":"e","Date.Day.Monday.Full":"lunes","AXGrabToggleButton.AriaLabel.Ungrabbed":"Reorganizar %{title}","Date.Month.StandAlone.August.Abbreviated":"ago","Date.Month.Prepositional.May.Letter":"T","Date.Month.StandAlone.May.Letter":"m","Date.Month.Prepositional.August.Abbreviated":"ago","Date.Era.BC.Letter":"a","Date.Month.StandAlone.July.Abbreviated":"jul","Date.Day.StandAlone.Monday.Full":"lunes","Date.Month.May.Abbreviated":"may","Date.Quarter.StandAlone.Q2.Abbreviated":"T2","Date.Month.StandAlone.December.Full":"diciembre","Date.Month.StandAlone.September.Full":"septiembre","Date.Month.StandAlone.November.Letter":"n","Date.Month.StandAlone.January.Letter":"e","Date.Month.December.Abbreviated":"dic","Date.Quarter.Q1.Full":"1º trimestre","Date.Day.Thursday.Abbreviated":"jue","Date.Month.Prepositional.December.Full":"Diciembre","Date.Month.Prepositional.July.Abbreviated":"jul","Date.Day.Friday.Full":"viernes","Date.Quarter.Q3.Abbreviated":"T3","Date.Month.StandAlone.July.Letter":"j","Date.Quarter.Q4.Full":"4º trimestre","Date.Day.Wednesday.Abbreviated":"mié","Date.Month.Prepositional.April.Abbreviated":"abr","Date.Day.StandAlone.Tuesday.Letter":"m","Date.Month.StandAlone.December.Letter":"d","Date.Day.Friday.Abbreviated":"vie","Date.Era.BC.Abbreviated":"a.C.","ReorderableSimpleListViewController.CancelledMove":"Desplazamiento cancelado","Date.Day.StandAlone.Monday.Letter":"l","Date.Month.StandAlone.January.Full":"enero","Date.Month.Prepositional.February.Letter":"R","Date.Day.StandAlone.Friday.Letter":"v","Date.Month.Prepositional.April.Full":"Abril","Date.Month.October.Abbreviated":"oct","Date.Month.August.Full":"agosto","Date.Month.October.Letter":"o","Date.Month.StandAlone.August.Full":"agosto","Date.Quarter.StandAlone.Q3.Abbreviated":"T3","Date.Era.AD.Full":"después de Cristo","Date.Month.StandAlone.May.Full":"mayo","Date.Month.April.Full":"abril","Date.Month.StandAlone.March.Letter":"m","Date.Month.Prepositional.June.Abbreviated":"jun","Date.Month.May.Letter":"m","Date.Quarter.StandAlone.Q1.Abbreviated":"T1","Date.Month.May.Full":"mayo","Date.Day.StandAlone.Wednesday.Full":"miércoles","Date.Month.Prepositional.January.Full":"Enero","ReorderableSimpleListViewController.GrabbedItem.MovedUp":"Desplazado sobre %{itemTitle}","Date.Month.StandAlone.November.Full":"noviembre","Date.Month.Prepositional.February.Abbreviated":"feb","Date.Month.Prepositional.May.Full":"Mayo","Date.Day.StandAlone.Sunday.Letter":"d","Date.Month.StandAlone.March.Abbreviated":"mar","Date.Month.Prepositional.July.Letter":"N","Date.Month.Prepositional.August.Letter":"A","Date.Month.StandAlone.February.Abbreviated":"feb","Date.Month.Prepositional.January.Abbreviated":"ene","Date.Month.February.Letter":"f","Date.Era.AD.Letter":"T","Date.Month.Prepositional.January.Letter":"N","Date.Quarter.StandAlone.Q1.Full":"1º trimestre","Date.Day.StandAlone.Wednesday.Abbreviated":"mié","Date.Month.Prepositional.February.Full":"Febrero","Date.Month.November.Abbreviated":"nov","Date.Quarter.Q2.Full":"2º trimestre","Date.Month.August.Abbreviated":"ago","Date.Day.StandAlone.Wednesday.Letter":"m","Date.Month.StandAlone.February.Full":"febrero","Date.Month.StandAlone.February.Letter":"f","Date.Day.StandAlone.Saturday.Full":"sábado","ReorderableSimpleListViewController.GrabbedItem.MovedDown":"Desplazado debajo de %{itemTitle}","Date.Day.StandAlone.Monday.Abbreviated":"lun","Date.Month.Prepositional.October.Full":"Octubre","ReorderableSimpleListViewController.ItemDropped":"%{itemTitle} desplazado a la posición %{positionNumber}","Date.Day.Monday.Letter":"l","Date.Day.Saturday.Abbreviated":"sáb","Date.Month.Prepositional.September.Abbreviated":"sep","Date.Month.Prepositional.July.Full":"Julio","Date.Era.AD.Abbreviated":"d.C.","Date.Month.January.Abbreviated":"ene","Date.Quarter.StandAlone.Q3.Full":"3º trimestre","Date.Month.StandAlone.October.Full":"octubre","Date.Month.Prepositional.June.Letter":"N","Date.Month.March.Full":"marzo","Date.Month.July.Letter":"j","Date.Month.September.Letter":"s","Date.Month.December.Letter":"d"});var Zr=function e(t,n){if(t){if(!t.getFullYear)throw new TypeError("Object passed to date formatter was not a date!");isNaN(t.getTime())&&Object(o.b)("Invalid date passed to date formatter")}else Object(o.b)("No date passed to date formatter.");n||Object(o.b)("No formatting string passed to date formatter. Date: "+t);for(var i=n.length,r=n[0],a=1;a<i;a++)n[a]!==r&&Object(o.b)("Invalid format string for a date; all characters mustbe the same: "+n+"; date: "+t);var s=e[r];return s||Object(o.b)("Formatter `"+r+"` not supported for date: "+t),s(t,i)};Zr.G=function(e,t){var n="Date.Era.";return n+=e.getFullYear()>=0?"AD":"BC",t<=3?Object(r.d)(n+".Abbreviated"):4===t?Object(r.d)(n+".Full"):5===t?Object(r.d)(n+".Letter"):void Object(o.b)("Invalid era format: Expected at most 5 digits; found "+t+".")},Zr.y=function(e,t){var n=e.getFullYear();1===t&&(t=n.length);for(var i=Math.abs(n).toString();i.length<t;)i="0"+i;return i.substr(i.length-t)},Zr.Y=Zr.y,Zr.u=function(e,t){var n=e.getFullYear();1===t&&(t=n.length);for(var i=e.getFullYear()<0,r=Math.abs(n).toString();r.length<t;)r="0"+r;return r=r.substr(r.length-t),(i?"-":"")+r},Zr.Q=function(e,t,n){var i=e.getMonth(),a=Math.floor(i/3)+1,s="Date.Quarter."+(n?"StandAlone.":"")+"Q"+a;return 1===t?""+a:2===t?"0"+a:3===t?Object(r.d)(s+".Abbreviated"):4===t?Object(r.d)(s+".Full"):void Object(o.b)("Unrecognized number of characters for quarter: "+t)},Zr.q=function(e,t){return Zr.Q(e,t,!0)},Zr.ENGLISH_MONTH_NAMES=["January","February","March","April","May","June","July","August","September","October","November","December"],Zr.M=function(e,t,n){var i=e.getMonth(),a=""+(i+1),s="Date.Month."+(n||"")+Zr.ENGLISH_MONTH_NAMES[i];return 1===t?a:2===t?(a.length<2&&(a="0"+a),a):3===t?Object(r.d)(s+".Abbreviated"):4===t?Object(r.d)(s+".Full"):5===t?Object(r.d)(s+".Letter"):void Object(o.b)("The # of Ms or Ls must be 1 to 5. Supplied: "+t)},Zr.L=function(e,t){return Zr.M(e,t,"StandAlone.")},Zr.P=function(e,t){return Zr.M(e,t,"Prepositional.")},Zr.d=function(e,t){var n=""+e.getDate();return t>n.length&&(n="0"+n),n},Zr.D=function(e,t){var n=new Date(e.getFullYear(),0,1).getTime(),i=e.getTime()-n,r=Math.floor(i/864e5)+1;for(r=""+r;r.length<t;)r="0"+r;return r},Zr.ENGLISH_DAY_NAMES=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Zr.E=function(e,t){return t<3&&(t=3),Zr.e(e,t)},Zr.e=function(e,t,n){var i=e.getDay(),a=""+(i+1),s="Date.Day."+(n?"StandAlone.":"")+Zr.ENGLISH_DAY_NAMES[i];return 1===t?a:2===t?a="0"+a:3===t?Object(r.d)(s+".Abbreviated"):4===t?Object(r.d)(s+".Full"):5===t?Object(r.d)(s+".Letter"):void Object(o.b)("Unrecognized number of `e`s, `c`s, or `E`s in date format string.")},Zr.c=function(e,t){return Zr.e(e,t,!0)},Zr.a=function(e,t){1!==t&&Object(o.b)("`a` can only be included in a date format string once.");var n="Date.Period."+(e.getHours()>11?"PM":"AM");return Object(r.d)(n)},Zr._h=function(e,t,n,i){var r=e.getHours();n||(r%=12),i&&(n?0===r&&(r=24):0===r&&(r=12));var a=""+r;return a.length<t&&(a="0"+a),a},Zr.h=function(e,t){return Zr._h(e,t,!1,1)},Zr.H=function(e,t){return Zr._h(e,t,!0,0)},Zr.K=function(e,t){return Zr._h(e,t,!1,0)},Zr.k=function(e,t){return Zr._h(e,t,!0,1)},Zr.m=function(e,t){for(var n=""+e.getMinutes();n.length<t;)n="0"+n;return n},Zr.s=function(e,t){for(var n=""+e.getSeconds();n.length<t;)n="0"+n;return n},Zr.S=function(e,t){var n=e.getMilliseconds()/1e3,i=Math.pow(10,t);for(n=""+(n=Math.round(n*i));n.length<t;)n="0"+n;return n},Zr.A=function(e,t){var n=new Date(e.getFullYear(),e.getMonth(),e.getDay()).getTime(),i=e.getTime()-n;for(i=""+i;i.length<t;)i="0"+i;return i};var ea=n(906),ta=n(931),na=n(907),ia=n(390),ra=n(398),aa=n(278),oa=n(556),sa=n(500),ca=n(540),la=n(293),ua=n(389),da=n(56),ha=la.a.extend({hasHandlerForProcedure:function(e){return Object(Hn.a)(fa(e,this))},registerProcedure:function(e,t,n){!function(e,t,n,i){var r=i.channel,a=pa.get(r);a||(a=new Map,pa.set(r,a));var s=a.get(e);s&&Object(o.b)("A handler for `%{procedureName}` was already registered on this channel",{procedureName:e,registration:s}),a.set(e,{listener:i,target:t,handlerMethodName:n})}(e,t,n=n||e,this)},registerProcedures:function(e,t){for(var n=e.length,i=0;i<n;i++){var r=e[i];Array.isArray(r)?this.registerProcedure(r[0],t,r[1]):this.registerProcedure(r,t)}},unregisterProcedure:function(e){var t=this.channel,n=pa.get(t);n&&n.get(e).listener===this&&(n.delete(e),0===n.size&&n.delete(t))},unregisterProcedures:function(e){var t=this;e.forEach(function(e){t.unregisterProcedure(e)})},unregisterAllProcedures:function(){var e=pa.get(this.channel);if(e)for(var t=e.entries(),n=void 0;n=t.next().value;){var i=n[0];n[1].listener===this&&e.delete(i)}},shouldHandleMessage:function(e){var t=this;return(Array.isArray(e)?e:[e]).filter(function(e){return e&&Object(Hn.a)(e.jsonrpc)&&e.jsonrpc===t.messageFormatter.jsonRpcVersion&&Object(Hn.a)(e.method)}).length>0},handleMessage:function(e){var t=this,n=Array.isArray(e),i=n?e:[e],r=On.a.wrapFunction(ma),a=this.messageFormatter,o=[],s={};return i.forEach(function(e){var n=e.id,i=r(e,t).then(function(e){s[n]=function(e,t,n){if(Object(Hn.a)(t))return e.generateResultMessageFor(t,n)}(a,n,e)}).catch(function(e){if(s[n]=ga(a,n,e),!(e instanceof da.b))throw e});o.push(i)}),On.a.all(o).then(function(){return ba(t,i,s,n)},function(e){throw ba(t,i,s,n),e})},dispose:function(){this.unregisterAllProcedures(),this.__s._$36r$dispose.call(this)},__superMap:{_$36r$dispose:"dispose"},staticMembers:{__QUALIFIED_CLASS_NAME__:"JsonRpcListener"}}),pa=new Map;function fa(e,t){var n=pa.get(t.channel);if(n){var i=n.get(e);if(i&&i.listener===t)return i}return null}function ma(e,t){if(t.isDisposed)return new Promise(function(){});var n=e.method,i=e.params,r=void 0===i?[]:i;if(Object(Hn.a)(r)&&!Array.isArray(r)){var a="JSON-RPC calls in JavaScript cannot support `params` as an Object, only as an Array";throw ir.b.error(a,e),new da.d(a,{message:e})}var o=fa(n,t);if(!o)throw ir.b.error("The JSON-RPC registration was not found",e,t),new da.f("The JSON-RPC registration was not found",{message:e,listener:t});var s=o.target;if(!s)throw ir.b.error("The JSON-RPC target was not found",e,t),new da.f("The JSON-RPC target was not found",{message:e,listener:t});var c=s[o.handlerMethodName];if(!c)throw ir.b.error("The JSON-RPC method was not found",e,t),new da.f("The JSON-RPC method was not found",{message:e,listener:t});return c.call.apply(c,[s].concat(r))}function ga(e,t,n){if(Object(Hn.a)(t))return e.generateErrorMessageFor(t,n)}function ba(e,t,n,i){var r=e.messageFormatter,a=[];if(t.forEach(function(e){var t=e.id;if(Object(Hn.a)(t)){var i=n[t];if(!i){var o=new da.c("The JSON-RPC call was part of a batch which failed due to a fatal error thrown by another call.");i=ga(r,t,o)}a.push(i)}}),a.length>0){var o=i?a:a[0];e.channel.send(e.serializer.encode(o))}}var va=n(539),_a=n(99),ya=n(230),Ca=n(868),Ia=n(200),wa=n(503),Sa=n(909),Aa=n(501),Oa=n(502),Ea=n(374),Ta=n(866),Da={Audio:"audio.*",Image:"image.*",Video:"video.*"},La=d.a.extend({staticMembers:{KILOBYTE:1024,MEGABYTE:1048576,GIGABYTE:1073741824,TERABYTE:1099511627776,PETABYTE:0x4000000000000,__QUALIFIED_CLASS_NAME__:"FileValidator"},allowedFileTypes:null,maxSize:null,minSize:null,validate:function(e){k.get("sharedInstance").isFile(e)||Object(o.b)("Must provide a file.");var t=this.get("allowedFileTypes");if(t&&!e.type.match(t))return!1;var n=e.size,i=this.get("minSize"),r=this.get("maxSize");return!(r&&n>r||i&&n<i)}}),Na=Ia.a.extend(p.b,{init:function(){var e=arguments;this.__s._$Ig$init.apply(this,e),this.get("transport")!==Ea.a.get("sharedInstance")&&Object(o.b)("Attempting a file upload from an unsupported browser.",this);var t=this.uploadProgress;t.bytesTotal=this._totalSize||0,this.on(_a.b.SUCCEEDED,function(){t.bytesTransferred=t.bytesTotal})},method:_a.a.POST,body:Object(c.b)({set:function(e){return this.generateFormDataFromBody(e)},didChange:bt.a}),files:Object(ke.c)(Array),bodySerializer:null,shouldTrackUploadProgress:!0,formKey:"files",generateFormDataFromBody:function(e){var t=k.get("sharedInstance");if(t.isFormData(e)||!e)return e;var n=t.isFileList(e),i=t.isFile(e),r=t.isBlob(e);i||n||r||Object(o.b)("Must provide either a File or FileList.",{fileOrFileList:e});var a=new FormData;return this._totalSize=0,n?Array.prototype.forEach.call(e,function(e){this.appendFileToFormData(e,a)},this):this.appendFileToFormData(e,a),a},appendFileToFormData:function(e,t){var n=this.get("formKey"),i=V.a.get("sharedInstance");!e.size&&i.get("isIE")&&i.get("majorVersion")<=10?t.append(n,""):t.append(n,e),this._totalSize+=e.size||0,this.files.push(e)},__superMap:{_$Ig$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"UploadRequest"}}),Ma=n(541),Pa=n(871),xa=n(222),Ra=(n(0),Pa.a.extend({viewClass:ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"subject"}],styles:{position:"absolute",left:"0",top:"0",height:"200px",width:"200px"}}},className:"cw-responder-container"},isRootView:!0}),subject:Object(xa.b)("subject"),isRootViewController:!0,staticMembers:{__QUALIFIED_CLASS_NAME__:"ContainerViewController"}})),ja=d.a.extend({init:function(e){this.__s._$C0$init.call(this);var t=this.container;document.body.appendChild(t.view.element),t._setIsAttached(!0),t.view.isAttached=!0,(e.instanceOf(Pa.a)?t:t.view).subject=e},container:Object(B.d)({strong:!0,defaultValue:Object(ke.c)(Ra)}),dispose:function(){var e=this.container;document.body.removeChild(e.view.element),this.__s._$LJ$dispose.call(this)},__superMap:{_$C0$init:"init",_$LJ$dispose:"dispose"},staticMembers:{__QUALIFIED_CLASS_NAME__:"DOMInjector"}}),Fa=n(875);function Va(e,t,n){for(var i=n.length,r=0;r<i;r++){var a=n[r];t[a]=e[a]}return t}var Ua=d.a.extend({event:null,handled:!1,prevented:!1,rootResponder:null,eventType:null,eventKeys:["target"],generateEvent:function(e,t,n){t||(t=this.eventType),n||(n={});var i=!1,r=void 0;if(n instanceof Event){Va(r=n,n={cwType:e,nativeEvent:r},t.nativePropertiesToCopy);var a=r.preventDefault;r.preventDefault=function(){i=!0,a.apply(this,arguments)}}else r=t.create(Object(Fa.a)(n,{preventDefault:function(){i=!0}})),n=Object(Fa.a)(n,{cwType:e,nativeEvent:r});var o=t.create(n);Va(this,o,this.eventKeys),this.handled=this.rootResponder.dispatchEvent(o),this.event=o,this.prevented=i;for(var s=this.callbacks,c=s.length,l=0;l<c;l++)s[l](this);return this},init:function(){var e=arguments;this.__s._$px$init.apply(this,e),this.callbacks||(this.callbacks=[])},callbacks:null,afterEach:function(e){return this.callbacks.push(e),this},__superMap:{_$px$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EventGenerator"}}),ka=n(841),Ba={},za=Ua.extend({pointerId:null,eventType:wr.a,eventKeys:Object(Ae.b)(["pointerId","clientX","clientY","screenX","screenY","pointerType"]),init:function(){var e=arguments;this.__s._$Eb$init.apply(this,e);var t=this.pointerId;Ba[t]?Object(o.b)("cannot create another cycle with this same pointerId"):Ba[t]=!0,this.generateEvent("pointerDown")},moveTo:function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),n&&(this.target=n),this.clientX=e,this.screenX=e,this.clientY=t,this.screenY=t,this.generateEvent("pointerMove"),this},move:function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),n&&(this.target=n),this.clientX+=e,this.screenX+=e,this.clientY+=t,this.screenY+=t,this.generateEvent("pointerMove"),this},_end:function(){return Ba[this.pointerId]=!1,this.parent},end:function(){return this.generateEvent("pointerUp"),this._end()},cancel:function(){return this.generateEvent("pointerCancel"),this._end()},finish:function(){return this.end().finish()},__superMap:{_$Eb$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PointerCycle"}}),Wa=yr.a.extend({staticMembers:{nativePropertiesToCopy:yr.a.nativePropertiesToCopy.concat(["type","data","inputType"]),__QUALIFIED_CLASS_NAME__:"InputEvent"},init:function(e){var t=arguments,n=e.nativeEvent||e;"function"==typeof n.getTargetRanges&&(this.ranges=n.getTargetRanges()),this.__s._$7m$init.apply(this,t)},stopped:!1,stopPropagation:function(){this.stopped=!0},getTargetRanges:function(){return this.ranges},__superMap:{_$7m$init:"init"}}),Ha=yr.a.extend({staticMembers:{nativePropertiesToCopy:yr.a.nativePropertiesToCopy.concat(["type","key","code","which","isComposing","repeat","location"]),__QUALIFIED_CLASS_NAME__:"KeyEvent"},stopped:!1,stopPropagation:function(){this.stopped=!0}});try{new KeyboardEvent("keydown",{key:"a"})}catch(e){window.KeyboardEvent=function(e,t){this.type=e,t&&Object.assign(this,t)}}try{new InputEvent("beforeinput",{data:"b"})}catch(e){window.InputEvent=function(e,t){if(this.type=e,t){var n=(t||{}).ranges;Object.assign(this,{getTargetRanges:function(){return n}},t)}}}var $a=function e(t){for(var n=arguments.length,i=Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];var a=t;if("function"==typeof t?t=a.name:a=window[t],"function"!=typeof a)throw new Error("Can't produce nativeEvent without a constructor");var o=new(Function.prototype.bind.apply(a,[null].concat(i))),s=e[t];return"function"==typeof s?s.apply(void 0,[o].concat(i)):o};$a.InputEvent=function(e,t,n){if(!e.inputType){var i=n.inputType;e.__defineGetter__("inputType",function(){return i})}var r=n.ranges;return r&&e.getTargetRanges().length!==r.length&&e.__defineGetter__("getTargetRanges",function(){return function(){return r}}),e},n(1),n(0);var Ga="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ka=1;function Qa(){return Ka++}var qa=Ua.extend({init:function(e){this.__s._$Rs$init.call(this);var t=this.target=e.instanceOf(Pa.a)?e.view.element:e.element,n=void 0;if(e.isAttached)n=t;else{for(var i=e,r=void 0;r=i.parent;)i=r;n=(this._domInjector=ja.create(i)).container.view.element}this.rootResponder=Yr.a.create({element:n})},_domInjector:Object(B.d)({strong:!0}),feedNativeEvents:function(e){var t=this;return e.forEach(function(e){e instanceof Array&&(e=$a.apply(void 0,e));var n=e.type,i=yr.a;switch(e.type){case"keydown":n="keyDown",i=Ha;break;case"keyup":n="keyUp",i=Ha;break;case"beforeinput":n="beforeInput",i=Wa;break;case"input":i=Wa}t.generateEvent(n,i,e)}),this},spawnCycle:function(e,t){return e.create(Object(Fa.a)(t,{parent:this,rootResponder:this.rootResponder,target:this.target,callbacks:Object(ka.a)(this.callbacks)}))},click:function(e,t,n){return"object"===(void 0===e?"undefined":Ga(e))&&(n=e,e=void 0),void 0===e&&(e=0),void 0===t&&(t=0),n&&(this.target=n),this.spawnCycle(za,{pointerId:0,clientX:e,screenX:e,clientY:t,screenY:t,pointerType:wr.b.MOUSE}).end()},tap:function(e,t,n){return"object"===(void 0===e?"undefined":Ga(e))&&(n=e,e=void 0),void 0===e&&(e=0),void 0===t&&(t=0),n&&(this.target=n),this.spawnCycle(za,{pointerId:Qa(),clientX:e,screenX:e,clientY:t,screenY:t,pointerType:wr.b.TOUCH}).end()},beginClick:function(e,t,n){return"object"===(void 0===e?"undefined":Ga(e))&&(n=e,e=void 0),void 0===e&&(e=0),void 0===t&&(t=0),n&&(this.target=n),this.spawnCycle(za,{pointerId:0,clientX:e,screenX:e,clientY:t,screenY:t,pointerType:wr.b.MOUSE})},beginTouch:function(e,t,n){return"object"===(void 0===e?"undefined":Ga(e))&&(n=e,e=void 0),void 0===e&&(e=0),void 0===t&&(t=0),n&&(this.target=n),this.spawnCycle(za,{pointerId:Qa(),clientX:e,screenX:e,clientY:t,screenY:t,pointerType:wr.b.TOUCH})},wheel:function(e,t,n){void 0===e&&(e=0),void 0===t&&(t=0),n&&(this.target=n);var i=W.a.sharedInstance.deltaMultiplierForScrollEvent();return this.generateEvent("wheel",Sr.a,{deltaX:e/i,deltaY:t/i})},finish:function(){this.finished||(this._domInjector=null,this.finished=!0)},finished:!1,dispose:function(){this.finish(),this.__s._$2I1$dispose.call(this)},__superMap:{_$Rs$init:"init",_$2I1$dispose:"dispose"},staticMembers:{__QUALIFIED_CLASS_NAME__:"EventSimulator"}}),Ya=(n(1),n(2),n(0),!1);function Xa(){if(!Ya){var e=u.a.application||u.a.create().retain().autorelease();return On.a.resolve(D.a.create().retain().autorelease().action(e)).finally(function(){Ya=!0})}}var Ja=n(368),Za=n(285),eo=n(499),to=n(497),no=n(199),io=n(882),ro=n(373),ao=n(180),oo=n(826),so=n(281),co=so.a.extend({_node:null,initFromPool:function(e,t,n){var i=arguments;arguments.length<=2?this.__s._$7y$initFromPool.apply(this,i):(this._node=n,this.__s._$7y$initFromPool.call(this,e),this._previousPosition=this._position=t)},didEnterPool:function(){this._previousPosition=0,this._node=null,this.__s._$E8$didEnterPool.call(this)},_previousPosition:0,position:Object(B.d)({set:function(e){var t=this.get("source");if(!t)return e;var n=this.get("length");if(e<0||e>=n)return this._node=null,this._previousPosition=e;var i=!this._node;if(!i){var r=Math.abs(e-this._previousPosition);(r>e||r>n-1-e)&&(i=!0)}i&&(e<n/2?(this._node=t._firstNode,this._previousPosition=0):(this._node=t._lastNode,this._previousPosition=n-1));for(var a=e-this._previousPosition;a>0;)this._node=this._node.next,a--;for(;a<0;)this._node=this._node.prev,a++;return this._previousPosition=e}}),value:Object(B.d)({get:function(){return this.source.decode(this.encodedValue)},set:function(e){return this.encodedValue=this.source.encode(e),e}}),encodedValue:Object(B.d)({get:function(){return this._node?this._node.item:void 0},set:function(e){return this._node.item=e,e}}),clone:function(){return this.constructor.create(this.get("source"),this.get("position"),this._node)},remove:function(){var e=this._node;if(!e)return!1;var t=e.next,n=this.clone().retain();return this.get("source")._spliceWithIterator(n,this.get("position"),1),n.release(),this._node=t,!0},add:function(e){var t=this.get("position")+1,n=this.clone().retain();return this.get("source")._spliceWithIterator(n,t,0,e),n.release(),this.set("position",Math.min(t,this.get("length")-1)),!0},__superMap:{_$7y$initFromPool:"initFromPool",_$E8$didEnterPool:"didEnterPool"},staticMembers:{__QUALIFIED_CLASS_NAME__:"LinkedListIterator"}}),lo=[],uo=d.a.extend(Ri.a,{staticMembers:{_recycleNode:function(e){e.item=null,e.next=null,e.prev=null,lo.push(e)},__QUALIFIED_CLASS_NAME__:"LinkedList"},iteratorClass:co,_firstNode:null,_lastNode:null,length:Object(B.d)({defaultValue:0,set:function(e,t,n,i,r){e<0&&Object(o.b)("Invalid length %{length}. Must be a non-negative integer.",{length:e,object:this});var a=this.get("_internalLength"),s=a-e;if(this.itemsWillChange(),s>0)this.itemsWillBeRemoved(e,s),this.splice(e,s),this.itemsWereRemoved(e,s);else if(s<0){var c=-s;this.itemsWillBeInserted(e,c);for(var l=c;l>0;){var u=l<=po?l:po;ho.length=u+2,ho[0]=a,ho[1]=0,this.splice.apply(this,ho),l-=u,a+=u}this.itemsWereInserted(e,c)}return this.itemsDidChange(),ho.length=0,e}}),_internalLength:Object(B.d)({readOnly:!0,get:function(){return this._length}}),encodedRawSplice:function(e,t){var n=this.createIterator().retain(),i=Object(oo.a)(arguments,1);i[0]=n;var r=this._spliceWithIterator.apply(this,i);return n.release(),r},_spliceWithIterator:function(e,t,n){var i=this._length;t<0?(t+=i)<0&&(t=0):t>i&&(t=i);var r=arguments.length-3||0,a=n;this.itemsWillChange(),a>0&&this.itemsWillBeRemoved(t,a),r>0&&this.itemsWillBeInserted(t,r),e.moveTo(t-1);var o=e._node;e.moveTo(Math.min(i,t+n));for(var s,c=e._node,l=arguments.length;l-- >3;){var u=lo.pop()||{};u.item=arguments[l],u.next=c,u.prev=null,c?c.prev=u:this._lastNode=u,c=u,this._length++}0===t?(s=this._firstNode,this._firstNode=c):(s=o.next,o.next=c,c?c.prev=o:this._lastNode=o);for(var d=[];s&&n--;){d.push(s.item);var h=s.next;this.constructor._recycleNode(s),s=h,this._length--}return r>0&&this.itemsWereInserted(t,r),a>0&&this.itemsWereRemoved(t,a),this.itemsDidChange(),d},encodedObjectAt:function(e){var t=this.createIteratorAt(e).retain(),n=t.encodedValue;return t.release(),n}}),ho=[],po=1e4,fo=n(382),mo=n(505),go=n(506),bo=n(228),vo=n(504),_o=n(496),yo=n(498),Co="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Io={mixinDependencies:[He.a],didRemoveItem:function(e){}},wo=d.a.extend(Ri.a,{_items:[],_index:0,_sizeLimit:null,init:function(e){var t;"object"===(void 0===e?"undefined":Co(e))?(t=e.sizeLimit,this.set("delegate",e.delegate)):t=e,("number"!=typeof t||t<=0)&&Object(o.b)("sizeLimit must be a positive integer before pushing items."),this._sizeLimit=t,this._items=[];for(var n=1,i=arguments.length;n<i;n++)this.push(arguments[n]);this.__s._$1Gb$init.call(this)},delegate:null,rawSplice:function(){this.normalizeIndex();var e=this._items,t=this._sizeLimit,n=e.splice.apply(e,arguments);return e.length>t&&(this._items=e.splice(0,t),n=this._items),this._index=e.length,n},encodedRawSplice:function(){return this.rawSplice.apply(this,arguments)},normalizeIndex:function(){var e=this._items,t=this._sizeLimit,n=this._index,i=[];if(!t||n<t||n%t==0)return e;for(var r=n;r%t!=0;)i.push(e[r%t]),r++;for(var a=0,o=n%t;a<o;a++)i.push(e[a]);return this._items=i,this._index=i.length,i},toArray:function(){return this.normalizeIndex(),this._items},push:function(){for(var e,t,n=this.get("delegate"),i=n?n.get("didRemoveItem"):null,r=0,a=arguments.length;r<a;r++)e=this._index%this._sizeLimit,t=this._items[e],this._items[e]=arguments[r],this._index++,t&&i&&i(t)},objectAt:function(e){var t=this._sizeLimit,n=this._items,i=this._index%t,r=e+i;return"number"!=typeof t||e<0||e>=t?void 0:n.length<t||0===i?n[e]:r<t?n[r]:n[r-t]},encodedObjectAt:function(e){return this.objectAt(e)},length:Object(B.d)({get:So}),_internalLength:Object(B.d)({get:So}),__superMap:{_$1Gb$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"RollingArray"}});function So(){return this._items.length}var Ao=n(294),Oo=n(391),Eo=n(369),To=n(827),Do=n(895),Lo=[],No={mixinDependencies:[kn.a],staticMembers:{cloneKeys:[]},clone:function(){var e=this.constructor.get("cloneKeys");Object(To.a)(Lo,e,2,0),Lo[0]=this,Lo[1]={};var t=Do.a.apply(null,Lo);return this.constructor.create(t)}},Mo=n(361),Po=n(843),xo=n(273),Ro=n(835),jo={mixinDependencies:[He.a],staticMembers:{subclassFor:Object(xe.c)($e.a),shouldAutomaticallySubclass:!0,init:function(){var e=arguments;this.__s._$NE$init.apply(this,e),this.hasOwnProperty("subclassFor")||this.hasOwnProperty("shouldAutomaticallySubclass")||(this.shouldAutomaticallySubclass=!1)},create:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=arguments;if(!this.shouldAutomaticallySubclass)return this.__s._$SR$create.apply(this,i);var r=this.subclassFor.apply(this,t);return r||Object(o.b)("SubclassFactoryProtocol: No subclass exists for the given combination of arguments",{class:this,properties:t}),r.kindOf(this)||Object(o.b)("SubclassFactoryProtocol: Subclasses returned from `subclassFor` must be subclasses of the extending class.",{class:this,subclass:r}),this.__s._$SR$create.apply(r,arguments)},extend:function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var i=arguments;if(!this.shouldAutomaticallySubclass)return this.__s._$nL$extend.apply(this,i);var r=this.subclassFor.apply(this,t);return r?r.kindOf(this)||Object(o.b)("SubclassFactoryProtocol: Subclasses returned from `subclassFor` must be subclasses of the extending class.",{class:this,subclass:r}):r=this,this.__s._$nL$extend.apply(r,arguments)},__superMap:{_$NE$init:"init",_$SR$create:"create",_$nL$extend:"extend"}}},Fo=B.a.extend({requiresSupport:jo,readOnly:!0,staticMembers:{__QUALIFIED_CLASS_NAME__:"SubclassProperty"}});function Vo(){return Fo.create.apply(Fo,arguments)}var Uo={mixinDependencies:[xe.b,jo],staticMembers:{initializeClass:function(){var e,t=arguments,n=this.prototype.getMetadataByType(Fo),i=!0;for(var r in n)n.hasOwnProperty(r)&&(i&&(i=!1,e=this.subclassProperties=Object(ka.a)(this.subclassProperties)),e.push(r));i||(this._subclassInfo=new Array(e.length)),this._subclasses=null,this._isBaseClass&&(this._isBaseClass=!1,this.registerSubclass(this)),this.__s._$10G$initializeClass.apply(this,t)},_isBaseClass:!0,subclassProperties:[],extendAndRegister:function(){var e=this.extend.apply(this,Array.prototype.slice.call(arguments).concat([{staticMembers:{__QUALIFIED_CLASS_NAME__:"subclass"}}]));return e.shouldAutomaticallySubclass=!0,this.registerSubclass(e),e},subclassFor:function(e){var t=this._subclasses;if(null===t||void 0!==e&&!Object(a.a)(e))return this;var n,i,r=this.subclassProperties,o=r.length,s=this._subclassInfo,c=this.prototype;for(n=0;n<o;n++){var l=r[n];i=void 0,e&&(i=e[l]),void 0===i&&(i=c[l]),s[n]=i}return t[Object(Ro.a)(s)]},registerSubclass:function(e){var t=this._subclasses;t||(t=this._subclasses={});for(var n=this.subclassProperties,i=this._subclassInfo,r=n.length,a=e.prototype,o=0;o<r;o++){var s=a[n[o]];i[o]=s}t[Object(Ro.a)(i)]=e,e._subclasses=t},_subclasses:null,_subclassInfo:null,__superMap:{_$10G$initializeClass:"initializeClass"}}},ko=n(484),Bo=n(280),zo=n(864),Wo=n(375),Ho=n(235),$o=n(929),Go=$o.a.extend({message:"Validation.InvalidEmail",pattern:/^.+@.+$/i,staticMembers:{__QUALIFIED_CLASS_NAME__:"EmailValidator"}}),Ko=Ho.a.extend({message:"Validation.InvalidLength",min:Object(B.d)({type:"number",defaultValue:0,set:function(e){return e<0&&Object(o.b)("Minimal value of a length can't be lower then 0"),e}}),max:Object(B.d)({type:"number",defaultValue:Number.POSITIVE_INFINITY}),validate:function(e){return("string"==typeof e||e instanceof String)&&e.length>=this.get("min")&&e.length<=this.get("max")},staticMembers:{__QUALIFIED_CLASS_NAME__:"LengthValidator"}}),Qo=Ho.a.extend({message:"Validation.IsEmpty",validate:function(e){return"boolean"==typeof e||e instanceof Boolean||(e="number"==typeof e||e instanceof Number?e.toString():e,!Object(zn.a)(e))},staticMembers:{__QUALIFIED_CLASS_NAME__:"NotEmptyValidator"}}),qo=Ho.a.extend({message:"Validation.InvalidRange",min:Object(B.d)({type:"number",defaultValue:Number.NEGATIVE_INFINITY}),max:Object(B.d)({type:"number",defaultValue:Number.POSITIVE_INFINITY}),validate:function(e){return("number"==typeof e||e instanceof Number)&&e>=this.get("min")&&e<=this.get("max")},staticMembers:{__QUALIFIED_CLASS_NAME__:"RangeValidator"}}),Yo=n(367),Xo=Pn.a.extend({_poolArray:null,_poolObjectCount:0,objectClass:null,init:function(){var e=arguments;this.__s._$Dc$init.apply(this,e),this._poolArray=[],this._poolObjectCount=0,this._generateClosures()},_generateClosures:function(){var e=this._poolObjectCount,t=this._poolArray,n=this.objectClass;this.getOrCreate=function(){var i;return e>0?(i=t[e-1],t[e-1]=void 0,e--):i=n.create(),i},this.returnToPool=function(n){t[e]=n,e++}},getOrCreate:null,returnToPool:null,__superMap:{_$Dc$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"_ObjectPool"}}),Jo=n(179);function Zo(e,t){return e&&e.kindOf&&e.kindOf(t)}var es=n(286),ts=n(515),ns=n(514),is=n(384),rs=n(512),as=n(513),os=n(511),ss=n(544),cs=n(932),ls=n(399),us=n(846),ds=n(492),hs=n(154),ps=n(142),fs=n(106),ms=n(198),gs=n(275),bs=n(488),vs=n(490),_s=n(489),ys=n(371),Cs=n(370),Is=n(486),ws=n(487),Ss=n(491),As=ls.a.extend({processAction:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return e.apply(void 0,n)},staticMembers:{__QUALIFIED_CLASS_NAME__:"Processor"}}),Os=n(287),Es=n(66),Ts=n(860),Ds=n(859),Ls=d.a.extend(p.b,{benchmarkEvent:Object(p.i)(),start:function(e,t){e?this.benchmarkEvent({name:e,context:t,timestamp:window.performance.now(),type:"start"}):Object(o.b)("Benchmark: name required")},stop:function(e,t){e?this.benchmarkEvent({name:e,context:t,timestamp:window.performance.now(),type:"stop"}):Object(o.b)("Benchmark: name required")},staticMembers:{__QUALIFIED_CLASS_NAME__:"Benchmark"}}).create();function Ns(){}var Ms=n(44),Ps=n(557),xs={COPY:"copy",LINK:"link",MOVE:"move"},Rs={TEXT:"text/plain",URI_LIST:"text/uri-list",FILE_LIST:"Files"},js={dataObjectsByType:{},setDataForType:function(e,t){this.dataObjectsByType[t]=e},getDataForType:function(e){return this.dataObjectsByType[e]},hasDataForType:function(e){return e in this.dataObjectsByType},clearAllData:function(){this.dataObjectsByType={}}},Fs={staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",attributes:{draggable:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"isDraggable",attributes:{},attribute:"draggable"}}}}},mixinDependencies:[He.a,p.b],isDraggable:Object(c.b)(!0),isDragging:Object(c.b)(!1),providedDragTypes:Object(B.d)(Object(ke.c)([Rs.TEXT])),provideDataForDragType:$e.a.define(),getAllowedOperationsForDrag:function(e){return[xs.MOVE]},dragDidStart:bt.a,dragDidMove:bt.a,dragDidEnd:bt.a,dragStart:function(e){var t=this.getAllowedOperationsForDrag(e);if(!(t&&t.length>0))return!1;var n=[];if(-1!==t.indexOf(xs.COPY)&&n.push(xs.COPY),-1!==t.indexOf(xs.LINK)&&n.push(xs.LINK),-1!==t.indexOf(xs.MOVE)&&n.push(xs.MOVE),0===n.length)return e.dataTransfer.effectAllowed="none",!1;if(3===n.length)e.dataTransfer.effectAllowed="all";else{var i=n[0];if(n.length>1){var r=n[1];i+=r.charAt(0).toUpperCase()+r.slice(1)}e.dataTransfer.effectAllowed=i}for(var a=this.providedDragTypes,o=!1,s=0,c=a.length;s<c;s++){var l=a[s],u=this.provideDataForDragType(e,l);null!==u&&void 0!==u&&(js.setDataForType(u,l),e.dataTransfer.setData("Text",""),o=!0)}return!!o&&(this.dragDidStart(e),this.isDragging=!0,!0)},drag:function(e){return!!this.isDragging&&(this.dragDidMove(e),!0)},dragEnd:function(e){return!!this.isDragging&&(this.isDragging=!1,this.dragDidEnd(e),js.clearAllData(),!0)}},Vs={mixinDependencies:[He.a,p.b],acceptedDragTypes:Object(B.d)(Object(ke.c)([Rs.TEXT])),getPreferredOperationsForDragType:function(e,t){return[xs.MOVE]},acceptDataForDragType:$e.a.define(),isDraggingOver:Object(c.b)({readOnly:!0,dependencies:["_dragHovers"],get:Object.assign(function(){return this._dragHovers>0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])>0}})}),_dragHovers:Object(c.b)(0),dragDidEnter:bt.a,dragDidHover:bt.a,dragDidDrop:bt.a,dragDidLeave:bt.a,_getDataForDragType:function(e,t){return t===Rs.FILE_LIST?e.dataTransfer.files:js.hasDataForType(t)?js.getDataForType(t):null},_processDragEvent:function(e){for(var t=this.acceptedDragTypes,n=this._getAllowedActionsForEvent(e),i=0,r=t.length;i<r;i++){var a=t[i],o=!1;if(a===Rs.FILE_LIST){var s,c=e.dataTransfer;c&&(s=c.types)&&(o=s instanceof DOMStringList?s.contains(a):-1!==s.indexOf(a))}else o=js.hasDataForType(a);if(o)for(var l=this.getPreferredOperationsForDragType(e,a),u=0,d=l.length;u<d;u++){var h=l[u];if(-1!==n.indexOf(h))return e.dataTransfer.dropEffect=h,h}}return null},_getAllowedActionsForEvent:function(e){var t,n=e.dataTransfer.effectAllowed;return"all"===n||"uninitialized"===n?t=[xs.COPY,xs.LINK,xs.MOVE]:"none"===n?t=[]:(t=[],n&&-1!==n.indexOf("opy")&&t.push(xs.COPY),n&&-1!==n.indexOf("ink")&&t.push(xs.LINK),n&&-1!==n.indexOf("ove")&&t.push(xs.MOVE)),t},dragEnter:function(e){return!!this._processDragEvent(e)&&(this.isDraggingOver||this.dragDidEnter(e),this._dragHovers++,!0)},dragOver:function(e){return!!this.isDraggingOver&&(this._processDragEvent(e)?(this.dragDidHover(e),e.stopPropagation(),e.preventDefault(),!0):(this._dragHovers--,this.isDraggingOver||this.dragDidLeave(e),!1))},dragLeave:function(e){return!!this._processDragEvent(e)&&(this._dragHovers--,this.isDraggingOver||this.dragDidLeave(e),!0)},drop:function(e){this._dragHovers--;for(var t=this.acceptedDragTypes,n=!1,i=0,r=t.length;i<r;i++){var a=t[i],o=this._getDataForDragType(e,a);if(null!==o){var s=this._processDragEvent(e);if(s&&this.acceptDataForDragType(e,a,o,s)){n=!0;break}}}return!!n&&(e.stopPropagation(),e.preventDefault(),this.dragDidDrop(e),!0)}},Us=(n(943),n(861)),ks=function(e,t,n,i){if("function"==typeof e.dataTransfer.setDragImage)e.dataTransfer.setDragImage(t,n,i);else{var r=e.target;r.classList.add("cw-set-drag-image-original"),t.style.top=0,t.style.left=0,t.classList.add("cw-set-drag-image-ghost"),r.appendChild(t),Object(Us.a)(function(){t.parentNode.removeChild(t),r.classList.remove("cw-set-drag-image-original")},0)}},Bs=n(935),zs=n(558),Ws=n(910),Hs=n(177),$s=(n(12),n(0),{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isEnlarged",truevalue:"cw-scroll-indicator-enlarged",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isInstantlyEnlarged",truevalue:"cw-scroll-indicator-instantly-enlarged",attributes:{}}],styles:{opacity:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"_opacity",attributes:{},unit:null,property:"opacity"},visibility:{type:"STYLEOUTLET",bindingtype:"IFBINDING",name:"_isVisible",truevalue:"",falsevalue:"hidden",attributes:{},unit:null,property:"visibility"}}}}},scrollIndicatorShouldFade:Object(c.b)(!0),scrollIndicatorShouldEnlarge:Object(c.b)(!0),shouldShowScrollIndicatorIfSizeChanged:Object(c.b)(!1),fadeDelay:500,fadeTime:200,FPS:60,_opacity:0,isEnlarged:Object(c.b)(!1),_isVisible:Object(c.b)({readOnly:!0,dependencies:["_opacity"],get:Object.assign(function(){return 0!==this._opacity},{__CW__getter:function(e,t,n,i){return 0!==i.internalGet(this,t[0+n])}})}),_maintainEnlargedState:Object(p.h)("scrollIndicatorShouldEnlarge","_isVisible","isBeingHovered",function(e,t,n){if(e){var i=!1;t&&(i=n||this.get("isEnlarged")),Object(Ws.a)(this,"isEnlarged",i),i||(this.isInstantlyEnlarged=!1)}else Object(Ws.a)(this,"isEnlarged",!1)}),_handleThumbProportionChange:Object(p.h)("thumbProportion",function(){this.shouldShowScrollIndicatorIfSizeChanged&&this.renewVisibility()}),didScroll:function(e){!this.get("_isVisible")&&e&&this._boundingClientRectHitTest(e)&&(Object(Ws.a)(this,"isBeingHovered",!0),this.scrollIndicatorShouldEnlarge&&(this.isInstantlyEnlarged=!0)),this.renewVisibility()},_boundingClientRectHitTest:function(e){var t=this.get("element").getBoundingClientRect(),n=e.clientX-t.left,i=e.clientY-t.top;return n>=0&&n<=t.width&&i>=0&&i<=t.height},_handleHoverStateChange:Object(p.h)("isBeingHovered",function(e){this.renewVisibility()}),_handleAttachOrDetach:Object(p.h)("isAttached",function(e){e?this.get("_isVisible")&&this.renewVisibility():this.renewVisibility()}),renewVisibility:function(){this._fadeOutAnimationTimer.stop(),this._fadeOutTimer.stop();var e=this.get("scrollIndicatorShouldFade");this.get("isAttached")?(this.set("_opacity",1),e&&!this.get("isBeingHovered")&&this._fadeOutTimer.start()):this.set("_opacity",e?0:1)},_showOrFadeOnShouldFadeChange:Object(p.h)("scrollIndicatorShouldFade",function(){this.renewVisibility()}),_fadeOutTimer:Object(B.d)({strong:!0,defaultValue:function(){return Ds.a.create({delay:this.fadeDelay,action:"beginFadeOut",target:this})}}),_fadeOutAnimationTimer:Object(B.d)({strong:!0,defaultValue:function(){return Ds.a.create({delay:1e3/this.FPS,action:"fadeStep",target:this,timesToFire:this.fadeTime/1e3*this.FPS})}}),beginFadeOut:function(){return this._fadeOutAnimationTimer.start(),!0},fadeStep:function(e){return this.set("_opacity",1-e.fireCount/e.timesToFire),!0}}),Gs=Hs.a.extend($s,{staticMembers:{className:"cw-ui-fading-horizontal-scroll-indicator-view",__QUALIFIED_CLASS_NAME__:"FadingHorizontalScrollIndicatorView"}}),Ks=Hs.c.extend($s,{staticMembers:{className:"cw-ui-fading-vertical-scroll-indicator-view",__QUALIFIED_CLASS_NAME__:"FadingVerticalScrollIndicatorView"}}),Qs=n(292),qs=(n(12),n(0),{mixinDependencies:[Qs.a],horizontalScrollIndicatorClass:Gs,verticalScrollIndicatorClass:Ks,scrollIndicatorsShouldFade:Object(c.b)(!0),didScrollBy:function(e,t,n){if(e||n&&n.deltaX&&this.canScrollHorizontally){var i=this.horizontalScrollIndicator;i&&i.didScroll(n)}if(t||n&&n.deltaY&&this.canScrollVertically){var r=this.verticalScrollIndicator;r&&r.didScroll(n)}},showScrollIndicators:function(){var e=this.horizontalScrollIndicator;e&&e.renewVisibility();var t=this.verticalScrollIndicator;t&&t.renewVisibility()},createScrollIndicatorOptions:function(e){var t=arguments,n=this.__s._$jT$createScrollIndicatorOptions.apply(this,t);return n.scrollIndicatorShouldFade=this.bindingFor("scrollIndicatorsShouldFade"),n},__superMap:{_$jT$createScrollIndicatorOptions:"createScrollIndicatorOptions"}}),Ys=n(537),Xs=n(903),Js=n(902),Zs=n(543),ec=(n(944),n(0),n(82)),tc={mixinDependencies:[p.b],arrowIsShowing:Object(c.b)(!0),arrowDirection:Object(c.b)("bottom"),arrowAlignment:Object(c.b)("left"),arrowOffset:Object(c.b)(0),_updateArrow:Object(p.h)("element","arrowIsShowing","arrowDirection","arrowAlignment","arrowOffset",function(e,t,n,i,r){if(e){var a=this._arrowDiv,s=this._arrowContainer;if(t){if(nc[n]||Object(o.b)('Attempted to point arrow: "'+n+'". Arrows can only be point in the `left`, `right`, `top` or `bottom` direction.',this),ic[n][i]||(i=rc[n]),!a){var c=document.createElement("div");s=this._arrowContainer=document.createElement("div"),a=this._arrowDiv=document.createElement("div"),s.className="cw-arrow-container",c.className="cw-arrow-centering",a.className="cw-arrow",c.appendChild(a),s.appendChild(c),e.appendChild(s)}var l=e.className.replace(/(\s|^)cw-arrow-\w*(\s|$)/,"$2");e.className=l,l=s.className.replace(/(\s|^)cw-align-\w*(\s|$)/,"$2"),s.className=l,e.classList.add("cw-has-arrow","cw-arrow-"+n),s.classList.add("cw-align-"+i),"center"===i&&(i=rc[n]),Object(ec.c)(a,i,r)}else s&&(e.classList.remove("cw-has-arrow"),e.removeChild(s))}})},nc={top:!0,bottom:!0,right:!0,left:!0},ic={};ic.top=ic.bottom={left:!0,center:!0,right:!0,defaultAlignment:"left"},ic.left=ic.right={top:!0,center:!0,bottom:!0,defaultAlignment:"top"};var rc={};rc.top=rc.bottom="left",rc.left=rc.right="top";var ac,oc,sc,cc=n(900),lc=n(232),uc=n(901),dc={radioGroupValue:Object(c.b)(),registerRadioButton:function(e){var t=this._radioGroupButtons;if(-1===t.indexOf(e)){var n=this._indexedRadioGroupButtonsByValue,i=e.value,r=this.radioGroupValue;n.get(i)&&Object(o.b)("You may not add multiple buttons with the same value (%{value}) to a radio group.",{value:i,group:this}),e._isChecked=r===i,n.set(i,e),t.push(e)}},unregisterRadioButton:function(e){var t=this._radioGroupButtons.indexOf(e);this._radioGroupButtons.splice(t,1),this._indexedRadioGroupButtonsByValue.removeKey(e.value)},selectRadioItemByValue:function(e){this.radioGroupValue!==e&&(this.radioGroupValue=e)},mixinDependencies:[ke.b,p.b],viewClass:Object(Ae.b)({ariaRole:"radiogroup"}),_radioGroupButtons:Object(ke.c)(Array),_indexedRadioGroupButtonsByValue:Object(ke.c)(io.a),_previousValue:null,_radioGroupValueDidChange:Object(p.h)("radioGroupValue",function(e){var t=this._previousValue;this._previousValue=e;var n=this._indexedRadioGroupButtonsByValue.get(t);n&&(n._isChecked=!1);var i=this._indexedRadioGroupButtonsByValue.get(e);i&&(i._isChecked=!0)})},hc=n(507),pc=n(508),fc=n(509),mc=n(155),gc=n(510),bc=n(516),vc=n(144),_c=n(108),yc=n(360),Cc=n(517),Ic=n(64),wc=n(518),Sc=n(385),Ac=n(881),Oc=n(552),Ec=d.a.extend({staticMembers:{__QUALIFIED_CLASS_NAME__:"MenuDividerItem"}}),Tc=ae.a.extend({staticMembers:{__QUALIFIED_CLASS_NAME__:"MenuDividerItemCell"}}),Dc=d.a.extend(p.b,{title:Object(c.b)({type:"string"}),titleIsAlwaysLTR:Object(c.b)({defaultValue:!1,type:"boolean"}),iconClass:Object(c.b)({type:"string"}),isDisabled:Object(c.b)({defaultValue:!1,type:"boolean"}),hasCheckmark:Object(c.b)({defaultValue:!1,type:"boolean"}),shouldEscapeTitle:Object(c.b)({defaultValue:!0,type:"boolean"}),ariaLabel:Object(c.b)({type:"string"}),staticMembers:{__QUALIFIED_CLASS_NAME__:"MenuItem"}}),Lc=me.b.extend({dividerRowHeight:Object(c.b)(),staticMembers:{__QUALIFIED_CLASS_NAME__:"MenuListLayoutMetrics"}}),Nc=Object(Qt.b)("Direction",{EAST:0,NORTHEAST:45,NORTH:90,NORTHWEST:135,WEST:180,SOUTHWEST:225,SOUTH:270,SOUTHEAST:315}),Mc={mixinDependencies:[He.a],shouldHighlightMenuItem:$e.a.define(),willHighlightMenuItem:null,didHighlightMenuItem:null,willUnhighlightMenuItem:null,didUnhighlightMenuItem:null,shouldCommitMenuWithItem:$e.a.define(),willCommitMenuWithItem:null,didCommitMenuWithItem:null},Pc={mixinDependencies:[Mc],shouldHighlightMenuItem:function(e,t){return t.constructor.kindOf(Dc)?!t.isDisabled:!t.constructor.kindOf(Ec)},shouldUnhighlightMenuItem:function(e,t){return!0},shouldCommitMenuWithItem:function(e,t){return t.constructor.kindOf(Dc)?!t.isDisabled:!t.constructor.kindOf(Ec)}},xc=(n(271),n(0),ye.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"cw-menu-divider-item-view",attributes:{role:"separator"}},__QUALIFIED_CLASS_NAME__:"MenuDividerItemView"}})),Rc=(n(272),n(867)),jc=(n(0),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"cw-menu-item-view",children:[{type:"ELEMENT",tagname:"div",classes:["checkmark"]},{type:"ELEMENT",tagname:"div",classes:["icon",{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"content.iconClass",attributes:{}}]},{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"displayTitle",attributes:{}}],classes:["title",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"content.titleIsAlwaysLTR",truevalue:"is-always-ltr",attributes:{}}]}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"content.hasCheckmark",truevalue:"has-checkmark",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"hasIconClass",truevalue:"has-icon-class",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"content.isDisabled",truevalue:"cw-disabled",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isHighlighted",truevalue:"cw-highlighted",attributes:{}}],attributes:{id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"elementGUID",attributes:{},attribute:"id"},role:"menuitem"}}},__QUALIFIED_CLASS_NAME__:"MenuItemView"},isHighlighted:Object(c.b)({defaultValue:!1,type:Boolean}),ariaHidden:Object(c.b)(Object(Ye.c)("isPooledInDom")),ariaLabel:Object(c.b)(Object(Ye.c)("content.ariaLabel")),isPooledInDom:Object(c.b)(),content:Object(c.b)({type:Dc}),elementGUID:Object(c.b)({type:"string",defaultValue:function(){return Object(Ni.b)(this)+"MenuItemView"}}),displayTitle:Object(c.b)({dependencies:["content","content.title","content.shouldEscapeTitle"],readOnly:!0,get:Object.assign(function(){var e=this.content;if(e){var t=e.shouldEscapeTitle,n=e.title;return t?Object(Rc.b)(n):n}return""},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);if(r){var a=r.shouldEscapeTitle,o=r.title;return a?Object(Rc.b)(o):o}return""}})}),hasIconClass:Object(c.b)({dependencies:["content","content.iconClass"],readOnly:!0,get:Object.assign(function(){var e=this.content;return!(!e||Object(zn.a)(e.iconClass))},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return!(!r||Object(zn.a)(r.iconClass))}})})})),Fc=(n(0),ye.a.extend(nt.a,{staticMembers:{template:{type:"ELEMENT",tagname:"cw-repeater-button"},__QUALIFIED_CLASS_NAME__:"RepeaterButton"},additionalClassNames:Object(ke.c)([]),period:Object(c.b)({defaultValue:16.66666667,didChange:function(e){this.timer.delay=e}}),timer:Object(B.d)({defaultValue:Object(ke.c)(Ds.a,{action:"triggerButtonAction",target:void 0,timesToFire:1/0}),strong:!0}),pointerEnter:function(e){this.timer.start()},pointerLeave:function(e){this.timer.stop()}}).extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",children:[{type:"ELEMENT",tagname:"div",classes:["arrow"]}],classes:["scroll",{type:"CLASSNAMEOUTLET",bindingtype:"DIRECTBINDING",name:"directionClassname",attributes:{}}],styles:{display:{type:"STYLEOUTLET",bindingtype:"IFBINDING",name:"isDisabled",truevalue:"none",falsevalue:"flex",attributes:{},unit:null,property:"display"}}}},__QUALIFIED_CLASS_NAME__:"ScrollRepeaterButton"},action:"scrollInDirection",contextKeys:Object(ke.c)(["direction"]),period:60,direction:Object(c.b)({defaultValue:Nc.NORTH,type:Nc}),directionClassname:Object(c.b)({dependencies:["direction"],readOnly:!0,type:"string",get:Object.assign(function(){return"direction-"+this.direction.value+"°"},{__CW__getter:function(e,t,n,i){return"direction-"+i.internalGet(this,t[0+n]).value+"°"}})})})),Vc=(n(0),ye.a.extend(Xs.a,{staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"startScrollButton"},{type:"MULTIVIEWOUTLET",tagname:"views",name:"itemViews",classes:["collection-content"]},{type:"VIEWOUTLET",tagname:"view",name:"endScrollButton"}],classes:["cw-collection-view","cw-menu-list-view"],attributes:{role:"menu","aria-activedescendant":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"activeDescendant",attributes:{},attribute:"aria-activedescendant"}}},__QUALIFIED_CLASS_NAME__:"MenuListView"},activeDescendant:Object(c.b)({type:String}),isFocusable:!0,endScrollButton:Object(c.b)({defaultValue:Object(ke.c)(Fc.extend({direction:Nc.SOUTH})),strong:!0,downstreamBindings:{isDisabled:"(owner).endScrollButtonIsDisabled"}}),endScrollButtonIsDisabled:Object(c.b)({readOnly:!0,dependencies:["canScrollVertically","height","scrollMaxY"],get:Object.assign(function(){return!this.canScrollVertically||this.scrollMaxY===this.height},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])||i.internalGet(this,t[2+n])===i.internalGet(this,t[1+n])}})}),startScrollButton:Object(c.b)({defaultValue:Object(ke.c)(Fc.extend({direction:Nc.NORTH})),strong:!0,downstreamBindings:{isDisabled:"(owner).startScrollButtonIsDisabled"}}),startScrollButtonIsDisabled:Object(c.b)({readOnly:!0,dependencies:["canScrollVertically","scrollHeight","scrollMaxY"],get:Object.assign(function(){return!this.canScrollVertically||this.scrollHeight===this.scrollMaxY},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])||i.internalGet(this,t[1+n])===i.internalGet(this,t[2+n])}})}),didScrollBy:function(e,t,n){this.viewController.sendEvent("didScrollBy",e,t,n)},_scrollBy:function(e,t){this.viewController.sendEvent("didScroll",e,t)}})),Uc=(n(1),n(0),n(17),n(271),n(272),Dr.b.Began),kc=Dr.b.Ended,Bc=ee.a.extend({mixinDependencies:[Lr.a,Er.b],commitDurations:Object(B.d)({defaultValue:Object(ke.c)(Array,[50,50]),type:Array}),commitOnPointerDown:Object(c.b)({defaultValue:!1,type:Boolean}),commitTimeoutId:Object(c.b)(null),desiredSize:Object(c.b)({strong:!0,dependencies:["collection","collection.contentsDidChangeUntracked","isAttached","layoutController","layoutDelegate","layoutMetrics","layoutMetrics.bottomPadding","layoutMetrics.rowHeight","layoutMetrics.dividerRowHeight","layoutMetrics.rowSpacing","layoutMetrics.topPadding","maximumWidth","minimumWidth"],readOnly:!0,get:Object.assign(function(){var e=0,t=0,n=this.collection;if(n&&this.isAttached){var i=this.layoutController,r=this.layoutDelegate,a=this.layoutMetrics,o=this.maximumWidth,s=this.minimumWidth,c=this.view;if(a){t+=a.topPadding+a.bottomPadding;var l=n.length;t+=a.rowSpacing*(l-1)}var u=c.style,d=u.getInline("position"),h=u.getInline("width"),p=u.getInline("height");u.set({position:"absolute",width:window.innerWidth+"px",height:window.innerHeight+"px"});var f=void 0;for(f=n.startHandle;f.isValid;f=f.next){var m=r.cellForHandle(f),g=m.cellType,b=("item"===g?r.sizeForItemNaturally:"divider-item"===g?r.sizeForDividerItem:r.sizeForCell).call(r,i,m);e=Math.max(b.width,e),t+=b.height}e=Math.min(Math.max(e,s),o),u.set({position:d,width:h,height:p})}return Se.a.create(e,t)},{__CW__getter:function(e,t,n,i){var r=0,a=0,o=i.internalGet(this,t[0+n]);if(o&&i.internalGet(this,t[2+n])){var s=this.layoutController,c=this.layoutDelegate,l=this.layoutMetrics,u=this.maximumWidth,d=this.minimumWidth,h=this.view;if(l){a+=l.topPadding+l.bottomPadding;var p=o.length;a+=l.rowSpacing*(p-1)}var f=h.style,m=f.getInline("position"),g=f.getInline("width"),b=f.getInline("height");f.set({position:"absolute",width:window.innerWidth+"px",height:window.innerHeight+"px"});var v=void 0;for(v=o.startHandle;v.isValid;v=v.next){var _=c.cellForHandle(v),y=_.cellType,C=("item"===y?c.sizeForItemNaturally:"divider-item"===y?c.sizeForDividerItem:c.sizeForCell).call(c,s,_);r=Math.max(C.width,r),a+=C.height}r=Math.min(Math.max(r,d),u),f.set({position:m,width:g,height:b})}return Se.a.create(r,a)}})}),dividerItemViewClass:Object(c.b)(xc),highlightedCell:Object(c.b)({dependencies:["collection","highlightedItem","layoutDelegate"],type:ae.a,writeDependencies:["highlightedItem"],get:function(){var e=null,t=this.collection,n=this.highlightedItem,i=this.layoutDelegate;if(t&&i){var r=t.indexOf(n);if(r>=0){var a=t.startHandle.at(r);e=i.cellForHandle(a)}}return e},set:Object.assign(function(e){this.highlightedItem=e?e.handle.value:null},{__CW__setter:function(e,t,n,i,r){n[0+i]=e?e.handle.value:null}}),writeDependencySetPathMap:["false"]}),highlightedItem:Object(c.b)(),isCommitting:Object(c.b)({dependencies:["commitTimeoutId"],readOnly:!0,get:Object.assign(function(){return Object(Hn.a)(this.commitTimeoutId)},{__CW__getter:function(e,t,n,i){return Object(Hn.a)(i.internalGet(this,t[0+n]))}})}),isFocusable:!0,itemViewClass:Object(c.b)(jc),maximumWidth:Object(c.b)(1/0),minimumWidth:Object(c.b)(50),previousHighlightedCell:null,menuDelegate:Object(c.b)({defaultValue:Object(ke.c)(d.a.extend(Pc)),type:Mc}),layoutDelegate:Object(c.b)({defaultValue:Object(ke.c)(fe.a.extend({staticMembers:{LayoutMetricsClass:Lc},dividerItemCellClass:Tc,cellClassKeysByCellType:Object(Ae.b)((ac={},ac["divider-item"]="dividerItemCellClass",ac)),sizeKeyByCellType:Object(Ae.b)((oc={},oc["divider-item"]="sizeForDividerItem",oc)),cellForHandle:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"item";return e.value.instanceOf(Ec)&&(t="divider-item"),this.__s._$3Ty$cellForHandle.call(this,e,t)},sizeForItemNaturally:function(e,t){return Se.a.create({height:e.layoutMetrics.rowHeight,width:Math.ceil(function(e,t){var n=e.presenter,i=n.itemViewClassForItem(t),r=n.viewForCell(t,i),a=!r.isAttached;a&&(n.cellDidEnter(t),n.cellDidMove(t));var o=r.style,s=o.get("width");o.set("width","");var c=Object(Ac.a)(r.element);return o.set("width",s),a&&n.cellDidExit(t),c.width}(e,t))})},sizeForDividerItem:function(e,t){return Se.a.create({height:e.layoutMetrics.dividerRowHeight,width:e.viewportWidth})},__superMap:{_$3Ty$cellForHandle:"cellForHandle"}}))}),presenter:Object(c.b)({defaultValue:Object(ke.c)(ue.a.extend({itemViewClass:Object(c.b)(jc),dividerItemViewClass:Object(c.b)(xc),viewClassKeysByCellType:Object(Ae.b)((sc={},sc["divider-item"]="dividerItemViewClass",sc)),itemViewDidMove:function(e,t){var n=arguments;this.__s._$49H$itemViewDidMove.apply(this,n),t===this.owner.highlightedCell?e.isHighlighted=!0:e.isHighlighted=!1},viewForViewClass:function(){var e=arguments,t=this.__s._$4FV$viewForViewClass.apply(this,e),n=Er.a.create({event:"commitFromTap",delegate:this.owner});return t.addGestureRecognizer(n),t},__superMap:{_$49H$itemViewDidMove:"itemViewDidMove",_$4FV$viewForViewClass:"viewForViewClass"}})),downstreamBindings:{itemViewClass:"(owner).itemViewClass",dividerItemViewClass:"(owner).dividerItemViewClass"}}),viewLayout:Object(c.b)({type:Object}),cellForEvent:function(e){var t=Object(Yr.c)(e);return this.presenter.cellForView(t)},commit:function(){var e=this.highlightedCell;e?this.commitWithCell(e):this.completeCommitWithItem()},commitFromTap:function(e){var t=e.state,n=e.view;if(this.isCommitting)return!1;if(t===Uc||t===kc){var i=this.commitOnPointerDown;if((t!==Uc||i)&&(t!==kc||!i)){var r=this.presenter.cellForView(n);r&&"item"===r.cellType&&this.commitWithCell(r)}}},commitWithCell:function(e){var t=e.handle.value,n=this.menuDelegate;if(n.shouldCommitMenuWithItem(this,t)){n.willCommitMenuWithItem&&n.willCommitMenuWithItem(this,t);var i=this.presenter.viewForCell(e);if(i){var r=this.commitDurations;this.flashCommittingViewAndComplete(i,r,t)}else this.completeCommitWithItem(t)}},completeCommitWithItem:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;this.commitTimeoutId=Object(Us.a)(function(){var n=e.menuDelegate;e.owner.dismissWithItem(t).then(function(){e.isDisposed||(e.commitTimeoutId=null)}),n.didCommitMenuWithItem&&n.didCommitMenuWithItem(e,t)},n)},didScrollBy:function(e,t,n){if(n&&!this.isCommitting){var i=void 0,r=this.collection,a=this.highlightedCell,o=this.layoutController,s=this.layoutDelegate;if(a)i=a;else{var c=o.visibleCells;i=s.topMostItem(o,c)}var l=n.nativeEvent.clientY-(this.viewLayout.top+i.top);if(l>0&&(l=Math.max(l-i.height,0)),0!==l){var u=s.setUpCellAtDistance(o,r,i,0,l);this.highlightCell(u)}}},flashCommittingViewAndComplete:function(e,t,n){var i=this;t.length?this.commitTimeoutId=Object(Us.a)(function(){e.isHighlighted=!e.isHighlighted,i.flashCommittingViewAndComplete(e,t.slice(1),n)},t[0]):this.completeCommitWithItem(n,50)},highlightCell:function(e){var t=!1,n=this.highlightedCell;if(e&&e!==n){var i=this.beginBatchSet();if(this.unhighlightHighlightedCell()){var r=this.menuDelegate,a=e.handle.value;r.shouldHighlightMenuItem(this,a)&&(r.willHighlightMenuItem&&r.willHighlightMenuItem(this,a),this.highlightedCell=e,r.didHighlightMenuItem&&r.didHighlightMenuItem(this,a),t=!0)}i.end()}return t},unhighlightHighlightedCell:function(){var e=!0,t=this.highlightedCell;if(t&&t.isLaidOut){var n=this.menuDelegate,i=t.handle.value;n.shouldUnhighlightMenuItem(this,i)?(n.willUnhighlightMenuItem&&n.willUnhighlightMenuItem(this,i),this.highlightedCell=null,n.didUnhighlightMenuItem&&n.didUnhighlightMenuItem(this,i)):e=!1}return e},measureViewport:function(){var e=arguments;if(this.__s._$6pa$measureViewport.apply(this,e),this.isAttached){var t=this.view;if(t){var n=t.element;n&&(this.viewLayout=n.getBoundingClientRect())}}},pointerMove:function(e){if(this.isCommitting)return!1;var t=this.cellForEvent(e);this.highlightCell(t)},pointerCancel:function(e){this.unhighlightHighlightedCell()},pointerOut:function(e){this.unhighlightHighlightedCell()},scrollInDirection:function(e){switch(e){case Nc.NORTH:this.scrollAnItemBack();break;case Nc.SOUTH:this.scrollAnItemForward();break;default:throw new o.a("CW.MenuListViewController does not support scrolling in the direction, "+e+".")}},viewClass:Vc,highlightNextItem:function(){var e=this.highlightedCell,t=void 0;for(t=e?e.handle.next:this.collection.startHandle;t&&t.isValid;){var n=this.layoutDelegate.cellForHandle(t);if(n.instanceOf(Tc))t=t.next;else{if(this.highlightCell(n)){this.scrollToItem(t.value);break}t=t.next}}},highlightPreviousItem:function(){var e=this.highlightedCell,t=void 0;for(t=e?e.handle.previous:this.collection.handleProvider.endHandle;t&&t.isValid;){var n=this.layoutDelegate.cellForHandle(t);if(n.instanceOf(Tc))t=t.previous;else{if(this.highlightCell(n)){this.scrollToItem(t.value);break}t=t.previous}}},keyDown:function(e){if(this.isCommitting)return!1;var t=!0,n=this.highlightedCell;switch(e.which){case $r.a.DOWN:this.highlightNextItem();break;case $r.a.UP:this.highlightPreviousItem();break;case $r.a.LEFT:case $r.a.RIGHT:e.preventDefault();break;case $r.a.ENTER:case $r.a.SPACE:n?this.commitWithCell(n):t=!1;break;default:t=!1}return t},scrollAnItemBack:function(){var e=this.layoutController.visibleCells.objectAt(0),t=this.layoutDelegate.positionNextCell(this.layoutController,e,-1);t?this.scrollBy(0,t.height+10):this.scrollBy(0,e.height+10),this.update()},scrollAnItemForward:function(){var e=this.layoutController.visibleCells.lastItem,t=this.layoutDelegate.positionNextCell(this.layoutController,e,1);t?this.scrollBy(0,-t.height-10):this.scrollBy(0,-e.height-10),this.update()},highlightedCellDidChange:Object(p.h)("highlightedCell",function(e){var t=this.presenter,n=this.previousHighlightedCell;if(n){var i=t.viewForCell(n);i&&(i.isHighlighted=!1)}if(e){var r=t.viewForCell(e);r&&(r.isHighlighted=!0,this.view.activeDescendant=r.elementGUID)}this.previousHighlightedCell=e}),__superMap:{_$6pa$measureViewport:"measureViewport"},staticMembers:{__QUALIFIED_CLASS_NAME__:"MenuListViewController"}}),zc=n(143),Wc=n(945),Hc=n(83),$c=n(93),Gc=(n(1),n(21),n(0),n(20),n(271),n(17),n(272),n(35),n(8),n(2),$c.c.extend({collection:Object(c.b)({defaultValue:Object(ke.c)(Ee.b),strong:!0}),highlightedItem:Object(c.b)(),delegate:Object(c.b)({defaultValue:Object(ke.c)(d.a.extend(Pc))}),layoutMetrics:Object(c.b)({defaultValue:Object(ke.c)(Lc,{bottomPadding:5,dividerRowHeight:12,rowHeight:19,topPadding:5}),strong:!0}),allowedLayouts:Object(ke.c)([Hc.a,Hc.c,Hc.b,Hc.d]),maximumWidth:Object(c.b)(1/0),minimumWidth:Object(c.b)(50),dismissDuration:Object(B.d)({defaultValue:350,type:"integer"}),dismissTimeoutId:Object(c.b)(null),hasOverlay:Object(B.d)(!0),isDismissing:Object(c.b)({dependencies:["dismissTimeoutId"],type:Boolean,readOnly:!0,get:Object.assign(function(){return Object(Hn.a)(this.dismissTimeoutId)},{__CW__getter:function(e,t,n,i){return Object(Hn.a)(i.internalGet(this,t[0+n]))}})}),dismissWithItem:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]&&arguments[0],On.a.create()),n=this.dismissDuration;return this.dismissTimeoutId=Object(Us.a)(function(){e.dismissTimeoutId=null,e.hide(),t.resolve()},n),t},shouldAutosize:!0,_calculateSize:function(){this.desiredSize=this.contentController.desiredSize},view:Object(c.b)({downstreamBindings:{isHiding:"(owner).isDismissing"}}),viewClass:Object(c.b)({readOnly:!0,get:function(){return this.hasOverlay?Qc:Kc}}),arrowLength:0,arrowWidth:0,arrowAlignment:zc.a.None,contentController:Object(c.b)({defaultValue:Object(ke.c)(Bc),downstreamBindings:{collection:"(owner).collection",commitOnPointerDown:"(owner).commitOnPointerDown",dividerItemViewClass:"(owner).dividerItemViewClass",highlightedItem:"(owner).highlightedItem",itemViewClass:"(owner).itemViewClass",layoutMetrics:"(owner).layoutMetrics",maximumWidth:"(owner).maximumWidth",minimumWidth:"(owner).minimumWidth",menuDelegate:"(owner).delegate"}}),isFocusable:!0,spaceInset:20,commitOnPointerDown:Object(c.b)({defaultValue:!1,type:Boolean}),dividerItemViewClass:Object(c.b)(xc),itemViewClass:Object(c.b)(jc),keyDown:function(e){if(this.isDismissing)return!1;switch(e.which){case $r.a.ESC:this.hide();break;case $r.a.ENTER:case $r.a.SPACE:this.contentController.keyDown(e)||this.hide();break;default:return this.contentController.keyDown(e)}},modalBackgroundWasClicked:function(){if(this.isDismissing)return!1;this.hide()},matchedLayoutObserver:Object(p.g)("matchedLayout.layout.width","matchedLayout.layout.height",function(e,t){this.contentController.measureViewport()}),staticMembers:{__QUALIFIED_CLASS_NAME__:"MenuViewController"}})),Kc=zc.b.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isHiding",truevalue:"cw-hiding",attributes:{}}]}},__QUALIFIED_CLASS_NAME__:"MenuArrowPopoverView"},additionalClassNames:["cw-menu-arrow-popover-view"],isFocusable:!0,isHiding:Object(c.b)({defaultValue:!1,type:Boolean})}),Qc=Wc.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",attributes:{"aria-modal":"true"}}},__QUALIFIED_CLASS_NAME__:"ModalMenuArrowPopoverView"},popoverView:Object(c.b)({defaultValue:Object(ke.c)(Kc),downstreamBindings:{isHiding:"(owner).isHiding"}}),isFocusable:!0,isHiding:Object(c.b)()}),qc={mixinDependencies:[{mixinDependencies:[He.a],collectionViewDidScroll:$e.a.define()}],collectionViewDidScrollInDirection:$e.a.define()},Yc=n(559),Xc=Object(Qt.b)("SPLIT_LAYOUT_STYLES",function(e){e("FIXED_STYLE"),e("MANUAL_STYLE"),e("AUTO_STYLE")}),Jc=d.a.extend(p.b,Xc.toStaticMixin(),{splitView:Object(c.b)(null),managedView:Object(c.b)(null),constraintStyle:Object(c.b)(Xc.MANUAL_STYLE),minimumSize:Object(c.b)(0),maximumSize:Object(c.b)(0),preferredSize:Object(c.b)(0),size:Object(c.b)(0),_constraintsDidChange:Object(p.h)("splitView","constraintStyle","minimumSize","maximumSize","preferredSize",function(e){e&&e.constraintsDidChange()}),_updateSize:Object(p.h)("managedView","size","splitView.isVertical",function(e,t,n){e&&(n?(e.set("width",t),e.set("height","100%")):(e.set("width","100%"),e.set("height",t)))}),staticMembers:{__QUALIFIED_CLASS_NAME__:"SplitLayout"}});Jc.AUTO=Jc.extend({constraintStyle:Xc.AUTO_STYLE});var Zc,el=n(897),tl=n(101),nl=(n(359),n(0),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",styles:{width:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"width",attributes:{},unit:null,property:"width"},height:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"height",attributes:{},unit:null,property:"height"}},classes:["split-resize-handle"]}},className:"cw-ui-resize-handle-view",__QUALIFIED_CLASS_NAME__:"ResizeHandleView"},size:Object(B.d)(1),width:Object(c.b)({readOnly:!0,dependencies:["parent.isVertical"],get:Object.assign(function(){return this.getPath("parent.isVertical")?this.get("size"):"100%"},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])?this.get("size"):"100%"}})}),height:Object(c.b)({readOnly:!0,dependencies:["parent.isVertical"],get:Object.assign(function(){return this.getPath("parent.isVertical")?"100%":this.get("size")},{__CW__getter:function(e,t,n,i){return i.internalGetPath(this,t[0+n])?"100%":this.get("size")}})}),constraintStyle:Object(B.d)(Jc.FIXED_STYLE),managedConstraint:Object(B.d)(null),pointerDown:function(e){if(0===e.button){var t=this.get("managedConstraint");if(t){this.setPointerCapture(e.pointerId);var n=this.get("parent"),i=n&&n.get("isVertical");return this._cursorStartedAt=i?e.clientX:e.clientY,this._sizeStartedAt=t.get("size"),this.sendEvent("lockCursor",i?"vertical-resize":"horizontal-resize"),!0}}return!1},pointerUp:function(e){var t=e.pointerId;return this.getPointerCapture(t)===this&&(this.releasePointerCapture(t),this._cursorStartedAt=this._sizeStartedAt=null,this.sendEvent("releaseCursor"),!0)},pointerMove:function(e){if(this.getPointerCapture(e.pointerId)===this){var t=this.get("managedConstraint");if(t){var n=this.get("parent"),i=(n&&n.get("isVertical")?e.clientX:e.clientY)-this._cursorStartedAt,r=this._sizeStartedAt;return t.set("preferredSize",r+i),n.userDidMoveResizeHandle(),!0}}return!1}})),il=(n(0),Object(Qt.b)("SPLIT_VIEW_DIRECTIONS",function(e){e("VERTICAL"),e("HORIZONTAL")})),rl=ye.a.extend({staticMembers:{template:{type:"MULTIVIEWOUTLET",tagname:"views",name:"_contents",classes:["split-view",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isVertical",truevalue:"split-view-vertical",falsevalue:"split-view-horizontal",attributes:{}}]},VERTICAL:il.VERTICAL,HORIZONTAL:il.HORIZONTAL,className:"cw-ui-split-view",__QUALIFIED_CLASS_NAME__:"SplitView"},direction:Object(c.b)(il.VERTICAL),isVertical:Object(c.b)({readOnly:!0,dependencies:["direction"],get:Object.assign(function(){return this.direction===il.VERTICAL},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])===il.VERTICAL}})}),resizeHandleViewClass:Object(c.b)(nl),splits:Object(c.b)(Object(ke.c)(Ee.b)),constraintsDidChange:Object(p.i)(),userDidMoveResizeHandle:Object(p.i)(),sizesDidUpdateInDOM:Object(p.i)(),getLayout:function(e){return this._layouts[e]},setLayout:function(e,t){this._layouts[e]=t,this._layoutsDidChange()},_constraints:null,_layouts:Object(ke.c)(Array),_layoutsDidChange:Object(p.i)(),_updateContentsAndConstraints:Object(p.h)("splits","resizeHandleViewClass","splits.contentsDidChange","_layoutsDidChange",function(e,t){var n,i,r=us.a.begin(),a=!0;if(e){n=[],i=[];for(var o,s=this.get("_contents"),c=e.get("length"),l=0;l<c;l++){if(o&&t){var u=s.objectAt(2*l-1);u&&Object(qe.a)(u,t)?u.set("managedConstraint",o):u=t.create({managedConstraint:o}),n.push(u),i.push(u)}var d=e.objectAt(l),h=d.get("parent");h&&Object(qe.a)(h,al)||(h=al.create({split:d})),n.push(h);var p=this.getLayout(l)||Jc.AUTO.create();i.push(p),r.set(p,"splitView",this),a=!1,r.set(p,"managedView",h),o=p}}r.set(this,"_contents",n),r.set(this,"_constraints",i),r.end(),a&&this.constraintsDidChange()}),_updateSizes:Object(p.h)("isAttached","isVertical","constraintsDidChange",function(e,t){var n=e&&this.get("rect"),i=n&&(t?n.width:n.height);if(i){var r=this._constraints;if(r)for(var a=cl(i,r),o=0,s=a.length;o<s;o++)r[o].set("size",a[o])}this.sizesDidUpdateInDOM()})}),al=ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"split"}],styles:{width:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"width",attributes:{},unit:null,property:"width"},height:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"height",attributes:{},unit:null,property:"height"}},classes:["split-wrapper"]}},className:"cw-ui-split-wrapper-view",__QUALIFIED_CLASS_NAME__:"SplitWrapperView"}}),ol=Jc.FIXED_STYLE,sl=Jc.MANUAL_STYLE;function cl(e,t){var n=Zc;n||(n=Zc=[]),n.length=0;var i,r,a,o,s,c=e,l=t.length,u=0,d=0;for(o=0;o<l;o++)(a=(i=t[o]).get("constraintStyle"))===ol?r=i.get("size")||0:a===sl?(r=i.get("preferredSize")||0,r=Math.max(i.get("minimumSize")||-1/0,r),r=Math.min(i.get("maximumSize")||1/0,r),d++):(r=i.get("minimumSize")||0,u++),c-=n[o]=r;if(c>0&&u>0)for(s=c/u,o=0;o<l;o++)(a=(i=t[o]).get("constraintStyle"))!==ol&&a!==sl&&(r=n[o],c-=(n[o]=Math.min(r+s,i.get("maximumSize")||1/0))-r);if(c>0&&d>0)for(s=c/d,o=0;o<l;o++)(a=(i=t[o]).get("constraintStyle"))===sl&&(r=n[o],c-=(n[o]=Math.min(r+s,i.get("maximumSize")||1/0))-r);if(c<0&&d>0)for(s=c/d,o=0;o<l;o++)(a=(i=t[o]).get("constraintStyle"))===sl&&(r=n[o],c-=(n[o]=Math.max(r+s,i.get("minimumSize")||-1/0))-r);if(0!==c&&u>0)for(s=c/u,o=0;o<l;o++)(a=(i=t[o]).get("constraintStyle"))!==ol&&a!==sl&&(r=n[o],c-=(n[o]=r+s)-r);return n}n(359),n(0);var ll=rl.extend({masterView:Object(c.b)(),detailView:Object(c.b)(),masterViewLayout:Object(c.b)({didChange:function(e){this.setLayout(0,e)}}),detailViewLayout:Object(c.b)({didChange:function(e){this.setLayout(1,e)}}),splitsDidChange:Object(p.h)("splits","masterView","detailView",function(e,t,n){e&&t&&n&&(e.setIndex(0,t),e.setIndex(1,n))}),staticMembers:{className:"cw-ui-master-detail-view",__QUALIFIED_CLASS_NAME__:"MasterDetailView"}}),ul=(n(0),n(359),Pa.a.extend({viewClass:ll,view:Object(c.b)({downstreamBindings:{masterViewLayout:"(owner).masterLayout",detailViewLayout:"(owner).detailLayout"}}),selection:Object(c.b)(null),masterViewController:xa.a.create({viewOutlet:"masterView"}),detailViewController:xa.a.create({viewOutlet:"detailView"}),masterLayout:Object(c.b)(Object(ke.c)(Jc,{constraintStyle:Jc.MANUAL_STYLE})),detailLayout:Object(c.b)(Object(ke.c)(Jc,{constraintStyle:Jc.AUTO_STYLE})),staticMembers:{__QUALIFIED_CLASS_NAME__:"MasterDetailViewController"}})),dl=n(520),hl=n(386),pl=(n(483),n(0),ye.a.extend(nt.a,{staticMembers:{className:!1,templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"svg",children:[{type:"ELEMENT",tagname:"circle",classes:["shadow"],namespace:"http://www.w3.org/2000/svg",attributes:{cx:"14",cy:"16",r:"14"}},{type:"ELEMENT",tagname:"circle",classes:["border"],namespace:"http://www.w3.org/2000/svg",attributes:{cx:"14",cy:"14",r:"14"}},{type:"ELEMENT",tagname:"circle",classes:["container"],namespace:"http://www.w3.org/2000/svg",attributes:{cx:"14",cy:"14",r:"12"}},{type:"ELEMENT",tagname:"circle",classes:["container","hdpr"],namespace:"http://www.w3.org/2000/svg",attributes:{cx:"14",cy:"14",r:"13"}},{type:"ELEMENT",tagname:"circle",classes:["dot"],namespace:"http://www.w3.org/2000/svg",attributes:{cx:"14",cy:"14",r:"6"}},{type:"ELEMENT",tagname:"rect",classes:["bar"],namespace:"http://www.w3.org/2000/svg",attributes:{x:"6",y:"12",width:"16",height:"4"}}],classes:["icon"],namespace:"http://www.w3.org/2000/svg",attributes:{viewBox:"0 0 28 28"}},{type:"ELEMENT",tagname:"label",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{}}]}],classes:["cw-radio-button"],attributes:{role:"radio","aria-checked":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"isChecked",attributes:{},attribute:"aria-checked"},tabindex:"0"}}},__QUALIFIED_CLASS_NAME__:"RadioButton"},title:Object(c.b)({type:"string",defaultValue:""}),value:Object(c.b)(),isChecked:Object(c.b)({type:"boolean",readOnly:!0,dependencies:["_isChecked"],get:Object.assign(function(){return this._isChecked},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])}})}),_isChecked:Object(c.b)({type:"boolean",defaultValue:!1}),action:"selectRadioItemByValue",contextKeys:["value"],_isAttachedDidChange:Object(p.h)("isAttached",function(e){var t;e?(t=this._registeredParent=this.parent).sendEvent("registerRadioButton",this):(t=this._registeredParent)&&t.sendEvent("unregisterRadioButton",this)})})),fl=(n(0),Pa.a.extend({items:Object(c.b)({type:Ee.b,set:function(e){return Object(s.a)(e)&&(e=Ee.b.create(e)),e}}),itemKeyMap:null,keyMapForItem:function(e){return this.itemKeyMap},itemViewClass:Object(c.b)(),viewClassForItem:function(e){return this.itemViewClass},proxyForItem:gt.a,viewForItem:function(e){var t=this.proxyForItem(e),n=this.keyMapForItem(e),i=this.viewClassForItem(e);n||Object(o.b)("SimpleListViewController requires that you provide an itemKeyMap to map values from items to views.",{viewController:this,viewClass:i}),i||Object(o.b)("SimpleListViewController requires that you provide an itemViewClass.",{viewController:this,itemKeyMap:n});var r,a,s=t&&t.hasMixin&&t.hasMixin(p.b),c={};for(a in n)(r=n[a])===Po.a?c[a]=t:c[a]=s?t.bindingFor(r):t[r];return i.create(c)},viewClass:ye.a.extend({staticMembers:{template:{type:"MULTIVIEWOUTLET",tagname:"views",name:"itemViews"}}}),itemViews:Object(c.b)(Object(ke.c)(Ee.b)),view:Object(c.b)({downstreamBindings:{itemViews:"(owner).itemViews"}}),_updateViewsForItems:Object(p.h)("items","items.contentsDidChange",function(e,t){var n,i,r,a,o=this.itemViews;if(t){var s,c,l,u=t.context;for(r=0,a=u.length;r<a;r++)i=(s=u[r]).item,c=s.index,(l=s.operation)===Ee.b.REMOVE?o.removeAt(c):l===Ee.b.INSERT&&(n=this.viewForItem(i),o.insertAt(c,n))}else if(o.clear(),e)for(r=0,a=e.length;r<a;r++)i=e.objectAt(r),n=this.viewForItem(i),o.push(n)}),staticMembers:{__QUALIFIED_CLASS_NAME__:"SimpleListViewController"}})),ml=(n(0),n(483),fl.extend(dc,{itemViewClass:pl,value:Object(c.b)(),itemKeyMap:Object(ke.c)(Object,{title:"title",value:"value",isDisabled:"isDisabled"}),radioGroupValue:Object(c.b)(Object(Ye.c)("value")),staticMembers:{__QUALIFIED_CLASS_NAME__:"RadioGroupViewController"}})),gl=(n(1),n(0),n(2),fl.extend({reorderItem:function(e,t){void 0!==e&&void 0!==t||Object(o.b)("reorderItem requires values for both `oldIndex` and `newIndex`");for(var n=this.itemViews,i=Kn.a.create(),r=Kn.a.create(),a=void 0,s=0,c=n.length;s<c;s++)i.setIndex(s,s),a=n.objectAt(s),r.setIndex(s,a);i.move(e,t),r.move(e,t),this._oldIndexByNewIndex=i,this._virtualItemViews=r,this._listIsMeasured||this._measureListItems(),this._recalculateTranslates(),this._itemIsReadyToBeReordered=!0},didVisuallyReorderList:bt.a,didGrabItemView:bt.a,didUngrabItemView:bt.a,commitChangesToList:function(){if(this._hasUncommittedChanges)return this._recalculateTranslates(),this._itemIsReadyToBeReordered=!0,!0},cancelGrab:function(){if(this.grabbedItemView)return this._recomputeVirtualList(),this._ungrabItemView(),this._recalculateTranslates(),this.view._itemViewBeingPressed=null,this._writeTextToAriaLiveRegion(Object(r.d)("ReorderableSimpleListViewController.CancelledMove")),!0},grabbedItemView:Object(c.b)(),grabOrReleaseView:function(e){e||Object(o.b)("grabOrReleaseView called without an itemView");var t=this.grabbedItemView;t?(this._ungrabItemView(),e!==t?this._grabItemView(e):this.commitChangesToList()):this._grabItemView(e)},moveGrabbedItemViewUp:function(e){this.grabbedItemView===e&&this._moveItemView(e,-1)},moveGrabbedItemViewDown:function(e){this.grabbedItemView===e&&this._moveItemView(e,1)},itemAccessibilityTitleKey:Object(B.d)(null),accessibilityTitleForItem:function(e){var t=this.itemAccessibilityTitleKey;return t===Po.a?e:Object(Hn.a)(t)&&""!==t?e[t]:void Object(o.b)("ReorderableSimpleListViewController: Unexpected value '"+t+"' for required property `itemAccessibilityTitleKey`.")},_recomputeVirtualList:function(){var e=this.itemViews,t=this._virtualItemViews,n=this._oldIndexByNewIndex,i=this._storedItemViewInfoByView;t.clear(),n.clear(),i.clear(),this._hasUncommittedChanges=!1;for(var r=0,a=e.length;r<a;r++)t.push(e.objectAt(r)),n.setIndex(r,r);var o=this.view.element.getBoundingClientRect();this._listStartEdgePos=o.top,this._listIsMeasured=!1},_measureListItems:function(){for(var e=this.itemViews,t=0+this.view.element.offsetHeight,n=0,i=e.length;n<i;n++){var r=e.objectAt(n),a=r.element,o=a.offsetTop,s=a.offsetHeight,c=o+s,l=void 0,u=void 0,d=void 0,h=void 0,p=void 0,f=void 0;if(n-1>=0&&(d=n-1,p=e.objectAt(d)),n+1<=e.length-1&&(h=n+1,f=e.objectAt(h)),0===n)l=o-0;else{var m=p.element,g=m.offsetHeight;l=o-(m.offsetTop+g)}u=n===e.length-1?t-c:f.element.offsetTop-c;var b=this._storedItemViewInfoByView.get(r),v=void 0;b&&(v=b.translatedOffset);var _={dragDimensionSize:s,dragAxisCoordinate:o,spaceBefore:l,spaceAfter:u,translatedOffset:v||0},y=t-c+0,C=0-o-0;_.maxPositiveOffset=y,_.maxNegativeOffset=C,this._storedItemViewInfoByView.set(r,_)}this._listIsMeasured=!0},_recalculateTranslates:function(e){var t=this._virtualItemViews;this._listIsMeasured||(this._recomputeVirtualList(),this._measureListItems());for(var n=0,i=0,r=t.length;i<r;i++){var a=t.objectAt(i),o=this._storedItemViewInfoByView.get(a),s=a===e,c=n-o.dragAxisCoordinate;if(!s){var l=a.style.get("transition-duration").split(",")[0],u=1e3*parseFloat(l.slice(0,-1),10);this._translateItemElement(a,c,u)}var d=o.spaceBefore,h=o.spaceAfter;n+=o.dragDimensionSize+(d||h)}var p=this._oldIndexByNewIndex.slice(0);this.didVisuallyReorderList(p),this._hasUncommittedChanges=!0},_updateStoredItemViewInfoForKey:function(e,t,n){var i=this._storedItemViewInfoByView,r=i.get(e);r?(r[t]=n,i.set(e,r)):Object(o.b)("_updateStoredItemViewInfoForKey unable to find stored info to update for provided itemView")},_storedItemViewInfoByView:Object(c.b)(Object(ke.c)(io.a)),_listStartEdgePos:null,_updateLiveRegionForItemMove:function(e,t,n){if(t>n){var i=n+1,a=this._oldIndexByNewIndex.objectAt(i),o=this.items.objectAt(a),s=this.accessibilityTitleForItem(o);this._writeTextToAriaLiveRegion(Object(r.d)("ReorderableSimpleListViewController.GrabbedItem.MovedUp",{itemTitle:s}))}else{var c=n-1,l=this._oldIndexByNewIndex.objectAt(c),u=this.items.objectAt(l),d=this.accessibilityTitleForItem(u);this._writeTextToAriaLiveRegion(Object(r.d)("ReorderableSimpleListViewController.GrabbedItem.MovedDown",{itemTitle:d}))}},_listIsMeasured:!1,_hasUncommittedChanges:!1,_isInFocusedLayerObserver:Object(p.h)("isInFocusedLayer",function(){!this.isInFocusedLayer&&this.grabbedItemView&&(this._ungrabItemView(),this.commitChangesToList())}),_grabItemView:function(e){this.grabbedItemView=e,this.didGrabItemView(e)},_ungrabItemView:function(){var e=this.grabbedItemView;if(this.grabbedItemView=null,e){var t=this._virtualItemViews.indexOf(e);this._writeTextToAriaLiveRegion(Object(r.d)("ReorderableSimpleListViewController.ItemDropped",{itemTitle:e.title,positionNumber:t+1}))}this.didUngrabItemView(e)},_handleDragItem:function(e,t){this._listIsMeasured||(this._recomputeVirtualList(),this._measureListItems());var n=t.clientY-this._listStartEdgePos,i=this._storedItemViewInfoByView.get(e),r=-(i.dragAxisCoordinate+i.dragDimensionSize/2-n);this._translateItemElement(e,r);for(var a=this.itemViews,o=void 0,s=0,c=a.length;s<c;s++)if((o=a.objectAt(s))!==e&&this._hitCheck(o,e)){this._handleHitItem(o,e);break}},_hitCheck:function(e,t){e===t&&Object(o.b)("Passed identical views to _hitCheck");var n=this._storedItemViewInfoByView.get(t),i=n.translatedOffset,r=n.dragAxisCoordinate,a=n.dragDimensionSize,s=r+i,c=r+a/2+i,l=r+a+i,u=this._storedItemViewInfoByView.get(e),d=u.dragDimensionSize,h=u.translatedOffset,p=u.dragAxisCoordinate+h,f=u.dragAxisCoordinate+d/2+h,m=u.dragAxisCoordinate+u.dragDimensionSize+h,g=!1;return f>c?bl(l,p,m)&&l>f&&(g=!0):bl(s,p,m)&&s<f&&(g=!0),!!g},_handleHitItem:function(e,t){for(var n=this._virtualItemViews,i=void 0,r=void 0,a=0,o=n.length;a<o;a++){var s=n.objectAt(a);t===s?i=a:e===s&&(r=a)}this._updateVirtualItemIndexes(i,r),this._recalculateTranslates(t),this._updateLiveRegionForItemMove(t,i,r)},_updateVirtualItemIndexes:function(e,t){this._virtualItemViews.move(e,t),this._oldIndexByNewIndex.move(e,t)},_moveItemView:function(e,t){if(e&&e===this.grabbedItemView){0===this._virtualItemViews.length&&this._recomputeVirtualList(),this._listIsMeasured||this._measureListItems();var n=this._virtualItemViews.findIndex(function(t){return t===e}),i=n+t;i<this.itemViews.length&&i>-1&&(this._updateVirtualItemIndexes(n,i),this._recalculateTranslates(),this._updateLiveRegionForItemMove(e,n,i))}else Object(o.b)("The itemViewToMove passed to _moveItemView must exist and be equal to the grabbedItemView")},_virtualItemViews:Object(ke.c)(Kn.a),_oldIndexByNewIndex:Object(ke.c)(Kn.a),_translateItemElement:function(e,t,n){var i=this;if(e.style.getInline("transform")||0!==t){var r=this._storedItemViewInfoByView.get(e),a=r.maxPositiveOffset,o=r.maxNegativeOffset;if(t>a&&(t=a),t<o&&(t=o),e.style.translateY(t),this._updateStoredItemViewInfoForKey(e,"translatedOffset",t),n>0){var s=this._animatingItemViews;s.add(e),this.propertyChanged("_itemViewIsAnimating"),Object(Us.a)(function(){s.delete(e),i.propertyChanged("_itemViewIsAnimating")},n)}}},_itemViewIsAnimating:Object(c.b)({readOnly:!0,dependencies:["_animatingItemViews"],get:Object.assign(function(){return this._animatingItemViews.length>0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n]).length>0}})}),_animatingItemViews:Object(c.b)(Object(ke.c)(Tt.a)),_reorderItemWhenNeeded:Object(p.h)("_itemViewIsAnimating","_itemIsReadyToBeReordered",function(e,t){!e&&t&&this._reorderItems()}),_reorderItems:function(){this._itemIsReadyToBeReordered=!1;var e=this._oldIndexByNewIndex;0===e.length&&this._recomputeVirtualList();var t=void 0;if(this.isInFocusedLayer){var n=this.focusResponder;n&&n.parent===this.view&&(t=this._virtualItemViews.indexOf(n))}this._actuallyReorderItems(e),Object(Hn.a)(t)&&this.itemViews.objectAt(t).focus(),this._recomputeVirtualList()},_actuallyReorderItems:function(e){this._listIsMeasured=!1;var t=this.items,n=[];e.forEach(function(e){n.push(t.objectAt(e))});for(var i=0,r=t.length;i<r;i++)t.setIndex(i,n[i])},_itemIsReadyToBeReordered:Object(c.b)(),_handleDropItem:function(e){if(this._ungrabItemView(),this._recalculateTranslates(),this._hasUncommittedChanges){var t=this.itemViews,n=this._oldIndexByNewIndex,i=t.findIndex(function(t){return t===e}),r=n.findIndex(function(e){return e===i});this.reorderItem(i,r)}},_writeTextToAriaLiveRegion:function(e){u.a.application.writeTextToAriaLiveRegion(e)},viewClass:Object(Ae.b)({mixinDependencies:[uc.a],staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",styles:{position:"relative"}}}},_itemViewBeingPressed:null,_findItemViewForEvent:function(e){var t=Object(Yr.c)(e),n=void 0;do{n=this.itemViews.includes(t)}while(!n&&t&&(t=t.parent));if(n)return t},pointerDown:function(e){var t=arguments,n=this.__s._$B2T$pointerDown.apply(this,t);if(n){var i=this._findItemViewForEvent(e);i?this.handlePointerDownForItemView(i):n=!1}return n},handlePointerDownForItemView:function(e){this._itemViewBeingPressed=e,this.sendEvent("_grabItemView",e)},pointerMove:function(e){var t=this._itemViewBeingPressed;t&&this.sendEvent("_handleDragItem",t,e)},pointerUp:function(e){var t=arguments;this.__s._$BI0$pointerUp.apply(this,t);var n=this._itemViewBeingPressed;n&&this.sendEvent("_handleDropItem",n),this._itemViewBeingPressed=null},keyDown:function(e){var t=this._findItemViewForEvent(e),n=!0;if(t)switch(e.keyCode){case $r.a.ENTER:this.sendEvent("grabOrReleaseView",t);break;case $r.a.SPACE:this.sendEvent("grabOrReleaseView",t),e.preventDefault();break;case $r.a.UP:this.sendEvent("moveGrabbedItemViewUp",t),e.preventDefault();break;case $r.a.DOWN:this.sendEvent("moveGrabbedItemViewDown",t),e.preventDefault();break;case $r.a.ESC:this.sendEvent("cancelGrab",t);break;default:n=!1}else n=!1;return n},__superMap:{_$B2T$pointerDown:"pointerDown",_$BI0$pointerUp:"pointerUp"}}),staticMembers:{__QUALIFIED_CLASS_NAME__:"ReorderableSimpleListViewController"}}));function bl(e,t,n){return e>=t&&e<=n}var vl=n(519),_l=n(898),yl=(n(5),n(0),_l.a.extend({staticMembers:{className:"cw-ax-grab-toggle-button",shouldInheritClassNames:!1,__QUALIFIED_CLASS_NAME__:"AXGrabToggleButton"},titleOfThingToBeGrabbed:Object(c.b)(),isOn:Object(c.b)(),ariaLabel:Object(c.b)({readOnly:!0,dependencies:["titleOfThingToBeGrabbed","isOn"],get:Object.assign(function(){return this.isOn?Object(r.d)("AXGrabToggleButton.AriaLabel.Grabbed"):Object(r.d)("AXGrabToggleButton.AriaLabel.Ungrabbed",{title:this.titleOfThingToBeGrabbed})},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])?Object(r.d)("AXGrabToggleButton.AriaLabel.Grabbed"):Object(r.d)("AXGrabToggleButton.AriaLabel.Ungrabbed",{title:i.internalGet(this,t[0+n])})}})}),action:"grabOrReleaseView",context:null,isFocusable:!1})),Cl=n(109),Il=(n(0),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"titleView"},{type:"VIEWOUTLET",tagname:"view",name:"subtitleView"}],attributes:{role:"tooltip",id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"idRelationshipGuid",attributes:{},attribute:"id"}}}},className:"cw-tooltip-content",__QUALIFIED_CLASS_NAME__:"TooltipContentView"},idRelationshipGuid:Object(c.b)({type:String}),title:Object(c.b)({type:String}),subtitle:Object(c.b)({type:String}),titleView:Object(c.b)({defaultValue:Object(ke.c)(ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"title",attributes:{}}],classes:["title"]}}}})),downstreamBindings:{title:"(owner).title"}}),subtitleView:Object(c.b)({defaultValue:Object(ke.c)(ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"subtitle",attributes:{}}],classes:["subtitle"]}}}})),downstreamBindings:{subtitle:"(owner).subtitle"}})})),wl=(n(1),n(0),n(21),n(20),n(8),n(2),ye.a.extend(uc.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"cw-capacity-bar-item",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"ariaLabel",attributes:{}}],styles:{"flex-grow":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"percentage",attributes:{},unit:null,property:"flex-grow"},"background-color":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"color",attributes:{},unit:null,property:"background-color"}}}},className:!1,__QUALIFIED_CLASS_NAME__:"CapacityMeterBarItemView"},percentage:Object(c.b)({type:Number,readOnly:!0,get:function(){return this._percentage}}),color:Object(c.b)({type:String}),nameForDisplay:Object(c.b)({type:String}),legendNameForDisplay:Object(c.b)({type:String}),valueForDisplay:Object(c.b)({binding:"value",type:String}),value:Object(c.b)({type:Number}),guidForTooltip:Object(c.b)({type:String,defaultValue:function(){return Object(Ni.b)(this)+"BarItemTooltip"}}),ariaDescribedBy:Object(c.b)({binding:"guidForTooltip"}),ariaLabel:Object(c.b)({readOnly:!0,type:String,dependencies:["legendNameForDisplay","nameForDisplay"],get:Object.assign(function(){return this.legendNameForDisplay||this.nameForDisplay},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])||i.internalGet(this,t[1+n])}})}),tooltipContentViewClass:Object(c.b)(Il),tooltipPopover:Object(c.b)({readOnly:!0,get:function(){return this._tooltip||(this._tooltip=this.createTooltip())},strong:!0}),createTooltip:function(){var e=this.tooltipContentViewClass.extend({title:this.bindingFor("nameForDisplay"),subtitle:this.bindingFor("valueForDisplay"),idRelationshipGuid:this.bindingFor("guidForTooltip"),staticMembers:{__QUALIFIED_CLASS_NAME__:"ItemTooltipContentView"}}),t=Pa.a.create({viewClass:e});return $c.c.create({contentController:t,allowedLayouts:[Hc.d,Hc.a],shouldAutosize:!0,inheritsFocusLayer:!0,shouldFocusPaneOnAttach:!1})},ariaRole:"tab",isFocusable:!0,_percentage:Object(c.b)({type:Number}),_isBeingHoveredObserver:Object(p.h)("isBeingHovered","isFocused",function(e,t){var n=this.tooltipPopover;e||t?n.show(this):n.hide(this)})})),Sl=(n(0),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"cw-capacity-legend-item",children:[{type:"ELEMENT",tagname:"span",classes:["color-indicator"],styles:{"background-color":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"color",attributes:{},unit:null,property:"background-color"}}},{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"legendNameForDisplay",attributes:{}}],classes:["label"]}]}},__QUALIFIED_CLASS_NAME__:"CapacityMeterLegendItemView"},color:Object(c.b)({type:String}),nameForDisplay:Object(c.b)({type:String}),legendNameForDisplay:Object(c.b)({binding:"nameForDisplay",type:String})})),Al=(n(1),n(0),n(21),n(20),n(8),n(2),Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e}),Ol=ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"cw-capacity-meter",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"_barItemViews",attributes:{tagName:"cw-capacity-bar",role:"list","aria-label":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaLabel",attributes:{},attribute:"aria-label"}}},{type:"MULTIVIEWOUTLET",tagname:"views",name:"_legendItemViews",attributes:{tagName:"cw-capacity-legend","aria-hidden":"true"}},{type:"VIEWOUTLET",tagname:"view",name:"emptyView"}],classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isEmpty",truevalue:"is-empty",attributes:{}}],attributes:{"aria-label":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"false",attributes:{},attribute:"aria-label"}}}},className:!1,__QUALIFIED_CLASS_NAME__:"CapacityMeterView"},items:Object(c.b)({type:Array}),reloadData:function(){if(!this.isEmpty){var e=this.items;if(e){var t=this.totalCapacity;this._barItemViews=void 0,this._legendItemViews=void 0;var n=this.barItemViewClass,i=e.map(function(e){var i=e.value/t;return n.create(Al({},e,{_percentage:i}))});if(this._barItemViews=cs.a.create(i),this.hasLegend){var r=this.legendItemViewClass,a=e.reduce(function(e,t){return!1!==t.showInLegend&&e.push(r.create(Al({},t))),e},[]);this._legendItemViews=cs.a.create(a)}}}},emptyTitle:Object(c.b)({type:String}),hasLegend:Object(c.b)({defaultValue:!0,type:Boolean}),totalCapacity:Object(c.b)({readOnly:!0,dependencies:["items"],get:Object.assign(function(){var e=this.items;if(e){var t=e.reduce(function(e,t){return e+t.value},0);return t&&"number"==typeof t?t:void Object(o.b)("Capacity Meter: Unable to calculate total capacity from provided items.")}},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);if(r){var a=r.reduce(function(e,t){return e+t.value},0);return a&&"number"==typeof a?a:void Object(o.b)("Capacity Meter: Unable to calculate total capacity from provided items.")}}})}),barItemViewClass:Object(c.b)(wl),legendItemViewClass:Object(c.b)(Sl),isEmpty:Object(c.b)({readOnly:!0,dependencies:["items","totalCapacity"],get:Object.assign(function(){return!this.items||!this.totalCapacity},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])||!i.internalGet(this,t[1+n])}})}),emptyView:Object(c.b)({defaultValue:Object(ke.c)(ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"emptyTitle",attributes:{}}],classes:["empty-message"],attributes:{hidden:{type:"ATTRIBUTEOUTLET",bindingtype:"IFBINDING",name:"isHidden",truevalue:"",attributes:{},attribute:"hidden"}}}}}})),downstreamBindings:{isHidden:"(owner)._emptyViewIsHidden",emptyTitle:"(owner).emptyTitle"}}),_barItemViews:Object(c.b)({type:cs.a,strong:!0}),_legendItemViews:Object(c.b)({type:cs.a,strong:!0}),_dataObserver:Object(p.h)("items","hasLegend","barItemViewClass","legendItemViewClass","totalCapacity","isEmpty",function(){this.reloadData()}),_emptyViewIsHidden:Object(c.b)({readOnly:!0,dependencies:["isEmpty"],get:Object.assign(function(){return!this.isEmpty},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])}})})}),El=(n(946),n(834)),Tl=n(892),Dl=(n(0),ye.a.extend(cc.a,Or.b,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"cw-checkbox",children:[{type:"ELEMENT",tagname:"input",name:"controlElement",attributes:{id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"inputGUID",attributes:{},attribute:"id"},type:"checkbox"}},{type:"ELEMENT",tagname:"label",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"label",attributes:{}}],name:"labelElement",attributes:{for:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"inputGUID",attributes:{},attribute:"for"}}}]}},className:"cw-ui-checkbox",__QUALIFIED_CLASS_NAME__:"Checkbox"},inputGUID:Object(c.b)({type:"string",defaultValue:function(){return Object(Ni.b)(this)+"Input"}}),isChecked:Object(c.b)({type:"boolean",defaultValue:!1,didChange:function(e){"boolean"==typeof e?(this.controlElement.checked=e,this.controlElement.indeterminate=!1):this.controlElement.indeterminate=!0}}),defaultFocusElement:Object(Ye.c)("controlElement"),label:Object(c.b)(""),init:function(){var e=arguments;this.__s._$21N$init.apply(this,e),Object(m.a)(this.labelElement,"click",Object(El.a)(this.handleLabelClickEvent,this))},dispose:function(){var e=arguments;Object(Tl.a)(this.labelElement,"click",Object(El.a)(this.handleLabelClickEvent,this)),this.__s._$26l$dispose.apply(this,e)},change:function(e){this.isChecked=this.controlElement.checked},pointerDown:function(e){var t=U.a.sharedInstance,n=t.isiOS,i=t.osMajorVersion;(!n||i>12)&&e.preventDefault()},handleLabelClickEvent:function(e){if(e.target===this.labelElement){e.preventDefault();var t=this.controlElement;t&&t.click()}},__superMap:{_$21N$init:"init",_$26l$dispose:"dispose"}})),Ll=(n(947),n(0),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"canvas",name:"canvasNode"},{type:"ELEMENT",tagname:"span",children:[{type:"DATAOUTLET",bindingtype:"DIRECTBINDING",name:"percentageText",attributes:{}}],classes:["text"],name:"textNode",styles:{"font-size":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"textSize",attributes:{},unit:"px",property:"font-size"},"line-height":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"size",attributes:{},unit:"px",property:"line-height"}}}],classes:["cw-circular-progress-view",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isComplete",truevalue:"complete",attributes:{}}],attributes:{role:"progressbar","aria-valuenow":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"value",attributes:{},attribute:"aria-valuenow"},"aria-valuemin":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"minimumValue",attributes:{},attribute:"aria-valuemin"},"aria-valuemax":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"maximumValue",attributes:{},attribute:"aria-valuemax"}}}},className:"cw-ui-circular-progress-view",__QUALIFIED_CLASS_NAME__:"CircularProgressView"},progressColor:Object(c.b)("#1994FB"),outlineColor:Object(c.b)("#EFEFEF"),thickness:Object(c.b)(1),outlineThickness:Object(c.b)(0),progressOverlaysOutline:Object(c.b)(!1),size:Object(c.b)(50),minimumValue:Object(c.b)({defaultValue:0,type:"number"}),maximumValue:Object(c.b)({defaultValue:100,type:"number"}),value:Object(c.b)(0),showValueAsInteger:Object(c.b)({defaultValue:!1,type:"boolean"}),fractionalProgress:Object(c.b)({readOnly:!0,dependencies:["value","minimumValue","maximumValue"],get:Object.assign(function(){return Math.min(1,Math.max(0,(this.value-this.minimumValue)/(this.maximumValue-this.minimumValue)))},{__CW__getter:function(e,t,n,i){return Math.min(1,Math.max(0,(i.internalGet(this,t[0+n])-i.internalGet(this,t[1+n]))/(i.internalGet(this,t[2+n])-i.internalGet(this,t[1+n]))))}}),didChange:function(){this.isAttached&&this._draw()}}),isComplete:Object(c.b)({readOnly:!0,dependencies:["fractionalProgress"],get:Object.assign(function(){return 1===this.fractionalProgress},{__CW__getter:function(e,t,n,i){return 1===i.internalGet(this,t[0+n])}})}),percentageText:Object(c.b)({readOnly:!0,dependencies:["showValueAsInteger","fractionalProgress"],get:Object.assign(function(){var e=100*this.fractionalProgress;return this.showValueAsInteger?e.toFixed(0)+"%":e.toFixed(1)+"%"},{__CW__getter:function(e,t,n,i){var r=100*i.internalGet(this,t[1+n]);return i.internalGet(this,t[0+n])?r.toFixed(0)+"%":r.toFixed(1)+"%"}})}),textSize:Object(c.b)({dependencies:["size"],get:Object.assign(function(e){return e||Math.round(this.size/6)},{__CW__getter:function(e,t,n,i){return e||Math.round(i.internalGet(this,t[0+n])/6)}}),set:gt.a}),init:function(){var e=arguments;this.__s._$1xf$init.apply(this,e),(this._context=this.canvasNode.getContext("2d")).lineCap="square"},_drawOutline:function(){var e=this._context,t=this.size,n=t/2,i=t/2,r=t/3,a=2*Math.PI,o=Math.PI/2,s=this.outlineThickness,c=this.thickness,l=this.progressOverlaysOutline||!s?(this.fractionalProgress||0)*a:0,u=a-l;l>0&&(e.beginPath(),e.strokeStyle=this.progressColor,e.lineWidth=s||c,e.arc(n,i,r,-o,l-o,!1),e.stroke()),u>0&&(e.beginPath(),e.strokeStyle=this.outlineColor,e.lineWidth=s||c,e.arc(n,i,r,a-u-o,a-o,!1),e.stroke())},_drawProgress:function(){var e=this.size,t=e/2,n=e/2,i=Math.max(0,e/3-this.outlineThickness),r=this._context,a=Math.PI/2,o=2*Math.PI;r.beginPath(),r.lineWidth=this.thickness,r.strokeStyle=this.progressColor,r.arc(t,n,i,-a,o*this.fractionalProgress-a,!1),r.stroke()},_drawUpArrow:function(){var e=this._context;e.beginPath(),e.strokeStyle=this.progressColor;var t=this.size,n=t/2;e.moveTo(n,.3*t),e.lineTo(n,.7*t),e.moveTo(n,.3*t),e.lineTo(.7*n,.9*n),e.moveTo(n,.3*t),e.lineTo(1.3*n,.9*n),e.stroke()},_draw:function(){var e=this.size;this._context.clearRect(0,0,e,e),this._drawOutline(),this.outlineThickness&&this._drawProgress()},_effectiveDPR:Object(c.b)({readOnly:!0,dependencies:[U.a.sharedInstance.bindingFor("devicePixelRatio")],get:Object.assign(function(){return Math.ceil(U.a.sharedInstance.devicePixelRatio)},{__CW__getter:function(e,t,n,i){return Math.ceil(i.internalGetPath(this,t[0+n]))}})}),_updateWhenNecessary:Object(p.h)("isAttached","_effectiveDPR","_context","size","progressColor","outlineColor","thickness","outlineThickness","progressOverlaysOutline",function(e,t,n,i){if(e&&n){var r=this.canvasNode;r.width=r.height=i*t,r.style.width=r.style.height=i+"px",n.scale(t,t),this._draw()}}),_context:Object(c.b)(),__superMap:{_$1xf$init:"init"}})),Nl=n(948),Ml=n(276),Pl=n(560),xl=n(535),Rl=(n(949),n(0),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",classes:["progress-bar"],name:"progressNode",attributes:{role:"progressbar","aria-valuenow":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"value",attributes:{},attribute:"aria-valuenow"},"aria-valuemin":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"minimumValue",attributes:{},attribute:"aria-valuemin"},"aria-valuemax":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"maximumValue",attributes:{},attribute:"aria-valuemax"}}}],classes:["total"]}],classes:["cw-progress-view"]}},className:"cw-ui-progress-view",__QUALIFIED_CLASS_NAME__:"ProgressView"},minimumValue:Object(c.b)({defaultValue:0,type:"number"}),maximumValue:Object(c.b)({defaultValue:100,type:"number"}),value:Object(c.b)({defaultValue:0}),_updateDOM:Object(p.h)("value",function(e){this.get("progressNode").setAttribute("style","width:"+(e||0)+"%")})})),jl=(n(0),ye.a.extend({width:Object(c.b)(),height:Object(c.b)(),didCreateSVG:function(e){},didCreateSVGPath:function(e){},createSVG:function(){var e=this.width,t=this.height,n=document.createElementNS("http://www.w3.org/2000/svg","svg");return n.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),n.setAttribute("width",e),n.setAttribute("height",t),n.setAttribute("viewBox","0 0 "+e+" "+t),this.didCreateSVG(n),n},createSVGPath:function(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.didCreateSVGPath(e),e},init:function(){var e=arguments;this.__s._$nV$init.apply(this,e);var t=this.createSVG();t.appendChild(this.createSVGPath()),this.element.appendChild(t)},__superMap:{_$nV$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"SVGView"}})),Fl=(n(0),ye.a.extend(cc.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"input",classes:["cw-text-field",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isFocused",truevalue:"cw-focused",attributes:{}}],attributes:{type:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"type",attributes:{},attribute:"type"},maxlength:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"maxLength",attributes:{},attribute:"maxlength"},autocomplete:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"autocomplete",attributes:{},attribute:"autocomplete"},autocorrect:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"autocorrect",attributes:{},attribute:"autocorrect"},autocapitalize:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"autocapitalize",attributes:{},attribute:"autocapitalize"},spellcheck:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"spellcheck",attributes:{},attribute:"spellcheck"},placeholder:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"placeholder",attributes:{},attribute:"placeholder"},"aria-invalid":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"hasInvalidValue",attributes:{},attribute:"aria-invalid"},id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"id",attributes:{},attribute:"id"}}}},className:"cw-ui-views-text-field",__QUALIFIED_CLASS_NAME__:"TextField"},value:Object(c.b)(""),type:"text",placeholder:void 0,action:"submit",maxLength:null,autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"default",id:null,hasInvalidValue:!1,isEditable:Object(c.b)(!0),isFocusable:Object(c.b)({readOnly:!0,dependencies:["isDisabled"],get:Object.assign(function(){return!this.isDisabled},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])}})}),defaultFocusElement:Object(Ye.c)("element"),selection:Object(c.b)({cacheable:!1,dependencies:["element"],writeDependencies:["_selection"],get:function(){var e=this.controlElement,t=void 0,n=void 0,i=void 0,r=null;if(""===e.value?t=n=0:("selectionStart"in e&&(t=e.selectionStart),"selectionEnd"in e&&(n=e.selectionEnd)),null===t||null===n){var a=document.selection;if(a){var o=a.type;!o||"None"!==o&&"Text"!==o||(i=(r=a.createRange()).text.length,n=(t=Math.abs(r.moveStart("character",0-(e.value.length+1))))+i)}}return i=-1===t||-1===n?-1:n-t,Object.freeze({start:t,end:n,length:i,value:e.value.slice(t,n)})},set:Object.assign(function(e){this.set("_selection",e)},{__CW__setter:function(e,t,n,i,r){n[0+i]=e}}),writeDependencySetPathMap:["false"]}),select:function(){var e=this.controlElement;e&&e.select()},isDefaultTabbingEnabled:!0,allowedCharacters:void 0,isIMEInputActive:Object(c.b)(!1),didFocus:function(){this.controlElement.focus()},didBlur:function(){this.sendEvent("didEndEditing",this)},input:function(e){this._elementValueDidChange(),this._compositionDidEnd=!1},keyDown:function(e){if(e.which===$r.a.RETURN){this.sendEvent("didEndEditing",this);var t=this.action,n=!1;return t&&(n=this.sendEvent(t,this)),this.select(),n}return!1},compositionStart:function(e){this.set("isIMEInputActive",!0)},compositionEnd:function(e){this._compositionDidEnd=!0,this.set("isIMEInputActive",!1)},_compositionDidEnd:!1,handleSelectionChange:function(e){this.propertyChanged("selection")},init:function(){var e=arguments;this.__s._$39Q$init.apply(this,e);var t=this.controlElement;this.isDefaultTabbingEnabled||t.setAttribute("tabindex","-1");var n=this.placeholder;n&&t.setAttribute("aria-label",n);var i=this.allowedCharacters;!i||i instanceof RegExp||Object(o.b)("Must use only RegExp for TextField character validation.")},_isPlaceholderShowing:Object(c.b)({dependencies:["value","isIMEInputActive"],readOnly:!0,get:Object.assign(function(){if(!this.isIMEInputActive){var e=this.value;if(!Object(Hn.a)(e)||""===e)return!0}return!1},{__CW__getter:function(e,t,n,i){if(!i.internalGet(this,t[1+n])){var r=i.internalGet(this,t[0+n]);if(!Object(Hn.a)(r)||""===r)return!0}return!1}})}),_valueDidChange:Object(p.h)("value",function(e){var t=this.controlElement;t.value!==e&&(t.value=Object(Hn.a)(e)?e:"")}),_elementValueDidChange:function(){var e=this.controlElement,t=this.value,n=e.value;(this._compositionDidEnd||t!==n)&&(this.isIMEInputActive?this.value=n:this._isInputAllowed(n)?this.set("value",n):e.value=t||"")},_isInputAllowed:function(e){var t=this.allowedCharacters;return!t||!e||t.test(e)},_selectionEventElement:null,_attachmentDidChange:Object(p.g)("element","isAttached",function(e,t){var n=this._selectionEventElement;!n||n===e&&t||(Object(Tl.a)(n,"select",this._handleSelectionChangeBound),this._selectionEventElement=null),e&&t&&(this._selectionEventElement=e,Object(m.a)(e,"select",this._handleSelectionChangeBound))}),_handleSelectionChangeBound:Object(B.d)(function(){return this.handleSelectionChange.bind(this)}),_selection:Object(c.b)(),_selectionDidChange:Object(p.h)("_selection",function(e){if(e){var t=this.controlElement,n=e.start,i=e.end;this.focus();var r=null;if(t.setSelectionRange)t.setSelectionRange(n,i);else{(r=t.createTextRange()).move("character",n),r.moveEnd("character",i-n);try{r.select()}catch(e){return null}}}}),_statusDidChange:Object(p.h)("isDisabled","isEditable",function(e,t){var n=this.controlElement;e?n.setAttribute("disabled","disabled"):n.removeAttribute("disabled"),t?n.removeAttribute("readonly"):n.setAttribute("readonly","readonly")}),__superMap:{_$39Q$init:"init"}})),Vl=(n(0),jl.extend({staticMembers:{className:"icon-magnifying-glass",__QUALIFIED_CLASS_NAME__:"MagnifyingGlass"},width:60,height:60,didCreateSVGPath:function(e){e.setAttribute("d","M41.392,36.916a22.97,22.97,0,1,0-18.415,9.295A22.806,22.806,0,0,0,36.9,41.472L55.357,60.012l4.661-4.389Zm-18.415,5.2A19.019,19.019,0,1,1,41.909,23.1,19,19,0,0,1,22.976,42.115Z"),e.setAttribute("stroke-width","1"),e.setAttribute("fill-rule","nonzero")}})),Ul=jl.extend(nt.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:["clear-button",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isVisible",truevalue:"",falsevalue:"cw-hidden",attributes:{}}]}},__QUALIFIED_CLASS_NAME__:"ClearButton"},width:60,height:60,didCreateSVGPath:function(e){e.setAttribute("d","M57.623,18.293 C56.0926123,14.7346918 53.9093051,11.494497 51.186,8.74 C48.4552911,5.9853652 45.2052214,3.79984457 41.624,2.31 C37.9366062,0.790802439 33.9880819,0.00612495591 30,0 C25.9849897,0.002963187 22.0112149,0.809822753 18.313,2.373 C14.7526246,3.90004018 11.5094686,6.0798942 8.751,8.8 C6.00764443,11.5009524 3.83913873,14.7290495 2.376,18.29 C0.810893178,21.9849179 0.00295222048,25.9562741 3.33066907e-15,29.969 C-0.00248369622,33.9610486 0.806209529,37.911976 2.377,41.582 C3.88313264,45.1726863 6.0688578,48.4385406 8.814,51.2 C11.5444828,53.9551583 14.7945936,56.1410465 18.376,57.631 C25.845902,60.7943366 34.279098,60.7943366 41.749,57.631 C45.3344344,56.1485511 48.5859488,53.9617189 51.311,51.2 C54.0678553,48.4735281 56.2558371,45.2267358 57.748,41.648 C59.2204476,37.929511 59.9842523,33.9683767 60,29.969 C59.9963302,25.9572161 59.1880567,21.9869167 57.623,18.293 L57.623,18.293 Z M41.374,38.335 L38.374,41.335 L30,32.966 L21.625,41.332 L18.625,38.332 L27,29.969 L18.626,21.6 L21.626,18.6 L30,26.972 L38.374,18.606 L41.374,21.606 L33,29.969 L41.374,38.335 Z"),e.setAttribute("stroke","none"),e.setAttribute("stroke-width","1")}}),kl=ye.a.extend({staticMembers:{className:!1,templateExtensions:{root:{type:"ELEMENT",tagname:"cw-search-field",children:[{type:"VIEWOUTLET",tagname:"view",name:"magnifyingGlass"},{type:"VIEWOUTLET",tagname:"view",name:"searchInputView"},{type:"VIEWOUTLET",tagname:"view",name:"clearButton"}]}},__QUALIFIED_CLASS_NAME__:"SearchField"},value:Object(c.b)(""),placeholder:Object(c.b)(),isDisabled:Object(c.b)(!1),maxLength:Object(c.b)(),autocomplete:Object(c.b)("off"),autocorrect:Object(c.b)("off"),autocapitalize:Object(c.b)("off"),spellcheck:Object(c.b)("false"),clear:function(){this.value="",this.searchInputView.focus()},magnifyingGlass:Object(c.b)({strong:!0,readOnly:!0,defaultValue:Object(ke.c)(Vl)}),searchInputView:Object(c.b)({strong:!0,readOnly:!0,defaultValue:Object(ke.c)(Fl),downstreamBindings:{value:"(owner).value",placeholder:"(owner).placeholder",isDisabled:"(owner).isDisabled",maxLength:"(owner).maxLength",autocomplete:"(owner).autocomplete",autocorrect:"(owner).autocorrect",autocapitalize:"(owner).autocapitalize",spellcheck:"(owner).spellcheck"}}),clearButton:Object(c.b)({strong:!0,readOnly:!0,defaultValue:Object(ke.c)(Ul,{action:"clear"}),downstreamBindings:{isVisible:"(owner).value",isDisabled:"(owner).isDisabled"}})}),Bl=(n(5),n(0),_l.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ext",classes:[{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isOn",truevalue:"cw-on",attributes:{}}],attributes:{"aria-pressed":{type:"ATTRIBUTEOUTLET",bindingtype:"IFBINDING",name:"ariaPressed",truevalue:"true",falsevalue:"false",attributes:{},attribute:"aria-pressed"}}}},className:"cw-ui-views-controls-toggle-button",__QUALIFIED_CLASS_NAME__:"ToggleButton"},isOn:Object(c.b)(!1),wasActivated:function(){this.set("isOn",!this.get("isOn"))},ariaPressed:Object(Ye.c)("isOn")})),zl=(n(0),n(5),ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"MULTIVIEWOUTLET",tagname:"views",name:"_buttons"}],classes:["cw-segmented-control",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isDisabled",truevalue:"disabled",attributes:{}}]}},className:"cw-ui-views-controls-segmented",__QUALIFIED_CLASS_NAME__:"Segmented"},ariaRole:Object(c.b)("tablist"),value:Object(c.b)(),isDisabled:Object(c.b)({defaultValue:!1,type:"boolean"}),segments:Object(c.b)({get:function(e){return e},set:function(e){return Kn.a.create(e)}}),buttonClass:Bl,_buttons:Object(c.b)(Object(ke.c)(Ee.b)),buttonAriaRole:Object(c.b)("tab"),_redraw:Object(p.h)("element","segments",function(e,t){var n=this.get("_buttons");if(e&&n){if(n.beginBatchedChanges(),n.clear(),t)for(var i=t.get("length"),r=this.get("value"),a=0,o=i;a<o;a++){var s=t.objectAt(a),c=this.buttonClass.create({additionalClassNames:Object(Ae.b)(s.classNames||[]),title:s.title,value:s.value,icon:s.icon,isDisabled:this.bindingFor("isDisabled"),target:this,action:"didToggle",tooltip:s.tooltip,isOn:s.value===r,ariaRole:this.bindingFor("buttonAriaRole")}),l=c.get("element").classList;0===a?l.add("cw-first"):a===i-1&&l.add("cw-last"),n.push(c)}n.endBatchedChanges()}}),_updateButtonStates:Object(p.h)("value",function(e){var t,n=this.get("_buttons");if(n)for(var i=0,r=n.get("length");i<r;i++)(t=n.objectAt(i)).set("isOn",t.get("value")===e),t.get("element").setAttribute("aria-selected",t.get("isOn"))}),didToggle:function(e){e&&this.set("value",e.get("value"))}})),Wl=(n(0),ye.a.extend(cc.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"select",classes:["cw-select-view"],attributes:{"aria-label":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"ariaLabel",attributes:{},attribute:"aria-label"}}}},__QUALIFIED_CLASS_NAME__:"SelectView"},value:Object(c.b)({defaultValue:"",get:function(e){return e},set:function(e){var t=this.findOptionWithValue(e);return t||""===e||Object(o.b)("Attempted to set value of "+this+" to `"+e+"`, which is not an option. Please see the documentation for SelectView."),t?t.value:""}}),options:Object(c.b)(Object(ke.c)(Ee.b)),findOptionWithValue:function(e){return function e(t,n){for(var i=0,r=t.length;i<r;i++){var a=t.objectAt(i);if(a.hasOwnProperty("value")){if(a.value==n)return a}else if(a.hasOwnProperty("options"))for(var o=a.options,s=0,c=o.length;s<c;s++){var l=e(o[s],n);if(l)return l}}return null}(this.options,e)},updateOption:function(e,t){var n=this.findOptionWithValue(e);return n||Object(o.b)("Attempted to update an option with the value: "+e+", but no option with that value exists in select view: "+this),function e(t,n,i){for(var r=0,a=t.length;r<a;r++){var o=t.objectAt(r);if(o===n)return t.splice(r,1,i),!0;if(o.hasOwnProperty("options"))return e(o.options,n,i)}return!1}(this.options,n,t),n},isFocusable:!0,_render:function(){for(var e=this.element,t=this.options,n=this.value,i=void 0;i=e.lastChild;)e.removeChild(i);(function e(t,n){return t.map(function(t){var i=t.label,r=t.value,a=t.isDisabled,o=t.isHidden,s=t.options,c=t._element,l=void 0;if(s)(l=c&&c.cloneNode(!1)||document.createElement("optgroup")).setAttribute("label",i),(a||o)&&l.setAttribute("disabled",!0),e(s,n).forEach(function(e){e&&l.appendChild(e)});else{if(o&&r!=n)return null;if(c)return c;(l=document.createElement("option")).setAttribute("value",r),(a||o)&&l.setAttribute("disabled",!0),l.innerText=i}return t._element=l})})(t,n).forEach(function(t){t&&e.appendChild(t)})},_redraw:Object(p.h)("value","element","options","options.contentsDidChange",function(e,t,n,i){t&&n&&(this._render(),this.element.value=e)}),change:function(){this.value=this.element.value}}));n(950),n(0);var Hl=U.a.sharedInstance,$l=ye.a.extend(nt.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",classes:["cw-slider-track"],name:"track"},{type:"ELEMENT",tagname:"div",classes:["cw-slider-track-before"],name:"trackBefore"},{type:"ELEMENT",tagname:"div",classes:["cw-slider-handle"],name:"handle"}],classes:["cw-slider",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"hasLeftIcon",truevalue:"cw-has-left-icon",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"hasRightIcon",truevalue:"cw-has-right-icon",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isVertical",truevalue:"cw-vertical",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isHorizontal",truevalue:"cw-horizontal",attributes:{}},{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isBeingDragged",truevalue:"cw-being-dragged",attributes:{}}],attributes:{title:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"tooltip",attributes:{},attribute:"title"}}}},className:"cw-ui-slider-view",__QUALIFIED_CLASS_NAME__:"SliderView"},tooltip:Object(c.b)(""),hasLeftIcon:Object(c.b)(!1),hasRightIcon:Object(c.b)(!1),pointerPadding:Object(c.b)(),isBeingDragged:Object(c.b)({readOnly:!0,dependencies:["_currentDragOffset"],get:Object.assign(function(){return!isNaN(this._currentDragOffset)},{__CW__getter:function(e,t,n,i){return!isNaN(i.internalGet(this,t[0+n]))}})}),step:Object(c.b)(0),minValue:Object(c.b)(0),maxValue:Object(c.b)(1),value:Object(c.b)(.5),handleLength:Object(c.b)(0),trackLength:Object(c.b)(0),handlePositionTween:Object(c.b)(),isVertical:Object(c.b)(!1),isHorizontal:Object(c.b)({dependencies:["isVertical"],get:Object.assign(function(){return!this.isVertical},{__CW__getter:function(e,t,n,i){return!i.internalGet(this,t[0+n])}}),set:Object.assign(function(e){this.isVertical=!e},{__CW__setter:function(e,t,n,i,r){n[0+i]=!e}}),writeDependencySetPathMap:["false"]}),isScrollingEnabled:Object(c.b)(!0),layoutMayHaveChanged:function(){this._measureSelf()},intervals:Object(c.b)(),notchValues:Object(c.b)(),notchSnapDistance:2,_isReversed:Object(c.b)({readOnly:!0,dependencies:["minValue","maxValue"],get:Object.assign(function(){return this.minValue>this.maxValue},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])>i.internalGet(this,t[1+n])}})}),_minValue:Object(c.b)({readOnly:!0,dependencies:["_isReversed","minValue","maxValue"],get:Object.assign(function(){return this._isReversed?this.maxValue:this.minValue},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?i.internalGet(this,t[2+n]):i.internalGet(this,t[1+n])}})}),_maxValue:Object(c.b)({readOnly:!0,dependencies:["_isReversed","minValue","maxValue"],get:Object.assign(function(){return this._isReversed?this.minValue:this.maxValue},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?i.internalGet(this,t[1+n]):i.internalGet(this,t[2+n])}})}),_notchPositions:Object(c.b)({cacheable:!0,readOnly:!0,dependencies:["notchValues","_minValue","_maxValue","_handleTravel","_inverseHandlePositionTween"],get:Object.assign(function(){var e=this.notchValues,t=this._minValue,n=this._maxValue;if(!e)return[];var i,r,a=[],o=e.length;for(i=0;i<o;i++)+(r=e[i])!==r||r<=t||r>=n||a.push(this._rawIdealHandlePositionForValue(r,t,n,this._handleTravel,this._inverseHandlePositionTween));return a.sort(Kl),a},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]),a=i.internalGet(this,t[1+n]),o=i.internalGet(this,t[2+n]);if(!r)return[];var s,c=[],l=r.length;for(s=0;s<l;s++)+(e=r[s])!==e||e<=a||e>=o||c.push(this._rawIdealHandlePositionForValue(e,a,o,i.internalGet(this,t[3+n]),i.internalGet(this,t[4+n])));return c.sort(Kl),c}})}),_scaledHandlePositionTween:Object(c.b)({readOnly:!0,dependencies:["handlePositionTween"],get:Object.assign(function(){var e=this.handlePositionTween;if(e||(e=Ql),e._slider_scaledTween)return e._slider_scaledTween;var t=e(0),n=e(1);return t===+t&&n===+n&&t!==n||Object(o.b)("Function ƒ used for handlePositionTween must return numbers, and ƒ(0) cannot equal ƒ(1).",{fOf0:t,fOf1:n,tweenFunction:e}),e._slider_scaledTween=function(i){return(e(i)-t)/(n-t)}},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);if(r||(r=Ql),r._slider_scaledTween)return r._slider_scaledTween;var a=r(0),s=r(1);return a===+a&&s===+s&&a!==s||Object(o.b)("Function ƒ used for handlePositionTween must return numbers, and ƒ(0) cannot equal ƒ(1).",{fOf0:a,fOf1:s,tweenFunction:r}),r._slider_scaledTween=function(e){return(r(e)-a)/(s-a)}}})}),_handlePositionTween:Gl("_scaledHandlePositionTween"),_inverseScaledHandlePositionTween:Object(c.b)({readOnly:!0,dependencies:["_scaledHandlePositionTween"],get:Object.assign(function(){var e=this._scaledHandlePositionTween;return e._slider_inverseTween?e._slider_inverseTween:e._slider_inverseTween=function(t){var n,i,r=0,a=1;do{(n=e(i=(a+r)/2)-t)<0?r=i:a=i}while(n>1e-7||n<-1e-7);return i}},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return r._slider_inverseTween?r._slider_inverseTween:r._slider_inverseTween=function(e){var t,n,i=0,a=1;do{(t=r(n=(a+i)/2)-e)<0?i=n:a=n}while(t>1e-7||t<-1e-7);return n}}})}),_inverseHandlePositionTween:Gl("_inverseScaledHandlePositionTween"),_handleTravel:Object(c.b)({readOnly:!0,dependencies:["handleLength","trackLength"],get:Object.assign(function(){return this.trackLength-this.handleLength},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[1+n])-i.internalGet(this,t[0+n])}})}),_rawIdealHandlePositionForValue:function(e,t,n,i,r){return r((e-t)/(n-t))*i},_idealHandlePositionForValue:function(e){return this._rawIdealHandlePositionForValue(e,this._minValue,this._maxValue,this._handleTravel,this._inverseHandlePositionTween)},_rawIdealValueForHandlePosition:function(e,t,n,i,r){return r(e/i)*(n-t)+t},_idealValueForHandlePosition:function(e){return this._rawIdealValueForHandlePosition(e,this._minValue,this._maxValue,this._handleTravel,this._handlePositionTween)},_handlePosition:Object(c.b)({dependencies:["value","_minValue","_maxValue","_handleTravel","_inverseHandlePositionTween",Hl.bindingFor("devicePixelRatio")],writeDependencies:["value"],get:Object.assign(function(){var e=this._minValue,t=this._maxValue,n=Math.max(e,Math.min(t,this.value)),i=this._handleTravel,r=this._inverseHandlePositionTween,a=Hl.devicePixelRatio,o=this._rawIdealHandlePositionForValue(n,e,t,i,r);return o=Math.round(o*a)/a,Math.max(0,Math.min(i,o))},{__CW__getter:function(e,t,n,i){var r=i.internalGet(this,t[1+n]),a=i.internalGet(this,t[2+n]),o=(e=Math.max(r,Math.min(a,i.internalGet(this,t[0+n]))),i.internalGet(this,t[3+n])),s=i.internalGet(this,t[4+n]),c=i.internalGetPath(this,t[5+n]),l=this._rawIdealHandlePositionForValue(e,r,a,o,s);return l=Math.round(l*c)/c,Math.max(0,Math.min(o,l))}}),set:Object.assign(function(e){var t=this._minValue,n=this._maxValue,i=this._handleTravel,r=this._handlePositionTween,a=this.step;e=Math.max(0,Math.min(i,e));var o=this._rawIdealValueForHandlePosition(e,t,n,i,r);a&&(o=Math.round((o-t)/a)*a+t),o=Math.max(Math.min(o,n),t);var s=this.intervals;if(s)for(var c=s.length;c;){var l=s[1+(c-=2)],u=s[c],d=c?s[c-1]:-1/0;if(o<=l&&o>=u)break;if(o>d){o=o>l?l:Math.abs(o-u)<Math.abs(o-d)?u:d;break}if(!c&&o<u){o=u;break}}this.value=o},{__CW__setter:function(e,t,n,i,r){var a=this._minValue,o=this._maxValue,s=this._handleTravel,c=this._handlePositionTween,l=this.step;e=Math.max(0,Math.min(s,e));var u=this._rawIdealValueForHandlePosition(e,a,o,s,c);l&&(u=Math.round((u-a)/l)*l+a),u=Math.max(Math.min(u,o),a);var d=this.intervals;if(d)for(var h=d.length;h;){var p=d[1+(h-=2)],f=d[h],m=h?d[h-1]:-1/0;if(u<=p&&u>=f)break;if(u>m){u=u>p?p:Math.abs(u-f)<Math.abs(u-m)?f:m;break}if(!h&&u<f){u=f;break}}n[0+i]=u}}),writeDependencySetPathMap:["false"]}),_transformPositionKey:Object(c.b)({readOnly:!0,dependencies:["isHorizontal"],get:Object.assign(function(){return this.isHorizontal?"translateX":"translateY"},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?"translateX":"translateY"}})}),_measurementLengthKey:Object(c.b)({readOnly:!0,dependencies:["isHorizontal"],get:Object.assign(function(){return this.isHorizontal?"offsetWidth":"offsetHeight"},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?"offsetWidth":"offsetHeight"}})}),_getPositionFromEvent:function(e){var t=this.element.getBoundingClientRect();return this.isHorizontal?e.clientX-t.left:this.trackLength-(e.clientY-t.top)},pointerDown:function(e){var t=arguments;if(this.__s._$6rX$pointerDown.apply(this,t),!this.isDisabled){var n=this._getPositionFromEvent(e);this._prepareForDrag(n);var i=-this._currentDragOffset;return e.target!==this.handle&&(i<0||i>this.handleLength)&&this._jumpToCursor(n),!0}},pointerMove:function(e){var t=arguments;if(this.__s._$7AQ$pointerMove.apply(this,t),!this.isDisabled)return this._moveDrag(this._getPositionFromEvent(e)),!0},pointerUp:function(e){var t=arguments;if(this.__s._$7EA$pointerUp.apply(this,t),!this.isDisabled)return this._endDrag(this._getPositionFromEvent(e)),!0},wheel:function(e){if(!this.isDisabled&&this.isScrollingEnabled&&(e.preventDefault(),!this.isBeingDragged)){var t=V.a.getPath("sharedInstance.isMac")?-1:1,n=this._minValue,i=this._maxValue,r=this.value,a=Math.max(0,Math.min(1,(r-n)/(i-n))),o=this._inverseHandlePositionTween(a)+(-e.deltaX+e.deltaY)/1e3*t,s=n+this._handlePositionTween(Math.max(0,Math.min(1,o)))*(i-n);return r!==s&&(this.value=s),!0}},_currentDragOffset:Object(c.b)(NaN),_prepareForDrag:function(e){this._currentDragOffset=this._handlePosition-e},_moveDrag:function(e){if(this.isBeingDragged){for(var t,n=e+this._currentDragOffset,i=this._notchPositions,r=this.notchSnapDistance,a=i.length;a--;)t=i[a],Math.abs(t-n)<r&&(n=t);this._handlePosition=n}},_endDrag:function(e){this._currentDragOffset=NaN},_endDragWhenBecomesDisabled:Object(p.h)("isDisabled",function(e){e&&this.isBeingDragged&&this._endDrag()}),_jumpToCursor:function(e){this._currentDragOffset=-this.handleLength/2|0,this._moveDrag(e)},_positionHandle:Object(p.h)("_handlePosition","isVertical","_handleTravel","_transformPositionKey",function(e,t,n,i){var r,a=+e===e?t?n-e:e:n/2,o="translateX"===i?"width":"top";Object(ec.c)(this.trackBefore,((r={})[o]=a,r)),Object(ec.c)(this.handle)[i](a)}),_measureSelf:Object(p.h)("isAttached","_measurementLengthKey",function(e,t){e&&this.beginBatchSet().setIfChanged("handleLength",this.handle[t]).setIfChanged("trackLength",this.element[t]).end()}),_maintainPointerPaddingElement:Object(p.h)("pointerPadding",function(e){var t=0|(e&&e.left),n=0|(e&&e.top),i=0|(e&&e.right),r=0|(e&&e.bottom),a=this._pointerPaddingElement;t||n||i||r?(a||(a=this._pointerPaddingElement=document.createElement("div")),Object(ec.c)(a).set("position","absolute").set("left",-t).set("top",-n).set("right",-i).set("bottom",-r),a.parentNode||this.element.appendChild(a)):a&&a.parentNode&&this.element.removeChild(a)}),__superMap:{_$6rX$pointerDown:"pointerDown",_$7AQ$pointerMove:"pointerMove",_$7EA$pointerUp:"pointerUp"}});function Gl(e){return Object(c.b)({dependencies:[e,"_isReversed"],readOnly:!0,get:function(e,t,n,i){var r=i.internalGet(this,t[0+n]);return i.internalGet(this,t[1+n])?r._slider_reversedTween?r._slider_reversedTween:r._slider_reversedTween=function(e){return 1-r(e)}:r}})}function Kl(e,t){return e-t}function Ql(e){return e}Ql._slider_scaledTween=Ql,Ql._slider_inverseTween=Ql;var ql=n(930),Yl=(n(951),n(0),ye.a.extend(nt.a,{staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"ui-switch",children:[{type:"ELEMENT",tagname:"ui-switch-knob"},{type:"VIEWOUTLET",tagname:"view",name:"hiddenInput"}],attributes:{id:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"id",attributes:{},attribute:"id"},"aria-checked":{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"isOn",attributes:{},attribute:"aria-checked"}}}},className:"standard",__QUALIFIED_CLASS_NAME__:"Switch"},ariaRole:"switch",id:Object(c.b)({type:"string"}),tabIndex:Object(c.b)({type:"integer",set:function(e){return e},get:function(e){return e||0}}),isOn:Object(c.b)({type:"boolean",defaultValue:!1}),name:Object(c.b)({type:"string"}),form:Object(c.b)({type:"string"}),hiddenInputView:Object(c.b)({strong:!0,readOnly:!0,type:ye.a,defaultValue:Object(ke.c)(ye.a.extend({staticMembers:{templateExtensions:{root:{type:"ELEMENT",tagname:"input",attributes:{type:"hidden",form:{type:"ATTRIBUTEOUTLET",bindingtype:"DIRECTBINDING",name:"form",attributes:{},attribute:"form"},value:"on"}}}},name:Object(c.b)({type:"string"}),form:Object(c.b)({type:"string"}),nameObserver:Object(p.h)("name",function(e){e&&this.element.setAttribute("name",e)})})),downstreamBindings:{name:"(owner).name",form:"(owner).form"}}),hiddenInput:Object(c.b)({readOnly:!0,type:ye.a,dependencies:["isDisabled","isOn"],get:function(){var e=this.name,t=this.isDisabled,n=this.isOn,i=this.hiddenInputView;return e&&!t&&n?i:null}}),toggleState:function(){this.set("isOn",!this.get("isOn"))},wasActivated:function(){this.toggleState()}})),Xl=n(291),Jl=n(538),Zl=n(290),eu=2/Math.cbrt(2),tu=function(e){function t(n){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return i.timeTarget=i.timeToStop(i.initialVelocity),i.positionTarget=i.catesPositionAtTime(i.timeTarget),i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.calculatePositionAtTime=function(e){var t=this.timeTarget,n=this.positionTarget,i=Math.min(e,t);return n-this.catesPositionAtTime(t-i)},t.prototype.calculateVelocityAtTime=function(e){var t=this.timeTarget,n=Math.min(e,t);return 200*Math.pow((t-n)/1e3,3)},t.prototype.calculateTimeAtPosition=function(e){return[this.timeTarget-1e3*Math.sqrt(Math.sqrt(e/50))]},t.prototype.timeToStop=function(e){return 1e3*Math.cbrt(1e3*e/50)/eu},t.prototype.catesPositionAtTime=function(e){return 50*Math.pow(e/1e3,4)},t}(Xl.a),nu=n(282);function iu(e,t){for(var n=nu.a,i=arguments.length,r=Array(i>2?i-2:0),a=2;a<i;a++)r[a-2]=arguments[a];return n.apply(void 0,[0,e.length-1,function(t){return e[t]},t].concat(r))}var ru=n(383),au=n(227);function ou(e){return Array.from(new Set(e))}var su={hasNativeSupport:!!atob,decodeToBytes:function(e){return this.hasNativeSupport?du(atob(e)):this._jsDecodeToBytes(e)},encodeFromBytes:function(e){return this.hasNativeSupport?btoa(hu(e)):this._jsEncodeFromBytes(e)},decodeToString:function(e){if(this.hasNativeSupport)return atob(e);var t=hu(this._jsDecodeToBytes(e,cu));return cu.length=0,t},encodeFromString:function(e){if(this.hasNativeSupport)return btoa(e);var t=this._jsEncodeFromBytes(du(e,cu));return cu.length=0,t},_jsDecodeToBytes:function(e,t){var n=e.length,i="="===e[n-2]?2:"="===e[n-1]?1:0,r=Math.ceil(3*n/4)-i;t&&(t.length=r);var a=t||(Uint8Array?new Uint8Array(r):new Array(r)),o=void 0,s=void 0,c=void 0,l=void 0;if(!e)return a;for(var u=0,d=0;d<n;d+=4)o=uu[e.charAt(d)],s=uu[e.charAt(d+1)],c=uu[e.charAt(d+2)],l=uu[e.charAt(d+3)],a[u++]=o<<2|s>>4,64!==c&&(a[u++]=(15&s)<<4|c>>2),64!==l&&(a[u++]=(3&c)<<6|l);return a},_jsEncodeFromBytes:function(e){var t="",n=e.length,i=8*n,r=void 0,a=void 0,o=void 0;for(r=0;r<n;r+=3)a=8*r,o=e[r]<<16|e[r+1]<<8|e[r+2],t+=lu[o>>>18],t+=lu[o>>>12&63],t+=a+12<=i?lu[o>>>6&63]:"=",t+=a+18<=i?lu[o>>>0&63]:"=";return t}},cu=[],lu="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",uu=function(){for(var e={},t=0,n=lu.length;t<n;t++)e[lu[t]]=t;return e}();function du(e,t){var n=e.length;t&&(t.length=n);var i=t||(Uint8Array?new Uint8Array(n):new Array(n)),r=void 0,a=void 0;for(r=0;r<n;r++)a=e.charCodeAt(r),i[r]=a,a>255&&Object(o.b)("Only strings containing 8-bit character codes (<= 255) may be encoded as Base64.");return i}function hu(e){var t="",n=e.length,i=void 0;for(i=0;i<n;i++)t+=String.fromCharCode(e[i]);return t}var pu=/^[$A-Z_][$A-Z_0-9]*$/i;function fu(e){return pu.test(e)}var mu=n(178),gu=n(837),bu=n(197),vu=n(870),_u=n(372),yu=n(279),Cu=n(851),Iu=n(229),wu=n(493),Su=function(e,t,n,i){var r=_u.a;r.push(e);var a=t.apply(i,n);return r.pop(),a},Au=n(849),Ou=n(904),Eu=n(908),Tu=n(850),Du=n(862);function Lu(e,t){return e-t*Math.floor(e/t)}var Nu=n(561),Mu=n(365),Pu=n(825);function xu(e){for(var t=[],n=Object.keys(e),i=n.length,r=0;r<i;r++){var a=n[r];e[a]&&t.push(a)}return t}function Ru(e,t,n){for(var i in e)if(e.hasOwnProperty(i)&&!1===t.call(n,i,e[i],e))break}var ju=n(366),Fu=n(364),Vu=n(485),Uu=n(377),ku=n(376),Bu={},zu={"-":!0,_:!0,".":!0," ":!0,"\t":!0},Wu=/[a-zA-Z0-9]/;function Hu(e,t){var n=Bu[e];if(n)return n;if(!e)return"";for(var i=0,r="",a=void 0,o=void 0,s=!0;a=e[i];)t&&a===t||!t&&zu[a]?o=!0:Wu.test(a)&&(o&&(a=a.toUpperCase()),s&&(a=a.toLowerCase()),r+=a,o=!1,s=!1),i++;return Bu[e+(t||"")]=r,r}var $u=n(550),Gu=n(952),Ku=n(820),Qu=n(284),qu={"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","Ā":"A","Ă":"A","Ą":"A","Ǎ":"A","Ǟ":"A","Ǡ":"A","Ǻ":"A","Ȁ":"A","Ȃ":"A","Ȧ":"A","Ḁ":"A","Ạ":"A","Ả":"A","Ấ":"A","Ầ":"A","Ẩ":"A","Ẫ":"A","Ậ":"A","Ắ":"A","Ằ":"A","Ẳ":"A","Ẵ":"A","Ặ":"A","Å":"A","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ç":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ḉ":"C","Ď":"D","Ḋ":"D","Ḍ":"D","Ḏ":"D","Ḑ":"D","Ḓ":"D","È":"E","É":"E","Ê":"E","Ë":"E","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ȩ":"E","Ḕ":"E","Ḗ":"E","Ḙ":"E","Ḛ":"E","Ḝ":"E","Ẹ":"E","Ẻ":"E","Ẽ":"E","Ế":"E","Ề":"E","Ể":"E","Ễ":"E","Ệ":"E","Ḟ":"F","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","Ǧ":"G","Ǵ":"G","Ḡ":"G","Ĥ":"H","Ȟ":"H","Ḣ":"H","Ḥ":"H","Ḧ":"H","Ḩ":"H","Ḫ":"H","Ì":"I","Í":"I","Î":"I","Ï":"I","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ḭ":"I","Ḯ":"I","Ỉ":"I","Ị":"I","Ĵ":"J","Ķ":"K","Ǩ":"K","Ḱ":"K","Ḳ":"K","Ḵ":"K","Ĺ":"L","Ļ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ḻ":"L","Ḽ":"L","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ñ":"N","Ń":"N","Ņ":"N","Ň":"N","Ǹ":"N","Ṅ":"N","Ṇ":"N","Ṉ":"N","Ṋ":"N","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ō":"O","Ŏ":"O","Ő":"O","Ơ":"O","Ǒ":"O","Ǫ":"O","Ǭ":"O","Ȍ":"O","Ȏ":"O","Ȫ":"O","Ȭ":"O","Ȯ":"O","Ȱ":"O","Ṍ":"O","Ṏ":"O","Ṑ":"O","Ṓ":"O","Ọ":"O","Ỏ":"O","Ố":"O","Ồ":"O","Ổ":"O","Ỗ":"O","Ộ":"O","Ớ":"O","Ờ":"O","Ở":"O","Ỡ":"O","Ợ":"O","Ṕ":"P","Ṗ":"P","Ŕ":"R","Ŗ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṙ":"R","Ṛ":"R","Ṝ":"R","Ṟ":"R","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","Ș":"S","Ṡ":"S","Ṣ":"S","Ṥ":"S","Ṧ":"S","Ṩ":"S","Ţ":"T","Ť":"T","Ț":"T","Ṫ":"T","Ṭ":"T","Ṯ":"T","Ṱ":"T","Ù":"U","Ú":"U","Û":"U","Ü":"U","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","Ư":"U","Ǔ":"U","Ǖ":"U","Ǘ":"U","Ǚ":"U","Ǜ":"U","Ȕ":"U","Ȗ":"U","Ṳ":"U","Ṵ":"U","Ṷ":"U","Ṹ":"U","Ṻ":"U","Ụ":"U","Ủ":"U","Ứ":"U","Ừ":"U","Ử":"U","Ữ":"U","Ự":"U","Ṽ":"V","Ṿ":"V","Ŵ":"W","Ẁ":"W","Ẃ":"W","Ẅ":"W","Ẇ":"W","Ẉ":"W","Ẋ":"X","Ẍ":"X","Ý":"Y","Ŷ":"Y","Ÿ":"Y","Ȳ":"Y","Ẏ":"Y","Ỳ":"Y","Ỵ":"Y","Ỷ":"Y","Ỹ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","Ẑ":"Z","Ẓ":"Z","Ẕ":"Z","`":"`","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","ā":"a","ă":"a","ą":"a","ǎ":"a","ǟ":"a","ǡ":"a","ǻ":"a","ȁ":"a","ȃ":"a","ȧ":"a","ḁ":"a","ạ":"a","ả":"a","ấ":"a","ầ":"a","ẩ":"a","ẫ":"a","ậ":"a","ắ":"a","ằ":"a","ẳ":"a","ẵ":"a","ặ":"a","ḃ":"b","ḅ":"b","ḇ":"b","ç":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ḉ":"c","ď":"d","ḋ":"d","ḍ":"d","ḏ":"d","ḑ":"d","ḓ":"d","è":"e","é":"e","ê":"e","ë":"e","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","ȅ":"e","ȇ":"e","ȩ":"e","ḕ":"e","ḗ":"e","ḙ":"e","ḛ":"e","ḝ":"e","ẹ":"e","ẻ":"e","ẽ":"e","ế":"e","ề":"e","ể":"e","ễ":"e","ệ":"e","ḟ":"f","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","ǧ":"g","ǵ":"g","ḡ":"g","ĥ":"h","ȟ":"h","ḣ":"h","ḥ":"h","ḧ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ì":"i","í":"i","î":"i","ï":"i","ĩ":"i","ī":"i","ĭ":"i","į":"i","ǐ":"i","ȉ":"i","ȋ":"i","ḭ":"i","ḯ":"i","ỉ":"i","ị":"i","ĵ":"j","ǰ":"j","ķ":"k","ǩ":"k","ḱ":"k","ḳ":"k","ḵ":"k","ĺ":"l","ļ":"l","ľ":"l","ḷ":"l","ḹ":"l","ḻ":"l","ḽ":"l","ḿ":"m","ṁ":"m","ṃ":"m","ñ":"n","ń":"n","ņ":"n","ň":"n","ǹ":"n","ṅ":"n","ṇ":"n","ṉ":"n","ṋ":"n","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ō":"o","ŏ":"o","ő":"o","ơ":"o","ǒ":"o","ǫ":"o","ǭ":"o","ȍ":"o","ȏ":"o","ȫ":"o","ȭ":"o","ȯ":"o","ȱ":"o","ṍ":"o","ṏ":"o","ṑ":"o","ṓ":"o","ọ":"o","ỏ":"o","ố":"o","ồ":"o","ổ":"o","ỗ":"o","ộ":"o","ớ":"o","ờ":"o","ở":"o","ỡ":"o","ợ":"o","ṕ":"p","ṗ":"p","ŕ":"r","ŗ":"r","ř":"r","ȑ":"r","ȓ":"r","ṙ":"r","ṛ":"r","ṝ":"r","ṟ":"r","ś":"s","ŝ":"s","ş":"s","š":"s","ș":"s","ṡ":"s","ṣ":"s","ṥ":"s","ṧ":"s","ṩ":"s","ţ":"t","ť":"t","ț":"t","ṫ":"t","ṭ":"t","ṯ":"t","ṱ":"t","ẗ":"t","ù":"u","ú":"u","û":"u","ü":"u","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","ư":"u","ǔ":"u","ǖ":"u","ǘ":"u","ǚ":"u","ǜ":"u","ȕ":"u","ȗ":"u","ṳ":"u","ṵ":"u","ṷ":"u","ṹ":"u","ṻ":"u","ụ":"u","ủ":"u","ứ":"u","ừ":"u","ử":"u","ữ":"u","ự":"u","ṽ":"v","ṿ":"v","ŵ":"w","ẁ":"w","ẃ":"w","ẅ":"w","ẇ":"w","ẉ":"w","ẘ":"w","ẋ":"x","ẍ":"x","ý":"y","ÿ":"y","ŷ":"y","ȳ":"y","ẏ":"y","ẙ":"y","ỳ":"y","ỵ":"y","ỷ":"y","ỹ":"y","ź":"z","ż":"z","ž":"z","ẑ":"z","ẓ":"z","ẕ":"z"};function Yu(e){for(var t="",n=0,i=e.length;n<i;n++){var r=e.charAt(n);t+=qu[r]||r}return t}var Xu={"０":"0","１":"1","２":"2","３":"3","４":"4","５":"5","６":"6","７":"7","８":"8","９":"9","٠":"0","١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","۰":"0","۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","०":"0","१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","০":"0","১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৿":"9","๐":"0","๑":"1","๒":"2","๓":"3","๔":"4","๕":"5","๖":"6","๗":"7","๘":"8","๙":"9"},Ju={"Ä":"Å","ä":"å"};function Zu(e){return(e=Xu[e]||e)>="0"&&e<="9"}function ed(e,t){for(var n="";;){var i=e.charAt(t++);if((i=Xu[i]||i)<"0"||i>"9")return n;n+=i}}function td(e){return e<32?1:e<33?1:e<48?0:e<58?1:e<65?0:e<91?1:e<97?0:e<123?1:0}function nd(e){return e<="Z"?2:e<="z"?1:3}function id(e,t,n){if(e===t)return 0;if(""===e)return-1;if(""===t)return 1;if(Ju[e]===t||Ju[t]===e){var i=e;e=t,t=i}var r=(qu[e]||e).toUpperCase(),a=(qu[t]||t).toUpperCase(),o=td(r.charCodeAt(0)),s=td(a.charCodeAt(0));if(o!==s)return o<s?-1:1;if(r!==a)return r<a?-1:1;if(!n)return 0;var c=nd(e),l=nd(t);return c!==l?c<l?-1:1:e<t?-1:1}function rd(e,t){if(Object(gu.a)(e)&&Object(gu.a)(t))return e<t?-1:e>t?1:0;e+="",t+="";for(var n=0,i=0,r=!1;;){var a=e.charAt(n),o=t.charAt(i);if(""!==a||""!==o)if(Zu(a)&&Zu(o)){var s=ed(e,n),c=ed(t,i);if(n+=s.length,i+=c.length,(s=parseInt(s,10))!==(c=parseInt(c,10)))return s<c?-1:1}else{++n,++i;var l=id(a,o,r);if(l)return l}else{if(r)return 0;r=!0,n=i=0}}}var ad=n(196);function od(e,t,n){t=t||[],n=n||0;for(var i=0;i<e.length;){var r=e.charCodeAt(i++);if(r<55296||r>57343)t[n++]=r;else if(55296<=r&&r<=56319){var a=e.charCodeAt(i++);56320<=a&&a<=57343?t[n++]=((1023&r)<<10)+(1023&a)+65536:Object(o.b)("Invalid low surrogate: %{invalidLowSurrogate} [%{index}]",{invalidLowSurrogate:a,index:i})}else Object(o.b)("Unpaired low surrogate: %{unpairedLowSurrogate} [%{index}]",{unpairedLowSurrogate:r,index:i})}return t}function sd(e,t,n){var i=new Uint8Array(e);t=t||[],n=n||0;for(var r=0,a=i.length;r<a;r++){var s=i[r];s<=127?t[n++]=s:192<=s&&s<=223?t[n++]=((31&s)<<6)+((63&i[++r])<<0):224<=s&&s<=239?t[n++]=((15&s)<<12)+((63&i[++r])<<6)+((63&i[++r])<<0):240<=s&&s<=247?t[n++]=((7&s)<<18)+((63&i[++r])<<12)+((63&i[++r])<<6)+((63&i[++r])<<0):Object(o.b)("Invalid sequence starting byte: %{firstByte} [%{index}]",{firstByte:s,index:r})}return t}function cd(e){return function(){return ud(e)}}var ld=function(e){this.message=e,this.name=this.constructor.name;var t=Error(e);this.stack=t.stack};function ud(e){throw new ld(e||"Test Not Implemented")}function dd(e,t){for(var n=new Array(t),i=0;i<t;i++)n[i]=e;return n}function hd(e){for(var t=new Array(e),n=0;n<e;n++)t[n]=n;return t}function pd(e){return e instanceof HTMLElement?e.innerText:e.textContent}function fd(e){return!(!e||!e.isSinonProxy)}ld.prototype=Object.create(Error.prototype),ld.prototype.constructor=ld;var md=n(157);function gd(e,t){var n=t?e[t]:e;if(fd(n))return n;var i=sinon.spy(e,t);return i._wasSpiedBySpyIfNecessary=!0,i}function bd(e,t){var n=e[t];n&&n._wasSpiedBySpyIfNecessary&&n.restore()}function vd(e,t,n){gd(e,"retain"),gd(e,"release");var i=e.retain.callCount,r=e.release.callCount,a=Object(md.e)(t),s=e.retain.callCount,c=e.release.callCount;return n||!1===a||i===s&&r===c&&Object(o.b)("netRetains (or related) test was instructed to expect reference activity (retains/releases), but found none."),s-i-(c-r)}function _d(e,t){return 0-vd(e,t)}function yd(e,t){return vd(e,t,!0)}function Cd(e,t){return 0-vd(e,t,!0)}function Id(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:sinon,i=e.__s,r=e.__superMap;for(var a in r)if(r[a]===t)return n.stub(i,a);throw new Error("CW.Tests.stubSuper: super method does not exist: "+t)}function wd(e,t,n,i){for(var r={},a=t;a;){for(var o=Object.keys(a.__superMap),s=0,c=o.length;s<c;s++){var l=o[s],u=a.__superMap[l];i&&void 0!==i[u]?r[l]=n.stub().returns(i[u]):r[l]=n.stub()}a=a.prototype}e.__s=r}var Sd=[null,void 0,{},[],[1],NaN,0,-0,1,"","hello world",!1,!0,function(){}],Ad=n(494),Od=n(495),Ed=n(852);function Td(e,t){t=t||new Dd(16);for(var n=0,i=0;i<36;n++,i+=2){8!==i&&13!==i&&18!==i&&23!==i||i++;var r=e.substring(i,i+2);t[n]=parseInt(r,16)}return t}var Dd=Uint8Array||Array;function Ld(e,t,n){window.addEventListener("NonFatalError",n),window.addEventListener("FatalError",t),window.__startFilteringErrors(e)}function Nd(e,t,n){window.addEventListener("NonFatalUnhandledRejection",n),window.addEventListener("FatalUnhandledRejection",t),window.__startFilteringUnhandledRejections(e)}n.d(t,"a",function(){return xd}),n.d(t,"b",function(){return Rd});var Md=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},Pd=r.a.sharedInstance.bindingFor("locale");function xd(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};a.a(e)||o.b("[baseObservableLocalizedStringProperty] Unexpected argument",{config:e});var t=[];if(e.dependencies){s.a(e.dependencies)||o.b("[baseObservableLocalizedStringProperty] Invalid dependencies",{dependencies:e.dependencies});for(var n=0,l=e.dependencies.length;n<l;n++)t.push(e.dependencies[n])}return t.push(Pd),c.b(Md({writeDependencies:[],get:function(e){return r.d.apply(i,e)},set:function(e){return Array.isArray(e)?e:[e]}},e,{dependencies:t}))}function Rd(){return xd({defaultValue:Array.from(arguments)})}},function(e,t,n){"use strict";var i=n(818),r=n(819),a=n(837),o=n(81),s=n(100),c=n(94),l=n(830),u={mixinDependencies:[c.a],arrayBuffer:l.a.define(),blob:l.a.define(),formData:l.a.define(),json:l.a.define(),text:l.a.define()},d=n(1084),h=i.a.extend({mixinDependencies:[u],init:function(e,t,n){this.__s._$Dk$init.call(this,n),this._encodedBody=e,this._jsonBody=t},headers:o.d({type:Object}),ok:o.d({readOnly:!0,type:Boolean,get:function(){return Object(d.b)(this.status)===d.a.SUCCESS}}),redirected:o.d({readOnly:!0,type:Boolean,get:function(){r.b("URLResponse: redirected: not implmented")}}),status:o.d({type:Number}),statusText:o.d({type:String}),type:o.d({type:String,defaultValue:"default"}),url:o.d({type:String}),useFinalUrl:o.d({type:Boolean}),body:o.d({readOnly:!0,get:function(){r.b("URLResponse: body: not implemented")}}),bodyUsed:o.d({readOnly:!0,type:Boolean,get:function(){r.b("URLResponse: bodyUsed: not implemented")}}),clone:function(){r.b("URLResponse: clone: not implemented")},error:function(){r.b("URLResponse: error: not implemented")},redirect:function(e,t){r.b("URLResponse: redirect: not implemented")},arrayBuffer:function(){r.b("URLResponse: arrayBuffer: not implemented")},blob:function(){r.b("URLResponse: blob: not implemented")},formData:function(){r.b("URLResponse: formData: not implemented")},json:function(){return s.a.resolve(this._jsonBody)},text:function(){return s.a.resolve(this._encodedBody)},_encodedBody:o.d({type:String}),_jsonBody:o.d({type:Object}),__superMap:{_$Dk$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"URLResponse"}}),p=n(584),f=n(868),m=n(847),g=n(833),b=f.a.extend({mixinDependencies:[m.a],decode:function(e){var t=arguments;if(!g.a(e))return this.__s._$8I$decode.apply(this,t);try{return JSON.parse(e),this.__s._$8I$decode.apply(this,t)}catch(e){return null}},__superMap:{_$8I$decode:"decode"},staticMembers:{__QUALIFIED_CLASS_NAME__:"XHRBodySerializerNoWarnings"}});n.d(t,"a",function(){return v});var v=i.a.extend({fetch:function(e,t){var n=p.a.create(e,t);return this.fetchRequest(n)},fetchRequest:function(e){var t=this;e||r.b("URLConnection: fetchRequest: no request specified"),this.willSendRequest(e);var n=e.send().then(function(n){return t._responseWasReceived(e,n)},function(n){return t._responseWasReceived(e,n)});return this.didSendRequest(e),n},willSendRequest:function(e){},didSendRequest:function(e){},didReceiveResponseForRequest:function(e,t){},_responseWasReceived:function(e,t){var n=function(e,t){t.serializer=b.sharedInstance;var n=t.headers,i=t.status,r=t.body,o=t.encodedBody,s=e.url,c=function(e){return a.a(e)?e:0}(i);return h.create(o,r,{status:c,url:s.toString(),headers:function(e){var t={};if(e)for(var n=e.split("\n"),i=0;i<n.length;i++)if(!(n[i].length<1)){var r=n[i].split(": "),a=r.shift(),o=r.join(":");t[a]=o}return t}(n)})}(e,t);return this.didReceiveResponseForRequest(e,n),n},staticMembers:{__QUALIFIED_CLASS_NAME__:"URLConnection"}})},function(e,t,n){"use strict";var i=n(81),r=n(86),a=n(98),o=n(100),s=n(828),c=n(819),l=n(871),u=n(932),d=n(1103),h=(n(0),l.a.extend({viewClass:d.a,view:a.b({downstreamBindings:{childViews:"(owner).childViews"}}),childViews:a.b({strong:!0,defaultValue:r.c(u.a)}),addViewController:function(e){return s.a(e,l.a)||c.b("A ViewController class or subclass is required"),e.isDisposed||(e.retain(),e.willMoveToParentViewController(this),this.childViews.push(e.view),this.addChildViewController(e),e.didMoveToParentViewController(this),e.release()),this},removeViewController:function(e){return s.a(e,l.a)||c.b("A ViewController class or subclass is required"),e.isDisposed||(e.retain(),e.willMoveToParentViewController(null),this.childViews.remove(e.view),this.removeChildViewController(e),e.didMoveToParentViewController(null),e.release()),this},staticMembers:{__QUALIFIED_CLASS_NAME__:"MultiChildViewController"}})),p=n(242),f=n(1098),m=n(243),g=n(1099),b=n(1163),v=n(94),_=n(830),y={mixinDependencies:[v.a],getTransitionContextForPresentedViewController:_.a.define(),getTransitionContextForDismissedViewController:_.a.define()},C=n(411),I=n(1101);n(0),n(6),n.d(t,"a",function(){return w});var w=h.extend({mixinDependencies:[f.a,y],defaultTransitioningDelegate:i.d({type:C.a,defaultValue:r.c(g.a)}),presentedViewController:a.b({readOnly:!0,dependencies:["_presentedViewController"],get:Object.assign(function(){return this._presentedViewController},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])}})}),presentContentViewController:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._transitionPromise||o.a.resolve();return this._transitionPromise=i.then(function(){return t._presentContentViewController(e,n)})},dismissContentViewController:function(e){var t=this,n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=this._transitionPromise||o.a.resolve();return this._transitionPromise=i.then(function(){return t._dismissContentViewController(e,n)})},presentationTransitionWillBegin:function(e){var t=e.toViewController,n=e.fromViewController;this._childViewControllers.includes(t)||(this.addViewController(t),Object(I.a)(t.view)),t.transitionCoordinator=e.transitionCoordinator,n&&(n.transitionCoordinator=e.transitionCoordinator);var i=e.presentationController;return i&&i.presentationTransitionWillBegin()||o.a.resolve()},presentationTransitionDidEnd:function(e){var t=e.toViewController,n=e.fromViewController,i=!e.transitionWasCancelled;i&&(this._presentedViewController=t,t.presentingViewController=this),t.transitionCoordinator=void 0,n&&(n.transitionCoordinator=void 0);var r=e.presentationController;return r&&r.presentationTransitionDidEnd(i)||o.a.resolve()},dismissalTransitionWillBegin:function(e){var t=e.presentationController,n=e.toViewController,i=e.fromViewController;return n.transitionCoordinator=e.transitionCoordinator,i.transitionCoordinator=e.transitionCoordinator,t&&t.dismissalTransitionWillBegin()||o.a.resolve()},dismissalTransitionDidEnd:function(e){var t=e.presentationController,n=e.toViewController,i=e.fromViewController,r=!e.transitionWasCancelled;return r&&(this.removeViewController(i),this._presentedViewController=void 0,i.presentingViewController=void 0),n.transitionCoordinator=void 0,i.transitionCoordinator=void 0,t&&t.dismissalTransitionDidEnd(r)||o.a.resolve()},removeViewController:function(e){var t=arguments;return e===this._presentedViewController&&(this._presentedViewController=void 0,e.presentingViewController=void 0),this.__s._$22l$removeViewController.apply(this,t)},getTransitioningDelegateForPresentedViewController:function(e){return s.a(e,f.a)?e.transitioningDelegate:this.defaultTransitioningDelegate},getTransitionContextForPresentedViewController:function(e,t){var n=this.presentedViewController;n&&c.b("[PresenterViewController] Attempt to present view controller when another is already presented",{viewController:e,presentedViewController:n});var i=this.getTransitioningDelegateForPresentedViewController(e),r=t&&i.animationControllerForPresentedViewController(e,this,this)||p.a,a=i.interactionControllerForPresentation(r),o=i.presentationControllerForPresentedViewController(e,this,this),s=m.a.create();return b.a.create(this,e,this.view,r,a,o,s,t)},getTransitionContextForDismissedViewController:function(e,t){var n=this.presentedViewController;e&&e===n||c.b("[PresenterViewController] Attempted to dismiss view controller that is not presented",{presentedViewController:n});var i=this.getTransitioningDelegateForPresentedViewController(e),r=t&&i.animationControllerForDismissedViewController(e)||p.a,a=i.interactionControllerForDismissal(r),o=i.presentationControllerForPresentedViewController(e,this,this),s=m.a.create();return b.a.create(e,this,this.view,r,a,o,s,t)},_presentedViewController:a.b({type:l.a,strong:!0}),_transitionPromise:i.d({type:o.a}),_presentContentViewController:function(e,t){var n=this;if(e===this.presentedViewController)return o.a.resolve();var i=this.getTransitionContextForPresentedViewController(e,t);return o.a.resolve().then(function(){return n.presentationTransitionWillBegin(i)}).then(function(){return i.transition()}).then(function(){return n.presentationTransitionDidEnd(i)})},_dismissContentViewController:function(e,t){var n=this;if(!this.presentedViewController)return o.a.resolve();var i=this.getTransitionContextForDismissedViewController(e,t);return o.a.resolve().then(function(){return n.dismissalTransitionWillBegin(i)}).then(function(){return i.transition()}).then(function(){return n.dismissalTransitionDidEnd(i)})},__superMap:{_$22l$removeViewController:"removeViewController"},staticMembers:{__QUALIFIED_CLASS_NAME__:"PresenterViewController"}})},function(e,t,n){"use strict";var i=n(818),r=n(819),a=n(81),o=n(1042),s=n(158),c=!1,l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{shouldSendStatsWhileInDevelopmentMode:!1,flushInterval:6e4},n=t.shouldSendStatsWhileInDevelopmentMode,i=t.flushInterval;!function(t,n){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this);var r=!c||n;s.a.configure({isSendingStatsEnabled:r,flushInterval:i})}return e.prototype.recordStat=function(e){s.a.handleStat(e)},e.prototype.flush=function(){s.a.flush()},e}(),u=n(1077),d=n(1046);n.d(t,"a",function(){return h}),n.d(t,"b",function(){return p});var h=new l({shouldSendStatsWhileInDevelopmentMode:!1,flushInterval:8e3}),p=i.a.extend({staticMembers:{createSharedInstance:function(e,t,n,i,a){arguments.length>5&&void 0!==arguments[5]&&arguments[5],this._sharedTelemetry&&r.b("Shared instance of Telemetry has already been created"),this._sharedTelemetry=p.create.apply(p,arguments)},sharedInstance:a.d({readOnly:!0,get:function(){return this._sharedTelemetry||r.b("Telemetry.sharedInstance called before createSharedInstance"),this._sharedTelemetry}}),_sharedTelemetry:a.d({type:p}),__QUALIFIED_CLASS_NAME__:"Telemetry"},applicationName:a.d({type:String}),telemetryClient:a.d(),masteringNumber:a.d({type:String}),buildNumber:a.d({type:String}),hostname:a.d({type:String}),telemetrySession:a.d({type:d.a}),browserLocale:a.d({type:String}),init:function(e,t,n,i,r){var a=arguments.length>5&&void 0!==arguments[5]?arguments[5]:h;this.__s._$1D0$init.call(this),this.applicationName=e,this.masteringNumber=t,this.buildNumber=n,this.hostname=i,this.browserLocale=r,this.telemetrySession=d.a.sharedInstance,this.telemetryClient=a},recordStat:function(e){var t=e.toJSON(),n=t.statName;this.recordStatRaw(n,t)},recordStatRaw:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.applicationName,i=this.masteringNumber,r=this.buildNumber,a=this.hostname,s=this.browserLocale,c=this.telemetrySession,l=Object(u.a)(n,i,r,c.identifier,a,s,o.a.sharedInstance.primaryInteractionMode,e,t);this.telemetryClient.recordStat(l)},recordApplicationStat:function(e,t,n,i){var r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{},a=this.masteringNumber,s=this.buildNumber,c=this.browserLocale,l=this.hostname,d=this.telemetrySession,h=Object(u.a)(e,t,n,d.identifier,l,c,o.a.sharedInstance.primaryInteractionMode,i,r);h.cloudOSMasteringNumber=a,h.cloudOSBuildNumber=s,this.telemetryClient.recordStat(h)},flushStats:function(){this.telemetryClient.flush()},__superMap:{_$1D0$init:"init"}})},function(e,t,n){"use strict";var i=n(81),r=n(832),a=n(822),o=function(e){function t(n){!function(e,n){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this);var i=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,e.call(this,n));return i.name="SerializationError",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(Error);n.d(t,"a",function(){return c});var s="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},c={serialize:function(){var e=this.getMetadataByType(i.a),t={};for(var n in f(this),e){var r=e[n],a=r.key,o=r.serialization;if(!o||!o.ignore){var s=u(this,r);void 0!==s&&(t[l(a,o)]=s)}}return t},staticMembers:{deserialize:function(e){var t=void 0;if(e&&r.a(e)){var n=(t=this.create()).getMetadataByType(i.a);for(var a in n){var o=n[a],s=o.key,c=o.serialization,u=e[l(s,c)];c&&c.ignore||(t[s]=h(t,u,o))}f(t)}return t}}};function l(e,t){var n=e;if(t){var i=t.propertyName;i&&"string"==typeof i&&i.length>0&&(n=i)}return n}function u(e,t,n){var i=t.key,r=t.type,a=t.getForObject(e);return m(r)?function(e,t,n,i){var r=void 0;if(n){r=[];for(var a=0,o=n.length;a<o;a++){var s=n[a];r.push(d(e,t,s))}}return r}(e,i,a):g(r)?function(e,t,n,i){var r=void 0;if(a){r={};var o=a,s=Array.isArray(o),c=0;for(o=s?o:o[Symbol.iterator]();;){var l;if(s){if(c>=o.length)break;l=o[c++]}else{if((c=o.next()).done)break;l=c.value}var u=l,h=u[0],p=u[1];r[h]=d(e,t,p)}}return r}(e,i):d(e,i,a)}function d(e,t,n){var i=void 0;if(void 0!==n&&null!==n)if(n.isObject){if(!n||!n.hasMixin(c))throw new o("["+a.a(e)+"] Property "+t+" does not support serialization");n&&(i=n.serialize())}else i=n;return i}function h(e,t,n){var i=n.type,r=n.key;return m(i)?function(e,t,n){var i=n.key,r=n.serialization,a=void 0;if(t){var o=Object;if(r){var s=r.collectionObjectType;s&&(o=s)}a=[];for(var c=0,l=t.length;c<l;c++){var u=t[c];a.push(p(e,i,o,u))}}return a}(e,t,n):g(i)?function(e,t,n){var i=n.key,r=n.serialization,a=void 0;if(t){var o=Object;if(r){var s=r.collectionObjectType;s&&(o=s)}for(var c in a=new Map,t){var l=t[c];a.set(c,p(e,i,o,l))}}return a}(e,t,n):p(e,r,i,t)}function p(e,t,n,i){var r,l,u="string"==typeof(r=n)?b(r):"function"==typeof r&&b(void 0===(l=r())?"undefined":s(l));if(i&&!u){if(n.hasMixin(c))return n.deserialize(i);throw new o("["+a.a(e)+"] Property "+t+" does not support serialization")}return i}function f(e){var t=e.getMetadataByType(i.a),n=[];for(var r in t){var s=t[r],c=s.validators,l=s.key;if(c){for(var u=[],d=0;d<c.length;d++){var h=c[d];h.validate(s.getForObject(e),l,e)||u.push(h.message)}if(u&&u.length>0){var p="Validation for field "+l+" failed - "+u.join(", ")+".";n.push(p)}}}if(n&&n.length>0)throw new o("["+a.a(e)+"] "+n.join(" "))}function m(e){return"function"==typeof e&&Array.isArray(new e)}function g(e){return"function"==typeof e&&new e instanceof Map}function b(e){return"string"===e||"number"===e||"boolean"===e||"object"===e}},function(e,t,n){"use strict";var i=n(818),r=n(81),a=n(1160),o=i.a.extend({mixinDependencies:[a.a],x:r.d({type:Number}),y:r.d({type:Number}),width:r.d({type:Number}),height:r.d({type:Number}),staticMembers:{__QUALIFIED_CLASS_NAME__:"MeCardPhotoCrop"}});n.d(t,"a",function(){return s});var s=i.a.extend({mixinDependencies:[a.a],url:r.d({type:String}),signature:r.d({type:String}),crop:r.d({type:o}),staticMembers:{__QUALIFIED_CLASS_NAME__:"MeCardPhoto"}})},function(e,t,n){"use strict";var i=n(818),r=n(819),a=n(828),o=n(81),s=new Date("Thu, 01-Jan-1970 00:00:01 GMT;"),c=i.a.extend({name:o.d({type:String}),value:o.d({type:String}),expirationDate:o.d({type:Date}),isSecure:o.d({type:Boolean,defaultValue:!0}),domain:o.d({type:String}),path:o.d({type:String,defaultValue:"/"}),cookieString:o.d({type:String,readOnly:!0,get:function(){var e=this.name,t=this.value,n=this.path,i=this.domain,r=this._expirationDateStringGMT,a=this._sslString;return e+"="+t+";path="+n+";"+(i?"domain="+i+";":"")+r+a}}),init:function(e,t,n,i,a,o){this.__s._$dt$init.call(this),e||r.b("name is required to create a cookie"),t||r.b("value is required to create a cookie"),this.name=e,this.value=t,this.path=n||"/",this.domain=i,this.expirationDate=a,this.isSecure=void 0===o||o},expire:function(){this.value="",this.expirationDate=s},_expirationDateStringGMT:o.d({type:String,readOnly:!0,get:function(){var e=this.expirationDate;return e?"expires="+new Date(e).toGMTString()+";":""}}),_sslString:o.d({type:String,readOnly:!0,get:function(){return this.isSecure?"Secure;":""}}),__superMap:{_$dt$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"Cookie"}});n.d(t,"a",function(){return l});var l=i.a.extend({init:function(e){this.__s._$DI$init.call(this),e||r.b("No default domain was provided."),this._defaultDomain=e},readCookieValue:function(e){var t=this._fetchCookie(e);return t?t.value:void 0},readCookie:function(e){return this._fetchCookie(e)},writeCookie:function(e,t,n,i,r,a){var o=void 0,s=void 0,c=void 0;if(e)return void 0!==t&&null!==t||(c=this._fetchCookie(e))&&c.expire(),a&&(o=1e3*a*60*60,s=new Date((new Date).getTime()+o)),c||(c=this._createCookie(e,t,n,r,s,i)),document.cookie=c.cookieString,c},updateCookie:function(e){var t=this._cookies;if(a.a(e,c)||r.b("Invalid cookie argument"),this._fetchCookie(e.name))return t.set(e.name,e),this.writeCookie(e.name,e.value);r.b("Unable to find the cookie provided to update")},deleteCookie:function(e){var t=this._cookies,n=void 0;return this._fetchCookie(e)&&(n=this.writeCookie(e,null),t.delete(e)),n},deleteAllCookies:function(){var e=this;this._cookies.forEach(function(t){e.deleteCookie(t.name,t.path,t.domain)})},_defaultDomain:o.d({type:String}),_fetchCookie:function(e){var t=this,n=this._cookies.get(e);return n||document.cookie.split(";").forEach(function(i){var r=i.match(e+"=(.*)");if(r&&r[1]){var a=r[1];n=t._createCookie(e,a)}}),n},_cookies:o.d({type:Map,defaultValue:function(){return new Map}}),_createCookie:function(e,t,n,i,r,a){i||(i=this._defaultDomain),i="."+i;var o=c.create(e,t,n,i,r,a);return this._cookies.set(o.name,o),o},__superMap:{_$DI$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"CookieManager"}})},function(e,t,n){"use strict";var i=n(818),r=n(81),a=n(871),o=n(819),s=n(100),c=n(1103),l=n(1100),u=n(243),d=n(94),h=n(856),p=n(830),f={mixinDependencies:[d.a],wantsInteractiveStart:h.a.define(),startInteractiveTransition:p.a.define(),interruptInteractiveTransition:p.a.define()},m=n(1102);n(0),n.d(t,"a",function(){return g});var g=i.a.extend({fromViewController:r.d({type:a.a,strong:!0}),toViewController:r.d({type:a.a,strong:!0}),containerView:r.d({type:c.a,readOnly:!0}),animationController:r.d({type:l.a,readOnly:!0}),interactionController:r.d({type:f,readOnly:!0}),presentationController:r.d({type:m.a,readOnly:!0}),transitionCoordinator:r.d({ViewControllerTransitionCoordinator:u.a,readOnly:!0}),animated:r.d({type:Boolean}),interactive:r.d({type:Boolean,defaultValue:!1}),transitionWasCancelled:r.d({type:Boolean,defaultValue:!1}),init:function(e,t,n,i,r,a,s,c){this.__s._$1HY$init.call(this),t||o.b("[TransitionContext] Requires toViewController"),n||o.b("[TransitionContext] Requires containerView"),i||o.b("[TransitionContext] Requires animationController"),s||o.b("[TransitionContext] Requires transitionCoordinator"),this.fromViewController=e,this.toViewController=t,this._containerView=n,this._animationController=i,this._interactionController=r,this._presentationController=a,this._transitionCoordinator=s,this.animated=c},transition:function(){var e=this._transitionPromise=s.a.create();this.animationController.animateTransition(this);var t=this.interactionController;return t&&t.wantsInteractiveStart&&this.startInteractiveTransition(t),e},completeTransition:function(e){this._transitionCoordinator.completeTransition(this),this._animationController.animationEnded(e),this._transitionPromise.resolve()},startInteractiveTransition:function(e){e.startInteractiveTransition(this),this.interactive=!0},cancelInteractiveTransition:function(){this.interactive=!1,this.transitionWasCancelled=!0},finishInteractiveTransition:function(){this.interactive=!1},updateInteractiveTransition:function(e){this.interactive&&this._transitionCoordinator.updateAnimation(e,this)},_transitionPromise:r.d({type:s.a}),__superMap:{_$1HY$init:"init"},staticMembers:{__QUALIFIED_CLASS_NAME__:"TransitionContext"}})},function(e,t,n){"use strict";var i=n(856),r=n(831),a=n(819),o=n(828),s=n(1051),c=n(1055),l=n(1056);n.d(t,"a",function(){return u});var u={messagingResponseErrorTerminationMethod:i.a.define(),terminateIfMessagingResponseError:function(e){var t=this.messagingResponseErrorTerminationMethod;r.a(t)||a.b("A messagingResponseErrorTerminationMethod property returning a function is required"),o.a(e,s.a)||a.b("A MessagingResponse is required.");var n=!1;return e.isDisconnected||e.isCanceled||e.isOK||(t.call.apply(t,[this].concat(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;o.a(e,s.a)||a.b("A MessagingResponse Instance is required.");var n=c.a.USER_INITIATED,i=c.a.TIMEOUT,r=c.a.DISCONNECTED,u=c.a.UNCAUGHT_EXCEPTION;return e.isOK?u=n:e.isTimeout?u=i:e.isDisconnected&&(u=r),[u,Object(l.a)(e.serialize(),t+1)]}(e,2))),n=!0),n}}},function(e,t,n){"use strict";n(15);var i=n(877),r=n(98),a=n(78),o=n(892),s=n(869),c={name:"person.crop.circle",svgPath:"M 58.5449 14.5508 C 85.791 14.5508 108.35 -8.00781 108.35 -35.2539 C 108.35 -62.4512 85.7422 -85.0586 58.4961 -85.0586 C 31.2988 -85.0586 8.74023 -62.4512 8.74023 -35.2539 C 8.74023 -8.00781 31.3477 14.5508 58.5449 14.5508 Z M 58.5449 -18.6035 C 43.8477 -18.6035 32.5684 -13.3789 27.5879 -7.51953 C 21.0449 -14.8438 17.0898 -24.5605 17.0898 -35.2539 C 17.0898 -58.252 35.4492 -76.7578 58.4961 -76.7578 C 81.543 -76.7578 100 -58.252 100.049 -35.2539 C 100.098 -24.5117 96.0938 -14.7949 89.502 -7.4707 C 84.5703 -13.3301 73.2422 -18.6035 58.5449 -18.6035 Z M 58.5449 -26.9043 C 67.9199 -26.8066 75.293 -34.8145 75.293 -45.3125 C 75.293 -55.1758 67.9199 -63.3789 58.5449 -63.3789 C 49.1699 -63.3789 41.748 -55.1758 41.7969 -45.3125 C 41.8457 -34.8145 49.1699 -27.002 58.5449 -26.9043 Z",layoutBox:{viewBox:"0 0 212.646728515625 159.98291015625",width:212.646728515625,height:159.98291015625,translateX:47.778210449218705,translateY:115.221435546875,baseline:115.221435546875,capline:44.761474609375},glyphBox:{viewBox:"0 0 99.6097412109375 99.6572265625",width:99.6097412109375,height:99.6572265625,translateX:-8.740283203125045,translateY:85.05859375,baseline:85.05859375,capline:14.5986328125}},l=n(244);n(0),n.d(t,"a",function(){return u});var u=i.a.extend({staticMembers:{template:{type:"ELEMENT",tagname:"div",children:[{type:"ELEMENT",tagname:"div",classes:["photo-icon",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isPhotoIconHidden",truevalue:"view-hidden",attributes:{}}],styles:{width:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"iconWidth",attributes:{},unit:"px",property:"width"},height:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"iconHeight",attributes:{},unit:"px",property:"height"},"background-image":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"meCardPhotoUrl",attributes:{},unit:null,property:"background-image"},"background-position":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"photoBackgroundPosition",attributes:{},unit:null,property:"background-position"},"background-size":{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"photoBackgroundSize",attributes:{},unit:null,property:"background-size"},"background-repeat":"no-repeat",overflow:"hidden"}},{type:"ELEMENT",tagname:"div",children:[{type:"VIEWOUTLET",tagname:"view",name:"emptyAvatarView"}],classes:["empty-avatar",{type:"CLASSNAMEOUTLET",bindingtype:"IFBINDING",name:"isEmptyAvatarHidden",truevalue:"view-hidden",attributes:{}}],styles:{width:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"iconWidth",attributes:{},unit:"px",property:"width"},height:{type:"STYLEOUTLET",bindingtype:"DIRECTBINDING",name:"iconHeight",attributes:{},unit:"px",property:"height"}}}],classes:["user-photo-icon-view"]},__QUALIFIED_CLASS_NAME__:"UserPhotoIconView"},iconWidth:r.b({type:Number,defaultValue:24}),iconHeight:r.b({type:Number,defaultValue:24}),meCardPhoto:r.b(),isPhotoIconHidden:r.b({type:Boolean,dependencies:["photoSize"],readOnly:!0,get:Object.assign(function(){return 0===this.photoSize.width},{__CW__getter:function(e,t,n,i){return 0===i.internalGet(this,t[0+n]).width}})}),isEmptyAvatarHidden:r.b({type:Boolean,dependencies:["photoSize"],readOnly:!0,get:Object.assign(function(){return this.photoSize.width>0},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n]).width>0}})}),photoBackgroundPosition:r.b({type:String,readOnly:!0,dependencies:["meCardPhoto","iconWidth","iconHeight","photoSize"],get:function(){var e=this.meCardPhoto,t=this.photoSize;if(!e||!t||0===t.width||0===t.height)return"0px 0px";var n=t.height,i=t.width,r=e.crop,a=r?r.width:i,o=r?r.height:n,s=r?r.x:0,c=r?r.y:0,l=this.iconWidth,u=this.iconHeight;return Math.round(-s*l/a)+"px "+Math.round(-(n-c-o)*u/o)+"px"}}),photoBackgroundSize:r.b({type:String,readOnly:!0,dependencies:["meCardPhoto","iconWidth","iconHeight","photoSize"],get:function(){var e=this.meCardPhoto,t=this.photoSize;if(!e||!t||0===t.width||0===t.height)return"0px 0px";var n=t.width,i=t.height,r=e.crop,a=r?r.width:n,o=r?r.height:i,s=this.iconWidth,c=this.iconHeight;return Math.round(n*s/a)+"px "+Math.round(i*c/o)+"px"}}),photoSize:r.b({type:Object,defaultValue:function(){return{width:0,height:0}}}),meCardPhotoUrl:r.b({type:String,dependencies:["meCardPhoto"],readOnly:!0,get:Object.assign(function(){if(this.meCardPhoto)return"url("+this.meCardPhoto.url+")"},{__CW__getter:function(e,t,n,i){if(i.internalGet(this,t[0+n]))return"url("+i.internalGet(this,t[0+n]).url+")"}})}),emptyAvatarView:r.b({dependencies:["isEmptyAvatarHidden"],readOnly:!0,get:Object.assign(function(){return this.isEmptyAvatarHidden?null:this._emptyAvatarView},{__CW__getter:function(e,t,n,i){return i.internalGet(this,t[0+n])?null:this._emptyAvatarView}})}),_emptyAvatarView:r.b({readOnly:!0,defaultValue:function(){return i.a.extend(l.a).create({symbolMetadata:c,layoutMode:"glyphBox"})}}),meCardPhotoDidChange:a.h("meCardPhoto",function(){var e=this;if(this.meCardPhoto&&this.meCardPhoto.url){var t=new Image;s.a(t,"error",function n(){e.photoSize={width:0,height:0},o.a(t,"error",n)}),s.a(t,"load",function n(){e.photoSize={width:t.width,height:t.height},o.a(t,"load",n)}),t.src=this.meCardPhoto.url}})})}]);